]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Daily bump.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
c7c99407 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
b4c522fa 616GDC_FOR_TARGET
632e2a07 617GOC_FOR_TARGET
5213506e 618GFORTRAN_FOR_TARGET
5213506e
RW
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
e7a82751 622READELF
e4a9a572 623OTOOL
5213506e
RW
624OBJDUMP
625OBJCOPY
626WINDMC
627WINDRES
628STRIP
629RANLIB
630NM
631LIPO
632LD
c7c99407 633DSYMUTIL
5213506e
RW
634DLLTOOL
635AS
636AR
637RUNTEST
638EXPECT
639MAKEINFO
640FLEX
641LEX
642M4
643BISON
644YACC
5213506e
RW
645WINDRES_FOR_BUILD
646WINDMC_FOR_BUILD
647RANLIB_FOR_BUILD
648NM_FOR_BUILD
649LD_FOR_BUILD
650LDFLAGS_FOR_BUILD
b4c522fa 651GDC_FOR_BUILD
632e2a07 652GOC_FOR_BUILD
5213506e 653GFORTRAN_FOR_BUILD
c7c99407 654DSYMUTIL_FOR_BUILD
5213506e
RW
655DLLTOOL_FOR_BUILD
656CXX_FOR_BUILD
657CXXFLAGS_FOR_BUILD
658CFLAGS_FOR_BUILD
659CC_FOR_BUILD
660AS_FOR_BUILD
661AR_FOR_BUILD
aae29963 662target_configdirs
5213506e 663configdirs
5213506e 664build_configdirs
5213506e
RW
665INSTALL_GDB_TK
666GDB_TK
667CONFIGURE_GDB_TK
668build_tooldir
669tooldir
670GCC_SHLIB_SUBDIR
671RPATH_ENVVAR
ffedf511
RW
672target_configargs
673host_configargs
674build_configargs
e12c4094 675BUILD_CONFIG
6f57bdf6 676LDFLAGS_FOR_TARGET
5213506e
RW
677CXXFLAGS_FOR_TARGET
678CFLAGS_FOR_TARGET
679DEBUG_PREFIX_CFLAGS_FOR_TARGET
680SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 681get_gcc_base_ver
1c01ebf6 682extra_host_zlib_configure_flags
d7f09764 683extra_host_libiberty_configure_flags
fca38047 684stage1_languages
cdfee50a 685host_shared
45b3824d
TS
686extra_linker_plugin_flags
687extra_linker_plugin_configure_flags
33ad93b9 688islinc
eae1a5d4 689isllibs
5213506e 690poststage1_ldflags
ed2eaa9f 691poststage1_libs
5213506e 692stage1_ldflags
0b21f5d3 693stage1_libs
0ff2d841 694extra_isl_gmp_configure_flags
5213506e
RW
695extra_mpc_mpfr_configure_flags
696extra_mpc_gmp_configure_flags
697extra_mpfr_configure_flags
698gmpinc
699gmplibs
700do_compare
701GNATMAKE
702GNATBIND
703ac_ct_CXX
704CXXFLAGS
705CXX
706OBJEXT
707EXEEXT
708ac_ct_CC
709CPPFLAGS
710LDFLAGS
711CFLAGS
712CC
5f520819 713extra_liboffloadmic_configure_flags
5213506e
RW
714target_subdir
715host_subdir
716build_subdir
717build_libsubdir
87264276
PB
718AWK
719SED
5213506e
RW
720LN_S
721LN
722INSTALL_DATA
723INSTALL_SCRIPT
724INSTALL_PROGRAM
725target_os
726target_vendor
727target_cpu
728target
729host_os
730host_vendor
731host_cpu
732host
733target_noncanonical
734host_noncanonical
735build_noncanonical
736build_os
737build_vendor
738build_cpu
739build
740TOPLEVEL_CONFIGURE_ARGUMENTS
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files='serialization_dependencies
780host_makefile_frag
781target_makefile_frag
782alphaieee_frag
783ospace_frag'
784ac_user_opts='
785enable_option_checking
786with_build_libsubdir
a05c2c75 787with_system_zlib
85c64bbe
BS
788enable_as_accelerator_for
789enable_offload_targets
5213506e 790enable_gold
21539e2e 791enable_ld
78edb32f 792enable_compressed_debug_sections
87e6d9dc
TB
793enable_libquadmath
794enable_libquadmath_support
5213506e
RW
795enable_libada
796enable_libssp
1873ec0c 797enable_libstdcxx
5f520819 798enable_liboffloadmic
ff3ac0f4 799enable_bootstrap
5213506e
RW
800with_mpc
801with_mpc_include
802with_mpc_lib
803with_mpfr_dir
804with_mpfr
805with_mpfr_include
806with_mpfr_lib
807with_gmp_dir
808with_gmp
809with_gmp_include
810with_gmp_lib
5213506e 811with_stage1_libs
aac9103b 812with_static_standard_libraries
0b21f5d3 813with_stage1_ldflags
5213506e 814with_boot_libs
ed2eaa9f 815with_boot_ldflags
33ad93b9
RG
816with_isl
817with_isl_include
818with_isl_lib
819enable_isl_version_check
d7f09764 820enable_lto
45b3824d
TS
821enable_linker_plugin_configure_flags
822enable_linker_plugin_flags
cdfee50a 823enable_host_shared
5213506e 824enable_stage1_languages
43c40f3e 825enable_objc_gc
114bf3f1
MK
826with_target_bdw_gc
827with_target_bdw_gc_include
828with_target_bdw_gc_lib
3c36aa6b 829with_gcc_major_version_only
5213506e
RW
830with_build_sysroot
831with_debug_prefix_map
5646b7b9 832with_build_config
beeda1d9 833enable_vtable_verify
5213506e
RW
834enable_serial_configure
835with_build_time_tools
836enable_maintainer_mode
837enable_stage1_checking
838enable_werror
5213506e
RW
839'
840 ac_precious_vars='build_alias
841host_alias
842target_alias
843CC
844CFLAGS
845LDFLAGS
846LIBS
847CPPFLAGS
848CXX
849CXXFLAGS
850CCC
ffedf511
RW
851build_configargs
852host_configargs
853target_configargs
5213506e
RW
854AR
855AS
856DLLTOOL
c7c99407 857DSYMUTIL
5213506e
RW
858LD
859LIPO
860NM
861RANLIB
862STRIP
863WINDRES
864WINDMC
865OBJCOPY
866OBJDUMP
e4a9a572 867OTOOL
e7a82751 868READELF
5213506e
RW
869CC_FOR_TARGET
870CXX_FOR_TARGET
871GCC_FOR_TARGET
5213506e 872GFORTRAN_FOR_TARGET
632e2a07 873GOC_FOR_TARGET
b4c522fa 874GDC_FOR_TARGET
5213506e
RW
875AR_FOR_TARGET
876AS_FOR_TARGET
877DLLTOOL_FOR_TARGET
c7c99407 878DSYMUTIL_FOR_TARGET
5213506e
RW
879LD_FOR_TARGET
880LIPO_FOR_TARGET
881NM_FOR_TARGET
9bccfdf5 882OBJCOPY_FOR_TARGET
5213506e 883OBJDUMP_FOR_TARGET
e4a9a572 884OTOOL_FOR_TARGET
5213506e 885RANLIB_FOR_TARGET
e7a82751 886READELF_FOR_TARGET
5213506e
RW
887STRIP_FOR_TARGET
888WINDRES_FOR_TARGET
889WINDMC_FOR_TARGET'
890
671aa708
NN
891
892# Initialize some variables set by options.
1c710c3c
DJ
893ac_init_help=
894ac_init_version=false
5213506e
RW
895ac_unrecognized_opts=
896ac_unrecognized_sep=
671aa708
NN
897# The variables have the same names as the options, with
898# dashes changed to underlines.
1c710c3c 899cache_file=/dev/null
671aa708 900exec_prefix=NONE
671aa708 901no_create=
671aa708
NN
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
671aa708
NN
910verbose=
911x_includes=NONE
912x_libraries=NONE
1c710c3c
DJ
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 919# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
5213506e
RW
923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
671aa708
NN
925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
671aa708
NN
928includedir='${prefix}/include'
929oldincludedir='/usr/include'
5213506e
RW
930docdir='${datarootdir}/doc/${PACKAGE}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
79c06341 939
671aa708 940ac_prev=
5213506e 941ac_dashdash=
671aa708
NN
942for ac_option
943do
671aa708
NN
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
5213506e 946 eval $ac_prev=\$ac_option
671aa708
NN
947 ac_prev=
948 continue
949 fi
79c06341 950
5213506e 951 case $ac_option in
22e05272
JM
952 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *=) ac_optarg= ;;
954 *) ac_optarg=yes ;;
5213506e 955 esac
671aa708
NN
956
957 # Accept the important Cygnus configure options, so we can diagnose typos.
958
5213506e
RW
959 case $ac_dashdash$ac_option in
960 --)
961 ac_dashdash=yes ;;
671aa708
NN
962
963 -bindir | --bindir | --bindi | --bind | --bin | --bi)
964 ac_prev=bindir ;;
965 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 966 bindir=$ac_optarg ;;
671aa708
NN
967
968 -build | --build | --buil | --bui | --bu)
1c710c3c 969 ac_prev=build_alias ;;
671aa708 970 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 971 build_alias=$ac_optarg ;;
671aa708
NN
972
973 -cache-file | --cache-file | --cache-fil | --cache-fi \
974 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975 ac_prev=cache_file ;;
976 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
978 cache_file=$ac_optarg ;;
979
980 --config-cache | -C)
981 cache_file=config.cache ;;
671aa708 982
5213506e 983 -datadir | --datadir | --datadi | --datad)
671aa708 984 ac_prev=datadir ;;
5213506e 985 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 986 datadir=$ac_optarg ;;
671aa708 987
5213506e
RW
988 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989 | --dataroo | --dataro | --datar)
990 ac_prev=datarootdir ;;
991 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993 datarootdir=$ac_optarg ;;
994
671aa708 995 -disable-* | --disable-*)
5213506e 996 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 997 # Reject names that are not valid shell variable names.
5213506e 998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 999 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"enable_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
671aa708
NN
1020
1021 -enable-* | --enable-*)
5213506e 1022 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1023 # Reject names that are not valid shell variable names.
5213506e 1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1025 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1029 *"
1030"enable_$ac_useropt"
1031"*) ;;
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
2aeb72e9 1034 esac
5213506e 1035 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1036
1037 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039 | --exec | --exe | --ex)
1040 ac_prev=exec_prefix ;;
1041 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043 | --exec=* | --exe=* | --ex=*)
1c710c3c 1044 exec_prefix=$ac_optarg ;;
671aa708
NN
1045
1046 -gas | --gas | --ga | --g)
1047 # Obsolete; use --with-gas.
1048 with_gas=yes ;;
1049
1c710c3c
DJ
1050 -help | --help | --hel | --he | -h)
1051 ac_init_help=long ;;
1052 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053 ac_init_help=recursive ;;
1054 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055 ac_init_help=short ;;
671aa708
NN
1056
1057 -host | --host | --hos | --ho)
1c710c3c 1058 ac_prev=host_alias ;;
671aa708 1059 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1060 host_alias=$ac_optarg ;;
671aa708 1061
5213506e
RW
1062 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 ac_prev=htmldir ;;
1064 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 | --ht=*)
1066 htmldir=$ac_optarg ;;
1067
671aa708
NN
1068 -includedir | --includedir | --includedi | --included | --include \
1069 | --includ | --inclu | --incl | --inc)
1070 ac_prev=includedir ;;
1071 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1073 includedir=$ac_optarg ;;
671aa708
NN
1074
1075 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 ac_prev=infodir ;;
1077 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1078 infodir=$ac_optarg ;;
671aa708
NN
1079
1080 -libdir | --libdir | --libdi | --libd)
1081 ac_prev=libdir ;;
1082 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1083 libdir=$ac_optarg ;;
671aa708
NN
1084
1085 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086 | --libexe | --libex | --libe)
1087 ac_prev=libexecdir ;;
1088 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1090 libexecdir=$ac_optarg ;;
671aa708 1091
5213506e
RW
1092 -localedir | --localedir | --localedi | --localed | --locale)
1093 ac_prev=localedir ;;
1094 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095 localedir=$ac_optarg ;;
1096
671aa708 1097 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1098 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1099 ac_prev=localstatedir ;;
1100 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1101 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1102 localstatedir=$ac_optarg ;;
671aa708
NN
1103
1104 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 ac_prev=mandir ;;
1106 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1107 mandir=$ac_optarg ;;
671aa708
NN
1108
1109 -nfp | --nfp | --nf)
1110 # Obsolete; use --without-fp.
1111 with_fp=no ;;
1112
1113 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1114 | --no-cr | --no-c | -n)
671aa708
NN
1115 no_create=yes ;;
1116
1117 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 no_recursion=yes ;;
1120
1121 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123 | --oldin | --oldi | --old | --ol | --o)
1124 ac_prev=oldincludedir ;;
1125 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1128 oldincludedir=$ac_optarg ;;
671aa708
NN
1129
1130 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 ac_prev=prefix ;;
1132 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1133 prefix=$ac_optarg ;;
671aa708
NN
1134
1135 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136 | --program-pre | --program-pr | --program-p)
1137 ac_prev=program_prefix ;;
1138 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1140 program_prefix=$ac_optarg ;;
671aa708
NN
1141
1142 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143 | --program-suf | --program-su | --program-s)
1144 ac_prev=program_suffix ;;
1145 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1147 program_suffix=$ac_optarg ;;
671aa708
NN
1148
1149 -program-transform-name | --program-transform-name \
1150 | --program-transform-nam | --program-transform-na \
1151 | --program-transform-n | --program-transform- \
1152 | --program-transform | --program-transfor \
1153 | --program-transfo | --program-transf \
1154 | --program-trans | --program-tran \
1155 | --progr-tra | --program-tr | --program-t)
1156 ac_prev=program_transform_name ;;
1157 -program-transform-name=* | --program-transform-name=* \
1158 | --program-transform-nam=* | --program-transform-na=* \
1159 | --program-transform-n=* | --program-transform-=* \
1160 | --program-transform=* | --program-transfor=* \
1161 | --program-transfo=* | --program-transf=* \
1162 | --program-trans=* | --program-tran=* \
1163 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1164 program_transform_name=$ac_optarg ;;
671aa708 1165
5213506e
RW
1166 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 ac_prev=pdfdir ;;
1168 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169 pdfdir=$ac_optarg ;;
1170
1171 -psdir | --psdir | --psdi | --psd | --ps)
1172 ac_prev=psdir ;;
1173 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 psdir=$ac_optarg ;;
1175
671aa708
NN
1176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177 | -silent | --silent | --silen | --sile | --sil)
1178 silent=yes ;;
1179
1180 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 ac_prev=sbindir ;;
1182 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 | --sbi=* | --sb=*)
1c710c3c 1184 sbindir=$ac_optarg ;;
671aa708
NN
1185
1186 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188 | --sharedst | --shareds | --shared | --share | --shar \
1189 | --sha | --sh)
1190 ac_prev=sharedstatedir ;;
1191 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 | --sha=* | --sh=*)
1c710c3c 1195 sharedstatedir=$ac_optarg ;;
671aa708
NN
1196
1197 -site | --site | --sit)
1198 ac_prev=site ;;
1199 -site=* | --site=* | --sit=*)
1c710c3c 1200 site=$ac_optarg ;;
671aa708
NN
1201
1202 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 ac_prev=srcdir ;;
1204 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1205 srcdir=$ac_optarg ;;
671aa708
NN
1206
1207 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208 | --syscon | --sysco | --sysc | --sys | --sy)
1209 ac_prev=sysconfdir ;;
1210 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1212 sysconfdir=$ac_optarg ;;
671aa708
NN
1213
1214 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1215 ac_prev=target_alias ;;
671aa708 1216 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1217 target_alias=$ac_optarg ;;
671aa708
NN
1218
1219 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 verbose=yes ;;
1221
1c710c3c
DJ
1222 -version | --version | --versio | --versi | --vers | -V)
1223 ac_init_version=: ;;
671aa708
NN
1224
1225 -with-* | --with-*)
5213506e 1226 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1227 # Reject names that are not valid shell variable names.
5213506e 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1229 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234"with_$ac_useropt"
1235"*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
2aeb72e9 1238 esac
5213506e 1239 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1240
1241 -without-* | --without-*)
5213506e 1242 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1243 # Reject names that are not valid shell variable names.
5213506e 1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1245 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1249 *"
1250"with_$ac_useropt"
1251"*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=no ;;
671aa708
NN
1256
1257 --x)
1258 # Obsolete; use --with-x.
1259 with_x=yes ;;
1260
1261 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1262 | --x-incl | --x-inc | --x-in | --x-i)
1263 ac_prev=x_includes ;;
1264 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1265 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1266 x_includes=$ac_optarg ;;
671aa708
NN
1267
1268 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1269 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1270 ac_prev=x_libraries ;;
1271 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1272 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1273 x_libraries=$ac_optarg ;;
671aa708 1274
22e05272
JM
1275 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1276Try \`$0 --help' for more information"
671aa708
NN
1277 ;;
1278
1c710c3c
DJ
1279 *=*)
1280 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1281 # Reject names that are not valid shell variable names.
5213506e
RW
1282 case $ac_envvar in #(
1283 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1284 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1285 esac
1286 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1287 export $ac_envvar ;;
1288
671aa708 1289 *)
1c710c3c 1290 # FIXME: should be removed in autoconf 3.0.
5213506e 1291 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1292 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1293 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1294 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1295 ;;
1296
1297 esac
1298done
1299
1300if test -n "$ac_prev"; then
1c710c3c 1301 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1302 as_fn_error $? "missing argument to $ac_option"
af71363e 1303fi
af71363e 1304
5213506e
RW
1305if test -n "$ac_unrecognized_opts"; then
1306 case $enable_option_checking in
1307 no) ;;
22e05272 1308 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1309 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1310 esac
5213506e 1311fi
2aeb72e9 1312
5213506e
RW
1313# Check all directory arguments for consistency.
1314for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1315 datadir sysconfdir sharedstatedir localstatedir includedir \
1316 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1317 libdir localedir mandir
2aeb72e9 1318do
5213506e
RW
1319 eval ac_val=\$$ac_var
1320 # Remove trailing slashes.
1321 case $ac_val in
1322 */ )
1323 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1324 eval $ac_var=\$ac_val;;
1325 esac
1326 # Be sure to have absolute directory names.
2aeb72e9 1327 case $ac_val in
5213506e
RW
1328 [\\/$]* | ?:[\\/]* ) continue;;
1329 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1330 esac
22e05272 1331 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1332done
1333
1c710c3c
DJ
1334# There might be people who depend on the old broken behavior: `$host'
1335# used to hold the argument of --host etc.
1336# FIXME: To remove some day.
1337build=$build_alias
1338host=$host_alias
1339target=$target_alias
0b0dc272 1340
1c710c3c
DJ
1341# FIXME: To remove some day.
1342if test "x$host_alias" != x; then
1343 if test "x$build_alias" = x; then
1344 cross_compiling=maybe
1c710c3c
DJ
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1347 fi
1348fi
1349
1350ac_tool_prefix=
1351test -n "$host_alias" && ac_tool_prefix=$host_alias-
1352
1353test "$silent" = yes && exec 6>/dev/null
671aa708 1354
671aa708 1355
5213506e
RW
1356ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357ac_ls_di=`ls -di .` &&
1358ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1359 as_fn_error $? "working directory cannot be determined"
5213506e 1360test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1361 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1362
1363
671aa708
NN
1364# Find the source files, if location was not specified.
1365if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
5213506e
RW
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373$as_echo X"$as_myself" |
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\/\)$/{
1383 s//\1/
1384 q
1385 }
1386 /^X\(\/\).*/{
1387 s//\1/
1388 q
1389 }
1390 s/.*/./; q'`
671aa708 1391 srcdir=$ac_confdir
5213506e 1392 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1393 srcdir=..
1394 fi
1395else
1396 ac_srcdir_defaulted=no
1397fi
5213506e
RW
1398if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1401fi
1402ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403ac_abs_confdir=`(
22e05272 1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1405 pwd)`
1406# When building in place, set srcdir=.
1407if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1409fi
1410# Remove unnecessary trailing slashes from srcdir.
1411# Double slashes in file names in object file debugging info
1412# mess up M-x gdb in Emacs.
1413case $srcdir in
1414*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415esac
87841584
AM
1416case $srcdir in
1417 *" "*)
22e05272 1418 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1419 ;;
1420esac
ac9e6043
RW
1421ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1422
5213506e
RW
1423for ac_var in $ac_precious_vars; do
1424 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_env_${ac_var}_value=\$${ac_var}
1426 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428done
1c710c3c
DJ
1429
1430#
1431# Report the --help message.
1432#
1433if test "$ac_init_help" = "long"; then
1434 # Omit some internal or obsolete options to make the list less imposing.
1435 # This message is too long to be a string in the A/UX 3.1 sh.
1436 cat <<_ACEOF
1437\`configure' configures this package to adapt to many kinds of systems.
1438
1439Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442VAR=VALUE. See below for descriptions of some of the useful variables.
1443
1444Defaults for the options are specified in brackets.
1445
1446Configuration:
1447 -h, --help display this help and exit
1448 --help=short display options specific to this package
1449 --help=recursive display the short help of all the included packages
1450 -V, --version display version information and exit
22e05272 1451 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1452 --cache-file=FILE cache test results in FILE [disabled]
1453 -C, --config-cache alias for \`--cache-file=config.cache'
1454 -n, --no-create do not create output files
1455 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1456
1c710c3c
DJ
1457Installation directories:
1458 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1459 [$ac_default_prefix]
1c710c3c 1460 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1461 [PREFIX]
1c710c3c
DJ
1462
1463By default, \`make install' will install all the files in
1464\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1465an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466for instance \`--prefix=\$HOME'.
1467
1468For better control, use the options below.
1469
1470Fine tuning of the installation directories:
5213506e
RW
1471 --bindir=DIR user executables [EPREFIX/bin]
1472 --sbindir=DIR system admin executables [EPREFIX/sbin]
1473 --libexecdir=DIR program executables [EPREFIX/libexec]
1474 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1475 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1476 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1477 --libdir=DIR object code libraries [EPREFIX/lib]
1478 --includedir=DIR C header files [PREFIX/include]
1479 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1480 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1481 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1482 --infodir=DIR info documentation [DATAROOTDIR/info]
1483 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1484 --mandir=DIR man documentation [DATAROOTDIR/man]
1485 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1486 --htmldir=DIR html documentation [DOCDIR]
1487 --dvidir=DIR dvi documentation [DOCDIR]
1488 --pdfdir=DIR pdf documentation [DOCDIR]
1489 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1490_ACEOF
1491
1492 cat <<\_ACEOF
1493
1494Program names:
1495 --program-prefix=PREFIX prepend PREFIX to installed program names
1496 --program-suffix=SUFFIX append SUFFIX to installed program names
1497 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498
1499System types:
1500 --build=BUILD configure for building on BUILD [guessed]
1501 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1502 --target=TARGET configure for building compilers for TARGET [HOST]
1503_ACEOF
1504fi
1505
1506if test -n "$ac_init_help"; then
1507
1508 cat <<\_ACEOF
1509
1510Optional Features:
5213506e 1511 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1514 --enable-as-accelerator-for=ARG
1515 build as offload target compiler. Specify offload
1516 host triple by ARG
1517 --enable-offload-targets=LIST
1518 enable offloading to devices from comma-separated
1519 LIST of TARGET[=DIR]. Use optional path to find
1520 offload target compiler during the build
21539e2e 1521 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1522 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1523 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1524 Enable compressed debug sections for gas, gold or ld
1525 by default
87e6d9dc
TB
1526 --disable-libquadmath do not build libquadmath directory
1527 --disable-libquadmath-support
1528 disable libquadmath support for Fortran
30b74385
RW
1529 --enable-libada build libada directory
1530 --enable-libssp build libssp directory
1873ec0c 1531 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1532 --enable-liboffloadmic=ARG
1533 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1534 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1535 --disable-isl-version-check
560d18d3 1536 disable check for isl version
d7f09764 1537 --enable-lto enable link time optimization support
45b3824d
TS
1538 --enable-linker-plugin-configure-flags=FLAGS
1539 additional flags for configuring linker plugins
1540 [none]
1541 --enable-linker-plugin-flags=FLAGS
1542 additional flags for configuring and building linker
1543 plugins [none]
cdfee50a 1544 --enable-host-shared build host code as shared libraries
33e39b66
AS
1545 --enable-stage1-languages[=all]
1546 choose additional languages to build during stage1.
1547 Mostly useful for compiler development
43c40f3e
RO
1548 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1549 Objective-C runtime
318a4e6d 1550 --enable-vtable-verify Enable vtable verification feature
30b74385 1551 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1552 force sequential configuration of sub-packages for
1553 the host, target or build machine, or all
1554 sub-packages
1555 --enable-maintainer-mode
1556 enable make rules and dependencies not useful (and
1557 sometimes confusing) to the casual installer
1558 --enable-stage1-checking[=all]
1559 choose additional checking for stage1 of the
1560 compiler
1c710c3c
DJ
1561 --enable-werror enable -Werror in bootstrap stage2 and later
1562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1567 --with-system-zlib use installed libz
33e39b66
AS
1568 --with-mpc=PATH specify prefix directory for installed MPC package.
1569 Equivalent to --with-mpc-include=PATH/include plus
1570 --with-mpc-lib=PATH/lib
1571 --with-mpc-include=PATH specify directory for installed MPC include files
1572 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1573 --with-mpfr-dir=PATH this option has been REMOVED
1574 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1575 Equivalent to --with-mpfr-include=PATH/include plus
1576 --with-mpfr-lib=PATH/lib
1c710c3c 1577 --with-mpfr-include=PATH
30b74385
RW
1578 specify directory for installed MPFR include files
1579 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1580 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1581 --with-gmp=PATH specify prefix directory for the installed GMP
1582 package. Equivalent to
1583 --with-gmp-include=PATH/include plus
1584 --with-gmp-lib=PATH/lib
30b74385
RW
1585 --with-gmp-include=PATH specify directory for installed GMP include files
1586 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1587 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1588 --with-static-standard-libraries
1589 use -static-libstdc++ and -static-libgcc
1590 (default=auto)
33e39b66
AS
1591 --with-stage1-ldflags=FLAGS
1592 linker flags for stage1
33e39b66
AS
1593 --with-boot-libs=LIBS libraries for stage2 and later
1594 --with-boot-ldflags=FLAGS
1595 linker flags for stage2 and later
e357a5e0 1596 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1597 package. Equivalent to
33ad93b9
RG
1598 --with-isl-include=PATH/include plus
1599 --with-isl-lib=PATH/lib
560d18d3
AK
1600 --with-isl-include=PATH Specify directory for installed isl include files
1601 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1602 --with-target-bdw-gc=PATHLIST
1603 specify prefix directory for installed bdw-gc
1604 package. Equivalent to
1605 --with-target-bdw-gc-include=PATH/include plus
1606 --with-target-bdw-gc-lib=PATH/lib
1607 --with-target-bdw-gc-include=PATHLIST
1608 specify directories for installed bdw-gc include
1609 files
1610 --with-target-bdw-gc-lib=PATHLIST
1611 specify directories for installed bdw-gc library
3c36aa6b
JJ
1612 --with-gcc-major-version-only
1613 use only GCC major number in filesystem paths
30b74385 1614 --with-build-sysroot=SYSROOT
1c710c3c 1615 use sysroot as the system root during the build
c8aea42c 1616 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1617 map A to B, C to D ... in debug information
1618 --with-build-config='NAME NAME2...'
1619 use config/NAME.mk build configuration
30b74385 1620 --with-build-time-tools=PATH
1c710c3c 1621 use given path to find target tools during the build
1c710c3c
DJ
1622
1623Some influential environment variables:
1624 CC C compiler command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1627 nonstandard directory <lib dir>
5213506e 1628 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1629 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1630 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
ffedf511
RW
1633 build_configargs
1634 additional configure arguments for build directories
1635 host_configargs
1636 additional configure arguments for host directories
1637 target_configargs
1638 additional configure arguments for target directories
278a7a38
AO
1639 AR AR for the host
1640 AS AS for the host
1641 DLLTOOL DLLTOOL for the host
c7c99407 1642 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1643 LD LD for the host
1644 LIPO LIPO for the host
1645 NM NM for the host
1646 RANLIB RANLIB for the host
1647 STRIP STRIP for the host
1648 WINDRES WINDRES for the host
901119ae 1649 WINDMC WINDMC for the host
278a7a38
AO
1650 OBJCOPY OBJCOPY for the host
1651 OBJDUMP OBJDUMP for the host
e4a9a572 1652 OTOOL OTOOL for the host
e7a82751 1653 READELF READELF for the host
278a7a38
AO
1654 CC_FOR_TARGET
1655 CC for the target
1656 CXX_FOR_TARGET
1657 CXX for the target
1658 GCC_FOR_TARGET
1659 GCC for the target
278a7a38
AO
1660 GFORTRAN_FOR_TARGET
1661 GFORTRAN for the target
632e2a07
ILT
1662 GOC_FOR_TARGET
1663 GOC for the target
b4c522fa
IB
1664 GDC_FOR_TARGET
1665 GDC for the target
278a7a38
AO
1666 AR_FOR_TARGET
1667 AR for the target
1668 AS_FOR_TARGET
1669 AS for the target
1670 DLLTOOL_FOR_TARGET
1671 DLLTOOL for the target
c7c99407
IS
1672 DSYMUTIL_FOR_TARGET
1673 DSYMUTIL for the target
278a7a38
AO
1674 LD_FOR_TARGET
1675 LD for the target
1676 LIPO_FOR_TARGET
1677 LIPO for the target
1678 NM_FOR_TARGET
1679 NM for the target
9bccfdf5
AP
1680 OBJCOPY_FOR_TARGET
1681 OBJCOPY for the target
278a7a38
AO
1682 OBJDUMP_FOR_TARGET
1683 OBJDUMP for the target
e4a9a572
IS
1684 OTOOL_FOR_TARGET
1685 OTOOL for the target
278a7a38
AO
1686 RANLIB_FOR_TARGET
1687 RANLIB for the target
e7a82751
RM
1688 READELF_FOR_TARGET
1689 READELF for the target
278a7a38
AO
1690 STRIP_FOR_TARGET
1691 STRIP for the target
1692 WINDRES_FOR_TARGET
1693 WINDRES for the target
901119ae
KT
1694 WINDMC_FOR_TARGET
1695 WINDMC for the target
1c710c3c
DJ
1696
1697Use these variables to override the choices made by `configure' or to help
1698it to find libraries and programs with nonstandard names/locations.
1699
5213506e 1700Report bugs to the package provider.
1c710c3c 1701_ACEOF
5213506e 1702ac_status=$?
1c710c3c
DJ
1703fi
1704
1705if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1c710c3c 1707 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1710 continue
1c710c3c
DJ
1711 ac_builddir=.
1712
5213506e
RW
1713case "$ac_dir" in
1714.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715*)
1716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1722 esac ;;
1723esac
1724ac_abs_top_builddir=$ac_pwd
1725ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726# for backward compatibility:
1727ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1728
1729case $srcdir in
5213506e 1730 .) # We are building in place.
1c710c3c 1731 ac_srcdir=.
5213506e
RW
1732 ac_top_srcdir=$ac_top_builddir_sub
1733 ac_abs_top_srcdir=$ac_pwd ;;
1734 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1735 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1736 ac_top_srcdir=$srcdir
1737 ac_abs_top_srcdir=$srcdir ;;
1738 *) # Relative name.
1739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1742esac
5213506e
RW
1743ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1744
1745 cd "$ac_dir" || { ac_status=$?; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1751 echo &&
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1753 else
5213506e
RW
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1755 fi || ac_status=$?
1756 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1757 done
1758fi
1759
5213506e 1760test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1761if $ac_init_version; then
1762 cat <<\_ACEOF
5213506e 1763configure
22e05272 1764generated by GNU Autoconf 2.69
1c710c3c 1765
22e05272 1766Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1767This configure script is free software; the Free Software Foundation
1768gives unlimited permission to copy, distribute and modify it.
1769_ACEOF
5213506e 1770 exit
0b0dc272 1771fi
5213506e
RW
1772
1773## ------------------------ ##
1774## Autoconf initialization. ##
1775## ------------------------ ##
1776
1777# ac_fn_c_try_compile LINENO
1778# --------------------------
1779# Try to compile conftest.$ac_ext, and return whether this succeeded.
1780ac_fn_c_try_compile ()
1781{
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext
1784 if { { ac_try="$ac_compile"
1785case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1803 ac_retval=0
1804else
1805 $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808 ac_retval=1
1809fi
22e05272
JM
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
5213506e
RW
1812
1813} # ac_fn_c_try_compile
1814
1815# ac_fn_cxx_try_compile LINENO
1816# ----------------------------
1817# Try to compile conftest.$ac_ext, and return whether this succeeded.
1818ac_fn_cxx_try_compile ()
1819{
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1830 ac_status=$?
1831 if test -s conftest.err; then
1832 grep -v '^ *+' conftest.err >conftest.er1
1833 cat conftest.er1 >&5
1834 mv -f conftest.er1 conftest.err
1835 fi
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.$ac_objext; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: failed program was:" >&5
1844sed 's/^/| /' conftest.$ac_ext >&5
1845
1846 ac_retval=1
1847fi
22e05272
JM
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status $ac_retval
5213506e
RW
1850
1851} # ac_fn_cxx_try_compile
1852
0b21f5d3
EB
1853# ac_fn_cxx_try_link LINENO
1854# -------------------------
1855# Try to link conftest.$ac_ext, and return whether this succeeded.
1856ac_fn_cxx_try_link ()
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 rm -f conftest.$ac_objext conftest$ac_exeext
1860 if { { ac_try="$ac_link"
1861case "(($ac_try" in
1862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1868 ac_status=$?
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1873 fi
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
22e05272 1880 test -x conftest$ac_exeext
0b21f5d3
EB
1881 }; then :
1882 ac_retval=0
1883else
1884 $as_echo "$as_me: failed program was:" >&5
1885sed 's/^/| /' conftest.$ac_ext >&5
1886
1887 ac_retval=1
1888fi
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
0b21f5d3
EB
1896
1897} # ac_fn_cxx_try_link
1898
5213506e
RW
1899# ac_fn_c_try_link LINENO
1900# -----------------------
1901# Try to link conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_c_try_link ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1907case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1914 ac_status=$?
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1919 fi
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest$ac_exeext && {
1925 test "$cross_compiling" = yes ||
22e05272 1926 test -x conftest$ac_exeext
5213506e
RW
1927 }; then :
1928 ac_retval=0
1929else
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934fi
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
5213506e
RW
1942
1943} # ac_fn_c_try_link
1944cat >config.log <<_ACEOF
1c710c3c
DJ
1945This file contains any messages produced by compilers while
1946running configure, to aid debugging if configure makes a mistake.
1947
1948It was created by $as_me, which was
22e05272 1949generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1950
1951 $ $0 $@
1952
1953_ACEOF
5213506e 1954exec 5>>config.log
1c710c3c
DJ
1955{
1956cat <<_ASUNAME
1957## --------- ##
1958## Platform. ##
1959## --------- ##
1960
1961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965uname -v = `(uname -v) 2>/dev/null || echo unknown`
1966
1967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1969
1970/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1973/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1974/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1977
1978_ASUNAME
1979
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
5213506e
RW
1985 $as_echo "PATH: $as_dir"
1986 done
1987IFS=$as_save_IFS
1c710c3c
DJ
1988
1989} >&5
1990
1991cat >&5 <<_ACEOF
1992
1993
1994## ----------- ##
1995## Core tests. ##
1996## ----------- ##
1997
1998_ACEOF
1999
2000
2001# Keep a trace of the command line.
2002# Strip out --no-create and --no-recursion so they do not pile up.
2003# Strip out --silent because we don't want to record it for future runs.
2004# Also quote any args containing shell meta-characters.
2005# Make two passes to allow for proper duplicate-argument suppression.
2006ac_configure_args=
2007ac_configure_args0=
2008ac_configure_args1=
1c710c3c
DJ
2009ac_must_keep_next=false
2010for ac_pass in 1 2
2011do
2012 for ac_arg
2013 do
2014 case $ac_arg in
2015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2017 | -silent | --silent | --silen | --sile | --sil)
2018 continue ;;
5213506e
RW
2019 *\'*)
2020 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2021 esac
2022 case $ac_pass in
5213506e 2023 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2024 2)
5213506e 2025 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2026 if test $ac_must_keep_next = true; then
2027 ac_must_keep_next=false # Got value, back to normal.
2028 else
2029 case $ac_arg in
2030 *=* | --config-cache | -C | -disable-* | --disable-* \
2031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2033 | -with-* | --with-* | -without-* | --without-* | --x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2036 esac
2037 ;;
2038 -* ) ac_must_keep_next=true ;;
2039 esac
2040 fi
5213506e 2041 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2042 ;;
2043 esac
2044 done
2045done
5213506e
RW
2046{ ac_configure_args0=; unset ac_configure_args0;}
2047{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2048
2049# When interrupted or exit'd, cleanup temporary files, and complete
2050# config.log. We remove comments because anyway the quotes in there
2051# would cause problems or look ugly.
5213506e
RW
2052# WARNING: Use '\'' to represent an apostrophe within the trap.
2053# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2054trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2056 {
2057 echo
2058
22e05272 2059 $as_echo "## ---------------- ##
1c710c3c 2060## Cache variables. ##
22e05272 2061## ---------------- ##"
1c710c3c
DJ
2062 echo
2063 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2064(
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2067 case $ac_val in #(
2068 *${as_nl}*)
2069 case $ac_var in #(
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2072 esac
2073 case $ac_var in #(
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2077 esac ;;
2078 esac
2079 done
1c710c3c 2080 (set) 2>&1 |
5213506e
RW
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
1c710c3c 2083 sed -n \
5213506e
RW
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2086 ;; #(
1c710c3c 2087 *)
5213506e 2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2089 ;;
5213506e
RW
2090 esac |
2091 sort
2092)
1c710c3c
DJ
2093 echo
2094
22e05272 2095 $as_echo "## ----------------- ##
1c710c3c 2096## Output variables. ##
22e05272 2097## ----------------- ##"
1c710c3c
DJ
2098 echo
2099 for ac_var in $ac_subst_vars
2100 do
5213506e
RW
2101 eval ac_val=\$$ac_var
2102 case $ac_val in
2103 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104 esac
2105 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2106 done | sort
2107 echo
2108
2109 if test -n "$ac_subst_files"; then
22e05272 2110 $as_echo "## ------------------- ##
5213506e 2111## File substitutions. ##
22e05272 2112## ------------------- ##"
1c710c3c
DJ
2113 echo
2114 for ac_var in $ac_subst_files
2115 do
5213506e
RW
2116 eval ac_val=\$$ac_var
2117 case $ac_val in
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 esac
2120 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2121 done | sort
2122 echo
2123 fi
2124
2125 if test -s confdefs.h; then
22e05272 2126 $as_echo "## ----------- ##
1c710c3c 2127## confdefs.h. ##
22e05272 2128## ----------- ##"
1c710c3c 2129 echo
5213506e 2130 cat confdefs.h
1c710c3c
DJ
2131 echo
2132 fi
2133 test "$ac_signal" != 0 &&
5213506e
RW
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
1c710c3c 2136 } >&5
5213506e
RW
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2139 exit $exit_status
5213506e 2140' 0
1c710c3c 2141for ac_signal in 1 2 13 15; do
5213506e 2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2143done
2144ac_signal=0
2145
2146# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2147rm -f -r conftest* confdefs.h
2148
2149$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2150
2151# Predefined preprocessor variables.
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_NAME "$PACKAGE_NAME"
2155_ACEOF
2156
1c710c3c
DJ
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2159_ACEOF
2160
1c710c3c
DJ
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_VERSION "$PACKAGE_VERSION"
2163_ACEOF
0b0dc272 2164
1c710c3c
DJ
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_STRING "$PACKAGE_STRING"
2167_ACEOF
2168
1c710c3c
DJ
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2171_ACEOF
2172
5213506e
RW
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_URL "$PACKAGE_URL"
2175_ACEOF
2176
1c710c3c
DJ
2177
2178# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2179# Prefer an explicitly selected file to automatically selected ones.
2180ac_site_file1=NONE
2181ac_site_file2=NONE
2182if test -n "$CONFIG_SITE"; then
22e05272
JM
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1=./$CONFIG_SITE;;
2186 */*) ac_site_file1=$CONFIG_SITE;;
2187 *) ac_site_file1=./$CONFIG_SITE;;
2188 esac
5213506e
RW
2189elif test "x$prefix" != xNONE; then
2190 ac_site_file1=$prefix/share/config.site
2191 ac_site_file2=$prefix/etc/config.site
2192else
2193 ac_site_file1=$ac_default_prefix/share/config.site
2194 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2195fi
5213506e
RW
2196for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2197do
2198 test "x$ac_site_file" = xNONE && continue
22e05272 2199 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2202 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2203 . "$ac_site_file" \
2204 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206as_fn_error $? "failed to load site script $ac_site_file
2207See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2208 fi
2209done
2210
2211if test -r "$cache_file"; then
22e05272
JM
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2217 case $cache_file in
5213506e
RW
2218 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2219 *) . "./$cache_file";;
1c710c3c
DJ
2220 esac
2221 fi
671aa708 2222else
5213506e
RW
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2225 >$cache_file
2226fi
2227
2228# Check that the precious variables saved in the cache have kept the same
2229# value.
2230ac_cache_corrupted=false
5213506e 2231for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2233 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2234 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2235 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2236 case $ac_old_set,$ac_new_set in
2237 set,)
5213506e
RW
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2240 ac_cache_corrupted=: ;;
2241 ,set)
5213506e
RW
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2244 ac_cache_corrupted=: ;;
2245 ,);;
2246 *)
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w=`echo x $ac_old_val`
2250 ac_new_val_w=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted=:
2255 else
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\$ac_old_val
2259 fi
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2264 fi;;
2265 esac
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2268 case $ac_new_val in
5213506e 2269 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2270 *) ac_arg=$ac_var=$ac_new_val ;;
2271 esac
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2274 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2275 esac
2276 fi
2277done
2278if $ac_cache_corrupted; then
5213506e
RW
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2283 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2284fi
5213506e
RW
2285## -------------------- ##
2286## Main body of script. ##
2287## -------------------- ##
671aa708 2288
2aeb72e9
DD
2289ac_ext=c
2290ac_cpp='$CPP $CPPFLAGS'
2291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293ac_compiler_gnu=$ac_cv_c_compiler_gnu
2294
1c710c3c
DJ
2295
2296
2297
1c710c3c
DJ
2298
2299
0115d4a3 2300
1c710c3c 2301
ad33ff57
RW
2302progname=$0
2303# if PWD already has a value, it is probably wrong.
2304if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2305
2306# Export original configure arguments for use by sub-configures.
2307# Quote arguments with shell meta charatcers.
2308TOPLEVEL_CONFIGURE_ARGUMENTS=
2309set -- "$progname" "$@"
2310for ac_arg
2311do
2312 case "$ac_arg" in
2313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315 # if the argument is of the form -foo=baz, quote the baz part only
2316 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2317 *) ;;
2318 esac
2319 # Add the quoted argument to the list.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2321done
2322if test "$silent" = yes; then
2323 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2324fi
2325# Remove the initial space we just introduced and, as these will be
2326# expanded by make, quote '$'.
2327TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2328
1c710c3c
DJ
2329
2330# Find the build, host, and target systems.
671aa708 2331ac_aux_dir=
5213506e 2332for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2333 if test -f "$ac_dir/install-sh"; then
2334 ac_aux_dir=$ac_dir
2335 ac_install_sh="$ac_aux_dir/install-sh -c"
2336 break
2337 elif test -f "$ac_dir/install.sh"; then
2338 ac_aux_dir=$ac_dir
2339 ac_install_sh="$ac_aux_dir/install.sh -c"
2340 break
2341 elif test -f "$ac_dir/shtool"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/shtool install -c"
2344 break
2345 fi
671aa708
NN
2346done
2347if test -z "$ac_aux_dir"; then
22e05272 2348 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2349fi
5213506e
RW
2350
2351# These three variables are undocumented and unsupported,
2352# and are intended to be withdrawn in a future Autoconf release.
2353# They can cause serious problems if a builder's source tree is in a directory
2354# whose full name contains unusual characters.
2355ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2358
671aa708 2359
1c710c3c 2360# Make sure we can run config.sub.
5213506e 2361$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2363
2364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365$as_echo_n "checking build system type... " >&6; }
22e05272 2366if ${ac_cv_build+:} false; then :
5213506e
RW
2367 $as_echo_n "(cached) " >&6
2368else
2369 ac_build_alias=$build_alias
2370test "x$ac_build_alias" = x &&
2371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2372test "x$ac_build_alias" = x &&
22e05272 2373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2374ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2376
2377fi
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379$as_echo "$ac_cv_build" >&6; }
2380case $ac_cv_build in
2381*-*-*) ;;
22e05272 2382*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2383esac
1c710c3c 2384build=$ac_cv_build
5213506e
RW
2385ac_save_IFS=$IFS; IFS='-'
2386set x $ac_cv_build
2387shift
2388build_cpu=$1
2389build_vendor=$2
2390shift; shift
2391# Remember, the first character of IFS is used to create $*,
2392# except with old shells:
2393build_os=$*
2394IFS=$ac_save_IFS
2395case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2396
671aa708 2397
1c710c3c
DJ
2398 case ${build_alias} in
2399 "") build_noncanonical=${build} ;;
2400 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2401esac
2402
2403
af71363e 2404
1c710c3c
DJ
2405 case ${host_alias} in
2406 "") host_noncanonical=${build_noncanonical} ;;
2407 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2408esac
2409
af71363e 2410
1c710c3c
DJ
2411
2412 case ${target_alias} in
2413 "") target_noncanonical=${host_noncanonical} ;;
2414 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2415esac
2416
af71363e 2417
1c710c3c
DJ
2418
2419
2420test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2422 NONENONEs,x,x, &&
1c710c3c 2423 program_transform_name=s,y,y,
af71363e 2424
5213506e
RW
2425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426$as_echo_n "checking host system type... " >&6; }
22e05272 2427if ${ac_cv_host+:} false; then :
5213506e 2428 $as_echo_n "(cached) " >&6
af71363e 2429else
5213506e
RW
2430 if test "x$host_alias" = x; then
2431 ac_cv_host=$ac_cv_build
2432else
2433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2435fi
1c710c3c 2436
af71363e 2437fi
5213506e
RW
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439$as_echo "$ac_cv_host" >&6; }
2440case $ac_cv_host in
2441*-*-*) ;;
22e05272 2442*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2443esac
1c710c3c 2444host=$ac_cv_host
5213506e
RW
2445ac_save_IFS=$IFS; IFS='-'
2446set x $ac_cv_host
2447shift
2448host_cpu=$1
2449host_vendor=$2
2450shift; shift
2451# Remember, the first character of IFS is used to create $*,
2452# except with old shells:
2453host_os=$*
2454IFS=$ac_save_IFS
2455case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2456
2457
5213506e
RW
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459$as_echo_n "checking target system type... " >&6; }
22e05272 2460if ${ac_cv_target+:} false; then :
5213506e 2461 $as_echo_n "(cached) " >&6
1c710c3c 2462else
5213506e
RW
2463 if test "x$target_alias" = x; then
2464 ac_cv_target=$ac_cv_host
2465else
2466 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2468fi
1c710c3c
DJ
2469
2470fi
5213506e
RW
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472$as_echo "$ac_cv_target" >&6; }
2473case $ac_cv_target in
2474*-*-*) ;;
22e05272 2475*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2476esac
1c710c3c 2477target=$ac_cv_target
5213506e
RW
2478ac_save_IFS=$IFS; IFS='-'
2479set x $ac_cv_target
2480shift
2481target_cpu=$1
2482target_vendor=$2
2483shift; shift
2484# Remember, the first character of IFS is used to create $*,
2485# except with old shells:
2486target_os=$*
2487IFS=$ac_save_IFS
2488case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2489
2490
2491# The aliases save the names the user supplied, while $host etc.
2492# will get canonicalized.
2493test -n "$target_alias" &&
2494 test "$program_prefix$program_suffix$program_transform_name" = \
2495 NONENONEs,x,x, &&
2496 program_prefix=${target_alias}-
5213506e 2497
671aa708 2498test "$program_prefix" != NONE &&
5213506e 2499 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2500# Use a double $ so make ignores it.
2501test "$program_suffix" != NONE &&
5213506e
RW
2502 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2503# Double any \ or $.
1c710c3c 2504# By default was `s,x,x', remove it if useless.
5213506e
RW
2505ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2506program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2507
671aa708
NN
2508
2509
775956d0
NN
2510# Get 'install' or 'install-sh' and its variants.
2511# Find a good install program. We prefer a C program (faster),
2512# so one script is as good as another. But avoid the broken or
2513# incompatible versions:
2514# SysV /etc/install, /usr/sbin/install
2515# SunOS /usr/etc/install
2516# IRIX /sbin/install
2517# AIX /bin/install
1c710c3c 2518# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2519# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2522# OS/2's system install, which has a completely different semantic
775956d0 2523# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2524# Reject install programs that cannot install multiple files.
5213506e
RW
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2527if test -z "$INSTALL"; then
22e05272 2528if ${ac_cv_path_install+:} false; then :
5213506e 2529 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2530else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
5213506e
RW
2536 # Account for people who put trailing slashes in PATH elements.
2537case $as_dir/ in #((
2538 ./ | .// | /[cC]/* | \
1c710c3c 2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2541 /usr/ucb/* ) ;;
2542 *)
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2545 # by default.
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2548 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2549 if test $ac_prog = install &&
1c710c3c 2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2551 # AIX install. It has an incompatible calling convention.
2552 :
1c710c3c
DJ
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2556 :
775956d0 2557 else
38d24731
RW
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one > conftest.one
2560 echo two > conftest.two
2561 mkdir conftest.dir
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 test -s conftest.one && test -s conftest.two &&
2564 test -s conftest.dir/conftest.one &&
2565 test -s conftest.dir/conftest.two
2566 then
2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2568 break 3
2569 fi
775956d0
NN
2570 fi
2571 fi
2572 done
1c710c3c
DJ
2573 done
2574 ;;
2575esac
5213506e
RW
2576
2577 done
2578IFS=$as_save_IFS
1c710c3c 2579
38d24731 2580rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2581
2582fi
2583 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2584 INSTALL=$ac_cv_path_install
775956d0 2585 else
38d24731
RW
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
775956d0 2588 # break other packages using the cache if that directory is
38d24731 2589 # removed, or if the value is a relative name.
1c710c3c 2590 INSTALL=$ac_install_sh
775956d0
NN
2591 fi
2592fi
5213506e
RW
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594$as_echo "$INSTALL" >&6; }
775956d0
NN
2595
2596# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597# It thinks the first close brace ends the variable substitution.
2598test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2599
1c710c3c 2600test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2601
2602test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2603
5213506e
RW
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605$as_echo_n "checking whether ln works... " >&6; }
22e05272 2606if ${acx_cv_prog_LN+:} false; then :
5213506e 2607 $as_echo_n "(cached) " >&6
ad6717df
PB
2608else
2609 rm -f conftestdata_t
2610echo >conftestdata_f
2611if ln conftestdata_f conftestdata_t 2>/dev/null
2612then
2613 acx_cv_prog_LN=ln
2614else
2615 acx_cv_prog_LN=no
2616fi
2617rm -f conftestdata_f conftestdata_t
2618
2619fi
2620if test $acx_cv_prog_LN = no; then
2621 LN="cp"
5213506e
RW
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623$as_echo "no, using $LN" >&6; }
ad6717df
PB
2624else
2625 LN="$acx_cv_prog_LN"
5213506e
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
ad6717df
PB
2628fi
2629
5213506e
RW
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2632LN_S=$as_ln_s
2633if test "$LN_S" = "ln -s"; then
5213506e
RW
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635$as_echo "yes" >&6; }
fb0103e5 2636else
5213506e
RW
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2639fi
2640
87264276
PB
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2643if ${ac_cv_path_SED+:} false; then :
87264276
PB
2644 $as_echo_n "(cached) " >&6
2645else
2646 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2647 for ac_i in 1 2 3 4 5 6 7; do
2648 ac_script="$ac_script$as_nl$ac_script"
2649 done
2650 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2651 { ac_script=; unset ac_script;}
2652 if test -z "$SED"; then
2653 ac_path_SED_found=false
2654 # Loop through the user's path and test for each of PROGNAME-LIST
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_prog in sed gsed; do
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2663 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2664# Check for GNU ac_path_SED and select it if it is found.
2665 # Check for GNU $ac_path_SED
2666case `"$ac_path_SED" --version 2>&1` in
2667*GNU*)
2668 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2669*)
2670 ac_count=0
2671 $as_echo_n 0123456789 >"conftest.in"
2672 while :
2673 do
2674 cat "conftest.in" "conftest.in" >"conftest.tmp"
2675 mv "conftest.tmp" "conftest.in"
2676 cp "conftest.in" "conftest.nl"
2677 $as_echo '' >> "conftest.nl"
2678 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2680 as_fn_arith $ac_count + 1 && ac_count=$as_val
2681 if test $ac_count -gt ${ac_path_SED_max-0}; then
2682 # Best one so far, save it but keep looking for a better one
2683 ac_cv_path_SED="$ac_path_SED"
2684 ac_path_SED_max=$ac_count
2685 fi
2686 # 10*(2^10) chars as input seems more than enough
2687 test $ac_count -gt 10 && break
2688 done
2689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2690esac
2691
2692 $ac_path_SED_found && break 3
2693 done
2694 done
2695 done
2696IFS=$as_save_IFS
2697 if test -z "$ac_cv_path_SED"; then
22e05272 2698 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2699 fi
2700else
2701 ac_cv_path_SED=$SED
2702fi
2703
2704fi
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706$as_echo "$ac_cv_path_SED" >&6; }
2707 SED="$ac_cv_path_SED"
2708 rm -f conftest.sed
2709
2710for ac_prog in gawk mawk nawk awk
2711do
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713set dummy $ac_prog; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2716if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2717 $as_echo_n "(cached) " >&6
2718else
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2721else
2722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723for as_dir in $PATH
2724do
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2729 ac_cv_prog_AWK="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2732 fi
2733done
2734 done
2735IFS=$as_save_IFS
2736
2737fi
2738fi
2739AWK=$ac_cv_prog_AWK
2740if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742$as_echo "$AWK" >&6; }
2743else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745$as_echo "no" >&6; }
2746fi
2747
2748
2749 test -n "$AWK" && break
2750done
2751
775956d0 2752
ee6a22df
L
2753srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2754
2755# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2756# a relative path.
2757if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758 INSTALL="${srcpwd}/install-sh -c"
2759fi
2760
671aa708
NN
2761# Set srcdir to "." if that's what it is.
2762# This is important for multilib support.
2763pwd=`${PWDCMD-pwd}`
671aa708
NN
2764if test "${pwd}" = "${srcpwd}" ; then
2765 srcdir=.
79c06341
JL
2766fi
2767
671aa708 2768topsrcdir=$srcpwd
5d4a5ee6 2769
671aa708 2770extra_host_args=
afabd8e6 2771
671aa708
NN
2772### To add a new directory to the tree, first choose whether it is a target
2773### or a host dependent tool. Then put it into the appropriate list
2774### (library or tools, host or target), doing a dependency sort.
79c06341 2775
1c710c3c 2776# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2777# configdirs, or target_configdirs; see the serialization section below.
79c06341 2778
1c710c3c
DJ
2779# Dependency sorting is only needed when *configuration* must be done in
2780# a particular order. In all cases a dependency should be specified in
671aa708 2781# the Makefile, whether or not it's implicitly specified here.
79c06341 2782
671aa708
NN
2783# Double entries in build_configdirs, configdirs, or target_configdirs may
2784# cause circular dependencies and break everything horribly.
79c06341 2785
23f6b2f9
PB
2786# these library is used by various programs built for the build
2787# environment
2788#
929315a9 2789build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2790
2791# these tools are built for the build environment
85bfb75e 2792build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2793
671aa708 2794# these libraries are used by various programs built for the host environment
eae1a5d4 2795#f
de6abd85 2796host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2797
671aa708
NN
2798# these tools are built for the host environment
2799# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800# know that we are building the simulator.
2801# binutils, gas and ld appear in that order because it makes sense to run
2802# "make check" in that particular order.
38e3d868 2803# If --enable-gold is used, "gold" may replace "ld".
f9d09df0 2804host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2805
671aa708
NN
2806# these libraries are built for the target environment, and are built after
2807# the host libraries and the host tools (which may be a cross compiler)
8499116a 2808# Note that libiberty is not a target library.
291f172e 2809target_libraries="target-libgcc \
eff02e4f 2810 target-libbacktrace \
671aa708
NN
2811 target-libgloss \
2812 target-newlib \
6d3b5aea 2813 target-libgomp \
5f520819 2814 target-liboffloadmic \
5fd1486c 2815 target-libhsail-rt \
48310492 2816 target-libatomic \
0a35513e 2817 target-libitm \
cb543528 2818 target-libstdc++-v3 \
f35db108 2819 target-libsanitizer \
2077db1b 2820 target-libvtv \
77008252 2821 target-libssp \
1ec601bf 2822 target-libquadmath \
6de9cd9a 2823 target-libgfortran \
012447ea 2824 target-libffi \
d9cdb878 2825 target-libobjc \
632e2a07 2826 target-libada \
b4c522fa 2827 target-libgo \
bb50312e
IB
2828 target-libphobos \
2829 target-zlib"
671aa708 2830
4dbda6f0
NN
2831# these tools are built using the target libraries, and are intended to
2832# run only in the target environment
671aa708 2833#
4dbda6f0 2834# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2835# list belongs in this list.
671aa708 2836#
85bfb75e 2837target_tools="target-rda"
79c06341 2838
671aa708 2839################################################################################
79c06341 2840
671aa708
NN
2841## All tools belong in one of the four categories, and are assigned above
2842## We assign ${configdirs} this way to remove all embedded newlines. This
2843## is important because configure will choke if they ever get through.
2844## ${configdirs} is directories we build using the host tools.
2845## ${target_configdirs} is directories we build using the target tools.
671aa708 2846configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2847target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2848build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2849
ac9e6043
RW
2850
2851
671aa708 2852################################################################################
79c06341 2853
671aa708 2854srcname="gnu development package"
79c06341 2855
671aa708
NN
2856# This gets set non-empty for some net releases of packages.
2857appdirs=""
79c06341 2858
671aa708
NN
2859# Define is_cross_compiler to save on calls to 'test'.
2860is_cross_compiler=
2861if test x"${host}" = x"${target}" ; then
2862 is_cross_compiler=no
79c06341 2863else
671aa708 2864 is_cross_compiler=yes
1c710c3c 2865fi
79c06341 2866
b4acb5ef 2867# Find the build and target subdir names.
8b87bb96 2868
2e9e6f68
DJ
2869# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2870# have matching libraries, they should use host libraries: Makefile.tpl
2871# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2872# However, they still use the build modules, because the corresponding
2873# host modules (e.g. bison) are only built for the host when bootstrap
2874# finishes. So:
2875# - build_subdir is where we find build modules, and never changes.
2876# - build_libsubdir is where we find build libraries, and can be overridden.
2877
2878# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2879build_subdir="build-${build_noncanonical}"
1c710c3c 2880
5213506e
RW
2881# Check whether --with-build-libsubdir was given.
2882if test "${with_build_libsubdir+set}" = set; then :
2883 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2884else
2885 build_libsubdir="$build_subdir"
5213506e
RW
2886fi
2887
215c351a
PB
2888# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2889if ( test $srcdir = . && test -d gcc ) \
2890 || test -d $srcdir/../host-${host_noncanonical}; then
2891 host_subdir="host-${host_noncanonical}"
2892else
2893 host_subdir=.
2894fi
8b87bb96
NN
2895# No prefix.
2896target_subdir=${target_noncanonical}
1c710c3c 2897
0db770bd
RW
2898# Be sure to cover against remnants of an in-tree build.
2899if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2900 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2901Use a pristine source tree when building in a separate tree" "$LINENO" 5
2902fi
79c06341 2903
671aa708
NN
2904# Skipdirs are removed silently.
2905skipdirs=
2906# Noconfigdirs are removed loudly.
2907noconfigdirs=""
79c06341 2908
671aa708
NN
2909use_gnu_ld=
2910# Make sure we don't let GNU ld be added if we didn't want it.
2911if test x$with_gnu_ld = xno ; then
2912 use_gnu_ld=no
5afab7ad 2913 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2914fi
2915
671aa708
NN
2916use_gnu_as=
2917# Make sure we don't let GNU as be added if we didn't want it.
2918if test x$with_gnu_as = xno ; then
2919 use_gnu_as=no
2920 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2921fi
2922
d7f09764 2923use_included_zlib=
a05c2c75
L
2924
2925# Check whether --with-system-zlib was given.
2926if test "${with_system_zlib+set}" = set; then :
2927 withval=$with_system_zlib;
2928fi
2929
d7f09764
DN
2930# Make sure we don't let ZLIB be added if we didn't want it.
2931if test x$with_system_zlib = xyes ; then
2932 use_included_zlib=no
2933 noconfigdirs="$noconfigdirs zlib"
2934fi
2935
1c710c3c 2936# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2937# it's not even worth trying to configure, much less build, that tool.
79c06341 2938
671aa708
NN
2939case ${with_x} in
2940 yes | "") ;; # the default value for this tree is that X11 is available
2941 no)
b4f96efe 2942 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2943 # We won't be able to build gdbtk without X.
1c710c3c 2944 enable_gdbtk=no
671aa708
NN
2945 ;;
2946 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2947esac
79c06341 2948
1bcce263 2949# Some are only suitable for cross toolchains.
671aa708
NN
2950# Remove these if host=target.
2951cross_only="target-libgloss target-newlib target-opcodes"
2952
2953case $is_cross_compiler in
2954 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2955esac
79c06341 2956
671aa708
NN
2957# If both --with-headers and --with-libs are specified, default to
2958# --without-newlib.
ee6a22df
L
2959if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2960 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2961 if test x"${with_newlib}" = x ; then
2962 with_newlib=no
2963 fi
79c06341
JL
2964fi
2965
671aa708
NN
2966# Recognize --with-newlib/--without-newlib.
2967case ${with_newlib} in
2968 no) skipdirs="${skipdirs} target-newlib" ;;
2969 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2970esac
79c06341 2971
85c64bbe
BS
2972# Check whether --enable-as-accelerator-for was given.
2973if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2974 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2975fi
2976
2977
2978# Check whether --enable-offload-targets was given.
2979if test "${enable_offload_targets+set}" = set; then :
2980 enableval=$enable_offload_targets;
2981 if test x"$enable_offload_targets" = x; then
22e05272 2982 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2983 fi
2984
2985else
2986 enable_offload_targets=
2987fi
2988
2989
21539e2e
MK
2990# Handle --enable-gold, --enable-ld.
2991# --disable-gold [--enable-ld]
2992# Build only ld. Default option.
9580395f
L
2993# --enable-gold [--enable-ld]
2994# Build both gold and ld. Install gold as "ld.gold", install ld
2995# as "ld.bfd" and "ld".
2996# --enable-gold=default [--enable-ld]
21539e2e
MK
2997# Build both gold and ld. Install gold as "ld.gold" and "ld",
2998# install ld as "ld.bfd".
2999# --enable-gold[=default] --disable-ld
3000# Build only gold, which is then installed as both "ld.gold" and "ld".
3001# --enable-gold --enable-ld=default
9580395f
L
3002# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3003# and ld.bfd).
21539e2e
MK
3004# In other words, ld is default
3005# --enable-gold=default --enable-ld=default
3006# Error.
3007
3008default_ld=
5213506e
RW
3009# Check whether --enable-gold was given.
3010if test "${enable_gold+set}" = set; then :
3011 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3012else
3013 ENABLE_GOLD=no
5213506e
RW
3014fi
3015
21539e2e
MK
3016case "${ENABLE_GOLD}" in
3017 yes|default)
38e3d868
RM
3018 # Check for ELF target.
3019 is_elf=no
3020 case "${target}" in
3021 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3022 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3023 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3024 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3025 case "${target}" in
3026 *-*-linux*aout* | *-*-linux*oldld*)
3027 ;;
3028 *)
3029 is_elf=yes
3030 ;;
3031 esac
3032 esac
3033
3034 if test "$is_elf" = "yes"; then
3035 # Check for target supported by gold.
5afab7ad 3036 case "${target}" in
7705dfd1 3037 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3038 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3039 configdirs="$configdirs gold"
3040 if test x${ENABLE_GOLD} = xdefault; then
3041 default_ld=gold
3042 fi
38e3d868 3043 ENABLE_GOLD=yes
5afab7ad
ILT
3044 ;;
3045 esac
38e3d868
RM
3046 fi
3047 ;;
3048 no)
3049 ;;
3050 *)
22e05272 3051 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3052 ;;
21539e2e
MK
3053esac
3054
3055# Check whether --enable-ld was given.
3056if test "${enable_ld+set}" = set; then :
3057 enableval=$enable_ld; ENABLE_LD=$enableval
3058else
3059 ENABLE_LD=yes
3060fi
3061
3062
3063case "${ENABLE_LD}" in
3064 default)
9580395f 3065 if test x${default_ld} != x; then
22e05272 3066 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3067 fi
3068 ;;
3069 yes)
3070 ;;
3071 no)
3072 if test x${ENABLE_GOLD} != xyes; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3074$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3075 fi
3076 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3077 ;;
3078 *)
22e05272 3079 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3080 ;;
3081esac
5afab7ad 3082
78edb32f
L
3083# PR gas/19109
3084# Decide the default method for compressing debug sections.
3085# Provide a configure time option to override our default.
3086# Check whether --enable-compressed_debug_sections was given.
3087if test "${enable_compressed_debug_sections+set}" = set; then :
3088 enableval=$enable_compressed_debug_sections;
3089 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3090 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3091 fi
3092
3093else
3094 enable_compressed_debug_sections=
3095fi
3096
3097
671aa708 3098# Configure extra directories which are host specific
79c06341 3099
671aa708
NN
3100case "${host}" in
3101 *-cygwin*)
3102 configdirs="$configdirs libtermcap" ;;
3103esac
79c06341 3104
4fab7234
HPN
3105# A target can indicate whether a language isn't supported for some reason.
3106# Only spaces may be used in this macro; not newlines or tabs.
3107unsupported_languages=
3108
1c710c3c 3109# Remove more programs from consideration, based on the host or
671aa708
NN
3110# target this usually means that a port of the program doesn't
3111# exist yet.
ec8d6ddc 3112
671aa708 3113case "${host}" in
111eeb6e 3114 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3115 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3116 ;;
671aa708 3117esac
ec8d6ddc 3118
6de9cd9a 3119
87e6d9dc
TB
3120# Check whether --enable-libquadmath was given.
3121if test "${enable_libquadmath+set}" = set; then :
3122 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3123else
3124 ENABLE_LIBQUADMATH=yes
3125fi
3126
3127if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3128 noconfigdirs="$noconfigdirs target-libquadmath"
3129fi
3130
3131
3132# Check whether --enable-libquadmath-support was given.
3133if test "${enable_libquadmath_support+set}" = set; then :
3134 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3135else
3136 ENABLE_LIBQUADMATH_SUPPORT=yes
3137fi
3138
3139enable_libquadmath_support=
3140if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3141 enable_libquadmath_support=no
3142fi
3143
3144
5213506e
RW
3145# Check whether --enable-libada was given.
3146if test "${enable_libada+set}" = set; then :
3147 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3148else
3149 ENABLE_LIBADA=yes
5213506e
RW
3150fi
3151
d9cdb878 3152if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3153 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3154fi
3155
5213506e
RW
3156# Check whether --enable-libssp was given.
3157if test "${enable_libssp+set}" = set; then :
3158 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3159else
3160 ENABLE_LIBSSP=yes
5213506e
RW
3161fi
3162
ef0087a7 3163
1873ec0c
L
3164# Check whether --enable-libstdcxx was given.
3165if test "${enable_libstdcxx+set}" = set; then :
3166 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3167else
3168 ENABLE_LIBSTDCXX=default
3169fi
3170
3171if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3172 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3173fi
3174
5f520819
KY
3175# If this is accelerator compiler and its target is intelmic we enable
3176# target liboffloadmic by default. If this is compiler with offloading
3177# for intelmic we enable host liboffloadmic by default. Otherwise
3178# liboffloadmic is disabled by default.
3179# Check whether --enable-liboffloadmic was given.
3180if test "${enable_liboffloadmic+set}" = set; then :
3181 enableval=$enable_liboffloadmic; case "$enableval" in
3182 no | host | target)
3183 enable_liboffloadmic=$enableval ;;
3184 *)
22e05272 3185 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3186esac
3187else
4b4f2e35 3188 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3189 case "${target}" in
3190 *-intelmic-* | *-intelmicemul-*)
3191 enable_liboffloadmic=target
3192 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3193 ;;
3194 *)
3195 enable_liboffloadmic=no
3196 ;;
3197 esac
3198else
3199 case "${enable_offload_targets}" in
3200 *-intelmic-* | *-intelmicemul-*)
3201 enable_liboffloadmic=host
3202 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3203 ;;
3204 *)
3205 enable_liboffloadmic=no
3206 ;;
3207 esac
3208fi
3209fi
3210
3211
3212
44a7d18d 3213# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3214if test x$enable_libgomp = x ; then
953ff289 3215 case "${target}" in
416ac4d4 3216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3217 ;;
8c6d158a 3218 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3219 ;;
b24513a1 3220 *-*-solaris2* | *-*-hpux11*)
953ff289 3221 ;;
cac90078 3222 *-*-darwin* | *-*-aix*)
953ff289 3223 ;;
29b1533a 3224 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3225 ;;
953ff289
DN
3226 *)
3227 noconfigdirs="$noconfigdirs target-libgomp"
3228 ;;
3229 esac
27079765 3230fi
953ff289 3231
48310492
RH
3232# Disable libatomic on unsupported systems.
3233if test -d ${srcdir}/libatomic; then
3234 if test x$enable_libatomic = x; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3236$as_echo_n "checking for libatomic support... " >&6; }
3237 if (srcdir=${srcdir}/libatomic; \
3238 . ${srcdir}/configure.tgt; \
3239 test -n "$UNSUPPORTED")
3240 then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242$as_echo "no" >&6; }
3243 noconfigdirs="$noconfigdirs target-libatomic"
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247 fi
3248 fi
3249fi
3250
5f520819
KY
3251# Disable liboffloadmic on unsupported systems.
3252if test -d ${srcdir}/liboffloadmic; then
3253 if test x$enable_liboffloadmic != xno; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3255$as_echo_n "checking for liboffloadmic support... " >&6; }
3256 if (srcdir=${srcdir}/liboffloadmic; \
3257 . ${srcdir}/configure.tgt; \
3258 test -n "$UNSUPPORTED")
3259 then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262 noconfigdirs="$noconfigdirs target-liboffloadmic"
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265$as_echo "yes" >&6; }
3266 fi
3267 fi
3268fi
3269
e948157d
RH
3270# Disable libitm on unsupported systems.
3271if test -d ${srcdir}/libitm; then
3272 if test x$enable_libitm = x; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3274$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3275 if (srcdir=${srcdir}/libitm; \
3276 . ${srcdir}/configure.tgt; \
3277 test -n "$UNSUPPORTED")
3278 then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3280$as_echo "no" >&6; }
e948157d
RH
3281 noconfigdirs="$noconfigdirs target-libitm"
3282 else
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3284$as_echo "yes" >&6; }
e948157d
RH
3285 fi
3286 fi
0a35513e
AH
3287fi
3288
93bf5390
RH
3289# Disable libsanitizer on unsupported systems.
3290if test -d ${srcdir}/libsanitizer; then
3291 if test x$enable_libsanitizer = x; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3293$as_echo_n "checking for libsanitizer support... " >&6; }
3294 if (srcdir=${srcdir}/libsanitizer; \
3295 . ${srcdir}/configure.tgt; \
3296 test -n "$UNSUPPORTED")
3297 then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300 noconfigdirs="$noconfigdirs target-libsanitizer"
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303$as_echo "yes" >&6; }
3304 fi
3305 fi
3306fi
3307
2077db1b
CT
3308# Disable libvtv on unsupported systems.
3309if test -d ${srcdir}/libvtv; then
3310 if test x$enable_libvtv = x; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3312$as_echo_n "checking for libvtv support... " >&6; }
3313 if (srcdir=${srcdir}/libvtv; \
3314 . ${srcdir}/configure.tgt; \
1e74b850 3315 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3316 then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319 noconfigdirs="$noconfigdirs target-libvtv"
3320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322$as_echo "yes" >&6; }
3323 fi
3324 fi
3325fi
3326
5373cd33 3327
f6a24a94
MJ
3328# Disable libhsail-rt on unsupported systems.
3329if test -d ${srcdir}/libhsail-rt; then
3330 if test x$enable_libhsail_rt = x; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3332$as_echo_n "checking for libhsail-rt support... " >&6; }
3333 if (srcdir=${srcdir}/libhsail-rt; \
3334 . ${srcdir}/configure.tgt; \
3335 test -n "$UNSUPPORTED")
3336 then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338$as_echo "no" >&6; }
3339 unsupported_languages="$unsupported_languages brig"
3340 # This implicitly disables also target-libhsail-rt as it won't
3341 # get added to the build without BRIG FE.
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3344$as_echo "yes" >&6; }
3345 fi
3346 fi
3347fi
5373cd33
IE
3348
3349
d91491e5
SE
3350# Disable libquadmath for some systems.
3351case "${target}" in
e7fae550
DE
3352 avr-*-*)
3353 noconfigdirs="$noconfigdirs target-libquadmath"
3354 ;;
d91491e5
SE
3355 # libquadmath is unused on AIX and libquadmath build process use of
3356 # LD_LIBRARY_PATH can break AIX bootstrap.
3357 powerpc-*-aix* | rs6000-*-aix*)
3358 noconfigdirs="$noconfigdirs target-libquadmath"
3359 ;;
3360esac
3361
1e9e0e23
JM
3362# Disable libssp for some systems.
3363case "${target}" in
3364 avr-*-*)
b318fb4b 3365 # No hosted I/O support.
1e9e0e23
JM
3366 noconfigdirs="$noconfigdirs target-libssp"
3367 ;;
91dfef96
JM
3368 bpf-*-*)
3369 noconfigdirs="$noconfigdirs target-libssp"
3370 ;;
1e9e0e23
JM
3371 powerpc-*-aix* | rs6000-*-aix*)
3372 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3373 ;;
8d2af3a2
DD
3374 pru-*-*)
3375 # No hosted I/O support.
3376 noconfigdirs="$noconfigdirs target-libssp"
3377 ;;
85b8555e 3378 rl78-*-*)
7cb62ef1
EB
3379 # libssp uses a misaligned load to trigger a fault, but the RL78
3380 # doesn't fault for those - instead, it gives a build-time error
3381 # for explicit misaligned loads.
85b8555e 3382 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3383 ;;
0969ec7d
EB
3384 visium-*-*)
3385 # No hosted I/O support.
3386 noconfigdirs="$noconfigdirs target-libssp"
3387 ;;
1e9e0e23
JM
3388esac
3389
1e9e0e23 3390# Disable libstdc++-v3 for some systems.
1873ec0c
L
3391# Allow user to override this if they pass --enable-libstdc++-v3
3392if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3393 case "${target}" in
3394 *-*-vxworks*)
3395 # VxWorks uses the Dinkumware C++ library.
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
afa3d80e
TS
3398 amdgcn*-*-*)
3399 # Not ported/fails to build when using newlib.
3400 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 ;;
1873ec0c
L
3402 arm*-wince-pe*)
3403 # the C++ libraries don't build on top of CE's C libraries
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
3406 avr-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ;;
91dfef96
JM
3409 bpf-*-*)
3410 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 ;;
fef939d6
JB
3412 ft32-*-*)
3413 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3414 ;;
1873ec0c
L
3415 esac
3416fi
1e9e0e23 3417
91dfef96
JM
3418# Disable C++ on systems where it is known to not work.
3419# For testing, you can override this with --enable-languages=c++.
3420case ,${enable_languages}, in
3421 *,c++,*)
3422 ;;
3423 *)
3424 case "${target}" in
3425 bpf-*-*)
3426 unsupported_languages="$unsupported_languages c++"
3427 ;;
3428 esac
3429 ;;
3430esac
3431
3432# Disable Objc on systems where it is known to not work.
3433# For testing, you can override this with --enable-languages=objc.
3434case ,${enable_languages}, in
3435 *,objc,*)
3436 ;;
3437 *)
3438 case "${target}" in
3439 bpf-*-*)
3440 unsupported_languages="$unsupported_languages objc"
3441 ;;
3442 esac
3443 ;;
3444esac
3445
260eedb9
IB
3446# Disable D on systems where it is known to not work.
3447# For testing, you can override this with --enable-languages=d.
3448case ,${enable_languages}, in
3449 *,d,*)
3450 ;;
3451 *)
3452 case "${target}" in
4d024c32 3453 *-*-darwin*)
91dfef96
JM
3454 unsupported_languages="$unsupported_languages d"
3455 ;;
3456 bpf-*-*)
260eedb9
IB
3457 unsupported_languages="$unsupported_languages d"
3458 ;;
3459 esac
3460 ;;
3461esac
3462
3463# Disable libphobos on unsupported systems.
3464# For testing, you can override this with --enable-libphobos.
3465if test -d ${srcdir}/libphobos; then
3466 if test x$enable_libphobos = x; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3468$as_echo_n "checking for libphobos support... " >&6; }
3469 if (srcdir=${srcdir}/libphobos; \
3470 . ${srcdir}/configure.tgt; \
7d31d331 3471 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3472 then
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474$as_echo "no" >&6; }
3475 noconfigdirs="$noconfigdirs target-libphobos"
3476 else
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3478$as_echo "yes" >&6; }
3479 fi
3480 fi
3481fi
3482
1e9e0e23
JM
3483# Disable Fortran for some systems.
3484case "${target}" in
3485 mmix-*-*)
3486 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3487 unsupported_languages="$unsupported_languages fortran"
3488 ;;
91dfef96
JM
3489 bpf-*-*)
3490 unsupported_languages="$unsupported_languages fortran"
3491 ;;
1e9e0e23
JM
3492esac
3493
012447ea
JJ
3494# Disable libffi for some systems.
3495case "${target}" in
3496 powerpc-*-darwin*)
3497 ;;
3498 i[3456789]86-*-darwin*)
3499 ;;
3500 x86_64-*-darwin[912]*)
3501 ;;
3502 *-*-darwin*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-netware*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-phoenix*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 *-*-rtems*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 *-*-tpf*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
3517 *-*-uclinux*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
3520 *-*-vxworks*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
b20e7532
AT
3523 aarch64*-*-freebsd*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
012447ea
JJ
3526 alpha*-*-*vms*)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 arm*-*-freebsd*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 arm-wince-pe)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
3535 arm*-*-symbianelf*)
3536 noconfigdirs="$noconfigdirs target-libffi"
3537 ;;
91dfef96
JM
3538 bpf-*-*)
3539 noconfigdirs="$noconfigdirs target-libffi"
3540 ;;
012447ea
JJ
3541 cris-*-* | crisv32-*-*)
3542 case "${target}" in
3543 *-*-linux*)
3544 ;;
3545 *) # See PR46792 regarding target-libffi.
3546 noconfigdirs="$noconfigdirs target-libffi";;
3547 esac
3548 ;;
3549 hppa*64*-*-hpux*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 hppa*-hp-hpux11*)
3553 ;;
3554 hppa*-*-hpux*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 ia64*-*-*vms*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 i[3456789]86-w64-mingw*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 i[3456789]86-*-mingw*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 x86_64-*-mingw*)
3567 noconfigdirs="$noconfigdirs target-libffi"
3568 ;;
3569 mmix-*-*)
3570 noconfigdirs="$noconfigdirs target-libffi"
3571 ;;
3572 powerpc-*-aix*)
012447ea
JJ
3573 ;;
3574 rs6000-*-aix*)
012447ea
JJ
3575 ;;
3576 ft32-*-*)
3577 noconfigdirs="$noconfigdirs target-libffi"
3578 ;;
3579 *-*-lynxos*)
3580 noconfigdirs="$noconfigdirs target-libffi"
3581 ;;
3582esac
3583
3584# Disable the go frontend on systems where it is known to not work. Please keep
3585# this in sync with contrib/config-list.mk.
3586case "${target}" in
91dfef96 3587*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3588 unsupported_languages="$unsupported_languages go"
3589 ;;
3590esac
3591
f9d09df0
TT
3592# Only allow gdbserver on some systems.
3593if test -d ${srcdir}/gdbserver; then
3594 if test x$enable_gdbserver = x; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3596$as_echo_n "checking for gdbserver support... " >&6; }
3597 if (srcdir=${srcdir}/gdbserver; \
3598 . ${srcdir}/configure.srv; \
3599 test -n "$UNSUPPORTED")
3600 then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602$as_echo "no" >&6; }
3603 noconfigdirs="$noconfigdirs gdbserver"
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3606$as_echo "yes" >&6; }
3607 fi
3608 fi
3609fi
3610
cdbc9e92
ILT
3611# Disable libgo for some systems where it is known to not work.
3612# For testing, you can easily override this with --enable-libgo.
3613if test x$enable_libgo = x; then
3614 case "${target}" in
3615 *-*-darwin*)
3616 # PR 46986
3617 noconfigdirs="$noconfigdirs target-libgo"
3618 ;;
3619 *-*-cygwin* | *-*-mingw*)
3620 noconfigdirs="$noconfigdirs target-libgo"
3621 ;;
91dfef96
JM
3622 bpf-*-*)
3623 noconfigdirs="$noconfigdirs target-libgo"
3624 ;;
cdbc9e92
ILT
3625 esac
3626fi
3627
c03353e2
RIL
3628# Default libgloss CPU subdirectory.
3629libgloss_dir="$target_cpu"
6de9cd9a 3630
fbcf0dca
JM
3631case "${target}" in
3632 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3633 libgloss_dir=wince
3634 ;;
4dddfc74
YZ
3635 aarch64*-*-* )
3636 libgloss_dir=aarch64
3637 ;;
fbcf0dca
JM
3638 arm*-*-*)
3639 libgloss_dir=arm
3640 ;;
3641 cris-*-* | crisv32-*-*)
3642 libgloss_dir=cris
3643 ;;
3644 hppa*-*-*)
3645 libgloss_dir=pa
3646 ;;
3647 i[3456789]86-*-*)
3648 libgloss_dir=i386
3649 ;;
3650 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3651 libgloss_dir=m68hc11
3652 ;;
3653 m68*-*-* | fido-*-*)
3654 libgloss_dir=m68k
3655 ;;
3656 mips*-*-*)
3657 libgloss_dir=mips
3658 ;;
3659 powerpc*-*-*)
3660 libgloss_dir=rs6000
3661 ;;
8d2af3a2
DD
3662 pru-*-*)
3663 libgloss_dir=pru
3664 ;;
fbcf0dca
JM
3665 sparc*-*-*)
3666 libgloss_dir=sparc
3667 ;;
3668esac
3669
6a789d5e 3670# Disable newlib and libgloss for various target OSes.
671aa708 3671case "${target}" in
6a789d5e
JM
3672 alpha*-dec-osf*)
3673 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3674 ;;
3675 i[3456789]86-*-linux*)
3676 # This section makes it possible to build newlib natively on linux.
3677 # If we are using a cross compiler then don't configure newlib.
3678 if test x${is_cross_compiler} != xno ; then
3679 noconfigdirs="$noconfigdirs target-newlib"
3680 fi
3681 noconfigdirs="$noconfigdirs target-libgloss"
3682 # If we are not using a cross compiler, do configure newlib.
3683 # Note however, that newlib will only be configured in this situation
3684 # if the --with-newlib option has been given, because otherwise
3685 # 'target-newlib' will appear in skipdirs.
3686 ;;
3687 i[3456789]86-*-rdos*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
3690 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 sparc-*-sunos4*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
91dfef96
JM
3696 bpf-*-*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
6a789d5e
JM
3699 *-*-aix*)
3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3701 ;;
3702 *-*-beos*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
671aa708 3705 *-*-chorusos)
0036370f 3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3707 ;;
6a789d5e
JM
3708 *-*-dragonfly*)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-freebsd*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-lynxos*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-mingw*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-netbsd*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 *-*-netware*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 *-*-tpf*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732 *-*-uclinux*)
3733 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3734 ;;
3735 *-*-vxworks*)
3736 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3737 ;;
3738esac
3739
3740case "${target}" in
3741 *-*-chorusos)
3742 ;;
3be96231
TG
3743 aarch64-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3746 ;;
7431c1a1
AS
3747 amdgcn*-*-*)
3748 ;;
3be96231
TG
3749 arm-*-darwin*)
3750 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3751 noconfigdirs="$noconfigdirs sim target-rda"
3752 ;;
75eeae1a 3753 powerpc-*-darwin*)
e1514c3f 3754 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3755 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3756 ;;
354ebf88
RW
3757 i[3456789]86-*-darwin*)
3758 noconfigdirs="$noconfigdirs ld gprof"
3759 noconfigdirs="$noconfigdirs sim target-rda"
3760 ;;
3761 x86_64-*-darwin[912]*)
0db3a858
TG
3762 noconfigdirs="$noconfigdirs ld gas gprof"
3763 noconfigdirs="$noconfigdirs sim target-rda"
3764 ;;
42c1cd8a
AT
3765 *-*-darwin*)
3766 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3767 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3768 ;;
8c6d158a 3769 *-*-dragonfly*)
8c6d158a 3770 ;;
c3f84f61 3771 *-*-freebsd*)
6de9cd9a 3772 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
7cacf5a5 3773 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3774 && test -f /usr/local/include/gmp.h; then
3775 with_gmp=/usr/local
3776 fi
6de9cd9a 3777 ;;
ef4e7569
US
3778 *-*-kaos*)
3779 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3780 noconfigdirs="$noconfigdirs target-libgloss"
3781 ;;
671aa708 3782 *-*-netbsd*)
671aa708 3783 ;;
61fec9ff 3784 *-*-netware*)
671aa708 3785 ;;
fd6487af
JS
3786 *-*-phoenix*)
3787 noconfigdirs="$noconfigdirs target-libgloss"
3788 ;;
671aa708 3789 *-*-rtems*)
2909494b 3790 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3791 ;;
a8ba31f2
EC
3792 # The tpf target doesn't support gdb yet.
3793 *-*-tpf*)
6a789d5e 3794 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3795 ;;
5785c0ed 3796 *-*-uclinux*)
6a789d5e 3797 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3798 ;;
671aa708 3799 *-*-vxworks*)
671aa708
NN
3800 ;;
3801 alpha*-dec-osf*)
3802 # ld works, but does not support shared libraries.
671aa708 3803 # gas doesn't generate exception information.
6a789d5e 3804 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3805 ;;
3806 alpha*-*-*vms*)
2909494b 3807 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3808 ;;
671aa708
NN
3809 alpha*-*-*)
3810 # newlib is not 64 bit ready
2909494b 3811 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3812 ;;
91dfef96
JM
3813 bpf-*-*)
3814 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3815 ;;
671aa708 3816 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3817 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3818 ;;
2fd88f4f
AK
3819 arc*-*-*)
3820 noconfigdirs="$noconfigdirs sim"
3821 ;;
671aa708 3822 arm-*-pe*)
2909494b 3823 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3824 ;;
671aa708 3825 arm-*-riscix*)
0036370f 3826 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3827 ;;
b588ae30
GJL
3828 avr-*-*)
3829 if test x${with_avrlibc} != xno; then
3830 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3831 fi
3832 ;;
671aa708 3833 c4x-*-* | tic4x-*-*)
0036370f 3834 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3835 ;;
0036370f
JM
3836 tic54x-*-*)
3837 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3838 ;;
671aa708 3839 d10v-*-*)
0036370f 3840 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3841 ;;
3842 d30v-*-*)
0036370f 3843 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3844 ;;
3845 fr30-*-elf*)
2909494b 3846 noconfigdirs="$noconfigdirs gdb"
671aa708 3847 ;;
a05c2c75
L
3848 ft32-*-*)
3849 noconfigdirs="$noconfigdirs target-rda gprof"
3850 ;;
55f2d967 3851 moxie-*-*)
a05c2c75 3852 noconfigdirs="$noconfigdirs"
55f2d967 3853 ;;
671aa708 3854 h8300*-*-*)
2909494b 3855 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3856 ;;
3857 h8500-*-*)
0036370f 3858 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3859 ;;
ee6a22df 3860 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3861 ;;
a05c2c75
L
3862 hppa*64*-*-hpux*)
3863 noconfigdirs="$noconfigdirs gdb"
3864 ;;
3865 hppa*-*-hpux11*)
3866 noconfigdirs="$noconfigdirs gdb ld"
3867 ;;
4569f85e 3868 hppa*64*-*-linux*)
671aa708 3869 ;;
56f8587a 3870 hppa*-*-linux*)
3e732ba0 3871 ;;
671aa708 3872 hppa*-*-*elf* | \
671aa708
NN
3873 hppa*-*-lites* | \
3874 hppa*-*-openbsd* | \
3875 hppa*64*-*-*)
671aa708 3876 ;;
c03353e2 3877 hppa*-*-pro*)
c03353e2 3878 ;;
671aa708 3879 hppa*-*-*)
2909494b 3880 noconfigdirs="$noconfigdirs ld"
671aa708 3881 ;;
fb87ad5d 3882 i960-*-*)
0036370f 3883 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3884 ;;
671aa708
NN
3885 ia64*-*-elf*)
3886 # No gdb support yet.
1bcce263 3887 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3888 ;;
3889 ia64*-**-hpux*)
5a2931d1 3890 # No ld support yet.
a05c2c75 3891 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3892 ;;
52535a64 3893 ia64*-*-*vms*)
091fe9ca
TG
3894 # No ld support yet.
3895 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3896 ;;
ef4c4300 3897 i[3456789]86-w64-mingw*)
ef4c4300
KT
3898 ;;
3899 i[3456789]86-*-mingw*)
b91f0a41 3900 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3901 ;;
671aa708
NN
3902 *-*-cygwin*)
3903 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3904 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3905 # always build newlib if winsup directory is present.
b91f0a41 3906 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3907 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3908 elif test -d "$srcdir/newlib"; then
b91f0a41 3909 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3910 fi
1c710c3c 3911 ;;
f2a0e225 3912 i[3456789]86-*-pe)
ebb9f8b0 3913 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3914 ;;
f2a0e225 3915 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3916 # The linker does not yet know about weak symbols in COFF,
3917 # and is not configured to handle mixed ELF and COFF.
0036370f 3918 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3919 ;;
f2a0e225 3920 i[3456789]86-*-sco*)
0036370f 3921 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3922 ;;
fbdd5d87 3923 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3924 noconfigdirs="$noconfigdirs target-libgloss"
3925 ;;
f2a0e225 3926 i[3456789]86-*-sysv4*)
0036370f 3927 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3928 ;;
f2a0e225 3929 i[3456789]86-*-beos*)
6a789d5e 3930 noconfigdirs="$noconfigdirs gdb"
3aa83176 3931 ;;
d1f8db0c 3932 i[3456789]86-*-rdos*)
6a789d5e 3933 noconfigdirs="$noconfigdirs gdb"
c03353e2 3934 ;;
671aa708 3935 mmix-*-*)
2909494b 3936 noconfigdirs="$noconfigdirs gdb"
671aa708 3937 ;;
ab34901f 3938 mt-*-*)
79dd769c
AH
3939 noconfigdirs="$noconfigdirs sim"
3940 ;;
58b40a67
FT
3941 nfp-*-*)
3942 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3943 noconfigdirs="$noconfigdirs $target_libraries"
3944 ;;
e6cbe965
SC
3945 pdp11-*-*)
3946 noconfigdirs="$noconfigdirs gdb gprof"
3947 ;;
671aa708
NN
3948 powerpc-*-aix*)
3949 # copied from rs6000-*-* entry
6a789d5e 3950 noconfigdirs="$noconfigdirs gprof"
671aa708 3951 ;;
4569f85e 3952 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3953 target_configdirs="$target_configdirs target-winsup"
0036370f 3954 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3955 # always build newlib.
3956 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3957 ;;
3958 # This is temporary until we can link against shared libraries
3959 powerpcle-*-solaris*)
0036370f 3960 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3961 ;;
3962 powerpc-*-beos*)
6a789d5e 3963 noconfigdirs="$noconfigdirs gdb"
671aa708 3964 ;;
671aa708 3965 rs6000-*-lynxos*)
6a789d5e 3966 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3967 ;;
3968 rs6000-*-aix*)
6a789d5e 3969 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3970 ;;
3971 rs6000-*-*)
2909494b 3972 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3973 ;;
3974 m68k-apollo-*)
0036370f 3975 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3976 ;;
ca9fe997 3977 microblaze*)
2909494b 3978 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3979 ;;
d896cc4d 3980 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3981 if test x$with_newlib = xyes; then
3982 noconfigdirs="$noconfigdirs gprof"
3983 fi
d9dced13 3984 ;;
671aa708 3985 mips*-*-irix5*)
0036370f 3986 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3987 ;;
3988 mips*-*-irix6*)
2909494b 3989 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3990 ;;
671aa708 3991 mips*-*-bsd*)
bc98bcc4 3992 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3993 ;;
671aa708 3994 mips*-*-linux*)
671aa708 3995 ;;
bc98bcc4
JBG
3996 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3997 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3998 noconfigdirs="$noconfigdirs ld gas gprof"
3999 ;;
671aa708 4000 mips*-*-*)
2909494b 4001 noconfigdirs="$noconfigdirs gprof"
671aa708 4002 ;;
738f2522 4003 nvptx*-*-*)
738f2522
BS
4004 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4005 ;;
bc6d9014 4006 sh-*-*)
ea2002ba
CB
4007 case "${target}" in
4008 sh*-*-elf)
2909494b 4009 ;;
ea2002ba 4010 *)
2909494b 4011 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4012 esac
671aa708 4013 ;;
671aa708 4014 sparc-*-sunos4*)
6a789d5e 4015 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4016 use_gnu_ld=no
4017 fi
4018 ;;
b42f0d7e 4019 tic6x-*-*)
0d557ff8 4020 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4021 ;;
341c653c 4022 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4023 noconfigdirs="$noconfigdirs sim"
4024 ;;
671aa708 4025 v810-*-*)
0036370f 4026 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4027 ;;
4028 vax-*-*)
2909494b 4029 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4030 ;;
1fc1d82e
MR
4031 wasm32-*-*)
4032 noconfigdirs="$noconfigdirs ld"
4033 ;;
671aa708 4034esac
79c06341 4035
671aa708
NN
4036# If we aren't building newlib, then don't build libgloss, since libgloss
4037# depends upon some newlib header files.
4038case "${noconfigdirs}" in
4039 *target-libgloss*) ;;
4040 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4041esac
4042
671aa708 4043# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4044host_makefile_frag=/dev/null
4045if test -d ${srcdir}/config ; then
4046case "${host}" in
f2a0e225 4047 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4048 host_makefile_frag="config/mh-djgpp"
4049 ;;
4050 *-cygwin*)
2a79c47f 4051
5213506e
RW
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4053$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4054echo a >cygwin-cat-check
e25a8c82 4055if test `cat cygwin-cat-check` = a ; then
2a79c47f 4056 rm cygwin-cat-check
5213506e
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058$as_echo "yes" >&6; }
2a79c47f
NC
4059else
4060 rm cygwin-cat-check
5213506e
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062$as_echo "no" >&6; }
22e05272 4063 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4064 Please either mount the build directory in binary mode or run the following
4065 commands before running any configure script:
4066set -o igncr
4067export SHELLOPTS
5213506e 4068 " "$LINENO" 5
2a79c47f
NC
4069fi
4070
671aa708
NN
4071 host_makefile_frag="config/mh-cygwin"
4072 ;;
c53a18d3 4073 *-mingw*)
1f5a6b84 4074 host_makefile_frag="config/mh-mingw"
95af8923 4075 ;;
cabb9d59 4076 alpha*-linux*)
13be44ed
UB
4077 host_makefile_frag="config/mh-alpha-linux"
4078 ;;
efd41714 4079 hppa*-hp-hpux10*)
efd41714 4080 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4081 ;;
111eeb6e 4082 hppa*-hp-hpux*)
efd41714
PB
4083 host_makefile_frag="config/mh-pa"
4084 ;;
4085 hppa*-*)
4086 host_makefile_frag="config/mh-pa"
4087 ;;
107b1618 4088 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4089 host_makefile_frag="config/mh-darwin"
be8fff81 4090 ;;
d19bca38
PB
4091 powerpc-*-aix*)
4092 host_makefile_frag="config/mh-ppc-aix"
4093 ;;
4094 rs6000-*-aix*)
4095 host_makefile_frag="config/mh-ppc-aix"
4096 ;;
671aa708
NN
4097esac
4098fi
4099
55ffb5ed 4100if test "${build}" != "${host}" ; then
0999159b
PB
4101 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4102 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4103 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
c7c99407 4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4115else
4116 AR_FOR_BUILD="\$(AR)"
4117 AS_FOR_BUILD="\$(AS)"
fb0103e5 4118 CC_FOR_BUILD="\$(CC)"
0999159b 4119 CXX_FOR_BUILD="\$(CXX)"
c7c99407 4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4122 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4123 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 LD_FOR_BUILD="\$(LD)"
4126 NM_FOR_BUILD="\$(NM)"
4127 RANLIB_FOR_BUILD="\$(RANLIB)"
4128 WINDRES_FOR_BUILD="\$(WINDRES)"
4129 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4130fi
4131
4132ac_ext=c
1c710c3c
DJ
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4142if ${ac_cv_prog_CC+:} false; then :
5213506e 4143 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4144else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
5213506e 4153 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4157 break 2
4158 fi
4159done
5213506e
RW
4160 done
4161IFS=$as_save_IFS
1c710c3c
DJ
4162
4163fi
4164fi
4165CC=$ac_cv_prog_CC
4166if test -n "$CC"; then
5213506e
RW
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168$as_echo "$CC" >&6; }
1c710c3c 4169else
5213506e
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
1c710c3c
DJ
4172fi
4173
5213506e 4174
1c710c3c
DJ
4175fi
4176if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
fb0103e5
RG
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179set dummy gcc; ac_word=$2
5213506e
RW
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4182if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4183 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4184else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
5213506e 4193 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4195 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4197 break 2
4198 fi
4199done
5213506e
RW
4200 done
4201IFS=$as_save_IFS
1c710c3c
DJ
4202
4203fi
4204fi
4205ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206if test -n "$ac_ct_CC"; then
5213506e
RW
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4209else
5213506e
RW
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
1c710c3c
DJ
4212fi
4213
5213506e
RW
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218yes:)
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221ac_tool_warned=yes ;;
4222esac
4223 CC=$ac_ct_CC
4224 fi
1c710c3c
DJ
4225else
4226 CC="$ac_cv_prog_CC"
4227fi
4228
4229if test -z "$CC"; then
5213506e
RW
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4232set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4235if ${ac_cv_prog_CC+:} false; then :
5213506e 4236 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4237else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240else
1c710c3c
DJ
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
5213506e 4246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4248 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4250 break 2
4251 fi
4252done
5213506e
RW
4253 done
4254IFS=$as_save_IFS
1c710c3c 4255
0b0dc272 4256fi
0b0dc272 4257fi
1c710c3c 4258CC=$ac_cv_prog_CC
af71363e 4259if test -n "$CC"; then
5213506e
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261$as_echo "$CC" >&6; }
2aeb72e9 4262else
5213506e
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
2aeb72e9
DD
4265fi
4266
2aeb72e9 4267
5213506e 4268 fi
1c710c3c 4269fi
55ffb5ed
NN
4270if test -z "$CC"; then
4271 # Extract the first word of "cc", so it can be a program name with args.
4272set dummy cc; ac_word=$2
5213506e
RW
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4275if ${ac_cv_prog_CC+:} false; then :
5213506e 4276 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4277else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280else
0b0dc272 4281 ac_prog_rejected=no
1c710c3c
DJ
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
5213506e 4287 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 ac_prog_rejected=yes
4291 continue
4292 fi
4293 ac_cv_prog_CC="cc"
5213506e 4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4295 break 2
4296 fi
4297done
5213506e
RW
4298 done
4299IFS=$as_save_IFS
1c710c3c 4300
55ffb5ed
NN
4301if test $ac_prog_rejected = yes; then
4302 # We found a bogon in the path, so make sure we never use it.
4303 set dummy $ac_cv_prog_CC
4304 shift
1c710c3c 4305 if test $# != 0; then
55ffb5ed
NN
4306 # We chose a different compiler from the bogus one.
4307 # However, it has the same basename, so the bogon will be chosen
4308 # first if we set CC to just the basename; use the full file name.
4309 shift
1c710c3c 4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4311 fi
4312fi
4313fi
4314fi
1c710c3c 4315CC=$ac_cv_prog_CC
55ffb5ed 4316if test -n "$CC"; then
5213506e
RW
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318$as_echo "$CC" >&6; }
55ffb5ed 4319else
5213506e
RW
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321$as_echo "no" >&6; }
55ffb5ed
NN
4322fi
4323
5213506e 4324
1c710c3c
DJ
4325fi
4326if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
5213506e 4328 for ac_prog in cl.exe
1c710c3c
DJ
4329 do
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4334if ${ac_cv_prog_CC+:} false; then :
5213506e 4335 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4336else
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4339else
1c710c3c
DJ
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
5213506e 4345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4349 break 2
4350 fi
4351done
5213506e
RW
4352 done
4353IFS=$as_save_IFS
1c710c3c 4354
55ffb5ed
NN
4355fi
4356fi
1c710c3c 4357CC=$ac_cv_prog_CC
55ffb5ed 4358if test -n "$CC"; then
5213506e
RW
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360$as_echo "$CC" >&6; }
a4b9e93e 4361else
5213506e
RW
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
fb0103e5 4364fi
af71363e 4365
5213506e 4366
1c710c3c
DJ
4367 test -n "$CC" && break
4368 done
af71363e 4369fi
1c710c3c
DJ
4370if test -z "$CC"; then
4371 ac_ct_CC=$CC
5213506e 4372 for ac_prog in cl.exe
1c710c3c
DJ
4373do
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375set dummy $ac_prog; ac_word=$2
5213506e
RW
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4378if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4379 $as_echo_n "(cached) " >&6
0b0dc272 4380else
1c710c3c
DJ
4381 if test -n "$ac_ct_CC"; then
4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4383else
1c710c3c
DJ
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
5213506e 4389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4391 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4393 break 2
4394 fi
4395done
5213506e
RW
4396 done
4397IFS=$as_save_IFS
1c710c3c 4398
af71363e
AS
4399fi
4400fi
1c710c3c
DJ
4401ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402if test -n "$ac_ct_CC"; then
5213506e
RW
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4405else
5213506e
RW
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; }
af71363e 4408fi
0b0dc272 4409
5213506e 4410
1c710c3c
DJ
4411 test -n "$ac_ct_CC" && break
4412done
4413
5213506e
RW
4414 if test "x$ac_ct_CC" = x; then
4415 CC=""
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418yes:)
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421ac_tool_warned=yes ;;
4422esac
4423 CC=$ac_ct_CC
4424 fi
1c710c3c
DJ
4425fi
4426
4427fi
4428
4429
5213506e
RW
4430test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4432as_fn_error $? "no acceptable C compiler found in \$PATH
4433See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4434
4435# Provide some information about the compiler.
5213506e
RW
4436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4437set X $ac_compile
4438ac_compiler=$2
4439for ac_option in --version -v -V -qversion; do
4440 { { ac_try="$ac_compiler $ac_option >&5"
4441case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446$as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4448 ac_status=$?
5213506e
RW
4449 if test -s conftest.err; then
4450 sed '10a\
4451... rest of stderr output deleted ...
4452 10q' conftest.err >conftest.er1
4453 cat conftest.er1 >&5
5213506e 4454 fi
22e05272 4455 rm -f conftest.er1 conftest.err
5213506e
RW
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458done
1c710c3c 4459
5213506e 4460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4461/* end confdefs.h. */
4462
4463int
4464main ()
4465{
4466
4467 ;
4468 return 0;
4469}
4470_ACEOF
4471ac_clean_files_save=$ac_clean_files
22e05272 4472ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4473# Try to create an executable without -o first, disregard a.out.
4474# It will help us diagnose broken compilers, and finding out an intuition
4475# of exeext.
22e05272
JM
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4478ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4479
4480# The possible output files:
4481ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4482
4483ac_rmfiles=
4484for ac_file in $ac_files
4485do
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 esac
4490done
4491rm -f $ac_rmfiles
4492
4493if { { ac_try="$ac_link_default"
4494case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499$as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link_default") 2>&5
1c710c3c 4501 ac_status=$?
5213506e
RW
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506# in a Makefile. We should not override ac_cv_exeext if it was cached,
4507# so that the user can short-circuit this test for compilers unknown to
4508# Autoconf.
4509for ac_file in $ac_files ''
1c710c3c
DJ
4510do
4511 test -f "$ac_file" || continue
4512 case $ac_file in
5213506e 4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4514 ;;
4515 [ab].out )
4516 # We found the default executable, but exeext='' is most
4517 # certainly right.
4518 break;;
4519 *.* )
5213506e
RW
4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4521 then :; else
4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 fi
4524 # We set ac_cv_exeext here because the later test for it is not
4525 # safe: cross compilers may not add the suffix if given an `-o'
4526 # argument, so we may need to know it at that point already.
4527 # Even if this section looks crufty: it has the advantage of
4528 # actually working.
1c710c3c
DJ
4529 break;;
4530 * )
4531 break;;
4532 esac
4533done
5213506e
RW
4534test "$ac_cv_exeext" = no && ac_cv_exeext=
4535
1c710c3c 4536else
5213506e
RW
4537 ac_file=''
4538fi
5213506e 4539if test -z "$ac_file"; then :
22e05272
JM
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
4542$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4543sed 's/^/| /' conftest.$ac_ext >&5
4544
5213506e
RW
4545{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4547as_fn_error 77 "C compiler cannot create executables
4548See \`config.log' for more details" "$LINENO" 5; }
4549else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551$as_echo "yes" >&6; }
1c710c3c 4552fi
22e05272
JM
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554$as_echo_n "checking for C compiler default output file name... " >&6; }
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556$as_echo "$ac_file" >&6; }
1c710c3c 4557ac_exeext=$ac_cv_exeext
1c710c3c 4558
22e05272 4559rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4560ac_clean_files=$ac_clean_files_save
5213506e
RW
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562$as_echo_n "checking for suffix of executables... " >&6; }
4563if { { ac_try="$ac_link"
4564case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
1c710c3c 4571 ac_status=$?
5213506e
RW
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
1c710c3c
DJ
4574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576# work properly (i.e., refer to `conftest.exe'), while it won't with
4577# `rm'.
4578for ac_file in conftest.exe conftest conftest.*; do
4579 test -f "$ac_file" || continue
4580 case $ac_file in
5213506e 4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4583 break;;
4584 * ) break;;
4585 esac
4586done
af71363e 4587else
5213506e
RW
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4590as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4592fi
22e05272 4593rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4596
4597rm -f conftest.$ac_ext
4598EXEEXT=$ac_cv_exeext
4599ac_exeext=$EXEEXT
22e05272
JM
4600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
4602#include <stdio.h>
4603int
4604main ()
4605{
4606FILE *f = fopen ("conftest.out", "w");
4607 return ferror (f) || fclose (f) != 0;
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613ac_clean_files="$ac_clean_files conftest.out"
4614# Check that the compiler produces executables we can run. If not, either
4615# the compiler is broken, or we cross compile.
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617$as_echo_n "checking whether we are cross compiling... " >&6; }
4618if test "$cross_compiling" != yes; then
4619 { { ac_try="$ac_link"
4620case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625$as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }
4630 if { ac_try='./conftest$ac_cv_exeext'
4631 { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634esac
4635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636$as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; }; then
4641 cross_compiling=no
4642 else
4643 if test "$cross_compiling" = maybe; then
4644 cross_compiling=yes
4645 else
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648as_fn_error $? "cannot run C compiled programs.
4649If you meant to cross compile, use \`--host'.
4650See \`config.log' for more details" "$LINENO" 5; }
4651 fi
4652 fi
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655$as_echo "$cross_compiling" >&6; }
4656
4657rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658ac_clean_files=$ac_clean_files_save
5213506e
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4661if ${ac_cv_objext+:} false; then :
5213506e 4662 $as_echo_n "(cached) " >&6
1c710c3c 4663else
5213506e 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4665/* end confdefs.h. */
4666
4667int
4668main ()
4669{
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.o conftest.obj
5213506e
RW
4676if { { ac_try="$ac_compile"
4677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
4681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682$as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compile") 2>&5
1c710c3c 4684 ac_status=$?
5213506e
RW
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then :
4687 for ac_file in conftest.o conftest.obj conftest.*; do
4688 test -f "$ac_file" || continue;
1c710c3c 4689 case $ac_file in
5213506e 4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 break;;
4693 esac
4694done
4695else
5213506e 4696 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
5213506e
RW
4699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4701as_fn_error $? "cannot compute suffix of object files: cannot compile
4702See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4703fi
1c710c3c
DJ
4704rm -f conftest.$ac_cv_objext conftest.$ac_ext
4705fi
5213506e
RW
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4708OBJEXT=$ac_cv_objext
4709ac_objext=$OBJEXT
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4712if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4713 $as_echo_n "(cached) " >&6
1c710c3c 4714else
5213506e 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721#ifndef __GNUC__
4722 choke me
4723#endif
4724
4725 ;
4726 return 0;
4727}
4728_ACEOF
5213506e 4729if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4730 ac_compiler_gnu=yes
4731else
5213506e 4732 ac_compiler_gnu=no
1c710c3c 4733fi
5213506e 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4735ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737fi
5213506e
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742else
4743 GCC=
4744fi
1c710c3c
DJ
4745ac_test_CFLAGS=${CFLAGS+set}
4746ac_save_CFLAGS=$CFLAGS
5213506e
RW
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4749if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4750 $as_echo_n "(cached) " >&6
4751else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4757/* end confdefs.h. */
4758
4759int
4760main ()
4761{
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
5213506e 4767if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4768 ac_cv_prog_cc_g=yes
4769else
5213506e
RW
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773
4774int
4775main ()
4776{
4777
4778 ;
4779 return 0;
4780}
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783
4784else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h. */
af71363e 4789
5213506e
RW
4790int
4791main ()
4792{
4793
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4802fi
5213506e 4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4804fi
5213506e
RW
4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4810if test "$ac_test_CFLAGS" = set; then
1c710c3c 4811 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4812elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4817 fi
4818else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4823 fi
4824fi
5213506e
RW
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4827if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4828 $as_echo_n "(cached) " >&6
1c710c3c 4829else
5213506e 4830 ac_cv_prog_cc_c89=no
1c710c3c 4831ac_save_CC=$CC
5213506e 4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4833/* end confdefs.h. */
4834#include <stdarg.h>
4835#include <stdio.h>
22e05272 4836struct stat;
1c710c3c
DJ
4837/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838struct buf { int x; };
4839FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840static char *e (p, i)
4841 char **p;
4842 int i;
4843{
4844 return p[i];
4845}
4846static char *f (char * (*g) (char **, int), char **p, ...)
4847{
4848 char *s;
4849 va_list v;
4850 va_start (v,p);
4851 s = g (p, va_arg (v,int));
4852 va_end (v);
4853 return s;
4854}
4855
4856/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
5213506e 4859 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4862 that's true only with -std. */
1c710c3c
DJ
4863int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4864
5213506e
RW
4865/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4867#define FOO(x) 'x'
4868int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4869
1c710c3c
DJ
4870int test (int i, double x);
4871struct s1 {int (*f) (int a);};
4872struct s2 {int (*f) (double a);};
4873int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874int argc;
4875char **argv;
4876int
4877main ()
4878{
4879return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 ;
4881 return 0;
4882}
4883_ACEOF
5213506e
RW
4884for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4886do
4887 CC="$ac_save_CC $ac_arg"
5213506e
RW
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4890fi
5213506e
RW
4891rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4893done
5213506e 4894rm -f conftest.$ac_ext
1c710c3c
DJ
4895CC=$ac_save_CC
4896
4897fi
5213506e
RW
4898# AC_CACHE_VAL
4899case "x$ac_cv_prog_cc_c89" in
4900 x)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902$as_echo "none needed" >&6; } ;;
4903 xno)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905$as_echo "unsupported" >&6; } ;;
1c710c3c 4906 *)
5213506e
RW
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4910esac
5213506e 4911if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4912
2aeb72e9
DD
4913fi
4914
2aeb72e9
DD
4915ac_ext=c
4916ac_cpp='$CPP $CPPFLAGS'
4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
5213506e 4921ac_ext=cpp
2aeb72e9
DD
4922ac_cpp='$CXXCPP $CPPFLAGS'
4923ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4926if test -z "$CXX"; then
4927 if test -n "$CCC"; then
4928 CXX=$CCC
4929 else
4930 if test -n "$ac_tool_prefix"; then
4931 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4932 do
4933 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4934set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4936$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4937if ${ac_cv_prog_CXX+:} false; then :
5213506e 4938 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4939else
4940 if test -n "$CXX"; then
4941 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4942else
4943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944for as_dir in $PATH
4945do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
5213506e 4948 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4950 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4952 break 2
4953 fi
4954done
5213506e
RW
4955 done
4956IFS=$as_save_IFS
55ffb5ed 4957
c3a86da9
DJ
4958fi
4959fi
4960CXX=$ac_cv_prog_CXX
4961if test -n "$CXX"; then
5213506e
RW
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4963$as_echo "$CXX" >&6; }
c3a86da9 4964else
5213506e
RW
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966$as_echo "no" >&6; }
c3a86da9
DJ
4967fi
4968
5213506e 4969
c3a86da9
DJ
4970 test -n "$CXX" && break
4971 done
4972fi
4973if test -z "$CXX"; then
4974 ac_ct_CXX=$CXX
5213506e 4975 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4976do
4977 # Extract the first word of "$ac_prog", so it can be a program name with args.
4978set dummy $ac_prog; ac_word=$2
5213506e
RW
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4981if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4982 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4983else
4984 if test -n "$ac_ct_CXX"; then
4985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4986else
4987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988for as_dir in $PATH
4989do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
5213506e 4992 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4994 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4996 break 2
4997 fi
4998done
5213506e
RW
4999 done
5000IFS=$as_save_IFS
c3a86da9
DJ
5001
5002fi
5003fi
5004ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5005if test -n "$ac_ct_CXX"; then
5213506e
RW
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5007$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5008else
5213506e
RW
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
c3a86da9
DJ
5011fi
5012
5213506e 5013
c3a86da9
DJ
5014 test -n "$ac_ct_CXX" && break
5015done
c3a86da9 5016
5213506e
RW
5017 if test "x$ac_ct_CXX" = x; then
5018 CXX="g++"
5019 else
5020 case $cross_compiling:$ac_tool_warned in
5021yes:)
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024ac_tool_warned=yes ;;
5025esac
5026 CXX=$ac_ct_CXX
5027 fi
c3a86da9
DJ
5028fi
5029
5213506e
RW
5030 fi
5031fi
c3a86da9 5032# Provide some information about the compiler.
5213506e
RW
5033$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5034set X $ac_compile
5035ac_compiler=$2
5036for ac_option in --version -v -V -qversion; do
5037 { { ac_try="$ac_compiler $ac_option >&5"
5038case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041esac
5042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5043$as_echo "$ac_try_echo"; } >&5
5044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5045 ac_status=$?
5213506e
RW
5046 if test -s conftest.err; then
5047 sed '10a\
5048... rest of stderr output deleted ...
5049 10q' conftest.err >conftest.er1
5050 cat conftest.er1 >&5
5213506e 5051 fi
22e05272 5052 rm -f conftest.er1 conftest.err
5213506e
RW
5053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5054 test $ac_status = 0; }
5055done
c3a86da9 5056
5213506e
RW
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5058$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5059if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5060 $as_echo_n "(cached) " >&6
c3a86da9 5061else
5213506e 5062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5063/* end confdefs.h. */
5064
5065int
5066main ()
5067{
5068#ifndef __GNUC__
5069 choke me
5070#endif
5071
5072 ;
5073 return 0;
5074}
5075_ACEOF
5213506e 5076if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5077 ac_compiler_gnu=yes
5078else
5213506e 5079 ac_compiler_gnu=no
c3a86da9 5080fi
5213506e 5081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5082ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5083
5084fi
5213506e
RW
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5086$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5087if test $ac_compiler_gnu = yes; then
5088 GXX=yes
5089else
5090 GXX=
5091fi
c3a86da9
DJ
5092ac_test_CXXFLAGS=${CXXFLAGS+set}
5093ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5095$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5096if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5097 $as_echo_n "(cached) " >&6
5098else
5099 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5100 ac_cxx_werror_flag=yes
5101 ac_cv_prog_cxx_g=no
5102 CXXFLAGS="-g"
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5104/* end confdefs.h. */
5105
5106int
5107main ()
5108{
5109
5110 ;
5111 return 0;
5112}
5113_ACEOF
5213506e 5114if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5115 ac_cv_prog_cxx_g=yes
5116else
5213506e
RW
5117 CXXFLAGS=""
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5119/* end confdefs.h. */
5213506e 5120
c3a86da9
DJ
5121int
5122main ()
5123{
5213506e 5124
c3a86da9
DJ
5125 ;
5126 return 0;
5127}
5128_ACEOF
5213506e 5129if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5130
5213506e
RW
5131else
5132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5133 CXXFLAGS="-g"
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5135/* end confdefs.h. */
5213506e 5136
c3a86da9
DJ
5137int
5138main ()
5139{
5213506e 5140
c3a86da9
DJ
5141 ;
5142 return 0;
5143}
5144_ACEOF
5213506e
RW
5145if ac_fn_cxx_try_compile "$LINENO"; then :
5146 ac_cv_prog_cxx_g=yes
11a67599 5147fi
5213506e
RW
5148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5149fi
5150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151fi
5152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5154fi
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5156$as_echo "$ac_cv_prog_cxx_g" >&6; }
5157if test "$ac_test_CXXFLAGS" = set; then
5158 CXXFLAGS=$ac_save_CXXFLAGS
5159elif test $ac_cv_prog_cxx_g = yes; then
5160 if test "$GXX" = yes; then
5161 CXXFLAGS="-g -O2"
5162 else
5163 CXXFLAGS="-g"
5164 fi
5165else
5166 if test "$GXX" = yes; then
5167 CXXFLAGS="-O2"
5168 else
5169 CXXFLAGS=
5170 fi
c3a86da9 5171fi
c3a86da9
DJ
5172ac_ext=c
5173ac_cpp='$CPP $CPPFLAGS'
5174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177
5178
5179# We must set the default linker to the linker used by gcc for the correct
5180# operation of libtool. If LD is not defined and we are using gcc, try to
5181# set the LD default to the ld used by gcc.
5182if test -z "$LD"; then
5183 if test "$GCC" = yes; then
5184 case $build in
5185 *-*-mingw*)
5186 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5187 *)
5188 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5189 esac
5190 case $gcc_prog_ld in
5191 # Accept absolute paths.
5192 [\\/]* | [A-Za-z]:[\\/]*)
5193 LD="$gcc_prog_ld" ;;
5194 esac
5195 fi
23f6b2f9
PB
5196fi
5197
0b21f5d3
EB
5198# Check whether -static-libstdc++ -static-libgcc is supported.
5199have_static_libs=no
5200if test "$GCC" = yes; then
5201 saved_LDFLAGS="$LDFLAGS"
5202
5203 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5205$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5206 ac_ext=cpp
5207ac_cpp='$CXXCPP $CPPFLAGS'
5208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5211
5212
5213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h. */
0d6414b2
EB
5215
5216#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5217#error -static-libstdc++ not implemented
5218#endif
0b21f5d3
EB
5219int main() {}
5220_ACEOF
5221if ac_fn_cxx_try_link "$LINENO"; then :
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223$as_echo "yes" >&6; }; have_static_libs=yes
5224else
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226$as_echo "no" >&6; }
5227fi
5228rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 ac_ext=c
5231ac_cpp='$CPP $CPPFLAGS'
5232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235
5236
5237 LDFLAGS="$saved_LDFLAGS"
5238fi
5239
23f6b2f9
PB
5240
5241
55ffb5ed 5242
1c710c3c
DJ
5243if test -n "$ac_tool_prefix"; then
5244 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5245set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5248if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5249 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5250else
5251 if test -n "$GNATBIND"; then
5252 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5253else
1c710c3c
DJ
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5213506e 5259 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5261 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5263 break 2
5264 fi
5265done
5213506e
RW
5266 done
5267IFS=$as_save_IFS
1c710c3c 5268
55ffb5ed
NN
5269fi
5270fi
1c710c3c 5271GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5272if test -n "$GNATBIND"; then
5213506e
RW
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5274$as_echo "$GNATBIND" >&6; }
55ffb5ed 5275else
5213506e
RW
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277$as_echo "no" >&6; }
55ffb5ed
NN
5278fi
5279
5213506e 5280
1c710c3c 5281fi
55ffb5ed 5282if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5283 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5284 # Extract the first word of "gnatbind", so it can be a program name with args.
5285set dummy gnatbind; ac_word=$2
5213506e
RW
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5288if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5289 $as_echo_n "(cached) " >&6
55ffb5ed 5290else
1c710c3c
DJ
5291 if test -n "$ac_ct_GNATBIND"; then
5292 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5293else
1c710c3c
DJ
5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295for as_dir in $PATH
5296do
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5213506e 5299 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5301 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5303 break 2
5304 fi
5305done
5213506e
RW
5306 done
5307IFS=$as_save_IFS
1c710c3c 5308
55ffb5ed
NN
5309fi
5310fi
1c710c3c
DJ
5311ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5312if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5314$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5315else
5213506e
RW
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317$as_echo "no" >&6; }
55ffb5ed
NN
5318fi
5319
5213506e
RW
5320 if test "x$ac_ct_GNATBIND" = x; then
5321 GNATBIND="no"
5322 else
5323 case $cross_compiling:$ac_tool_warned in
5324yes:)
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327ac_tool_warned=yes ;;
5328esac
5329 GNATBIND=$ac_ct_GNATBIND
5330 fi
55ffb5ed 5331else
1c710c3c 5332 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5333fi
5334
1c710c3c
DJ
5335if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5337set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5340if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5341 $as_echo_n "(cached) " >&6
5305be7e
RG
5342else
5343 if test -n "$GNATMAKE"; then
5344 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5345else
1c710c3c
DJ
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5213506e 5351 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5353 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5355 break 2
5356 fi
5357done
5213506e
RW
5358 done
5359IFS=$as_save_IFS
1c710c3c 5360
5305be7e
RG
5361fi
5362fi
1c710c3c 5363GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5364if test -n "$GNATMAKE"; then
5213506e
RW
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5366$as_echo "$GNATMAKE" >&6; }
5305be7e 5367else
5213506e
RW
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369$as_echo "no" >&6; }
5305be7e
RG
5370fi
5371
5213506e 5372
1c710c3c 5373fi
5305be7e 5374if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5375 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5376 # Extract the first word of "gnatmake", so it can be a program name with args.
5377set dummy gnatmake; ac_word=$2
5213506e
RW
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5380if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5381 $as_echo_n "(cached) " >&6
5305be7e 5382else
1c710c3c
DJ
5383 if test -n "$ac_ct_GNATMAKE"; then
5384 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5385else
1c710c3c
DJ
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5213506e 5391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5393 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5395 break 2
5396 fi
5397done
5213506e
RW
5398 done
5399IFS=$as_save_IFS
1c710c3c 5400
5305be7e
RG
5401fi
5402fi
1c710c3c
DJ
5403ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5404if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5406$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5407else
5213506e
RW
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; }
5305be7e
RG
5410fi
5411
5213506e
RW
5412 if test "x$ac_ct_GNATMAKE" = x; then
5413 GNATMAKE="no"
5414 else
5415 case $cross_compiling:$ac_tool_warned in
5416yes:)
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419ac_tool_warned=yes ;;
5420esac
5421 GNATMAKE=$ac_ct_GNATMAKE
5422 fi
5305be7e 5423else
1c710c3c 5424 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5425fi
5426
5213506e
RW
5427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5428$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5429if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5430 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5431else
5432 cat >conftest.adb <<EOF
5433procedure conftest is begin null; end conftest;
5434EOF
5435acx_cv_cc_gcc_supports_ada=no
5436# There is a bug in old released versions of GCC which causes the
5437# driver to exit successfully when the appropriate language module
5438# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5439# Therefore we must check for the error message as well as an
5440# unsuccessful exit.
1db673ca
RO
5441# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5442# given a .adb file, but produce no object file. So we must check
5443# if an object file was really produced to guard against this.
55ffb5ed 5444errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5445if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5446 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5447fi
5448rm -f conftest.*
5449fi
5213506e
RW
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5451$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5452
7cb62ef1 5453if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5454 have_gnat=yes
5455else
5456 have_gnat=no
5457fi
5458
5213506e
RW
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5460$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5461if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5462 $as_echo_n "(cached) " >&6
a76494aa
PB
5463else
5464 echo abfoo >t1
5465 echo cdfoo >t2
b55e6680 5466 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5467 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5468 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5469 :
5470 else
5471 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5472 fi
5473 fi
a76494aa
PB
5474 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5475 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5476 :
a76494aa
PB
5477 else
5478 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5479 fi
5480 fi
5481 rm t1 t2
5482
5483fi
5213506e
RW
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5485$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5486do_compare="$gcc_cv_prog_cmp_skip"
5487
5488
55ffb5ed 5489
ff3ac0f4
ILT
5490# Check whether --enable-bootstrap was given.
5491if test "${enable_bootstrap+set}" = set; then :
5492 enableval=$enable_bootstrap;
5493else
5494 enable_bootstrap=default
5495fi
5496
5497
5498# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5499if test -r $srcdir/gcc/configure; then
5500 have_compiler=yes
5501else
5502 have_compiler=no
5503fi
ff3ac0f4
ILT
5504
5505case "$have_compiler:$host:$target:$enable_bootstrap" in
5506 *:*:*:no) ;;
5507
5508 # Default behavior. Enable bootstrap if we have a compiler
5509 # and we are in a native configuration.
5510 yes:$build:$build:default)
5511 enable_bootstrap=yes ;;
5512
5513 *:*:*:default)
5514 enable_bootstrap=no ;;
5515
5516 # We have a compiler and we are in a native configuration, bootstrap is ok
5517 yes:$build:$build:yes)
5518 ;;
5519
5520 # Other configurations, but we have a compiler. Assume the user knows
5521 # what he's doing.
5522 yes:*:*:yes)
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5524$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5525 ;;
5526
5527 # No compiler: if they passed --enable-bootstrap explicitly, fail
5528 no:*:*:yes)
22e05272 5529 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5530
5531 # Fail if wrong command line
5532 *)
22e05272 5533 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5534 ;;
5535esac
5536
46070488
JM
5537# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5538# C++98 compiler can still start the bootstrap.
5539if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5540 CXX="$CXX -std=gnu++98"
46070488
JM
5541fi
5542
592c90ff
KG
5543# Used for setting $lt_cv_objdir
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5545$as_echo_n "checking for objdir... " >&6; }
22e05272 5546if ${lt_cv_objdir+:} false; then :
592c90ff
KG
5547 $as_echo_n "(cached) " >&6
5548else
5549 rm -f .libs 2>/dev/null
5550mkdir .libs 2>/dev/null
5551if test -d .libs; then
5552 lt_cv_objdir=.libs
5553else
5554 # MS-DOS does not allow filenames that begin with a dot.
5555 lt_cv_objdir=_libs
5556fi
5557rmdir .libs 2>/dev/null
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5560$as_echo "$lt_cv_objdir" >&6; }
5561objdir=$lt_cv_objdir
5562
5563
5564
5565
5566
5567cat >>confdefs.h <<_ACEOF
5568#define LT_OBJDIR "$lt_cv_objdir/"
5569_ACEOF
5570
5571
5572
acd26225 5573# Check for GMP, MPFR and MPC
3a5729ea 5574gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5575gmpinc=
e69bf64b 5576have_gmp=no
acd26225
KG
5577
5578# Specify a location for mpc
5579# check for this first so it ends up on the link line before mpfr.
5580
5213506e
RW
5581# Check whether --with-mpc was given.
5582if test "${with_mpc+set}" = set; then :
5583 withval=$with_mpc;
5584fi
acd26225 5585
acd26225 5586
9965e3cd 5587# Check whether --with-mpc-include was given.
5213506e
RW
5588if test "${with_mpc_include+set}" = set; then :
5589 withval=$with_mpc_include;
5590fi
acd26225 5591
acd26225 5592
9965e3cd 5593# Check whether --with-mpc-lib was given.
5213506e
RW
5594if test "${with_mpc_lib+set}" = set; then :
5595 withval=$with_mpc_lib;
5596fi
acd26225 5597
acd26225
KG
5598
5599if test "x$with_mpc" != x; then
3a5729ea
KG
5600 gmplibs="-L$with_mpc/lib $gmplibs"
5601 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5602fi
5603if test "x$with_mpc_include" != x; then
3a5729ea 5604 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5605fi
5606if test "x$with_mpc_lib" != x; then
3a5729ea 5607 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5608fi
5609if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5610 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5611 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5612 # Do not test the mpc version. Assume that it is sufficient, since
5613 # it is in the source tree, and the library has not been built yet
5614 # but it would be included on the link line in the version check below
5615 # hence making the test fail.
3a5729ea 5616 have_gmp=yes
acd26225 5617fi
e69bf64b 5618
bebf829d
PB
5619# Specify a location for mpfr
5620# check for this first so it ends up on the link line before gmp.
1c710c3c 5621
5213506e
RW
5622# Check whether --with-mpfr-dir was given.
5623if test "${with_mpfr_dir+set}" = set; then :
22e05272 5624 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
5625Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5626fi
5627
bebf829d
PB
5628
5629
5213506e
RW
5630# Check whether --with-mpfr was given.
5631if test "${with_mpfr+set}" = set; then :
5632 withval=$with_mpfr;
5633fi
1c710c3c 5634
bebf829d 5635
9965e3cd 5636# Check whether --with-mpfr-include was given.
5213506e
RW
5637if test "${with_mpfr_include+set}" = set; then :
5638 withval=$with_mpfr_include;
5639fi
1c710c3c 5640
8a877c9c 5641
9965e3cd 5642# Check whether --with-mpfr-lib was given.
5213506e
RW
5643if test "${with_mpfr_lib+set}" = set; then :
5644 withval=$with_mpfr_lib;
5645fi
8a877c9c 5646
bebf829d
PB
5647
5648if test "x$with_mpfr" != x; then
5649 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5650 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5651fi
8a877c9c 5652if test "x$with_mpfr_include" != x; then
3a5729ea 5653 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5654fi
5655if test "x$with_mpfr_lib" != x; then
5656 gmplibs="-L$with_mpfr_lib $gmplibs"
5657fi
e69bf64b 5658if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5659 # MPFR v3.1.0 moved the sources into a src sub-directory.
5660 if ! test -d ${srcdir}/mpfr/src; then
22e05272 5661 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 5662 fi
00f35794
BE
5663 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5664 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5665 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5666 # Do not test the mpfr version. Assume that it is sufficient, since
5667 # it is in the source tree, and the library has not been built yet
5668 # but it would be included on the link line in the version check below
5669 # hence making the test fail.
5670 have_gmp=yes
5671fi
bebf829d 5672
6de9cd9a 5673# Specify a location for gmp
1c710c3c 5674
5213506e
RW
5675# Check whether --with-gmp-dir was given.
5676if test "${with_gmp_dir+set}" = set; then :
22e05272 5677 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
5678Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5679fi
5680
6de9cd9a 5681
6de9cd9a 5682
5213506e
RW
5683# Check whether --with-gmp was given.
5684if test "${with_gmp+set}" = set; then :
5685 withval=$with_gmp;
5686fi
1c710c3c 5687
6de9cd9a 5688
9965e3cd 5689# Check whether --with-gmp-include was given.
5213506e
RW
5690if test "${with_gmp_include+set}" = set; then :
5691 withval=$with_gmp_include;
5692fi
1c710c3c 5693
8a877c9c 5694
9965e3cd 5695# Check whether --with-gmp-lib was given.
5213506e
RW
5696if test "${with_gmp_lib+set}" = set; then :
5697 withval=$with_gmp_lib;
5698fi
8a877c9c
KG
5699
5700
6de9cd9a 5701
bebf829d
PB
5702if test "x$with_gmp" != x; then
5703 gmplibs="-L$with_gmp/lib $gmplibs"
5704 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5705fi
8a877c9c
KG
5706if test "x$with_gmp_include" != x; then
5707 gmpinc="-I$with_gmp_include $gmpinc"
5708fi
5709if test "x$with_gmp_lib" != x; then
5710 gmplibs="-L$with_gmp_lib $gmplibs"
5711fi
e69bf64b 5712if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5713 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5714 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5715 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5716 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5717 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5718 # Do not test the gmp version. Assume that it is sufficient, since
5719 # it is in the source tree, and the library has not been built yet
5720 # but it would be included on the link line in the version check below
5721 # hence making the test fail.
5722 have_gmp=yes
5723fi
6de9cd9a 5724
d943d7c4 5725if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5726 have_gmp=yes
5727 saved_CFLAGS="$CFLAGS"
5728 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5729 # Check for the recommended and required versions of GMP.
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5731$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5732
5733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5734/* end confdefs.h. */
5735#include "gmp.h"
5736int
5737main ()
5738{
5739
5740 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5741 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5742 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5743 choke me
5744 #endif
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5752/* end confdefs.h. */
362c6d2f 5753#include <gmp.h>
1c710c3c
DJ
5754int
5755main ()
5756{
6de9cd9a 5757
362c6d2f
KG
5758 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5759 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5760 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5761 choke me
5762 #endif
1c710c3c
DJ
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
5213506e
RW
5768if ac_fn_c_try_compile "$LINENO"; then :
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5770$as_echo "yes" >&6; }
362c6d2f
KG
5771else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5773$as_echo "buggy but acceptable" >&6; }
5774fi
5775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5776else
5213506e
RW
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5779fi
5213506e 5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5781
acd26225 5782 # If we have GMP, check the MPFR version.
e69bf64b 5783 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5784 # Check for the recommended and required versions of MPFR.
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5786$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5788/* end confdefs.h. */
70ec446f 5789#include <gmp.h>
e69bf64b 5790 #include <mpfr.h>
1c710c3c
DJ
5791int
5792main ()
5793{
e48d66a9 5794
8be34204 5795 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
5796 choke me
5797 #endif
1c710c3c
DJ
5798
5799 ;
5800 return 0;
5801}
5802_ACEOF
5213506e
RW
5803if ac_fn_c_try_compile "$LINENO"; then :
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5805/* end confdefs.h. */
a3993f33 5806#include <gmp.h>
e69bf64b 5807 #include <mpfr.h>
1c710c3c
DJ
5808int
5809main ()
5810{
a3993f33 5811
8be34204 5812 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
5813 choke me
5814 #endif
acd26225
KG
5815
5816 ;
5817 return 0;
5818}
5819_ACEOF
5213506e
RW
5820if ac_fn_c_try_compile "$LINENO"; then :
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5822$as_echo "yes" >&6; }
acd26225 5823else
5213506e
RW
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5825$as_echo "buggy but acceptable" >&6; }
acd26225 5826fi
5213506e 5827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5828else
5213506e
RW
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5830$as_echo "no" >&6; }; have_gmp=no
acd26225 5831fi
5213506e 5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5833 fi
5834
5835 # Check for the MPC header version.
3a5729ea 5836 if test x"$have_gmp" = xyes ; then
362c6d2f 5837 # Check for the recommended and required versions of MPC.
5213506e
RW
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5839$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5841/* end confdefs.h. */
5842#include <mpc.h>
5843int
5844main ()
5845{
5846
362c6d2f
KG
5847 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5848 choke me
5849 #endif
5850
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_compile "$LINENO"; then :
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h. */
5858#include <mpc.h>
5859int
5860main ()
5861{
5862
5863 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5864 choke me
5865 #endif
5866
5867 ;
5868 return 0;
5869}
5870_ACEOF
5213506e
RW
5871if ac_fn_c_try_compile "$LINENO"; then :
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5873$as_echo "yes" >&6; }
362c6d2f
KG
5874else
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5876$as_echo "buggy but acceptable" >&6; }
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5879else
5213506e 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5881$as_echo "no" >&6; }; have_gmp=no
acd26225 5882fi
5213506e 5883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5884 fi
5885
5886 # Now check the MPFR library.
5887 if test x"$have_gmp" = xyes; then
5888 saved_LIBS="$LIBS"
5889 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5891$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5893/* end confdefs.h. */
3a5729ea 5894#include <mpc.h>
acd26225
KG
5895int
5896main ()
5897{
5898
5899 mpfr_t n;
5900 mpfr_t x;
3a5729ea 5901 mpc_t c;
acd26225
KG
5902 int t;
5903 mpfr_init (n);
5904 mpfr_init (x);
90ca6847
TB
5905 mpfr_atan2 (n, n, x, MPFR_RNDN);
5906 mpfr_erfc (n, x, MPFR_RNDN);
5907 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
5908 mpfr_clear(n);
5909 mpfr_clear(x);
5910 mpc_init2 (c, 53);
5911 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5912 mpc_cosh (c, c, MPC_RNDNN);
5913 mpc_pow (c, c, c, MPC_RNDNN);
5914 mpc_acosh (c, c, MPC_RNDNN);
5915 mpc_clear (c);
1c710c3c
DJ
5916
5917 ;
5918 return 0;
5919}
5920_ACEOF
5213506e
RW
5921if ac_fn_c_try_link "$LINENO"; then :
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5923$as_echo "yes" >&6; }
1c710c3c 5924else
5213506e
RW
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5927fi
5213506e
RW
5928rm -f core conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5930 LIBS="$saved_LIBS"
5931 fi
5932
e69bf64b 5933 CFLAGS="$saved_CFLAGS"
6de9cd9a 5934
362c6d2f
KG
5935# The library versions listed in the error message below should match
5936# the HARD-minimums enforced above.
e69bf64b 5937 if test x$have_gmp != xyes; then
8be34204 5938 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
5939Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5940their locations. Source code for these libraries can be found at
5941their respective hosting sites as well as at
aeebd94c 5942https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
5943http://gcc.gnu.org/install/prerequisites.html for additional info. If
5944you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5945make sure that you have installed both the libraries and the header
5946files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5947 fi
70ec446f
KG
5948fi
5949
acd26225
KG
5950# Flags needed for both GMP, MPFR and/or MPC.
5951
5952
6de9cd9a
DN
5953
5954
5955
9e3eba15 5956
0ff2d841 5957
0b21f5d3 5958# Libraries to use for stage1 or when not bootstrapping.
00020c16 5959
0b21f5d3
EB
5960# Check whether --with-stage1-libs was given.
5961if test "${with_stage1_libs+set}" = set; then :
5962 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5963 stage1_libs=
00020c16 5964 else
0b21f5d3 5965 stage1_libs=$withval
00020c16
ILT
5966 fi
5967else
5dc85f7e 5968 stage1_libs=
5213506e
RW
5969fi
5970
00020c16
ILT
5971
5972
aac9103b
TT
5973# Whether or not to use -static-libstdc++ and -static-libgcc. The
5974# default is yes if gcc is being built; no otherwise. The reason for
5975# this default is that gdb is sometimes linked against GNU Source
5976# Highlight, which is a shared library that uses C++ exceptions. In
5977# this case, -static-libstdc++ will cause crashes.
5978
5979# Check whether --with-static-standard-libraries was given.
5980if test "${with_static_standard_libraries+set}" = set; then :
5981 withval=$with_static_standard_libraries;
5982else
5983 with_static_standard_libraries=auto
5984fi
5985
5986if test "$with_static_standard_libraries" = auto; then
5987 with_static_standard_libraries=$have_compiler
5988fi
5989
0b21f5d3 5990# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5991
0b21f5d3
EB
5992# Check whether --with-stage1-ldflags was given.
5993if test "${with_stage1_ldflags+set}" = set; then :
5994 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5995 stage1_ldflags=
00020c16 5996 else
0b21f5d3 5997 stage1_ldflags=$withval
00020c16
ILT
5998 fi
5999else
0b21f5d3
EB
6000 stage1_ldflags=
6001 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
6002 # if supported. But if the user explicitly specified the libraries to use,
6003 # trust that they are doing what they want.
aac9103b
TT
6004 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
6005 -a "$have_static_libs" = yes; then
0b21f5d3
EB
6006 stage1_ldflags="-static-libstdc++ -static-libgcc"
6007 fi
5213506e
RW
6008fi
6009
00020c16
ILT
6010
6011
5dc85f7e 6012# Libraries to use for stage2 and later builds.
00020c16 6013
5213506e
RW
6014# Check whether --with-boot-libs was given.
6015if test "${with_boot_libs+set}" = set; then :
6016 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
6017 poststage1_libs=
6018 else
6019 poststage1_libs=$withval
6020 fi
6021else
5dc85f7e 6022 poststage1_libs=
5213506e
RW
6023fi
6024
00020c16
ILT
6025
6026
ed2eaa9f
ILT
6027# Linker flags to use for stage2 and later builds.
6028
6029# Check whether --with-boot-ldflags was given.
6030if test "${with_boot_ldflags+set}" = set; then :
6031 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6032 poststage1_ldflags=
6033 else
6034 poststage1_ldflags=$withval
6035 fi
6036else
6037 poststage1_ldflags=
bec93d73
ILT
6038 # In stages 2 and 3, default to linking libstdc++ and libgcc
6039 # statically. But if the user explicitly specified the libraries to
6040 # use, trust that they are doing what they want.
6041 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
6042 poststage1_ldflags="-static-libstdc++ -static-libgcc"
6043 fi
6044fi
6045
6046
6047
e357a5e0 6048# GCC GRAPHITE dependency isl.
4a9bb2aa 6049# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
6050
6051
33ad93b9
RG
6052# Check whether --with-isl was given.
6053if test "${with_isl+set}" = set; then :
6054 withval=$with_isl;
5213506e 6055fi
f8bf9252 6056
f8bf9252 6057
eae1a5d4 6058# Treat --without-isl as a request to disable
625afa23 6059# GRAPHITE support and skip all following checks.
eae1a5d4 6060if test "x$with_isl" != "xno"; then
e357a5e0 6061 # Check for isl
625afa23
RG
6062
6063
33ad93b9
RG
6064# Check whether --with-isl-include was given.
6065if test "${with_isl_include+set}" = set; then :
6066 withval=$with_isl_include;
5213506e
RW
6067fi
6068
f8bf9252 6069
33ad93b9
RG
6070# Check whether --with-isl-lib was given.
6071if test "${with_isl_lib+set}" = set; then :
6072 withval=$with_isl_lib;
5213506e 6073fi
f8bf9252 6074
f8bf9252 6075
33ad93b9
RG
6076 # Check whether --enable-isl-version-check was given.
6077if test "${enable_isl_version_check+set}" = set; then :
6078 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
6079else
6080 ENABLE_ISL_CHECK=yes
7d32a440
SP
6081fi
6082
6083
33ad93b9
RG
6084 # Initialize isllibs and islinc.
6085 case $with_isl in
6086 no)
6087 isllibs=
6088 islinc=
6089 ;;
6090 "" | yes)
6091 ;;
6092 *)
6093 isllibs="-L$with_isl/lib"
6094 islinc="-I$with_isl/include"
6095 ;;
6096 esac
6097 if test "x${with_isl_include}" != x ; then
6098 islinc="-I$with_isl_include"
6099 fi
6100 if test "x${with_isl_lib}" != x; then
6101 isllibs="-L$with_isl_lib"
6102 fi
6103 if test "x${islinc}" = x && test "x${isllibs}" = x \
6104 && test -d ${srcdir}/isl; then
6105 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6106 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6107 ENABLE_ISL_CHECK=no
560d18d3
AK
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6109$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6110 fi
7d32a440 6111
eae1a5d4
RG
6112 isllibs="${isllibs} -lisl"
6113
7d32a440 6114
7d32a440 6115
9847828b
RB
6116 if test "${ENABLE_ISL_CHECK}" = yes ; then
6117 _isl_saved_CFLAGS=$CFLAGS
6118 _isl_saved_LDFLAGS=$LDFLAGS
6119 _isl_saved_LIBS=$LIBS
6120
6121 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6122 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6123 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6124
f877b3ad
RB
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
6126$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6128/* end confdefs.h. */
f877b3ad 6129#include <isl/schedule.h>
622dbadf
BC
6130int
6131main ()
6132{
f877b3ad 6133isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
6134 ;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_link "$LINENO"; then :
9847828b 6139 gcc_cv_isl=yes
622dbadf
BC
6140else
6141 gcc_cv_isl=no
6142fi
6143rm -f core conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6146$as_echo "$gcc_cv_isl" >&6; }
6147
560d18d3 6148 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
6150$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
6151 fi
6152
9847828b
RB
6153 CFLAGS=$_isl_saved_CFLAGS
6154 LDFLAGS=$_isl_saved_LDFLAGS
6155 LIBS=$_isl_saved_LIBS
6156 fi
6157
6158
f8bf9252 6159
f8bf9252 6160
33ad93b9
RG
6161
6162
33ad93b9
RG
6163 if test "x${with_isl}" = xno; then
6164 graphite_requested=no
6165 elif test "x${with_isl}" != x \
6166 || test "x${with_isl_include}" != x \
6167 || test "x${with_isl_lib}" != x ; then
6168 graphite_requested=yes
6169 else
6170 graphite_requested=no
7d32a440 6171 fi
d789184e 6172
d789184e
SP
6173
6174
33ad93b9
RG
6175 if test "${gcc_cv_isl}" = no ; then
6176 isllibs=
6177 islinc=
6178 fi
6179
6180 if test "${graphite_requested}" = yes \
6181 && test "x${isllibs}" = x \
6182 && test "x${islinc}" = x ; then
f8bf9252 6183
22e05272 6184 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6185 fi
f8bf9252 6186
d32ef397 6187
d32ef397
AS
6188fi
6189
e357a5e0 6190# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6191if test "x$with_isl" = xno ||
625afa23 6192 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6193 noconfigdirs="$noconfigdirs isl"
625afa23 6194 islinc=
32d024bf
RG
6195fi
6196
625afa23
RG
6197
6198
6199
d7f09764
DN
6200# Check for LTO support.
6201# Check whether --enable-lto was given.
6202if test "${enable_lto+set}" = set; then :
6203 enableval=$enable_lto; enable_lto=$enableval
6204else
6205 enable_lto=yes; default_enable_lto=yes
6206fi
6207
6208
7413962d 6209
9a02962b
DK
6210
6211
6212target_elf=no
6213case $target in
6214 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6215 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6216 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6217 nvptx-*-none)
9a02962b
DK
6218 target_elf=no
6219 ;;
6220 *)
6221 target_elf=yes
6222 ;;
6223esac
6224
6225if test $target_elf = yes; then :
48215350
DK
6226 # ELF platforms build the lto-plugin always.
6227 build_lto_plugin=yes
9a02962b 6228
9a02962b
DK
6229else
6230 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6231 case $target in
deeba76a 6232 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6233 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6234 *) enable_lto=no ;;
6235 esac
9a02962b 6236 else
db50fe7d
IS
6237 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6238 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6239 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6240 # warn during gcc/ subconfigure; unless you're bootstrapping with
6241 # -flto it won't be needed until after installation anyway.
6242 case $target in
9e530bcd 6243 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 6244 *) if test x"$enable_lto" = x"yes"; then
22e05272 6245 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
6246 fi
6247 ;;
6248 esac
6249 fi
1cd0b716 6250 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6251 # Build it unless LTO was explicitly disabled.
1cd0b716 6252 case $target in
48215350 6253 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6254 *) ;;
6255 esac
48215350 6256
9a02962b
DK
6257fi
6258
d7f09764 6259
45b3824d
TS
6260# Check whether --enable-linker-plugin-configure-flags was given.
6261if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6262 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6263else
6264 extra_linker_plugin_configure_flags=
6265fi
6266
6267
6268# Check whether --enable-linker-plugin-flags was given.
6269if test "${enable_linker_plugin_flags+set}" = set; then :
6270 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6271else
6272 extra_linker_plugin_flags=
6273fi
6274
6275
6276
cdfee50a
NS
6277# Enable --enable-host-shared.
6278# Checked early to determine whether jit is an 'all' language
6279# Check whether --enable-host-shared was given.
6280if test "${enable_host_shared+set}" = set; then :
6281 enableval=$enable_host_shared; host_shared=$enableval
6282else
6283 host_shared=no
6284fi
6285
6286
f8bf9252 6287
0823efed 6288# By default, C and C++ are the only stage 1 languages.
e1888513 6289stage1_languages=,c,
2805b53a 6290
00020c16 6291# Target libraries that we bootstrap.
ad1e5170 6292bootstrap_target_libs=,target-libgcc,
00020c16 6293
55ffb5ed
NN
6294# Figure out what language subdirectories are present.
6295# Look if the user specified --enable-languages="..."; if not, use
6296# the environment variable $LANGUAGES if defined. $LANGUAGES might
6297# go away some day.
6298# NB: embedded tabs in this IF block -- do not untabify
6299if test -d ${srcdir}/gcc; then
6300 if test x"${enable_languages+set}" != xset; then
6301 if test x"${LANGUAGES+set}" = xset; then
6302 enable_languages="${LANGUAGES}"
6b1786aa 6303 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 6304 else
cdfee50a 6305 enable_languages=default
55ffb5ed
NN
6306 fi
6307 else
6308 if test x"${enable_languages}" = x ||
6309 test x"${enable_languages}" = xyes;
6310 then
6b1786aa 6311 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6312 exit 1
6313 fi
6314 fi
6315 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6316
7f26dfa3
FXC
6317 # 'f95' is the old name for the 'fortran' language. We issue a warning
6318 # and make the substitution.
6319 case ,${enable_languages}, in
6320 *,f95,*)
6b1786aa 6321 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6322 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6323 ;;
6324 esac
6325
0823efed
DN
6326 # If bootstrapping, C++ must be enabled.
6327 case ",$enable_languages,:$enable_bootstrap" in
6328 *,c++,*:*) ;;
6329 *:yes)
ff3ac0f4
ILT
6330 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6331 enable_languages="${enable_languages},c++"
6332 else
22e05272 6333 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6334 fi
6335 ;;
6336 esac
6337
55ffb5ed
NN
6338 # First scan to see if an enabled language requires some other language.
6339 # We assume that a given config-lang.in will list all the language
6340 # front ends it requires, even if some are required indirectly.
6341 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6342 case ${lang_frag} in
6343 ..) ;;
6344 # The odd quoting in the next line works around
6345 # an apparent bug in bash 1.12 on linux.
6346 ${srcdir}/gcc/[*]/config-lang.in) ;;
6347 *)
69ecd18f
ILT
6348 # From the config-lang.in, get $language, $lang_requires, and
6349 # $lang_requires_boot_languages.
55ffb5ed
NN
6350 language=
6351 lang_requires=
69ecd18f 6352 lang_requires_boot_languages=
d4360477
NS
6353 # set srcdir during sourcing lang_frag to the gcc dir.
6354 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
6355 # polutes this shell
6356 saved_srcdir=${srcdir}
6357 srcdir=${srcdir}/gcc . ${lang_frag}
6358 srcdir=${saved_srcdir}
69ecd18f 6359 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6360 case ,${enable_languages}, in
6361 *,$other,*) ;;
cdfee50a 6362 *,default,*) ;;
55ffb5ed
NN
6363 *,all,*) ;;
6364 *,$language,*)
6365 echo " \`$other' language required by \`$language'; enabling" 1>&2
6366 enable_languages="${enable_languages},${other}"
6367 ;;
6368 esac
6369 done
69ecd18f
ILT
6370 for other in ${lang_requires_boot_languages} ; do
6371 if test "$other" != "c"; then
6372 case ,${enable_stage1_languages}, in
6373 *,$other,*) ;;
cdfee50a 6374 *,default,*) ;;
69ecd18f
ILT
6375 *,all,*) ;;
6376 *)
6377 case ,${enable_languages}, in
6378 *,$language,*)
6379 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6380 enable_stage1_languages="$enable_stage1_languages,${other}"
6381 ;;
6382 esac
6383 ;;
6384 esac
6385 fi
6386 done
55ffb5ed
NN
6387 ;;
6388 esac
6389 done
6390
e1888513 6391 new_enable_languages=,c,
d7f09764
DN
6392
6393 # If LTO is enabled, add the LTO front end.
d7f09764 6394 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6395 case ,${enable_languages}, in
6396 *,lto,*) ;;
6397 *) enable_languages="${enable_languages},lto" ;;
6398 esac
1cd0b716 6399 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6400 configdirs="$configdirs lto-plugin"
d7f09764
DN
6401 fi
6402 fi
6403
426c1eb0
TS
6404 # If we're building an offloading compiler, add the LTO front end.
6405 if test x"$enable_as_accelerator_for" != x ; then
6406 case ,${enable_languages}, in
6407 *,lto,*) ;;
6408 *) enable_languages="${enable_languages},lto" ;;
6409 esac
6410 fi
6411
cdfee50a 6412 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6413 potential_languages=,c,
55ffb5ed 6414
4da3b0f8
ILT
6415 enabled_target_libs=
6416 disabled_target_libs=
6417
55ffb5ed
NN
6418 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6419 case ${lang_frag} in
6420 ..) ;;
6421 # The odd quoting in the next line works around
6422 # an apparent bug in bash 1.12 on linux.
6423 ${srcdir}/gcc/[*]/config-lang.in) ;;
6424 *)
1c710c3c 6425 # From the config-lang.in, get $language, $target_libs,
2805b53a 6426 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6427 language=
6428 target_libs=
6429 lang_dirs=
1546bb64 6430 subdir_requires=
e1888513
PB
6431 boot_language=no
6432 build_by_default=yes
d4360477
NS
6433 # set srcdir during sourcing. See above about save & restore
6434 saved_srcdir=${srcdir}
6435 srcdir=${srcdir}/gcc . ${lang_frag}
6436 srcdir=${saved_srcdir}
e1888513
PB
6437 if test x${language} = x; then
6438 echo "${lang_frag} doesn't set \$language." 1>&2
6439 exit 1
6440 fi
6441
78767fd9 6442 if test "$language" = "c++"; then
0823efed 6443 boot_language=yes
00020c16
ILT
6444 fi
6445
178f875a 6446 add_this_lang=no
cdfee50a
NS
6447 # C is always enabled, so no need to add it again
6448 if test "$language" != "c"; then
6449 case ,${enable_languages}, in
6450 *,${language},*)
6451 # Language was explicitly selected; include it
d4a10d0a 6452 add_this_lang=yes
cdfee50a
NS
6453 ;;
6454 *,all,*)
6455 # All languages are enabled
6456 add_this_lang=all
6457 ;;
6458 *,default,*)
6459 # 'default' was selected, select it if it is a default language
178f875a 6460 add_this_lang=${build_by_default}
cdfee50a
NS
6461 ;;
6462 esac
6463 fi
6de9cd9a 6464
1546bb64 6465 # Disable languages that need other directories if these aren't available.
95695ad3 6466 for i in $subdir_requires; do
b6348cb3 6467 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
6468 case ${add_this_lang} in
6469 yes)
1546bb64 6470 # Specifically requested language; tell them.
22e05272 6471 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 6472 ;;
cdfee50a
NS
6473 all)
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
6475$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
6476 add_this_lang=unsupported
6477 ;;
1546bb64
PB
6478 *)
6479 # Silently disable.
e1888513 6480 add_this_lang=unsupported
1546bb64
PB
6481 ;;
6482 esac
6483 done
6484
e1888513 6485 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
6486 case ${add_this_lang}:${language}:${have_gnat} in
6487 yes:ada:no)
e1888513 6488 # Specifically requested language; tell them.
22e05272 6489 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 6490 ;;
cdfee50a
NS
6491 all:ada:no)
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
6493$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
6494 add_this_lang=unsupported
6495 ;;
e1888513
PB
6496 *:ada:no)
6497 # Silently disable.
6498 add_this_lang=unsupported
6499 ;;
6500 esac
6501
cdfee50a
NS
6502 # Disable jit if -enable-host-shared not specified
6503 case ${add_this_lang}:${language}:${host_shared} in
6504 yes:jit:no)
6505 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 6506 as_fn_error $? "
cdfee50a
NS
6507Enabling language \"jit\" requires --enable-host-shared.
6508
6509--enable-host-shared typically slows the rest of the compiler down by
6510a few %, so you must explicitly enable it.
6511
6512If you want to build both the jit and the regular compiler, it is often
6513best to do this via two separate configure/builds, in separate
6514directories, to avoid imposing the performance cost of
6515--enable-host-shared on the regular compiler." "$LINENO" 5
6516 ;;
6517 all:jit:no)
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
6519$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
6520 add_this_lang=unsupported
6521 ;;
6522 *:jit:no)
6523 # Silently disable.
6524 add_this_lang=unsupported
6525 ;;
6526 esac
6527
6528 # Disable a language that is unsupported by the target.
6529 case "${add_this_lang}: $unsupported_languages " in
6530 no:*) ;;
6531 unsupported:*) ;;
6532 *:*" $language "*)
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
6534$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 6535 add_this_lang=unsupported
4fab7234
HPN
6536 ;;
6537 esac
6538
6de9cd9a 6539 case $add_this_lang in
e1888513 6540 unsupported)
55ffb5ed 6541 # Remove language-dependent dirs.
4da3b0f8
ILT
6542 disabled_target_libs="$disabled_target_libs $target_libs"
6543 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6544 ;;
e1888513
PB
6545 no)
6546 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6547 disabled_target_libs="$disabled_target_libs $target_libs"
6548 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6549 potential_languages="${potential_languages}${language},"
6550 ;;
cdfee50a 6551 all|yes)
e1888513
PB
6552 new_enable_languages="${new_enable_languages}${language},"
6553 potential_languages="${potential_languages}${language},"
2805b53a 6554 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6555 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6556 case "${boot_language}:,$enable_stage1_languages," in
6557 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6558 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6559 case ",$stage1_languages," in
6560 *,$language,* | ,yes, | ,all,) ;;
6561 *) stage1_languages="${stage1_languages}${language}," ;;
6562 esac
00020c16
ILT
6563 # We need to bootstrap any supporting libraries.
6564 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6565 ;;
6566 esac
6567 ;;
55ffb5ed
NN
6568 esac
6569 ;;
6570 esac
6571 done
6572
4da3b0f8
ILT
6573 # Add target libraries which are only needed for disabled languages
6574 # to noconfigdirs.
6575 if test -n "$disabled_target_libs"; then
6576 for dir in $disabled_target_libs; do
6577 case " $enabled_target_libs " in
6578 *" ${dir} "*) ;;
6579 *) noconfigdirs="$noconfigdirs $dir" ;;
6580 esac
6581 done
6582 fi
6583
5213506e
RW
6584 # Check whether --enable-stage1-languages was given.
6585if test "${enable_stage1_languages+set}" = set; then :
6586 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6587 ,no,|,,)
6588 # Set it to something that will have no effect in the loop below
6589 enable_stage1_languages=c ;;
6590 ,yes,)
6591 enable_stage1_languages=`echo $new_enable_languages | \
6592 sed -e "s/^,//" -e "s/,$//" ` ;;
6593 *,all,*)
6594 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6595 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6596 esac
6597
6598 # Add "good" languages from enable_stage1_languages to stage1_languages,
6599 # while "bad" languages go in missing_languages. Leave no duplicates.
6600 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6601 case $potential_languages in
6602 *,$i,*)
6603 case $stage1_languages in
6604 *,$i,*) ;;
6605 *) stage1_languages="$stage1_languages$i," ;;
6606 esac ;;
6607 *)
6608 case $missing_languages in
6609 *,$i,*) ;;
6610 *) missing_languages="$missing_languages$i," ;;
6611 esac ;;
6612 esac
6613 done
5213506e
RW
6614fi
6615
e1888513
PB
6616
6617 # Remove leading/trailing commas that were added for simplicity
6618 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6619 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6620 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6621 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6622
55ffb5ed 6623 if test "x$missing_languages" != x; then
22e05272 6624 as_fn_error $? "
0cf085e4 6625The following requested languages could not be built: ${missing_languages}
5213506e 6626Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6627 fi
55ffb5ed
NN
6628 if test "x$new_enable_languages" != "x$enable_languages"; then
6629 echo The following languages will be built: ${new_enable_languages}
e1888513 6630 enable_languages="$new_enable_languages"
55ffb5ed 6631 fi
e1888513 6632
1c710c3c 6633
b2eaac4a 6634 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6635fi
6636
27079765
AH
6637# Handle --disable-<component> generically.
6638for dir in $configdirs $build_configdirs $target_configdirs ; do
6639 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6640 varname=`echo $dirname | sed -e s/+/_/g`
6641 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6642 noconfigdirs="$noconfigdirs $dir"
6643 fi
6644done
6645
43c40f3e
RO
6646# Check for Boehm's garbage collector
6647# Check whether --enable-objc-gc was given.
6648if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6649 enableval=$enable_objc_gc;
6650fi
6651
6652
6653# Check whether --with-target-bdw-gc was given.
6654if test "${with_target_bdw_gc+set}" = set; then :
6655 withval=$with_target_bdw_gc;
6656fi
6657
6658
6659# Check whether --with-target-bdw-gc-include was given.
6660if test "${with_target_bdw_gc_include+set}" = set; then :
6661 withval=$with_target_bdw_gc_include;
6662fi
6663
6664
6665# Check whether --with-target-bdw-gc-lib was given.
6666if test "${with_target_bdw_gc_lib+set}" = set; then :
6667 withval=$with_target_bdw_gc_lib;
6668fi
6669
6670
6671case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6673$as_echo_n "checking for bdw garbage collector... " >&6; }
6674 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6676$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6677 else
6678 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 6679 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 6680 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 6681 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
6682 else
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6684$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6685 fi
6686 fi
43c40f3e
RO
6687esac
6688
5e9d6aa4 6689# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6690case ,${enable_languages}, in
1007a55c 6691 *,c++,*)
5e9d6aa4 6692 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
6693 case "${noconfigdirs}" in
6694 *target-libstdc++-v3*)
5e9d6aa4 6695 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
6696 ;;
6697 *) ;;
6698 esac
6699 ;;
99776ebd 6700 *)
5e9d6aa4 6701 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6702 ;;
6703esac
6704
ee6a22df
L
6705# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6706# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6707# If we have the source for $noconfigdirs entries, add them to $notsupp.
6708
6709notsupp=""
6710for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6711 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6712 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6713 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6714 if test -r $srcdir/$dirname/configure ; then
6715 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6716 true
6717 else
6718 notsupp="$notsupp $dir"
6719 fi
6720 fi
6721 fi
ee6a22df
L
6722 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6723 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6724 if test -r $srcdir/$dirname/configure ; then
6725 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6726 true
6727 else
6728 notsupp="$notsupp $dir"
6729 fi
6730 fi
6731 fi
55ffb5ed
NN
6732 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6733 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6734 if test -r $srcdir/$dirname/configure ; then
6735 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6736 true
6737 else
6738 notsupp="$notsupp $dir"
6739 fi
6740 fi
6741 fi
6742done
6743
55ffb5ed
NN
6744# Quietly strip out all directories which aren't configurable in this tree.
6745# This relies on all configurable subdirectories being autoconfiscated, which
6746# is now the case.
23f6b2f9
PB
6747build_configdirs_all="$build_configdirs"
6748build_configdirs=
6749for i in ${build_configdirs_all} ; do
1c710c3c 6750 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6751 if test -f ${srcdir}/$j/configure ; then
6752 build_configdirs="${build_configdirs} $i"
6753 fi
6754done
6755
55ffb5ed
NN
6756configdirs_all="$configdirs"
6757configdirs=
6758for i in ${configdirs_all} ; do
6759 if test -f ${srcdir}/$i/configure ; then
6760 configdirs="${configdirs} $i"
6761 fi
6762done
23f6b2f9 6763
55ffb5ed
NN
6764target_configdirs_all="$target_configdirs"
6765target_configdirs=
6766for i in ${target_configdirs_all} ; do
1c710c3c 6767 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6768 if test -f ${srcdir}/$j/configure ; then
6769 target_configdirs="${target_configdirs} $i"
6770 fi
6771done
6772
45b3824d
TS
6773# libiberty-linker-plugin is special: it doesn't have its own source directory,
6774# so we have to add it after the preceding checks.
6775if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6776then
6777 case " $configdirs " in
6778 *" libiberty "*)
6779 # If we can build libiberty, we can also build libiberty-linker-plugin.
6780 configdirs="$configdirs libiberty-linker-plugin"
6781 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6782 --with-libiberty=../libiberty-linker-plugin";;
6783 *)
22e05272 6784 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
6785 esac
6786fi
6787
fca38047
TS
6788# Sometimes we have special requirements for the host libiberty.
6789extra_host_libiberty_configure_flags=
1c01ebf6 6790extra_host_zlib_configure_flags=
fca38047
TS
6791case " $configdirs " in
6792 *" lto-plugin "* | *" libcc1 "*)
6793 # When these are to be built as shared libraries, the same applies to
6794 # libiberty.
6795 extra_host_libiberty_configure_flags=--enable-shared
6796 ;;
1c01ebf6
L
6797 *" bfd "*)
6798 # When bfd is to be built as a shared library, the same applies to
6799 # zlib.
6800 if test "$enable_shared" = "yes"; then
6801 extra_host_zlib_configure_flags=--enable-host-shared
6802 fi
6803 ;;
fca38047
TS
6804esac
6805
6806
1c01ebf6 6807
55ffb5ed
NN
6808# Produce a warning message for the subdirs we can't configure.
6809# This isn't especially interesting in the Cygnus tree, but in the individual
6810# FSF releases, it's important to let people know when their machine isn't
6811# supported by the one or two programs in a package.
6812
6813if test -n "${notsupp}" && test -z "${norecursion}" ; then
6814 # If $appdirs is non-empty, at least one of those directories must still
6815 # be configured, or we error out. (E.g., if the gas release supports a
6816 # specified target in some subdirs but not the gas subdir, we shouldn't
6817 # pretend that all is well.)
6818 if test -n "$appdirs" ; then
6819 for dir in $appdirs ; do
6820 if test -r $dir/Makefile.in ; then
6821 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6822 appdirs=""
6823 break
6824 fi
23f6b2f9 6825 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6826 appdirs=""
6827 break
6828 fi
6829 fi
6830 done
6831 if test -n "$appdirs" ; then
6832 echo "*** This configuration is not supported by this package." 1>&2
6833 exit 1
6834 fi
6835 fi
6836 # Okay, some application will build, or we don't care to check. Still
6837 # notify of subdirs not getting built.
6838 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6839 echo " ${notsupp}" 1>&2
6840 echo " (Any other directories should still work fine.)" 1>&2
6841fi
6842
6843case "$host" in
6844 *msdosdjgpp*)
6845 enable_gdbtk=no ;;
6846esac
6847
c3a86da9
DJ
6848# To find our prefix, in gcc_cv_tool_prefix.
6849
6850# The user is always right.
6851if test "${PATH_SEPARATOR+set}" != set; then
6852 echo "#! /bin/sh" >conf$$.sh
6853 echo "exit 0" >>conf$$.sh
6854 chmod +x conf$$.sh
6855 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6856 PATH_SEPARATOR=';'
6857 else
6858 PATH_SEPARATOR=:
6859 fi
6860 rm -f conf$$.sh
6861fi
6862
6863
3c36aa6b
JJ
6864 get_gcc_base_ver="cat"
6865
6866# Check whether --with-gcc-major-version-only was given.
6867if test "${with_gcc_major_version_only+set}" = set; then :
6868 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 6869 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
6870 fi
6871
6872fi
6873
6874
6875
6876
6877
c3a86da9
DJ
6878
6879if test "x$exec_prefix" = xNONE; then
6880 if test "x$prefix" = xNONE; then
6881 gcc_cv_tool_prefix=$ac_default_prefix
6882 else
6883 gcc_cv_tool_prefix=$prefix
6884 fi
6885else
6886 gcc_cv_tool_prefix=$exec_prefix
6887fi
6888
6889# If there is no compiler in the tree, use the PATH only. In any
6890# case, if there is no compiler in the tree nobody should use
6891# AS_FOR_TARGET and LD_FOR_TARGET.
6892if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6893 if test x$with_gcc_major_version_only = xyes ; then
6894 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6895 else
6896 gcc_version=`cat $srcdir/gcc/BASE-VER`
6897 fi
c3a86da9
DJ
6898 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6899 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6900 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6901 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6902 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6903 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6904else
6905 gcc_cv_tool_dirs=
6906fi
6907
6908if test x$build = x$target && test -n "$md_exec_prefix"; then
6909 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6910fi
6911
6912
6913
55ffb5ed
NN
6914copy_dirs=
6915
1c710c3c 6916
5213506e
RW
6917# Check whether --with-build-sysroot was given.
6918if test "${with_build_sysroot+set}" = set; then :
6919 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6920 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6921 fi
6922else
6923 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6924fi
526635cb
MM
6925
6926
c8aea42c 6927
5213506e
RW
6928
6929# Check whether --with-debug-prefix-map was given.
6930if test "${with_debug_prefix_map+set}" = set; then :
6931 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6932 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6933 for debug_map in $withval; do
6934 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6935 done
6936 fi
6937else
6938 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6939fi
6940
c8aea42c
PB
6941
6942
1c8bd6a3
PB
6943# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6944# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6945# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6946# We want to ensure that TARGET libraries (which we know are built with
6947# gcc) are built with "-O2 -g", so include those options when setting
6948# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6949if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6950 if test "x${is_cross_compiler}" = xyes; then
6951 CFLAGS_FOR_TARGET="-g -O2"
6952 else
6953 CFLAGS_FOR_TARGET=$CFLAGS
6954 case " $CFLAGS " in
6955 *" -O2 "*) ;;
6956 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6957 esac
6958 case " $CFLAGS " in
6959 *" -g "* | *" -g3 "*) ;;
6960 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6961 esac
6962 fi
1c8bd6a3
PB
6963fi
6964
6965
6966if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6967 if test "x${is_cross_compiler}" = xyes; then
6968 CXXFLAGS_FOR_TARGET="-g -O2"
6969 else
6970 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6971 case " $CXXFLAGS " in
6972 *" -O2 "*) ;;
6973 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6974 esac
6975 case " $CXXFLAGS " in
6976 *" -g "* | *" -g3 "*) ;;
6977 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6978 esac
6979 fi
1c8bd6a3
PB
6980fi
6981
6982
6f57bdf6
DK
6983
6984
55ffb5ed
NN
6985# Handle --with-headers=XXX. If the value is not "yes", the contents of
6986# the named directory are copied to $(tooldir)/sys-include.
6987if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6988 if test x${is_cross_compiler} = xno ; then
6989 echo 1>&2 '***' --with-headers is only supported when cross compiling
6990 exit 1
6991 fi
6992 if test x"${with_headers}" != xyes ; then
c3a86da9 6993 x=${gcc_cv_tool_prefix}
1c710c3c 6994 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6995 fi
6996fi
6997
6998# Handle --with-libs=XXX. If the value is not "yes", the contents of
6999# the name directories are copied to $(tooldir)/lib. Multiple directories
7000# are permitted.
7001if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7002 if test x${is_cross_compiler} = xno ; then
7003 echo 1>&2 '***' --with-libs is only supported when cross compiling
7004 exit 1
7005 fi
7006 if test x"${with_libs}" != xyes ; then
7007 # Copy the libraries in reverse order, so that files in the first named
7008 # library override files in subsequent libraries.
c3a86da9 7009 x=${gcc_cv_tool_prefix}
55ffb5ed 7010 for l in ${with_libs}; do
1c710c3c 7011 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
7012 done
7013 fi
7014fi
7015
d7f09764 7016# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
7017#
7018# This is done by determining whether or not the appropriate directory
7019# is available, and by checking whether or not specific configurations
7020# have requested that this magic not happen.
1c710c3c
DJ
7021#
7022# The command line options always override the explicit settings in
6b1786aa 7023# configure.ac, and the settings in configure.ac override this magic.
e8b05380 7024#
1c710c3c 7025# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7026# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7027# --without-gnu-ld options for the configure script. Similarly, if
7028# the default is to use the included zlib and you don't want to do that,
7029# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7030
7031if test x${use_gnu_as} = x &&
7032 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7033 with_gnu_as=yes
7034 extra_host_args="$extra_host_args --with-gnu-as"
7035fi
7036
7037if test x${use_gnu_ld} = x &&
5afab7ad 7038 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7039 with_gnu_ld=yes
7040 extra_host_args="$extra_host_args --with-gnu-ld"
7041fi
7042
d7f09764
DN
7043if test x${use_included_zlib} = x &&
7044 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7045 :
7046else
7047 with_system_zlib=yes
7048 extra_host_args="$extra_host_args --with-system-zlib"
7049fi
7050
e8b05380
PB
7051# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7052# can detect this case.
7053
7054if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7055 with_newlib=yes
7056 extra_host_args="$extra_host_args --with-newlib"
7057fi
7058
55ffb5ed
NN
7059# Handle ${copy_dirs}
7060set fnord ${copy_dirs}
7061shift
7062while test $# != 0 ; do
7063 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7064 :
7065 else
7066 echo Copying $1 to $2
7067
7068 # Use the install script to create the directory and all required
7069 # parent directories.
7070 if test -d $2 ; then
7071 :
7072 else
7073 echo >config.temp
7074 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7075 fi
7076
7077 # Copy the directory, assuming we have tar.
7078 # FIXME: Should we use B in the second tar? Not all systems support it.
7079 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7080
7081 # It is the responsibility of the user to correctly adjust all
7082 # symlinks. If somebody can figure out how to handle them correctly
7083 # here, feel free to add the code.
7084
7085 echo $1 > $2/COPIED
7086 fi
7087 shift; shift
7088done
7089
e8b05380
PB
7090# Determine a target-dependent exec_prefix that the installed
7091# gcc will search in. Keep this list sorted by triplet, with
7092# the *-*-osname triplets last.
7093md_exec_prefix=
7094case "${target}" in
30b74385 7095 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7096 md_exec_prefix=/dev/env/DJDIR/bin
7097 ;;
e8b05380 7098 *-*-hpux* | \
e8b05380 7099 *-*-nto-qnx* | \
6de66370 7100 *-*-solaris2*)
e8b05380
PB
7101 md_exec_prefix=/usr/ccs/bin
7102 ;;
7103esac
7104
671aa708
NN
7105extra_arflags_for_target=
7106extra_nmflags_for_target=
7107extra_ranlibflags_for_target=
7108target_makefile_frag=/dev/null
7109case "${target}" in
58e24147
AM
7110 spu-*-*)
7111 target_makefile_frag="config/mt-spu"
7112 ;;
d896cc4d 7113 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
7114 target_makefile_frag="config/mt-sde"
7115 ;;
1ec3b87b
RS
7116 mipsisa*-*-elfoabi*)
7117 target_makefile_frag="config/mt-mips-elfoabi"
7118 ;;
08d0963a
RS
7119 mips*-*-*linux* | mips*-*-gnu*)
7120 target_makefile_frag="config/mt-mips-gnu"
7121 ;;
707f1839
SL
7122 nios2-*-elf*)
7123 target_makefile_frag="config/mt-nios2-elf"
7124 ;;
76052545
EB
7125 *-*-linux-android*)
7126 target_makefile_frag="config/mt-android"
7127 ;;
416ac4d4 7128 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7129 target_makefile_frag="config/mt-gnu"
671aa708
NN
7130 ;;
7131 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7132 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7133 # commands to handle both 32-bit and 64-bit objects. These flags are
7134 # harmless if we're using GNU nm or ar.
7135 extra_arflags_for_target=" -X32_64"
7136 extra_nmflags_for_target=" -B -X32_64"
7137 ;;
671aa708
NN
7138esac
7139
7140alphaieee_frag=/dev/null
7141case $target in
7142 alpha*-*-*)
7143 # This just makes sure to use the -mieee option to build target libs.
7144 # This should probably be set individually by each library.
7145 alphaieee_frag="config/mt-alphaieee"
7146 ;;
7147esac
7148
7149# If --enable-target-optspace always use -Os instead of -O2 to build
7150# the target libraries, similarly if it is not specified, use -Os
7151# on selected platforms.
7152ospace_frag=/dev/null
7153case "${enable_target_optspace}:${target}" in
7154 yes:*)
7155 ospace_frag="config/mt-ospace"
7156 ;;
7157 :d30v-*)
7158 ospace_frag="config/mt-d30v"
7159 ;;
d9063947 7160 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
7161 ospace_frag="config/mt-ospace"
7162 ;;
7163 no:* | :*)
7164 ;;
7165 *)
7166 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7167 ;;
7168esac
7169
671aa708
NN
7170# Some systems (e.g., one of the i386-aix systems the gas testers are
7171# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7172tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7173build_tooldir=${tooldir}
7174
671aa708
NN
7175# Create a .gdbinit file which runs the one in srcdir
7176# and tells GDB to look there for source files.
7177
7178if test -r ${srcdir}/.gdbinit ; then
7179 case ${srcdir} in
7180 .) ;;
7181 *) cat > ./.gdbinit <<EOF
7182# ${NO_EDIT}
7183dir ${srcdir}
7184dir .
7185source ${srcdir}/.gdbinit
7186EOF
7187 ;;
7188 esac
7189fi
7190
671aa708
NN
7191# Make sure that the compiler is able to generate an executable. If it
7192# can't, we are probably in trouble. We don't care whether we can run the
7193# executable--we might be using a cross compiler--we only care whether it
7194# can be created. At this point the main configure script has set CC.
7195we_are_ok=no
7196echo "int main () { return 0; }" > conftest.c
7197${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7198if test $? = 0 ; then
7199 if test -s conftest || test -s conftest.exe ; then
7200 we_are_ok=yes
7201 fi
1c710c3c 7202fi
671aa708
NN
7203case $we_are_ok in
7204 no)
7205 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7206 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7207 rm -f conftest*
7208 exit 1
7209 ;;
7210esac
7211rm -f conftest*
7212
d89f0ad6 7213# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7214case "${host}" in
7215 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7216 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7217 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7218 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7219esac
7220
d89f0ad6
AL
7221# On systems where the dynamic library environment variable is PATH,
7222# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7223# built executables to PATH.
7224if test "$RPATH_ENVVAR" = PATH; then
7225 GCC_SHLIB_SUBDIR=/shlib
7226else
7227 GCC_SHLIB_SUBDIR=
7228fi
7229
beeda1d9
JJ
7230# Adjust the toplevel makefile according to whether bootstrap was selected.
7231case $enable_bootstrap in
7232 yes)
7233 bootstrap_suffix=bootstrap
7234 BUILD_CONFIG=bootstrap-debug
7235 ;;
7236 no)
7237 bootstrap_suffix=no-bootstrap
7238 BUILD_CONFIG=
7239 ;;
7240esac
7241
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7243$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7244
7245
7246# Check whether --with-build-config was given.
7247if test "${with_build_config+set}" = set; then :
7248 withval=$with_build_config; case $with_build_config in
7249 yes) with_build_config= ;;
7250 no) with_build_config= BUILD_CONFIG= ;;
7251 esac
7252fi
7253
7254
7255if test "x${with_build_config}" != x; then
7256 BUILD_CONFIG=$with_build_config
7257else
7258 case $BUILD_CONFIG in
7259 bootstrap-debug)
7260 if echo "int f (void) { return 0; }" > conftest.c &&
7261 ${CC} -c conftest.c &&
7262 mv conftest.o conftest.o.g0 &&
7263 ${CC} -c -g conftest.c &&
7264 mv conftest.o conftest.o.g &&
7265 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7266 :
7267 else
7268 BUILD_CONFIG=
7269 fi
7270 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7271 ;;
7272 esac
7273fi
7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7275$as_echo "$BUILD_CONFIG" >&6; }
7276
7277
7278# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7280$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7281# Check whether --enable-vtable-verify was given.
7282if test "${enable_vtable_verify+set}" = set; then :
7283 enableval=$enable_vtable_verify; case "$enableval" in
7284 yes) enable_vtable_verify=yes ;;
7285 no) enable_vtable_verify=no ;;
7286 *) enable_vtable_verify=no;;
7287 esac
7288else
7289 enable_vtable_verify=no
7290fi
7291
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7293$as_echo "$enable_vtable_verify" >&6; }
7294
671aa708
NN
7295# Record target_configdirs and the configure arguments for target and
7296# build configuration in Makefile.
7297target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7298build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7299bootstrap_fixincludes=no
671aa708 7300
ad1e5170
JR
7301# If we are building libgomp, bootstrap it.
7302if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7303 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7304fi
7305
beeda1d9
JJ
7306# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7307# or bootstrap-ubsan, bootstrap it.
7308if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7309 case "$BUILD_CONFIG" in
7310 *bootstrap-asan* | *bootstrap-ubsan* )
7311 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7312 bootstrap_fixincludes=yes
beeda1d9
JJ
7313 ;;
7314 esac
ac8701fe
L
7315fi
7316
beeda1d9
JJ
7317# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7318if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7319 test "$enable_vtable_verify" != no; then
2077db1b
CT
7320 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7321fi
7322
671aa708
NN
7323# Determine whether gdb needs tk/tcl or not.
7324# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7325# and in that case we want gdb to be built without tk. Ugh!
7326# In fact I believe gdb is the *only* package directly dependent on tk,
7327# so we should be able to put the 'maybe's in unconditionally and
7328# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7329# 100% sure that that's safe though.
e914a571 7330
b4f96efe 7331gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7332case "$enable_gdbtk" in
7333 no)
7334 GDB_TK="" ;;
e914a571
AC
7335 yes)
7336 GDB_TK="${gdb_tk}" ;;
671aa708 7337 *)
e914a571
AC
7338 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7339 # distro. Eventually someone will fix this and move Insight, nee
7340 # gdbtk to a separate directory.
7341 if test -d ${srcdir}/gdb/gdbtk ; then
7342 GDB_TK="${gdb_tk}"
7343 else
7344 GDB_TK=""
7345 fi
7346 ;;
671aa708 7347esac
ef9db8d5
DJ
7348CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7349INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7350
f9d09df0
TT
7351# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
7352# else does, only include them if one of these is built. The Makefile
7353# provides the ordering, so it's enough here to add to the list.
7354case " ${configdirs} " in
7355 *\ gdb\ *)
7356 configdirs="${configdirs} gnulib gdbsupport"
7357 ;;
7358 *\ gdbserver\ *)
7359 configdirs="${configdirs} gnulib gdbsupport"
7360 ;;
7361esac
98e5be21 7362
60975492 7363# Strip out unwanted targets.
8b87bb96
NN
7364
7365# While at that, we remove Makefiles if we were started for recursive
7366# configuration, so that the top-level Makefile reconfigures them,
7367# like we used to do when configure itself was recursive.
8b87bb96 7368
3e54529c
RW
7369# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7370# but now we're fixing up the Makefile ourselves with the additional
7371# commands passed to AC_CONFIG_FILES. Use separate variables
7372# extrasub-{build,host,target} not because there is any reason to split
7373# the substitutions up that way, but only to remain below the limit of
7374# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
7375
7376# Do not nest @if/@endif or @unless/@endunless pairs, because
7377# configure will not warn you at all.
8b87bb96 7378
79cd2b23
RW
7379case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7380 yes:yes:*\ gold\ *:*,c++,*) ;;
7381 yes:yes:*\ gold\ *:*)
22e05272 7382 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
7383 ;;
7384esac
7385
3e54529c 7386extrasub_build=
23f6b2f9 7387for module in ${build_configdirs} ; do
5607edfd
PB
7388 if test -z "${no_recursion}" \
7389 && test -f ${build_subdir}/${module}/Makefile; then
7390 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7391 rm -f ${build_subdir}/${module}/Makefile
7392 fi
3e54529c 7393 extrasub_build="$extrasub_build
5607edfd
PB
7394/^@if build-$module\$/d
7395/^@endif build-$module\$/d
da34ca3f 7396/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 7397/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
7398/^@endif build-$module-$bootstrap_suffix\$/d
7399/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 7400done
3e54529c 7401extrasub_host=
5607edfd 7402for module in ${configdirs} ; do
a6fbc1e2 7403 if test -z "${no_recursion}"; then
f063a9ed 7404 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7405 if test -f ${file}; then
7406 echo 1>&2 "*** removing ${file} to force reconfigure"
7407 rm -f ${file}
7408 fi
7409 done
5607edfd 7410 fi
9e1c8fc1
JJ
7411 case ${module},${bootstrap_fixincludes} in
7412 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7413 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7414 esac
3e54529c 7415 extrasub_host="$extrasub_host
5607edfd
PB
7416/^@if $module\$/d
7417/^@endif $module\$/d
da34ca3f 7418/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 7419/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
7420/^@endif $module-$host_bootstrap_suffix\$/d
7421/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 7422done
3e54529c 7423extrasub_target=
5607edfd
PB
7424for module in ${target_configdirs} ; do
7425 if test -z "${no_recursion}" \
7426 && test -f ${target_subdir}/${module}/Makefile; then
7427 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7428 rm -f ${target_subdir}/${module}/Makefile
7429 fi
00020c16
ILT
7430
7431 # We only bootstrap target libraries listed in bootstrap_target_libs.
7432 case $bootstrap_target_libs in
7433 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7434 *) target_bootstrap_suffix=no-bootstrap ;;
7435 esac
7436
3e54529c 7437 extrasub_target="$extrasub_target
5607edfd
PB
7438/^@if target-$module\$/d
7439/^@endif target-$module\$/d
da34ca3f 7440/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 7441/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
7442/^@endif target-$module-$target_bootstrap_suffix\$/d
7443/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7444done
7445
3e54529c
RW
7446# Do the final fixup along with target modules.
7447extrasub_target="$extrasub_target
da34ca3f
AO
7448/^@if /,/^@endif /d
7449/^@unless /d
7450/^@endunless /d"
671aa708
NN
7451
7452# Create the serialization dependencies. This uses a temporary file.
7453
5213506e
RW
7454# Check whether --enable-serial-configure was given.
7455if test "${enable_serial_configure+set}" = set; then :
7456 enableval=$enable_serial_configure;
7457fi
ade82b16
AO
7458
7459
bf1d3e81
NN
7460case ${enable_serial_configure} in
7461 yes)
7462 enable_serial_build_configure=yes
7463 enable_serial_host_configure=yes
7464 enable_serial_target_configure=yes
7465 ;;
7466esac
7467
671aa708
NN
7468# These force 'configure's to be done one at a time, to avoid problems
7469# with contention over a shared config.cache.
7470rm -f serdep.tmp
ade82b16 7471echo '# serdep.tmp' > serdep.tmp
671aa708 7472olditem=
bf1d3e81 7473test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7474for item in ${build_configdirs} ; do
7475 case ${olditem} in
7476 "") ;;
ade82b16 7477 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7478 esac
7479 olditem=${item}
7480done
7481olditem=
bf1d3e81 7482test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7483for item in ${configdirs} ; do
7484 case ${olditem} in
7485 "") ;;
ade82b16 7486 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7487 esac
7488 olditem=${item}
7489done
7490olditem=
bf1d3e81 7491test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7492for item in ${target_configdirs} ; do
7493 case ${olditem} in
7494 "") ;;
ade82b16 7495 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7496 esac
7497 olditem=${item}
7498done
7499serialization_dependencies=serdep.tmp
7500
7501
ade82b16 7502# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7503# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7504# might not want to pass down to subconfigures. The exception being
7505# --cache-file=/dev/null, which is used to turn off the use of cache
7506# files altogether, and which should be passed on to subconfigures.
7507# Also strip program-prefix, program-suffix, and program-transform-name,
7508# so that we can pass down a consistent program-transform-name.
1c710c3c 7509baseargs=
29a63921 7510tbaseargs=
1c710c3c
DJ
7511keep_next=no
7512skip_next=no
7513eval "set -- $ac_configure_args"
44bfc3ac
DJ
7514for ac_arg
7515do
1c710c3c
DJ
7516 if test X"$skip_next" = X"yes"; then
7517 skip_next=no
7518 continue
7519 fi
7520 if test X"$keep_next" = X"yes"; then
7521 case $ac_arg in
7522 *\'*)
7523 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7524 esac
7525 baseargs="$baseargs '$ac_arg'"
29a63921 7526 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7527 keep_next=no
7528 continue
7529 fi
7530
7531 # Handle separated arguments. Based on the logic generated by
7532 # autoconf 2.59.
7533 case $ac_arg in
7534 *=* | --config-cache | -C | -disable-* | --disable-* \
7535 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7536 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7537 | -with-* | --with-* | -without-* | --without-* | --x)
7538 separate_arg=no
7539 ;;
7540 -*)
7541 separate_arg=yes
7542 ;;
7543 *)
7544 separate_arg=no
7545 ;;
7546 esac
7547
29a63921
AO
7548 skip_targ=no
7549 case $ac_arg in
7550
7551 --with-* | --without-*)
7552 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7553
7554 case $libopt in
7555 *[-_]include)
7556 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7557 ;;
7558 *[-_]lib)
7559 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7560 ;;
7561 *)
7562 lib=$libopt
7563 ;;
7564 esac
7565
7566
7567 case $lib in
4a9bb2aa 7568 mpc | mpfr | gmp | isl)
29a63921
AO
7569 # If we're processing --with-$lib, --with-$lib-include or
7570 # --with-$lib-lib, for one of the libs above, and target is
7571 # different from host, don't pass the current argument to any
7572 # target library's configure.
7573 if test x$is_cross_compiler = xyes; then
7574 skip_targ=yes
7575 fi
7576 ;;
7577 esac
7578 ;;
7579 esac
7580
1c710c3c 7581 case "$ac_arg" in
f1a036e4
NC
7582 --cache-file=/dev/null | \
7583 -cache-file=/dev/null )
7584 # Handled here to avoid the test to skip args below.
7585 baseargs="$baseargs '$ac_arg'"
29a63921 7586 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7587 # Assert: $separate_arg should always be no.
7588 keep_next=$separate_arg
7589 ;;
1c710c3c
DJ
7590 --no*)
7591 continue
7592 ;;
7593 --c* | \
7594 --sr* | \
7595 --ho* | \
7596 --bu* | \
7597 --t* | \
7598 --program-* | \
7599 -cache_file* | \
7600 -srcdir* | \
7601 -host* | \
7602 -build* | \
7603 -target* | \
7604 -program-prefix* | \
7605 -program-suffix* | \
7606 -program-transform-name* )
7607 skip_next=$separate_arg
7608 continue
7609 ;;
7610 -*)
7611 # An option. Add it.
7612 case $ac_arg in
7613 *\'*)
7614 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7615 esac
7616 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7617 if test X"$skip_targ" = Xno; then
7618 tbaseargs="$tbaseargs '$ac_arg'"
7619 fi
1c710c3c
DJ
7620 keep_next=$separate_arg
7621 ;;
7622 *)
7623 # Either a variable assignment, or a nonopt (triplet). Don't
7624 # pass it down; let the Makefile handle this.
7625 continue
7626 ;;
7627 esac
7628done
7629# Remove the initial space we just introduced and, as these will be
7630# expanded by make, quote '$'.
7631baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7632
43bb47c2
DJ
7633# Add in --program-transform-name, after --program-prefix and
7634# --program-suffix have been applied to it. Autoconf has already
7635# doubled dollar signs and backslashes in program_transform_name; we want
7636# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7637# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7638# Also, because we want to override the logic in subdir configure scripts to
7639# choose program_transform_name, replace any s,x,x, with s,y,y,.
7640sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7641${program_transform_name}
7642EOF_SED
7643gcc_transform_name=`cat conftestsed.out`
7644rm -f conftestsed.out
7645baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7646tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7647if test "$silent" = yes; then
7648 baseargs="$baseargs --silent"
29a63921 7649 tbaseargs="$tbaseargs --silent"
d9acb717 7650fi
0115d4a3 7651baseargs="$baseargs --disable-option-checking"
29a63921 7652tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7653
ffedf511
RW
7654# Record and document user additions to sub configure arguments.
7655
7656
7657
7658
671aa708
NN
7659# For the build-side libraries, we just need to pretend we're native,
7660# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7661# desired. We can't even use the same cache file for all build-side
7662# libraries, as they're compiled differently; some with C, some with
7663# C++ or with different feature-enabling options.
7664build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7665
7666# For host modules, accept cache file option, or specification as blank.
7667case "${cache_file}" in
7668"") # empty
7669 cache_file_option="" ;;
7670/* | [A-Za-z]:[\\/]* ) # absolute path
7671 cache_file_option="--cache-file=${cache_file}" ;;
7672*) # relative path
7673 cache_file_option="--cache-file=../${cache_file}" ;;
7674esac
7675
09438bde
NN
7676# Host dirs don't like to share a cache file either, horribly enough.
7677# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7678host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7679
29a63921 7680target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7681
7682# Passing a --with-cross-host argument lets the target libraries know
7683# whether they are being built with a cross-compiler or being built
7684# native. However, it would be better to use other mechanisms to make the
7685# sorts of decisions they want to make on this basis. Please consider
7686# this option to be deprecated. FIXME.
7687if test x${is_cross_compiler} = xyes ; then
1c710c3c 7688 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7689fi
7690
79e0604d
FXC
7691# Special user-friendly check for native x86_64-linux build, if
7692# multilib is not explicitly enabled.
7693case "$target:$have_compiler:$host:$target:$enable_multilib" in
7694 x86_64-*linux*:yes:$build:$build:)
e640447c 7695 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7696 dev64=no
7697 echo "int main () { return 0; }" > conftest.c
7698 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7699 if test $? = 0 ; then
7700 if test -s conftest || test -s conftest.exe ; then
7701 dev64=yes
7702 fi
7703 fi
7704 rm -f conftest*
7705 if test x${dev64} != xyes ; then
22e05272 7706 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
7707 fi
7708 ;;
7709esac
7710
dc683a3f
RW
7711# Default to --enable-multilib.
7712if test x${enable_multilib} = x ; then
671aa708 7713 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7714fi
671aa708
NN
7715
7716# Pass --with-newlib if appropriate. Note that target_configdirs has
7717# changed from the earlier setting of with_newlib.
7718if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7719 target_configargs="--with-newlib ${target_configargs}"
7720fi
7721
6b9eb62c
NN
7722# Different target subdirs use different values of certain variables
7723# (notably CXX). Worse, multilibs use *lots* of different values.
7724# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7725# it doesn't automatically accept command-line overrides of them.
7726# This means it's not safe for target subdirs to share a cache file,
7727# which is disgusting, but there you have it. Hopefully this can be
7728# fixed in future. It's still worthwhile to use a cache file for each
7729# directory. I think.
7730
bebcd931
MS
7731# Pass the appropriate --build, --host, --target and --cache-file arguments.
7732# We need to pass --target, as newer autoconf's requires consistency
7733# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7734target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7735
671aa708
NN
7736FLAGS_FOR_TARGET=
7737case " $target_configdirs " in
7738 *" newlib "*)
7739 case " $target_configargs " in
7740 *" --with-newlib "*)
7741 case "$target" in
5d571eaa 7742 *-cygwin*)
443e6238 7743 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7744 ;;
671aa708
NN
7745 esac
7746
7747 # If we're not building GCC, don't discard standard headers.
7748 if test -d ${srcdir}/gcc; then
7749 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7750
7751 if test "${build}" != "${host}"; then
7752 # On Canadian crosses, CC_FOR_TARGET will have already been set
7753 # by `configure', so we won't have an opportunity to add -Bgcc/
7754 # to it. This is right: we don't want to search that directory
7755 # for binaries, but we want the header files in there, so add
7756 # them explicitly.
0463992b 7757 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7758
7759 # Someone might think of using the pre-installed headers on
7760 # Canadian crosses, in case the installed compiler is not fully
7761 # compatible with the compiler being built. In this case, it
7762 # would be better to flag an error than risking having
7763 # incompatible object files being constructed. We can't
7764 # guarantee that an error will be flagged, but let's hope the
7765 # compiler will do it, when presented with incompatible header
7766 # files.
7767 fi
7768 fi
7769
7770 case "${target}-${is_cross_compiler}" in
f2a0e225 7771 i[3456789]86-*-linux*-no)
671aa708
NN
7772 # Here host == target, so we don't need to build gcc,
7773 # so we don't want to discard standard headers.
7774 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7775 ;;
7776 *)
7777 # If we're building newlib, use its generic headers last, but search
7778 # for any libc-related directories first (so make it the last -B
7779 # switch).
7780 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
7781
7782 # If we're building libgloss, find the startup file, simulator library
7783 # and linker script.
7784 case " $target_configdirs " in
7785 *" libgloss "*)
7786 # Look for startup file, simulator library and maybe linker script.
7787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7788 # Look for libnosys.a in case the target needs it.
7789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7790 # Most targets have the linker script in the source directory.
7791 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7792 ;;
7793 esac
671aa708
NN
7794 ;;
7795 esac
7796 ;;
7797 esac
7798 ;;
7799esac
5d571eaa 7800
b91f0a41 7801case "$target" in
5d571eaa
OS
7802 x86_64-*mingw* | *-w64-mingw*)
7803 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7804 # however, use a symlink named 'mingw' in ${prefix} .
7805 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7806 ;;
7807 *-mingw*)
7808 # MinGW can't be handled as Cygwin above since it does not use newlib.
7809 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'
7810 ;;
b91f0a41 7811esac
671aa708 7812
6691a79e
ME
7813# Allow the user to override the flags for
7814# our build compiler if desired.
f019adc1
MF
7815if test x"${build}" = x"${host}" ; then
7816 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7817 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7818 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7819fi
6691a79e 7820
671aa708
NN
7821# On Canadian crosses, we'll be searching the right directories for
7822# the previously-installed cross compiler, so don't bother to add
7823# flags for directories within the install tree of the compiler
7824# being built; programs in there won't even run.
7825if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7826 # Search for pre-installed headers if nothing else fits.
9124bc53 7827 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
7828fi
7829
7830if test "x${use_gnu_ld}" = x &&
7831 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7832 # Arrange for us to find uninstalled linker scripts.
215c351a 7833 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7834fi
7835
e88a2c09
DD
7836# Search for other target-specific linker scripts and such.
7837case "${target}" in
3e19841a
PB
7838 mep*)
7839 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7840 ;;
e88a2c09
DD
7841esac
7842
671aa708 7843# Makefile fragments.
7b61653a
PE
7844for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7845do
7846 eval fragval=\$$frag
7847 if test $fragval != /dev/null; then
7848 eval $frag=${srcdir}/$fragval
7849 fi
7850done
671aa708
NN
7851
7852
7853
7854
7855
7856# Miscellanea: directories, flags, etc.
7857
7858
7859
7860
7861
7862
7863
d89f0ad6 7864
23f6b2f9 7865# Build module lists & subconfigure args.
671aa708
NN
7866
7867
7868
2abefe3d
PB
7869# Host module lists & subconfigure args.
7870
7871
7872
aae29963 7873
2abefe3d
PB
7874# Target module lists & subconfigure args.
7875
7876
7877
7878# Build tools.
7879
7880
7881
0999159b
PB
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
b4c522fa 7895
c7c99407 7896
2abefe3d
PB
7897# Generate default definitions for YACC, M4, LEX and other programs that run
7898# on the build machine. These are used if the Makefile can't locate these
7899# programs in objdir.
7900MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7901
7902for ac_prog in 'bison -y' byacc yacc
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_YACC+:} false; then :
5213506e 7909 $as_echo_n "(cached) " >&6
2abefe3d
PB
7910else
7911 if test -n "$YACC"; then
7912 ac_cv_prog_YACC="$YACC" # 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_YACC="$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 7931YACC=$ac_cv_prog_YACC
2abefe3d 7932if test -n "$YACC"; then
5213506e
RW
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7934$as_echo "$YACC" >&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 "$YACC" && break
2abefe3d
PB
7942done
7943test -n "$YACC" || YACC="$MISSING bison -y"
7944
7945case " $build_configdirs " in
7946 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7947esac
7948
7949for ac_prog in bison
7950do
1c710c3c 7951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7952set dummy $ac_prog; ac_word=$2
5213506e
RW
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7954$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7955if ${ac_cv_prog_BISON+:} false; then :
5213506e 7956 $as_echo_n "(cached) " >&6
2abefe3d
PB
7957else
7958 if test -n "$BISON"; then
7959 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7960else
1c710c3c
DJ
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
5213506e 7966 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 7968 ac_cv_prog_BISON="$ac_prog"
5213506e 7969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7970 break 2
7971 fi
7972done
5213506e
RW
7973 done
7974IFS=$as_save_IFS
1c710c3c 7975
2abefe3d
PB
7976fi
7977fi
1c710c3c 7978BISON=$ac_cv_prog_BISON
2abefe3d 7979if test -n "$BISON"; then
5213506e
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7981$as_echo "$BISON" >&6; }
2abefe3d 7982else
5213506e
RW
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984$as_echo "no" >&6; }
2abefe3d
PB
7985fi
7986
5213506e 7987
1c710c3c 7988 test -n "$BISON" && break
2abefe3d
PB
7989done
7990test -n "$BISON" || BISON="$MISSING bison"
7991
7992case " $build_configdirs " in
7993 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7994esac
7995
7996for ac_prog in gm4 gnum4 m4
7997do
1c710c3c 7998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7999set dummy $ac_prog; ac_word=$2
5213506e
RW
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8002if ${ac_cv_prog_M4+:} false; then :
5213506e 8003 $as_echo_n "(cached) " >&6
2abefe3d
PB
8004else
8005 if test -n "$M4"; then
8006 ac_cv_prog_M4="$M4" # Let the user override the test.
8007else
1c710c3c
DJ
8008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009for as_dir in $PATH
8010do
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
5213506e 8013 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8015 ac_cv_prog_M4="$ac_prog"
5213506e 8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8017 break 2
8018 fi
8019done
5213506e
RW
8020 done
8021IFS=$as_save_IFS
1c710c3c 8022
2abefe3d
PB
8023fi
8024fi
1c710c3c 8025M4=$ac_cv_prog_M4
2abefe3d 8026if test -n "$M4"; then
5213506e
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8028$as_echo "$M4" >&6; }
2abefe3d 8029else
5213506e
RW
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031$as_echo "no" >&6; }
2abefe3d
PB
8032fi
8033
5213506e 8034
1c710c3c 8035 test -n "$M4" && break
2abefe3d
PB
8036done
8037test -n "$M4" || M4="$MISSING m4"
8038
8039case " $build_configdirs " in
8040 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8041esac
8042
8043for ac_prog in flex lex
8044do
1c710c3c 8045 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8046set dummy $ac_prog; ac_word=$2
5213506e
RW
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8049if ${ac_cv_prog_LEX+:} false; then :
5213506e 8050 $as_echo_n "(cached) " >&6
2abefe3d
PB
8051else
8052 if test -n "$LEX"; then
8053 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8054else
1c710c3c
DJ
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
5213506e 8060 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8062 ac_cv_prog_LEX="$ac_prog"
5213506e 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8064 break 2
8065 fi
8066done
5213506e
RW
8067 done
8068IFS=$as_save_IFS
1c710c3c 8069
2abefe3d
PB
8070fi
8071fi
1c710c3c 8072LEX=$ac_cv_prog_LEX
2abefe3d 8073if test -n "$LEX"; then
5213506e
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8075$as_echo "$LEX" >&6; }
2abefe3d 8076else
5213506e
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
2abefe3d
PB
8079fi
8080
5213506e 8081
1c710c3c 8082 test -n "$LEX" && break
2abefe3d
PB
8083done
8084test -n "$LEX" || LEX="$MISSING flex"
8085
8086case " $build_configdirs " in
8087 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8088 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8089esac
8090
8091for ac_prog in flex
8092do
1c710c3c 8093 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8094set dummy $ac_prog; ac_word=$2
5213506e
RW
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8097if ${ac_cv_prog_FLEX+:} false; then :
5213506e 8098 $as_echo_n "(cached) " >&6
2abefe3d
PB
8099else
8100 if test -n "$FLEX"; then
8101 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8102else
1c710c3c
DJ
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
5213506e 8108 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8110 ac_cv_prog_FLEX="$ac_prog"
5213506e 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8112 break 2
8113 fi
8114done
5213506e
RW
8115 done
8116IFS=$as_save_IFS
1c710c3c 8117
2abefe3d
PB
8118fi
8119fi
1c710c3c 8120FLEX=$ac_cv_prog_FLEX
2abefe3d 8121if test -n "$FLEX"; then
5213506e
RW
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8123$as_echo "$FLEX" >&6; }
2abefe3d 8124else
5213506e
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
2abefe3d
PB
8127fi
8128
5213506e 8129
1c710c3c 8130 test -n "$FLEX" && break
2abefe3d
PB
8131done
8132test -n "$FLEX" || FLEX="$MISSING flex"
8133
8134case " $build_configdirs " in
8135 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8136esac
8137
8138for ac_prog in makeinfo
8139do
1c710c3c 8140 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8141set dummy $ac_prog; ac_word=$2
5213506e
RW
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8144if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 8145 $as_echo_n "(cached) " >&6
2abefe3d
PB
8146else
8147 if test -n "$MAKEINFO"; then
8148 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8149else
1c710c3c
DJ
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
5213506e 8155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8157 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8159 break 2
8160 fi
8161done
5213506e
RW
8162 done
8163IFS=$as_save_IFS
1c710c3c 8164
2abefe3d
PB
8165fi
8166fi
1c710c3c 8167MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8168if test -n "$MAKEINFO"; then
5213506e
RW
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8170$as_echo "$MAKEINFO" >&6; }
2abefe3d 8171else
5213506e
RW
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
2abefe3d
PB
8174fi
8175
5213506e 8176
1c710c3c 8177 test -n "$MAKEINFO" && break
2abefe3d
PB
8178done
8179test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8180
8181case " $build_configdirs " in
8182 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8183 *)
8184
d18ff35a 8185 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8186 # higher, else we use the "missing" dummy.
8187 if ${MAKEINFO} --version \
d18ff35a 8188 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8189 :
8190 else
8191 MAKEINFO="$MISSING makeinfo"
8192 fi
8193 ;;
8194
8195esac
671aa708 8196
2abefe3d 8197# FIXME: expect and dejagnu may become build tools?
671aa708 8198
2abefe3d
PB
8199for ac_prog in expect
8200do
1c710c3c 8201 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8202set dummy $ac_prog; ac_word=$2
5213506e
RW
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8205if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 8206 $as_echo_n "(cached) " >&6
2abefe3d
PB
8207else
8208 if test -n "$EXPECT"; then
8209 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8210else
1c710c3c
DJ
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
5213506e 8216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8218 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8220 break 2
8221 fi
8222done
5213506e
RW
8223 done
8224IFS=$as_save_IFS
1c710c3c 8225
2abefe3d
PB
8226fi
8227fi
1c710c3c 8228EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8229if test -n "$EXPECT"; then
5213506e
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8231$as_echo "$EXPECT" >&6; }
2abefe3d 8232else
5213506e
RW
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
2abefe3d 8235fi
671aa708 8236
5213506e 8237
1c710c3c 8238 test -n "$EXPECT" && break
2abefe3d
PB
8239done
8240test -n "$EXPECT" || EXPECT="expect"
671aa708 8241
2abefe3d
PB
8242case " $configdirs " in
8243 *" expect "*)
8244 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8245 ;;
8246esac
671aa708 8247
2abefe3d
PB
8248for ac_prog in runtest
8249do
1c710c3c 8250 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8251set dummy $ac_prog; ac_word=$2
5213506e
RW
8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8253$as_echo_n "checking for $ac_word... " >&6; }
22e05272 8254if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 8255 $as_echo_n "(cached) " >&6
2abefe3d
PB
8256else
8257 if test -n "$RUNTEST"; then
8258 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8259else
1c710c3c
DJ
8260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261for as_dir in $PATH
8262do
8263 IFS=$as_save_IFS
8264 test -z "$as_dir" && as_dir=.
5213506e 8265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 8266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 8267 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8269 break 2
8270 fi
8271done
5213506e
RW
8272 done
8273IFS=$as_save_IFS
1c710c3c 8274
2abefe3d
PB
8275fi
8276fi
1c710c3c 8277RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8278if test -n "$RUNTEST"; then
5213506e
RW
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8280$as_echo "$RUNTEST" >&6; }
2abefe3d 8281else
5213506e
RW
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283$as_echo "no" >&6; }
2abefe3d 8284fi
671aa708 8285
5213506e 8286
1c710c3c 8287 test -n "$RUNTEST" && break
2abefe3d
PB
8288done
8289test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8290
2abefe3d
PB
8291case " $configdirs " in
8292 *" dejagnu "*)
c394e891 8293 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8294 ;;
8295esac
671aa708
NN
8296
8297
671aa708 8298# Host tools.
ca9f4b81
AO
8299ncn_tool_prefix=
8300test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8301ncn_target_tool_prefix=
8302test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8303
278a7a38
AO
8304
8305
8306if test -n "$AR"; then
8307 ac_cv_prog_AR=$AR
8308elif test -n "$ac_cv_prog_AR"; then
8309 AR=$ac_cv_prog_AR
8310fi
8311
8312if test -n "$ac_cv_prog_AR"; then
8313 for ncn_progname in ar; 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_AR+:} false; then :
5213506e 8319 $as_echo_n "(cached) " >&6
278a7a38
AO
8320else
8321 if test -n "$AR"; then
8322 ac_cv_prog_AR="$AR" # 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_AR="${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
8341AR=$ac_cv_prog_AR
8342if test -n "$AR"; then
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8344$as_echo "$AR" >&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 ar; 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_AR+:} false; then :
5213506e 8361 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8362else
8363 if test -n "$AR"; then
8364 ac_cv_prog_AR="$AR" # Let the user override the test.
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_AR="${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 8383AR=$ac_cv_prog_AR
ca9f4b81 8384if test -n "$AR"; then
5213506e
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8386$as_echo "$AR" >&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_AR" && 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_AR+:} false; then :
5213506e 8400 $as_echo_n "(cached) " >&6
ca9f4b81 8401else
2693c0b0 8402 if test -n "$AR"; then
af71363e
AS
8403 ac_cv_prog_AR="$AR" # Let the user override the test.
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_AR="${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 8422AR=$ac_cv_prog_AR
2693c0b0 8423if test -n "$AR"; then
5213506e
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8425$as_echo "$AR" >&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_AR" && break
8434done
8435
8436if test -z "$ac_cv_prog_AR" ; then
8437 set dummy ar
8438 if test $build = $host ; then
8439 AR="$2"
ca9f4b81 8440 else
2693c0b0 8441 AR="${ncn_tool_prefix}$2"
ca9f4b81 8442 fi
ca9f4b81
AO
8443fi
8444
278a7a38
AO
8445
8446
8447if test -n "$AS"; then
8448 ac_cv_prog_AS=$AS
8449elif test -n "$ac_cv_prog_AS"; then
8450 AS=$ac_cv_prog_AS
8451fi
8452
8453if test -n "$ac_cv_prog_AS"; then
8454 for ncn_progname in as; 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_AS+:} false; then :
5213506e 8460 $as_echo_n "(cached) " >&6
278a7a38
AO
8461else
8462 if test -n "$AS"; then
8463 ac_cv_prog_AS="$AS" # 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_AS="${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
8482AS=$ac_cv_prog_AS
8483if test -n "$AS"; then
5213506e
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8485$as_echo "$AS" >&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 as; 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_AS+:} false; then :
5213506e 8502 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8503else
8504 if test -n "$AS"; then
8505 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 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_AS="${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 8524AS=$ac_cv_prog_AS
ca9f4b81 8525if test -n "$AS"; then
5213506e
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8527$as_echo "$AS" >&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_AS" && 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_AS+:} false; then :
5213506e 8541 $as_echo_n "(cached) " >&6
ca9f4b81 8542else
2693c0b0
PB
8543 if test -n "$AS"; then
8544 ac_cv_prog_AS="$AS" # 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_AS="${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 8563AS=$ac_cv_prog_AS
2693c0b0 8564if test -n "$AS"; then
5213506e
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8566$as_echo "$AS" >&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_AS" && break
8575done
8576
8577if test -z "$ac_cv_prog_AS" ; then
8578 set dummy as
8579 if test $build = $host ; then
8580 AS="$2"
ca9f4b81 8581 else
2693c0b0 8582 AS="${ncn_tool_prefix}$2"
ca9f4b81 8583 fi
ca9f4b81
AO
8584fi
8585
278a7a38
AO
8586
8587
8588if test -n "$DLLTOOL"; then
8589 ac_cv_prog_DLLTOOL=$DLLTOOL
8590elif test -n "$ac_cv_prog_DLLTOOL"; then
8591 DLLTOOL=$ac_cv_prog_DLLTOOL
8592fi
8593
8594if test -n "$ac_cv_prog_DLLTOOL"; then
8595 for ncn_progname in dlltool; 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_DLLTOOL+:} false; then :
5213506e 8601 $as_echo_n "(cached) " >&6
278a7a38
AO
8602else
8603 if test -n "$DLLTOOL"; then
8604 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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
8623DLLTOOL=$ac_cv_prog_DLLTOOL
8624if test -n "$DLLTOOL"; then
5213506e
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8626$as_echo "$DLLTOOL" >&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 dlltool; 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_DLLTOOL+:} false; then :
5213506e 8643 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8644else
8645 if test -n "$DLLTOOL"; then
8646 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${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 8665DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8666if test -n "$DLLTOOL"; then
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8668$as_echo "$DLLTOOL" >&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_DLLTOOL" && 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_DLLTOOL+:} false; then :
5213506e 8682 $as_echo_n "(cached) " >&6
ca9f4b81 8683else
2693c0b0
PB
8684 if test -n "$DLLTOOL"; then
8685 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 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_DLLTOOL="${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 8704DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8705if test -n "$DLLTOOL"; then
5213506e
RW
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8707$as_echo "$DLLTOOL" >&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_DLLTOOL" && break
8716done
8717
8718if test -z "$ac_cv_prog_DLLTOOL" ; then
8719 set dummy dlltool
8720 if test $build = $host ; then
8721 DLLTOOL="$2"
ca9f4b81 8722 else
2693c0b0 8723 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8724 fi
ca9f4b81
AO
8725fi
8726
278a7a38
AO
8727
8728
c7c99407
IS
8729if test -n "$DSYMUTIL"; then
8730 ac_cv_prog_DSYMUTIL=$DSYMUTIL
8731elif test -n "$ac_cv_prog_DSYMUTIL"; then
8732 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8733fi
8734
8735if test -n "$ac_cv_prog_DSYMUTIL"; then
8736 for ncn_progname in dsymutil; 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
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
8741if ${ac_cv_prog_DSYMUTIL+:} false; then :
8742 $as_echo_n "(cached) " >&6
8743else
8744 if test -n "$DSYMUTIL"; then
8745 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_prog_DSYMUTIL="${ncn_progname}"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8757 fi
8758done
8759 done
8760IFS=$as_save_IFS
8761
8762fi
8763fi
8764DSYMUTIL=$ac_cv_prog_DSYMUTIL
8765if test -n "$DSYMUTIL"; then
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8767$as_echo "$DSYMUTIL" >&6; }
8768else
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
8771fi
8772
8773
8774 done
8775fi
8776
8777for ncn_progname in dsymutil; do
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
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if ${ac_cv_prog_DSYMUTIL+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785else
8786 if test -n "$DSYMUTIL"; then
8787 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8788else
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=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800done
8801 done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806DSYMUTIL=$ac_cv_prog_DSYMUTIL
8807if test -n "$DSYMUTIL"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8809$as_echo "$DSYMUTIL" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815
8816 fi
8817 if test -z "$ac_cv_prog_DSYMUTIL" && 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
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821$as_echo_n "checking for $ac_word... " >&6; }
8822if ${ac_cv_prog_DSYMUTIL+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824else
8825 if test -n "$DSYMUTIL"; then
8826 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8827else
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=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_DSYMUTIL="${ncn_progname}"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8838 fi
8839done
8840 done
8841IFS=$as_save_IFS
8842
8843fi
8844fi
8845DSYMUTIL=$ac_cv_prog_DSYMUTIL
8846if test -n "$DSYMUTIL"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8848$as_echo "$DSYMUTIL" >&6; }
8849else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
8852fi
8853
8854
8855 fi
8856 test -n "$ac_cv_prog_DSYMUTIL" && break
8857done
8858
8859if test -z "$ac_cv_prog_DSYMUTIL" ; then
8860 set dummy dsymutil
8861 if test $build = $host ; then
8862 DSYMUTIL="$2"
8863 else
8864 DSYMUTIL="${ncn_tool_prefix}$2"
8865 fi
8866fi
8867
8868
8869
278a7a38
AO
8870if test -n "$LD"; then
8871 ac_cv_prog_LD=$LD
8872elif test -n "$ac_cv_prog_LD"; then
8873 LD=$ac_cv_prog_LD
8874fi
8875
8876if test -n "$ac_cv_prog_LD"; then
8877 for ncn_progname in ld; 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_LD+:} false; then :
5213506e 8883 $as_echo_n "(cached) " >&6
278a7a38
AO
8884else
8885 if test -n "$LD"; then
8886 ac_cv_prog_LD="$LD" # Let the user override the test.
8887else
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_LD="${ncn_progname}"
5213506e 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8897 break 2
8898 fi
8899done
5213506e
RW
8900 done
8901IFS=$as_save_IFS
278a7a38
AO
8902
8903fi
8904fi
8905LD=$ac_cv_prog_LD
8906if test -n "$LD"; then
5213506e
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8908$as_echo "$LD" >&6; }
278a7a38 8909else
5213506e
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
278a7a38
AO
8912fi
8913
5213506e 8914
278a7a38
AO
8915 done
8916fi
8917
8918for ncn_progname in ld; do
2693c0b0
PB
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_LD+:} false; then :
5213506e 8925 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8926else
8927 if test -n "$LD"; then
8928 ac_cv_prog_LD="$LD" # Let the user override the test.
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
1c710c3c 8937 ac_cv_prog_LD="${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 8947LD=$ac_cv_prog_LD
ca9f4b81 8948if test -n "$LD"; then
5213506e
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8950$as_echo "$LD" >&6; }
ca9f4b81 8951else
5213506e
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
ca9f4b81
AO
8954fi
8955
5213506e 8956
2693c0b0
PB
8957 fi
8958 if test -z "$ac_cv_prog_LD" && 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_LD+:} false; then :
5213506e 8964 $as_echo_n "(cached) " >&6
ca9f4b81 8965else
2693c0b0
PB
8966 if test -n "$LD"; then
8967 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8968else
1c710c3c
DJ
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
1c710c3c 8976 ac_cv_prog_LD="${ncn_progname}"
5213506e 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8978 break 2
8979 fi
8980done
5213506e
RW
8981 done
8982IFS=$as_save_IFS
1c710c3c 8983
ca9f4b81
AO
8984fi
8985fi
1c710c3c 8986LD=$ac_cv_prog_LD
2693c0b0 8987if test -n "$LD"; then
5213506e
RW
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8989$as_echo "$LD" >&6; }
ca9f4b81 8990else
5213506e
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
ca9f4b81 8993fi
1c710c3c 8994
5213506e 8995
2693c0b0
PB
8996 fi
8997 test -n "$ac_cv_prog_LD" && break
8998done
8999
9000if test -z "$ac_cv_prog_LD" ; then
9001 set dummy ld
9002 if test $build = $host ; then
9003 LD="$2"
ca9f4b81 9004 else
2693c0b0 9005 LD="${ncn_tool_prefix}$2"
ca9f4b81 9006 fi
ca9f4b81
AO
9007fi
9008
278a7a38
AO
9009
9010
9011if test -n "$LIPO"; then
9012 ac_cv_prog_LIPO=$LIPO
9013elif test -n "$ac_cv_prog_LIPO"; then
9014 LIPO=$ac_cv_prog_LIPO
9015fi
9016
9017if test -n "$ac_cv_prog_LIPO"; then
9018 for ncn_progname in lipo; 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_LIPO+:} false; then :
5213506e 9024 $as_echo_n "(cached) " >&6
278a7a38
AO
9025else
9026 if test -n "$LIPO"; then
9027 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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
9046LIPO=$ac_cv_prog_LIPO
9047if test -n "$LIPO"; then
5213506e
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9049$as_echo "$LIPO" >&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
9058
9059for ncn_progname in lipo; do
2abefe3d
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_LIPO+:} false; then :
5213506e 9066 $as_echo_n "(cached) " >&6
2abefe3d
PB
9067else
9068 if test -n "$LIPO"; then
9069 ac_cv_prog_LIPO="$LIPO" # 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_LIPO="${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
2abefe3d
PB
9086fi
9087fi
1c710c3c 9088LIPO=$ac_cv_prog_LIPO
2abefe3d 9089if test -n "$LIPO"; then
5213506e
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9091$as_echo "$LIPO" >&6; }
2abefe3d 9092else
5213506e
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
2abefe3d
PB
9095fi
9096
5213506e 9097
2abefe3d
PB
9098 fi
9099 if test -z "$ac_cv_prog_LIPO" && 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_LIPO+:} false; then :
5213506e 9105 $as_echo_n "(cached) " >&6
2abefe3d
PB
9106else
9107 if test -n "$LIPO"; then
9108 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
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_LIPO="${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
2abefe3d
PB
9125fi
9126fi
1c710c3c 9127LIPO=$ac_cv_prog_LIPO
2abefe3d 9128if test -n "$LIPO"; then
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9130$as_echo "$LIPO" >&6; }
2abefe3d 9131else
5213506e
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
2abefe3d 9134fi
1c710c3c 9135
5213506e 9136
2abefe3d
PB
9137 fi
9138 test -n "$ac_cv_prog_LIPO" && break
9139done
9140
9141if test -z "$ac_cv_prog_LIPO" ; then
9142 set dummy lipo
9143 if test $build = $host ; then
9144 LIPO="$2"
9145 else
9146 LIPO="${ncn_tool_prefix}$2"
9147 fi
9148fi
9149
278a7a38
AO
9150
9151
9152if test -n "$NM"; then
9153 ac_cv_prog_NM=$NM
9154elif test -n "$ac_cv_prog_NM"; then
9155 NM=$ac_cv_prog_NM
9156fi
9157
9158if test -n "$ac_cv_prog_NM"; then
9159 for ncn_progname in nm; do
9160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9161set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9164if ${ac_cv_prog_NM+:} false; then :
5213506e 9165 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9166else
9167 if test -n "$NM"; then
9168 ac_cv_prog_NM="$NM" # Let the user override the test.
9169else
1c710c3c
DJ
9170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $PATH
9172do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
5213506e 9175 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9177 ac_cv_prog_NM="${ncn_progname}"
5213506e 9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9179 break 2
9180 fi
9181done
5213506e
RW
9182 done
9183IFS=$as_save_IFS
1c710c3c 9184
ca9f4b81
AO
9185fi
9186fi
1c710c3c 9187NM=$ac_cv_prog_NM
ca9f4b81 9188if test -n "$NM"; then
5213506e
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9190$as_echo "$NM" >&6; }
ca9f4b81 9191else
5213506e
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
ca9f4b81
AO
9194fi
9195
5213506e 9196
278a7a38
AO
9197 done
9198fi
9199
9200for ncn_progname in nm; do
9201 if test -n "$ncn_tool_prefix"; then
9202 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9203set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9206if ${ac_cv_prog_NM+:} false; then :
5213506e 9207 $as_echo_n "(cached) " >&6
ca9f4b81 9208else
2693c0b0
PB
9209 if test -n "$NM"; then
9210 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9211else
1c710c3c
DJ
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
5213506e 9217 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9219 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9221 break 2
9222 fi
9223done
5213506e
RW
9224 done
9225IFS=$as_save_IFS
1c710c3c 9226
ca9f4b81
AO
9227fi
9228fi
1c710c3c 9229NM=$ac_cv_prog_NM
2693c0b0 9230if test -n "$NM"; then
5213506e
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9232$as_echo "$NM" >&6; }
ca9f4b81 9233else
5213506e
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235$as_echo "no" >&6; }
ca9f4b81 9236fi
1c710c3c 9237
5213506e 9238
2693c0b0 9239 fi
278a7a38
AO
9240 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9242set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9245if ${ac_cv_prog_NM+:} false; then :
5213506e 9246 $as_echo_n "(cached) " >&6
278a7a38
AO
9247else
9248 if test -n "$NM"; then
9249 ac_cv_prog_NM="$NM" # Let the user override the test.
9250else
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
5213506e 9256 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9258 ac_cv_prog_NM="${ncn_progname}"
5213506e 9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9260 break 2
9261 fi
9262done
5213506e
RW
9263 done
9264IFS=$as_save_IFS
278a7a38
AO
9265
9266fi
9267fi
9268NM=$ac_cv_prog_NM
9269if test -n "$NM"; then
5213506e
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9271$as_echo "$NM" >&6; }
278a7a38 9272else
5213506e
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274$as_echo "no" >&6; }
278a7a38
AO
9275fi
9276
5213506e 9277
278a7a38
AO
9278 fi
9279 test -n "$ac_cv_prog_NM" && break
9280done
9281
9282if test -z "$ac_cv_prog_NM" ; then
9283 set dummy nm
9284 if test $build = $host ; then
9285 NM="$2"
9286 else
9287 NM="${ncn_tool_prefix}$2"
9288 fi
9289fi
9290
9291
9292
9293if test -n "$RANLIB"; then
9294 ac_cv_prog_RANLIB=$RANLIB
9295elif test -n "$ac_cv_prog_RANLIB"; then
9296 RANLIB=$ac_cv_prog_RANLIB
9297fi
9298
9299if test -n "$ac_cv_prog_RANLIB"; then
9300 for ncn_progname in ranlib; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9305if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9306 $as_echo_n "(cached) " >&6
278a7a38
AO
9307else
9308 if test -n "$RANLIB"; then
9309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
5213506e 9316 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9318 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9320 break 2
9321 fi
9322done
5213506e
RW
9323 done
9324IFS=$as_save_IFS
278a7a38
AO
9325
9326fi
9327fi
9328RANLIB=$ac_cv_prog_RANLIB
9329if test -n "$RANLIB"; then
5213506e
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9331$as_echo "$RANLIB" >&6; }
278a7a38 9332else
5213506e
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
278a7a38
AO
9335fi
9336
5213506e 9337
278a7a38
AO
9338 done
9339fi
ca9f4b81 9340
278a7a38 9341for ncn_progname in ranlib; do
2693c0b0
PB
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9347if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9348 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9349else
9350 if test -n "$RANLIB"; then
9351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9352else
1c710c3c
DJ
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
5213506e 9358 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9360 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9362 break 2
9363 fi
9364done
5213506e
RW
9365 done
9366IFS=$as_save_IFS
1c710c3c 9367
ca9f4b81
AO
9368fi
9369fi
1c710c3c 9370RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9371if test -n "$RANLIB"; then
5213506e
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9373$as_echo "$RANLIB" >&6; }
ca9f4b81 9374else
5213506e
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
ca9f4b81
AO
9377fi
9378
5213506e 9379
2693c0b0
PB
9380 fi
9381 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9386if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 9387 $as_echo_n "(cached) " >&6
ca9f4b81 9388else
2693c0b0
PB
9389 if test -n "$RANLIB"; then
9390 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9391else
1c710c3c
DJ
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
5213506e 9397 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9399 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9401 break 2
9402 fi
9403done
5213506e
RW
9404 done
9405IFS=$as_save_IFS
1c710c3c 9406
ca9f4b81
AO
9407fi
9408fi
1c710c3c 9409RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9410if test -n "$RANLIB"; then
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9412$as_echo "$RANLIB" >&6; }
ca9f4b81 9413else
5213506e
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
ca9f4b81 9416fi
1c710c3c 9417
5213506e 9418
ca9f4b81 9419 fi
2693c0b0
PB
9420 test -n "$ac_cv_prog_RANLIB" && break
9421done
9422
9423if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9424 RANLIB="true"
ca9f4b81
AO
9425fi
9426
278a7a38
AO
9427
9428
9429if test -n "$STRIP"; then
9430 ac_cv_prog_STRIP=$STRIP
9431elif test -n "$ac_cv_prog_STRIP"; then
9432 STRIP=$ac_cv_prog_STRIP
9433fi
9434
9435if test -n "$ac_cv_prog_STRIP"; then
9436 for ncn_progname in strip; do
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9441if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9442 $as_echo_n "(cached) " >&6
278a7a38
AO
9443else
9444 if test -n "$STRIP"; then
9445 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
5213506e 9452 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9454 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9456 break 2
9457 fi
9458done
5213506e
RW
9459 done
9460IFS=$as_save_IFS
278a7a38
AO
9461
9462fi
9463fi
9464STRIP=$ac_cv_prog_STRIP
9465if test -n "$STRIP"; then
5213506e
RW
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9467$as_echo "$STRIP" >&6; }
278a7a38 9468else
5213506e
RW
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
278a7a38
AO
9471fi
9472
5213506e 9473
278a7a38
AO
9474 done
9475fi
9476
9477for ncn_progname in strip; do
2abefe3d
PB
9478 if test -n "$ncn_tool_prefix"; then
9479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9480set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9483if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9484 $as_echo_n "(cached) " >&6
2abefe3d
PB
9485else
9486 if test -n "$STRIP"; then
9487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9488else
1c710c3c
DJ
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
5213506e 9494 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9496 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9498 break 2
9499 fi
9500done
5213506e
RW
9501 done
9502IFS=$as_save_IFS
1c710c3c 9503
2abefe3d
PB
9504fi
9505fi
1c710c3c 9506STRIP=$ac_cv_prog_STRIP
2abefe3d 9507if test -n "$STRIP"; then
5213506e
RW
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9509$as_echo "$STRIP" >&6; }
2abefe3d 9510else
5213506e
RW
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
2abefe3d
PB
9513fi
9514
5213506e 9515
2abefe3d
PB
9516 fi
9517 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9519set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9522if ${ac_cv_prog_STRIP+:} false; then :
5213506e 9523 $as_echo_n "(cached) " >&6
2abefe3d
PB
9524else
9525 if test -n "$STRIP"; then
9526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9527else
1c710c3c
DJ
9528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
5213506e 9533 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9535 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9537 break 2
9538 fi
9539done
5213506e
RW
9540 done
9541IFS=$as_save_IFS
1c710c3c 9542
2abefe3d
PB
9543fi
9544fi
1c710c3c 9545STRIP=$ac_cv_prog_STRIP
2abefe3d 9546if test -n "$STRIP"; then
5213506e
RW
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9548$as_echo "$STRIP" >&6; }
2abefe3d 9549else
5213506e
RW
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551$as_echo "no" >&6; }
2abefe3d 9552fi
1c710c3c 9553
5213506e 9554
2abefe3d
PB
9555 fi
9556 test -n "$ac_cv_prog_STRIP" && break
9557done
9558
9559if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9560 STRIP="true"
2abefe3d
PB
9561fi
9562
278a7a38
AO
9563
9564
9565if test -n "$WINDRES"; then
9566 ac_cv_prog_WINDRES=$WINDRES
9567elif test -n "$ac_cv_prog_WINDRES"; then
9568 WINDRES=$ac_cv_prog_WINDRES
9569fi
9570
9571if test -n "$ac_cv_prog_WINDRES"; then
9572 for ncn_progname in windres; 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_WINDRES+:} false; then :
5213506e 9578 $as_echo_n "(cached) " >&6
278a7a38
AO
9579else
9580 if test -n "$WINDRES"; then
9581 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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
9600WINDRES=$ac_cv_prog_WINDRES
9601if test -n "$WINDRES"; then
5213506e
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9603$as_echo "$WINDRES" >&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 windres; 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_WINDRES+:} false; then :
5213506e 9620 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9621else
9622 if test -n "$WINDRES"; then
9623 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9642WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9643if test -n "$WINDRES"; then
5213506e
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9645$as_echo "$WINDRES" >&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_WINDRES" && 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_WINDRES+:} false; then :
5213506e 9659 $as_echo_n "(cached) " >&6
ca9f4b81 9660else
2693c0b0
PB
9661 if test -n "$WINDRES"; then
9662 ac_cv_prog_WINDRES="$WINDRES" # 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_WINDRES="${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 9681WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9682if test -n "$WINDRES"; then
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9684$as_echo "$WINDRES" >&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_WINDRES" && break
9693done
9694
9695if test -z "$ac_cv_prog_WINDRES" ; then
9696 set dummy windres
9697 if test $build = $host ; then
9698 WINDRES="$2"
ca9f4b81 9699 else
2693c0b0 9700 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9701 fi
ca9f4b81
AO
9702fi
9703
278a7a38
AO
9704
9705
901119ae
KT
9706if test -n "$WINDMC"; then
9707 ac_cv_prog_WINDMC=$WINDMC
9708elif test -n "$ac_cv_prog_WINDMC"; then
9709 WINDMC=$ac_cv_prog_WINDMC
9710fi
9711
9712if test -n "$ac_cv_prog_WINDMC"; then
9713 for ncn_progname in windmc; 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_WINDMC+:} false; then :
5213506e 9719 $as_echo_n "(cached) " >&6
901119ae
KT
9720else
9721 if test -n "$WINDMC"; then
9722 ac_cv_prog_WINDMC="$WINDMC" # 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
901119ae 9731 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9733 break 2
9734 fi
9735done
5213506e
RW
9736 done
9737IFS=$as_save_IFS
901119ae
KT
9738
9739fi
9740fi
9741WINDMC=$ac_cv_prog_WINDMC
9742if test -n "$WINDMC"; then
5213506e
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9744$as_echo "$WINDMC" >&6; }
901119ae 9745else
5213506e
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
901119ae
KT
9748fi
9749
5213506e 9750
901119ae
KT
9751 done
9752fi
9753
9754for ncn_progname in windmc; do
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_WINDMC+:} false; then :
5213506e 9761 $as_echo_n "(cached) " >&6
901119ae
KT
9762else
9763 if test -n "$WINDMC"; then
9764 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9765else
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
901119ae 9773 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9775 break 2
9776 fi
9777done
5213506e
RW
9778 done
9779IFS=$as_save_IFS
901119ae
KT
9780
9781fi
9782fi
9783WINDMC=$ac_cv_prog_WINDMC
9784if test -n "$WINDMC"; then
5213506e
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9786$as_echo "$WINDMC" >&6; }
901119ae 9787else
5213506e
RW
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
901119ae
KT
9790fi
9791
5213506e 9792
901119ae
KT
9793 fi
9794 if test -z "$ac_cv_prog_WINDMC" && 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_WINDMC+:} false; then :
5213506e 9800 $as_echo_n "(cached) " >&6
901119ae
KT
9801else
9802 if test -n "$WINDMC"; then
9803 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9804else
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
901119ae 9812 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9814 break 2
9815 fi
9816done
5213506e
RW
9817 done
9818IFS=$as_save_IFS
901119ae
KT
9819
9820fi
9821fi
9822WINDMC=$ac_cv_prog_WINDMC
9823if test -n "$WINDMC"; then
5213506e
RW
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9825$as_echo "$WINDMC" >&6; }
901119ae 9826else
5213506e
RW
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828$as_echo "no" >&6; }
901119ae
KT
9829fi
9830
5213506e 9831
901119ae
KT
9832 fi
9833 test -n "$ac_cv_prog_WINDMC" && break
9834done
9835
9836if test -z "$ac_cv_prog_WINDMC" ; then
9837 set dummy windmc
9838 if test $build = $host ; then
9839 WINDMC="$2"
9840 else
9841 WINDMC="${ncn_tool_prefix}$2"
9842 fi
9843fi
9844
9845
9846
278a7a38
AO
9847if test -n "$OBJCOPY"; then
9848 ac_cv_prog_OBJCOPY=$OBJCOPY
9849elif test -n "$ac_cv_prog_OBJCOPY"; then
9850 OBJCOPY=$ac_cv_prog_OBJCOPY
9851fi
9852
9853if test -n "$ac_cv_prog_OBJCOPY"; then
9854 for ncn_progname in objcopy; 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
5213506e
RW
9857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9858$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9859if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 9860 $as_echo_n "(cached) " >&6
278a7a38
AO
9861else
9862 if test -n "$OBJCOPY"; then
9863 ac_cv_prog_OBJCOPY="$OBJCOPY" # 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=.
5213506e 9870 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 9872 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9874 break 2
9875 fi
9876done
5213506e
RW
9877 done
9878IFS=$as_save_IFS
278a7a38
AO
9879
9880fi
9881fi
9882OBJCOPY=$ac_cv_prog_OBJCOPY
9883if test -n "$OBJCOPY"; then
5213506e
RW
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9885$as_echo "$OBJCOPY" >&6; }
278a7a38 9886else
5213506e
RW
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9888$as_echo "no" >&6; }
278a7a38
AO
9889fi
9890
5213506e 9891
278a7a38
AO
9892 done
9893fi
9894
9895for ncn_progname in objcopy; do
2693c0b0
PB
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
5213506e
RW
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_OBJCOPY+:} false; then :
5213506e 9902 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9903else
9904 if test -n "$OBJCOPY"; then
9905 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9906else
1c710c3c
DJ
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=.
5213506e 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
1c710c3c 9914 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9916 break 2
9917 fi
9918done
5213506e
RW
9919 done
9920IFS=$as_save_IFS
1c710c3c 9921
ca9f4b81
AO
9922fi
9923fi
1c710c3c 9924OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9925if test -n "$OBJCOPY"; then
5213506e
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9927$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9928else
5213506e
RW
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930$as_echo "no" >&6; }
ca9f4b81
AO
9931fi
9932
5213506e 9933
2693c0b0
PB
9934 fi
9935 if test -z "$ac_cv_prog_OBJCOPY" && 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
5213506e
RW
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_OBJCOPY+:} false; then :
5213506e 9941 $as_echo_n "(cached) " >&6
ca9f4b81 9942else
2693c0b0
PB
9943 if test -n "$OBJCOPY"; then
9944 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9945else
1c710c3c
DJ
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=.
5213506e 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
1c710c3c 9953 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9955 break 2
9956 fi
9957done
5213506e
RW
9958 done
9959IFS=$as_save_IFS
1c710c3c 9960
ca9f4b81
AO
9961fi
9962fi
1c710c3c 9963OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9964if test -n "$OBJCOPY"; then
5213506e
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9966$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9967else
5213506e
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
ca9f4b81 9970fi
1c710c3c 9971
5213506e 9972
2693c0b0
PB
9973 fi
9974 test -n "$ac_cv_prog_OBJCOPY" && break
9975done
9976
9977if test -z "$ac_cv_prog_OBJCOPY" ; then
9978 set dummy objcopy
9979 if test $build = $host ; then
9980 OBJCOPY="$2"
ca9f4b81 9981 else
2693c0b0 9982 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9983 fi
ca9f4b81
AO
9984fi
9985
278a7a38
AO
9986
9987
9988if test -n "$OBJDUMP"; then
9989 ac_cv_prog_OBJDUMP=$OBJDUMP
9990elif test -n "$ac_cv_prog_OBJDUMP"; then
9991 OBJDUMP=$ac_cv_prog_OBJDUMP
9992fi
9993
9994if test -n "$ac_cv_prog_OBJDUMP"; then
9995 for ncn_progname in objdump; do
9996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9997set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10000if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 10001 $as_echo_n "(cached) " >&6
278a7a38
AO
10002else
10003 if test -n "$OBJDUMP"; then
10004 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10005else
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
5213506e 10011 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10013 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10015 break 2
10016 fi
10017done
5213506e
RW
10018 done
10019IFS=$as_save_IFS
278a7a38
AO
10020
10021fi
10022fi
10023OBJDUMP=$ac_cv_prog_OBJDUMP
10024if test -n "$OBJDUMP"; then
5213506e
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10026$as_echo "$OBJDUMP" >&6; }
278a7a38 10027else
5213506e
RW
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
278a7a38
AO
10030fi
10031
5213506e 10032
278a7a38
AO
10033 done
10034fi
10035
10036for ncn_progname in objdump; do
2693c0b0
PB
10037 if test -n "$ncn_tool_prefix"; then
10038 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10039set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10042if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 10043 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10044else
10045 if test -n "$OBJDUMP"; then
10046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10047else
1c710c3c
DJ
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
5213506e 10053 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10055 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10057 break 2
10058 fi
10059done
5213506e
RW
10060 done
10061IFS=$as_save_IFS
1c710c3c 10062
ca9f4b81
AO
10063fi
10064fi
1c710c3c 10065OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 10066if test -n "$OBJDUMP"; then
5213506e
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10068$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10069else
5213506e
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
ca9f4b81
AO
10072fi
10073
5213506e 10074
2693c0b0
PB
10075 fi
10076 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10078set dummy ${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_OBJDUMP+:} false; then :
5213506e 10082 $as_echo_n "(cached) " >&6
ca9f4b81 10083else
2693c0b0
PB
10084 if test -n "$OBJDUMP"; then
10085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 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_OBJDUMP="${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
ca9f4b81
AO
10102fi
10103fi
1c710c3c 10104OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 10105if test -n "$OBJDUMP"; then
5213506e
RW
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10107$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10108else
5213506e
RW
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110$as_echo "no" >&6; }
ca9f4b81 10111fi
1c710c3c 10112
5213506e 10113
2693c0b0
PB
10114 fi
10115 test -n "$ac_cv_prog_OBJDUMP" && break
10116done
10117
10118if test -z "$ac_cv_prog_OBJDUMP" ; then
10119 set dummy objdump
10120 if test $build = $host ; then
10121 OBJDUMP="$2"
ca9f4b81 10122 else
2693c0b0 10123 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 10124 fi
ca9f4b81
AO
10125fi
10126
671aa708
NN
10127
10128
e4a9a572
IS
10129if test -n "$OTOOL"; then
10130 ac_cv_prog_OTOOL=$OTOOL
10131elif test -n "$ac_cv_prog_OTOOL"; then
10132 OTOOL=$ac_cv_prog_OTOOL
10133fi
10134
10135if test -n "$ac_cv_prog_OTOOL"; then
10136 for ncn_progname in otool; do
10137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10138set dummy ${ncn_progname}; ac_word=$2
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140$as_echo_n "checking for $ac_word... " >&6; }
10141if ${ac_cv_prog_OTOOL+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143else
10144 if test -n "$OTOOL"; then
10145 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154 ac_cv_prog_OTOOL="${ncn_progname}"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159 done
10160IFS=$as_save_IFS
10161
10162fi
10163fi
10164OTOOL=$ac_cv_prog_OTOOL
10165if test -n "$OTOOL"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10167$as_echo "$OTOOL" >&6; }
10168else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
10171fi
10172
10173
10174 done
10175fi
10176
10177for ncn_progname in otool; do
10178 if test -n "$ncn_tool_prefix"; then
10179 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10180set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182$as_echo_n "checking for $ac_word... " >&6; }
10183if ${ac_cv_prog_OTOOL+:} false; then :
10184 $as_echo_n "(cached) " >&6
10185else
10186 if test -n "$OTOOL"; then
10187 ac_cv_prog_OTOOL="$OTOOL" # 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=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10198 break 2
10199 fi
10200done
10201 done
10202IFS=$as_save_IFS
10203
10204fi
10205fi
10206OTOOL=$ac_cv_prog_OTOOL
10207if test -n "$OTOOL"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10209$as_echo "$OTOOL" >&6; }
10210else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212$as_echo "no" >&6; }
10213fi
10214
10215
10216 fi
10217 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
10218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10219set dummy ${ncn_progname}; ac_word=$2
10220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10221$as_echo_n "checking for $ac_word... " >&6; }
10222if ${ac_cv_prog_OTOOL+:} false; then :
10223 $as_echo_n "(cached) " >&6
10224else
10225 if test -n "$OTOOL"; then
10226 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10227else
10228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10235 ac_cv_prog_OTOOL="${ncn_progname}"
10236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10238 fi
10239done
10240 done
10241IFS=$as_save_IFS
10242
10243fi
10244fi
10245OTOOL=$ac_cv_prog_OTOOL
10246if test -n "$OTOOL"; then
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10248$as_echo "$OTOOL" >&6; }
10249else
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10251$as_echo "no" >&6; }
10252fi
10253
10254
10255 fi
10256 test -n "$ac_cv_prog_OTOOL" && break
10257done
10258
10259if test -z "$ac_cv_prog_OTOOL" ; then
10260 set dummy otool
10261 if test $build = $host ; then
10262 OTOOL="$2"
10263 else
10264 OTOOL="${ncn_tool_prefix}$2"
10265 fi
10266fi
10267
10268
10269
e7a82751
RM
10270if test -n "$READELF"; then
10271 ac_cv_prog_READELF=$READELF
10272elif test -n "$ac_cv_prog_READELF"; then
10273 READELF=$ac_cv_prog_READELF
10274fi
10275
10276if test -n "$ac_cv_prog_READELF"; then
10277 for ncn_progname in readelf; do
10278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10279set dummy ${ncn_progname}; ac_word=$2
10280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10281$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10282if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10283 $as_echo_n "(cached) " >&6
10284else
10285 if test -n "$READELF"; then
10286 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10287else
10288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
10290do
10291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10295 ac_cv_prog_READELF="${ncn_progname}"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297 break 2
10298 fi
10299done
10300 done
10301IFS=$as_save_IFS
10302
10303fi
10304fi
10305READELF=$ac_cv_prog_READELF
10306if test -n "$READELF"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10308$as_echo "$READELF" >&6; }
10309else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311$as_echo "no" >&6; }
10312fi
10313
10314
10315 done
10316fi
10317
10318for ncn_progname in readelf; do
10319 if test -n "$ncn_tool_prefix"; then
10320 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10321set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10324if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10325 $as_echo_n "(cached) " >&6
10326else
10327 if test -n "$READELF"; then
10328 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10329else
10330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331for as_dir in $PATH
10332do
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10337 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10340 fi
10341done
10342 done
10343IFS=$as_save_IFS
10344
10345fi
10346fi
10347READELF=$ac_cv_prog_READELF
10348if test -n "$READELF"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10350$as_echo "$READELF" >&6; }
10351else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353$as_echo "no" >&6; }
10354fi
10355
10356
10357 fi
10358 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
10359 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10360set dummy ${ncn_progname}; ac_word=$2
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10363if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
10364 $as_echo_n "(cached) " >&6
10365else
10366 if test -n "$READELF"; then
10367 ac_cv_prog_READELF="$READELF" # Let the user override the test.
10368else
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
10376 ac_cv_prog_READELF="${ncn_progname}"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380done
10381 done
10382IFS=$as_save_IFS
10383
10384fi
10385fi
10386READELF=$ac_cv_prog_READELF
10387if test -n "$READELF"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
10389$as_echo "$READELF" >&6; }
10390else
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
10393fi
10394
10395
10396 fi
10397 test -n "$ac_cv_prog_READELF" && break
10398done
10399
10400if test -z "$ac_cv_prog_READELF" ; then
10401 set dummy readelf
10402 if test $build = $host ; then
10403 READELF="$2"
10404 else
10405 READELF="${ncn_tool_prefix}$2"
10406 fi
10407fi
10408
10409
10410
671aa708
NN
10411
10412
10413
2abefe3d 10414# Target tools.
1c710c3c 10415
5213506e
RW
10416# Check whether --with-build-time-tools was given.
10417if test "${with_build_time_tools+set}" = set; then :
10418 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10419 x/*) ;;
10420 *)
10421 with_build_time_tools=
5213506e
RW
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10423$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10424 ;;
10425 esac
ca9f4b81 10426else
e8b05380 10427 with_build_time_tools=
5213506e
RW
10428fi
10429
ca9f4b81 10430
278a7a38
AO
10431
10432
10433if test -n "$CC_FOR_TARGET"; then
10434 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10435elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10436 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10437fi
10438
10439if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10440 for ncn_progname in cc gcc; do
10441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10442set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10445if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10446 $as_echo_n "(cached) " >&6
278a7a38
AO
10447else
10448 if test -n "$CC_FOR_TARGET"; then
10449 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
5213506e 10456 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10458 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10460 break 2
10461 fi
10462done
5213506e
RW
10463 done
10464IFS=$as_save_IFS
278a7a38
AO
10465
10466fi
10467fi
10468CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10469if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10471$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10472else
5213506e
RW
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
278a7a38
AO
10475fi
10476
5213506e 10477
278a7a38
AO
10478 done
10479fi
10480
10481if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10482 for ncn_progname in cc gcc; do
5213506e
RW
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10484$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10485 if test -x $with_build_time_tools/${ncn_progname}; then
10486 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488$as_echo "yes" >&6; }
72a7ab82 10489 break
e8b05380 10490 else
5213506e
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
72a7ab82
AP
10493 fi
10494 done
4de997d1
PB
10495fi
10496
e8b05380
PB
10497if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10498 for ncn_progname in cc gcc; do
10499 if test -n "$ncn_target_tool_prefix"; then
10500 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10501set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10504if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10505 $as_echo_n "(cached) " >&6
4de997d1
PB
10506else
10507 if test -n "$CC_FOR_TARGET"; then
10508 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10509else
1c710c3c
DJ
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
5213506e 10515 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10517 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10519 break 2
10520 fi
10521done
5213506e
RW
10522 done
10523IFS=$as_save_IFS
1c710c3c 10524
4de997d1
PB
10525fi
10526fi
1c710c3c 10527CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10528if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10530$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10531else
5213506e
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
4de997d1
PB
10534fi
10535
5213506e 10536
e8b05380
PB
10537 fi
10538 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10540set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10543if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 10544 $as_echo_n "(cached) " >&6
4de997d1 10545else
2693c0b0
PB
10546 if test -n "$CC_FOR_TARGET"; then
10547 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10548else
1c710c3c
DJ
10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550for as_dir in $PATH
10551do
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
5213506e 10554 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10556 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10558 break 2
10559 fi
10560done
5213506e
RW
10561 done
10562IFS=$as_save_IFS
1c710c3c 10563
4de997d1
PB
10564fi
10565fi
1c710c3c 10566CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10567if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10569$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10570else
5213506e
RW
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
4de997d1 10573fi
1c710c3c 10574
5213506e 10575
e8b05380
PB
10576 fi
10577 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10578 done
10579fi
1c710c3c 10580
2693c0b0
PB
10581if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10582 set dummy cc gcc
10583 if test $build = $target ; then
10584 CC_FOR_TARGET="$2"
4de997d1 10585 else
2693c0b0 10586 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10587 fi
1c00b503
PB
10588else
10589 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10590fi
10591
278a7a38
AO
10592
10593
10594if test -n "$CXX_FOR_TARGET"; then
10595 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10596elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10597 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10598fi
10599
10600if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10601 for ncn_progname in c++ g++ cxx gxx; do
10602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10603set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10606if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10607 $as_echo_n "(cached) " >&6
278a7a38
AO
10608else
10609 if test -n "$CXX_FOR_TARGET"; then
10610 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10611else
10612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613for as_dir in $PATH
10614do
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
5213506e 10617 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10619 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10621 break 2
10622 fi
10623done
5213506e
RW
10624 done
10625IFS=$as_save_IFS
278a7a38
AO
10626
10627fi
10628fi
10629CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10630if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10632$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10633else
5213506e
RW
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635$as_echo "no" >&6; }
278a7a38
AO
10636fi
10637
5213506e 10638
278a7a38
AO
10639 done
10640fi
10641
10642if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10643 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10646 if test -x $with_build_time_tools/${ncn_progname}; then
10647 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10649$as_echo "yes" >&6; }
e8b05380
PB
10650 break
10651 else
5213506e
RW
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653$as_echo "no" >&6; }
e8b05380
PB
10654 fi
10655 done
10656fi
10657
10658if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10659 for ncn_progname in c++ g++ cxx gxx; do
10660 if test -n "$ncn_target_tool_prefix"; then
10661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10665if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10666 $as_echo_n "(cached) " >&6
4de997d1
PB
10667else
10668 if test -n "$CXX_FOR_TARGET"; then
10669 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10670else
1c710c3c
DJ
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
5213506e 10676 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10678 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10680 break 2
10681 fi
10682done
5213506e
RW
10683 done
10684IFS=$as_save_IFS
1c710c3c 10685
4de997d1
PB
10686fi
10687fi
1c710c3c 10688CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10689if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10691$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10692else
5213506e
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
4de997d1
PB
10695fi
10696
5213506e 10697
e8b05380
PB
10698 fi
10699 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10701set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10704if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 10705 $as_echo_n "(cached) " >&6
4de997d1 10706else
2693c0b0
PB
10707 if test -n "$CXX_FOR_TARGET"; then
10708 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10709else
1c710c3c
DJ
10710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711for as_dir in $PATH
10712do
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
5213506e 10715 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10717 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10719 break 2
10720 fi
10721done
5213506e
RW
10722 done
10723IFS=$as_save_IFS
1c710c3c 10724
4de997d1
PB
10725fi
10726fi
1c710c3c 10727CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10728if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10730$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10731else
5213506e
RW
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733$as_echo "no" >&6; }
4de997d1 10734fi
1c710c3c 10735
5213506e 10736
e8b05380
PB
10737 fi
10738 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10739 done
10740fi
1c710c3c 10741
2693c0b0
PB
10742if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10743 set dummy c++ g++ cxx gxx
10744 if test $build = $target ; then
10745 CXX_FOR_TARGET="$2"
4de997d1 10746 else
2693c0b0 10747 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10748 fi
1c00b503
PB
10749else
10750 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10751fi
10752
278a7a38
AO
10753
10754
10755if test -n "$GCC_FOR_TARGET"; then
10756 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10757elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10758 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10759fi
10760
10761if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10762 for ncn_progname in gcc; do
10763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10764set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10766$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10767if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10768 $as_echo_n "(cached) " >&6
278a7a38
AO
10769else
10770 if test -n "$GCC_FOR_TARGET"; then
10771 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10772else
10773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774for as_dir in $PATH
10775do
10776 IFS=$as_save_IFS
10777 test -z "$as_dir" && as_dir=.
5213506e 10778 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10780 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10782 break 2
10783 fi
10784done
5213506e
RW
10785 done
10786IFS=$as_save_IFS
278a7a38
AO
10787
10788fi
10789fi
10790GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10791if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10793$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10794else
5213506e
RW
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796$as_echo "no" >&6; }
278a7a38
AO
10797fi
10798
5213506e 10799
278a7a38
AO
10800 done
10801fi
10802
10803if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10804 for ncn_progname in gcc; do
5213506e
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10806$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10807 if test -x $with_build_time_tools/${ncn_progname}; then
10808 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10810$as_echo "yes" >&6; }
e8b05380
PB
10811 break
10812 else
5213506e
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
e8b05380
PB
10815 fi
10816 done
10817fi
10818
10819if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10820 for ncn_progname in gcc; do
10821 if test -n "$ncn_target_tool_prefix"; then
10822 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10823set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10826if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10827 $as_echo_n "(cached) " >&6
ca9f4b81 10828else
e8b05380
PB
10829 if test -n "$GCC_FOR_TARGET"; then
10830 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10831else
1c710c3c
DJ
10832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833for as_dir in $PATH
10834do
10835 IFS=$as_save_IFS
10836 test -z "$as_dir" && as_dir=.
5213506e 10837 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10839 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10841 break 2
10842 fi
10843done
5213506e
RW
10844 done
10845IFS=$as_save_IFS
1c710c3c 10846
ca9f4b81
AO
10847fi
10848fi
1c710c3c 10849GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10850if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10852$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10853else
5213506e
RW
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855$as_echo "no" >&6; }
ca9f4b81
AO
10856fi
10857
5213506e 10858
e8b05380
PB
10859 fi
10860 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10862set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10865if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 10866 $as_echo_n "(cached) " >&6
ca9f4b81 10867else
e8b05380
PB
10868 if test -n "$GCC_FOR_TARGET"; then
10869 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10870else
1c710c3c
DJ
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
5213506e 10876 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10878 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10880 break 2
10881 fi
10882done
5213506e
RW
10883 done
10884IFS=$as_save_IFS
1c710c3c 10885
ca9f4b81
AO
10886fi
10887fi
1c710c3c 10888GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10889if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10891$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10892else
5213506e
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
ca9f4b81 10895fi
1c710c3c 10896
5213506e 10897
e8b05380
PB
10898 fi
10899 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10900 done
10901fi
1c710c3c 10902
e8b05380
PB
10903if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10904 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10905else
10906 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10907fi
10908
278a7a38
AO
10909
10910
278a7a38
AO
10911if test -n "$GFORTRAN_FOR_TARGET"; then
10912 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10913elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10914 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10915fi
10916
278a7a38
AO
10917if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10918 for ncn_progname in gfortran; do
10919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10920set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10923if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10924 $as_echo_n "(cached) " >&6
e8b05380 10925else
278a7a38
AO
10926 if test -n "$GFORTRAN_FOR_TARGET"; then
10927 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10928else
1c710c3c
DJ
10929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930for as_dir in $PATH
10931do
10932 IFS=$as_save_IFS
10933 test -z "$as_dir" && as_dir=.
5213506e 10934 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10936 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10938 break 2
10939 fi
10940done
5213506e
RW
10941 done
10942IFS=$as_save_IFS
1c710c3c 10943
e8b05380
PB
10944fi
10945fi
278a7a38
AO
10946GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10947if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10949$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10950else
5213506e
RW
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10952$as_echo "no" >&6; }
e8b05380 10953fi
1c710c3c 10954
5213506e 10955
e8b05380
PB
10956 done
10957fi
1c710c3c 10958
278a7a38 10959if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10960 for ncn_progname in gfortran; do
5213506e
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10962$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10963 if test -x $with_build_time_tools/${ncn_progname}; then
10964 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966$as_echo "yes" >&6; }
e8b05380
PB
10967 break
10968 else
5213506e
RW
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970$as_echo "no" >&6; }
e8b05380
PB
10971 fi
10972 done
10973fi
10974
10975if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10976 for ncn_progname in gfortran; do
10977 if test -n "$ncn_target_tool_prefix"; then
10978 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10979set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10982if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 10983 $as_echo_n "(cached) " >&6
e8b05380
PB
10984else
10985 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10986 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10987else
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
5213506e 10993 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10995 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10997 break 2
10998 fi
10999done
5213506e
RW
11000 done
11001IFS=$as_save_IFS
1c710c3c 11002
e8b05380
PB
11003fi
11004fi
1c710c3c 11005GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 11006if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11008$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 11009else
5213506e
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
e8b05380
PB
11012fi
11013
5213506e 11014
e8b05380
PB
11015 fi
11016 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11018set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11021if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 11022 $as_echo_n "(cached) " >&6
e8b05380
PB
11023else
11024 if test -n "$GFORTRAN_FOR_TARGET"; then
11025 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11026else
1c710c3c
DJ
11027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $PATH
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
5213506e 11032 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11034 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11036 break 2
11037 fi
11038done
5213506e
RW
11039 done
11040IFS=$as_save_IFS
1c710c3c 11041
e8b05380
PB
11042fi
11043fi
1c710c3c 11044GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 11045if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11047$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 11048else
5213506e
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
e8b05380 11051fi
1c710c3c 11052
5213506e 11053
e8b05380
PB
11054 fi
11055 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11056 done
11057fi
1c710c3c 11058
e8b05380
PB
11059if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11060 set dummy gfortran
2693c0b0 11061 if test $build = $target ; then
e8b05380 11062 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 11063 else
e8b05380
PB
11064 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11065 fi
1c00b503
PB
11066else
11067 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
11068fi
11069
11070
11071
632e2a07
ILT
11072if test -n "$GOC_FOR_TARGET"; then
11073 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
11074elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11075 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11076fi
11077
11078if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
11079 for ncn_progname in gccgo; do
11080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11081set dummy ${ncn_progname}; ac_word=$2
11082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11083$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11084if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11085 $as_echo_n "(cached) " >&6
11086else
11087 if test -n "$GOC_FOR_TARGET"; then
11088 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11089else
11090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11091for as_dir in $PATH
11092do
11093 IFS=$as_save_IFS
11094 test -z "$as_dir" && as_dir=.
11095 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11097 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11099 break 2
11100 fi
11101done
11102 done
11103IFS=$as_save_IFS
11104
11105fi
11106fi
11107GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11108if test -n "$GOC_FOR_TARGET"; then
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11110$as_echo "$GOC_FOR_TARGET" >&6; }
11111else
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11113$as_echo "no" >&6; }
11114fi
11115
11116
11117 done
11118fi
11119
11120if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11121 for ncn_progname in gccgo; do
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11123$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11124 if test -x $with_build_time_tools/${ncn_progname}; then
11125 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11127$as_echo "yes" >&6; }
11128 break
11129 else
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131$as_echo "no" >&6; }
11132 fi
11133 done
11134fi
11135
11136if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
11137 for ncn_progname in gccgo; do
11138 if test -n "$ncn_target_tool_prefix"; then
11139 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11140set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11142$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11143if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11144 $as_echo_n "(cached) " >&6
11145else
11146 if test -n "$GOC_FOR_TARGET"; then
11147 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11148else
11149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $PATH
11151do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
11154 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11156 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11158 break 2
11159 fi
11160done
11161 done
11162IFS=$as_save_IFS
11163
11164fi
11165fi
11166GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11167if test -n "$GOC_FOR_TARGET"; then
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11169$as_echo "$GOC_FOR_TARGET" >&6; }
11170else
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
11173fi
11174
11175
11176 fi
11177 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
11178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11179set dummy ${ncn_progname}; ac_word=$2
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11181$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11182if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
11183 $as_echo_n "(cached) " >&6
11184else
11185 if test -n "$GOC_FOR_TARGET"; then
11186 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
11187else
11188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11189for as_dir in $PATH
11190do
11191 IFS=$as_save_IFS
11192 test -z "$as_dir" && as_dir=.
11193 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
11195 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
11196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11197 break 2
11198 fi
11199done
11200 done
11201IFS=$as_save_IFS
11202
11203fi
11204fi
11205GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
11206if test -n "$GOC_FOR_TARGET"; then
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
11208$as_echo "$GOC_FOR_TARGET" >&6; }
11209else
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211$as_echo "no" >&6; }
11212fi
11213
11214
11215 fi
11216 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
11217 done
11218fi
11219
11220if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
11221 set dummy gccgo
11222 if test $build = $target ; then
11223 GOC_FOR_TARGET="$2"
11224 else
11225 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11226 fi
11227else
11228 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
11229fi
11230
11231
11232
b4c522fa
IB
11233if test -n "$GDC_FOR_TARGET"; then
11234 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
11235elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11236 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11237fi
11238
11239if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
11240 for ncn_progname in gdc; do
11241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11242set dummy ${ncn_progname}; ac_word=$2
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11245if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11246 $as_echo_n "(cached) " >&6
11247else
11248 if test -n "$GDC_FOR_TARGET"; then
11249 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11250else
11251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11252for as_dir in $PATH
11253do
11254 IFS=$as_save_IFS
11255 test -z "$as_dir" && as_dir=.
11256 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11258 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11260 break 2
11261 fi
11262done
11263 done
11264IFS=$as_save_IFS
11265
11266fi
11267fi
11268GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11269if test -n "$GDC_FOR_TARGET"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11271$as_echo "$GDC_FOR_TARGET" >&6; }
11272else
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11274$as_echo "no" >&6; }
11275fi
11276
11277
11278 done
11279fi
11280
11281if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
11282 for ncn_progname in gdc; do
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11284$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11285 if test -x $with_build_time_tools/${ncn_progname}; then
11286 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11288$as_echo "yes" >&6; }
11289 break
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292$as_echo "no" >&6; }
11293 fi
11294 done
11295fi
11296
11297if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
11298 for ncn_progname in gdc; do
11299 if test -n "$ncn_target_tool_prefix"; then
11300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11301set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11304if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11305 $as_echo_n "(cached) " >&6
11306else
11307 if test -n "$GDC_FOR_TARGET"; then
11308 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11309else
11310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311for as_dir in $PATH
11312do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11317 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321done
11322 done
11323IFS=$as_save_IFS
11324
11325fi
11326fi
11327GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11328if test -n "$GDC_FOR_TARGET"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11330$as_echo "$GDC_FOR_TARGET" >&6; }
11331else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333$as_echo "no" >&6; }
11334fi
11335
11336
11337 fi
11338 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
11339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11340set dummy ${ncn_progname}; ac_word=$2
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11343if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
11344 $as_echo_n "(cached) " >&6
11345else
11346 if test -n "$GDC_FOR_TARGET"; then
11347 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
11348else
11349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350for as_dir in $PATH
11351do
11352 IFS=$as_save_IFS
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
11356 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
11357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11358 break 2
11359 fi
11360done
11361 done
11362IFS=$as_save_IFS
11363
11364fi
11365fi
11366GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
11367if test -n "$GDC_FOR_TARGET"; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
11369$as_echo "$GDC_FOR_TARGET" >&6; }
11370else
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372$as_echo "no" >&6; }
11373fi
11374
11375
11376 fi
11377 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
11378 done
11379fi
11380
11381if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
11382 set dummy gdc
11383 if test $build = $target ; then
11384 GDC_FOR_TARGET="$2"
11385 else
11386 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
11387 fi
11388else
11389 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
11390fi
11391
11392
11393
e8b05380
PB
11394cat > conftest.c << \EOF
11395#ifdef __GNUC__
11396 gcc_yay;
11397#endif
11398EOF
11399if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11400 have_gcc_for_target=yes
11401else
11402 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11403 have_gcc_for_target=no
11404fi
11405rm conftest.c
11406
11407
11408
11409
11410if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11411 if test -n "$with_build_time_tools"; then
5213506e
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11413$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11414 if test -x $with_build_time_tools/ar; then
11415 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11416 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11418$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11419 else
5213506e
RW
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421$as_echo "no" >&6; }
d1f8db0c 11422 fi
e8b05380
PB
11423 elif test $build != $host && test $have_gcc_for_target = yes; then
11424 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11425 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11426 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11427 fi
11428fi
3e19841a 11429if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11430 # Extract the first word of "ar", so it can be a program name with args.
11431set dummy ar; ac_word=$2
5213506e
RW
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11434if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 11435 $as_echo_n "(cached) " >&6
e8b05380 11436else
1c710c3c
DJ
11437 case $AR_FOR_TARGET in
11438 [\\/]* | ?:[\\/]*)
e8b05380
PB
11439 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11440 ;;
e8b05380 11441 *)
1c710c3c
DJ
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443for as_dir in $gcc_cv_tool_dirs
11444do
11445 IFS=$as_save_IFS
11446 test -z "$as_dir" && as_dir=.
5213506e 11447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11449 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11451 break 2
11452 fi
11453done
5213506e
RW
11454 done
11455IFS=$as_save_IFS
1c710c3c 11456
e8b05380
PB
11457 ;;
11458esac
11459fi
1c710c3c 11460AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11461if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11463$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11464else
5213506e
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11466$as_echo "no" >&6; }
4de997d1
PB
11467fi
11468
5213506e 11469
e8b05380
PB
11470fi
11471if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11472
11473
11474if test -n "$AR_FOR_TARGET"; then
11475 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11476elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11477 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11478fi
11479
11480if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11481 for ncn_progname in ar; do
11482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11483set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11486if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11487 $as_echo_n "(cached) " >&6
278a7a38
AO
11488else
11489 if test -n "$AR_FOR_TARGET"; then
11490 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11491else
11492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11493for as_dir in $PATH
11494do
11495 IFS=$as_save_IFS
11496 test -z "$as_dir" && as_dir=.
5213506e 11497 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11499 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11501 break 2
11502 fi
11503done
5213506e
RW
11504 done
11505IFS=$as_save_IFS
278a7a38
AO
11506
11507fi
11508fi
11509AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11510if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11512$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11513else
5213506e
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515$as_echo "no" >&6; }
278a7a38
AO
11516fi
11517
5213506e 11518
278a7a38
AO
11519 done
11520fi
11521
11522if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11523 for ncn_progname in ar; do
5213506e
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11525$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11526 if test -x $with_build_time_tools/${ncn_progname}; then
11527 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11529$as_echo "yes" >&6; }
e8b05380
PB
11530 break
11531 else
5213506e
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11533$as_echo "no" >&6; }
e8b05380
PB
11534 fi
11535 done
11536fi
11537
11538if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11539 for ncn_progname in ar; do
11540 if test -n "$ncn_target_tool_prefix"; then
11541 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11542set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11545if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11546 $as_echo_n "(cached) " >&6
4de997d1 11547else
e8b05380
PB
11548 if test -n "$AR_FOR_TARGET"; then
11549 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11550else
1c710c3c
DJ
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
5213506e 11556 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11558 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11560 break 2
11561 fi
11562done
5213506e
RW
11563 done
11564IFS=$as_save_IFS
1c710c3c 11565
4de997d1
PB
11566fi
11567fi
1c710c3c 11568AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11569if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11571$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11572else
5213506e
RW
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
4de997d1
PB
11575fi
11576
5213506e 11577
e8b05380
PB
11578 fi
11579 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11584if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 11585 $as_echo_n "(cached) " >&6
e8b05380
PB
11586else
11587 if test -n "$AR_FOR_TARGET"; then
11588 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11589else
1c710c3c
DJ
11590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $PATH
11592do
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
5213506e 11595 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11597 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11599 break 2
11600 fi
11601done
5213506e
RW
11602 done
11603IFS=$as_save_IFS
1c710c3c 11604
e8b05380
PB
11605fi
11606fi
1c710c3c 11607AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11608if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11610$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11611else
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
e8b05380 11614fi
1c710c3c 11615
5213506e 11616
e8b05380
PB
11617 fi
11618 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11619 done
11620fi
1c710c3c 11621
e8b05380
PB
11622if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11623 set dummy ar
11624 if test $build = $target ; then
11625 AR_FOR_TARGET="$2"
11626 else
11627 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11628 fi
1c00b503
PB
11629else
11630 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11631fi
11632
d1f8db0c
PB
11633else
11634 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11635fi
11636
11637
11638
11639
11640if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11641 if test -n "$with_build_time_tools"; then
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11643$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11644 if test -x $with_build_time_tools/as; then
11645 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11646 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11648$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11649 else
5213506e
RW
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
d1f8db0c 11652 fi
e8b05380
PB
11653 elif test $build != $host && test $have_gcc_for_target = yes; then
11654 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11655 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11656 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11657 fi
11658fi
3e19841a 11659if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11660 # Extract the first word of "as", so it can be a program name with args.
11661set dummy as; ac_word=$2
5213506e
RW
11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11664if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 11665 $as_echo_n "(cached) " >&6
e8b05380 11666else
1c710c3c
DJ
11667 case $AS_FOR_TARGET in
11668 [\\/]* | ?:[\\/]*)
e8b05380
PB
11669 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11670 ;;
e8b05380 11671 *)
1c710c3c
DJ
11672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11673for as_dir in $gcc_cv_tool_dirs
11674do
11675 IFS=$as_save_IFS
11676 test -z "$as_dir" && as_dir=.
5213506e 11677 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11679 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11681 break 2
11682 fi
11683done
5213506e
RW
11684 done
11685IFS=$as_save_IFS
1c710c3c 11686
e8b05380
PB
11687 ;;
11688esac
11689fi
1c710c3c 11690AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11691if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11693$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11694else
5213506e
RW
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11696$as_echo "no" >&6; }
e8b05380
PB
11697fi
11698
5213506e 11699
e8b05380
PB
11700fi
11701if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11702
11703
11704if test -n "$AS_FOR_TARGET"; then
11705 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11706elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11707 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11708fi
11709
11710if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11711 for ncn_progname in as; do
11712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11713set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11716if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11717 $as_echo_n "(cached) " >&6
278a7a38
AO
11718else
11719 if test -n "$AS_FOR_TARGET"; then
11720 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
5213506e 11727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11729 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11731 break 2
11732 fi
11733done
5213506e
RW
11734 done
11735IFS=$as_save_IFS
278a7a38
AO
11736
11737fi
11738fi
11739AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11740if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11742$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11743else
5213506e
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
278a7a38
AO
11746fi
11747
5213506e 11748
278a7a38
AO
11749 done
11750fi
11751
11752if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11753 for ncn_progname in as; do
5213506e
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11755$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11756 if test -x $with_build_time_tools/${ncn_progname}; then
11757 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11759$as_echo "yes" >&6; }
e8b05380
PB
11760 break
11761 else
5213506e
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
e8b05380
PB
11764 fi
11765 done
11766fi
11767
11768if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11769 for ncn_progname in as; do
11770 if test -n "$ncn_target_tool_prefix"; then
11771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11772set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11775if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11776 $as_echo_n "(cached) " >&6
e8b05380
PB
11777else
11778 if test -n "$AS_FOR_TARGET"; then
11779 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11780else
1c710c3c
DJ
11781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
5213506e 11786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11788 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11790 break 2
11791 fi
11792done
5213506e
RW
11793 done
11794IFS=$as_save_IFS
1c710c3c 11795
e8b05380
PB
11796fi
11797fi
1c710c3c 11798AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11799if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11801$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11802else
5213506e
RW
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
e8b05380
PB
11805fi
11806
5213506e 11807
e8b05380
PB
11808 fi
11809 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11811set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11814if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 11815 $as_echo_n "(cached) " >&6
4de997d1 11816else
e8b05380
PB
11817 if test -n "$AS_FOR_TARGET"; then
11818 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11819else
1c710c3c
DJ
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
5213506e 11825 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11827 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11829 break 2
11830 fi
11831done
5213506e
RW
11832 done
11833IFS=$as_save_IFS
1c710c3c 11834
4de997d1
PB
11835fi
11836fi
1c710c3c 11837AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11838if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11840$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11841else
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
4de997d1 11844fi
1c710c3c 11845
5213506e 11846
e8b05380
PB
11847 fi
11848 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11849 done
11850fi
1c710c3c 11851
e8b05380
PB
11852if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11853 set dummy as
11854 if test $build = $target ; then
11855 AS_FOR_TARGET="$2"
11856 else
11857 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11858 fi
1c00b503
PB
11859else
11860 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11861fi
2693c0b0 11862
d1f8db0c
PB
11863else
11864 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11865fi
11866
e8b05380
PB
11867
11868
11869
11870if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11871 if test -n "$with_build_time_tools"; then
5213506e
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11873$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11874 if test -x $with_build_time_tools/dlltool; then
11875 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11876 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11878$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11879 else
5213506e
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
d1f8db0c 11882 fi
e8b05380
PB
11883 elif test $build != $host && test $have_gcc_for_target = yes; then
11884 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11885 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11886 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11887 fi
11888fi
3e19841a 11889if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11890 # Extract the first word of "dlltool", so it can be a program name with args.
11891set dummy dlltool; ac_word=$2
5213506e
RW
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11894if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11895 $as_echo_n "(cached) " >&6
4de997d1 11896else
1c710c3c
DJ
11897 case $DLLTOOL_FOR_TARGET in
11898 [\\/]* | ?:[\\/]*)
e8b05380
PB
11899 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11900 ;;
e8b05380 11901 *)
1c710c3c
DJ
11902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11903for as_dir in $gcc_cv_tool_dirs
11904do
11905 IFS=$as_save_IFS
11906 test -z "$as_dir" && as_dir=.
5213506e 11907 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11909 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11911 break 2
11912 fi
11913done
5213506e
RW
11914 done
11915IFS=$as_save_IFS
1c710c3c 11916
e8b05380
PB
11917 ;;
11918esac
4de997d1 11919fi
1c710c3c 11920DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11921if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11923$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11924else
5213506e
RW
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11926$as_echo "no" >&6; }
4de997d1
PB
11927fi
11928
5213506e 11929
e8b05380
PB
11930fi
11931if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11932
11933
11934if test -n "$DLLTOOL_FOR_TARGET"; then
11935 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11936elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11937 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11938fi
11939
11940if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11941 for ncn_progname in dlltool; do
11942 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11943set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11945$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11946if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 11947 $as_echo_n "(cached) " >&6
278a7a38
AO
11948else
11949 if test -n "$DLLTOOL_FOR_TARGET"; then
11950 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11951else
11952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953for as_dir in $PATH
11954do
11955 IFS=$as_save_IFS
11956 test -z "$as_dir" && as_dir=.
5213506e 11957 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11959 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11961 break 2
11962 fi
11963done
5213506e
RW
11964 done
11965IFS=$as_save_IFS
278a7a38
AO
11966
11967fi
11968fi
11969DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11970if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11972$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11973else
5213506e
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
278a7a38
AO
11976fi
11977
5213506e 11978
278a7a38
AO
11979 done
11980fi
11981
11982if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11983 for ncn_progname in dlltool; do
5213506e
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11985$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11986 if test -x $with_build_time_tools/${ncn_progname}; then
11987 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11989$as_echo "yes" >&6; }
e8b05380
PB
11990 break
11991 else
5213506e
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993$as_echo "no" >&6; }
e8b05380
PB
11994 fi
11995 done
11996fi
11997
11998if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11999 for ncn_progname in dlltool; do
12000 if test -n "$ncn_target_tool_prefix"; then
12001 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12002set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12005if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 12006 $as_echo_n "(cached) " >&6
4de997d1 12007else
e8b05380
PB
12008 if test -n "$DLLTOOL_FOR_TARGET"; then
12009 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 12010else
1c710c3c
DJ
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
5213506e 12016 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12018 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12020 break 2
12021 fi
12022done
5213506e
RW
12023 done
12024IFS=$as_save_IFS
1c710c3c 12025
4de997d1
PB
12026fi
12027fi
1c710c3c 12028DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 12029if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12031$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 12032else
5213506e
RW
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
4de997d1 12035fi
4de997d1 12036
5213506e 12037
e8b05380
PB
12038 fi
12039 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
12040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12044if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 12045 $as_echo_n "(cached) " >&6
4de997d1 12046else
e8b05380
PB
12047 if test -n "$DLLTOOL_FOR_TARGET"; then
12048 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 12049else
1c710c3c
DJ
12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
5213506e 12055 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12057 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12059 break 2
12060 fi
12061done
5213506e
RW
12062 done
12063IFS=$as_save_IFS
1c710c3c 12064
4de997d1
PB
12065fi
12066fi
1c710c3c 12067DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 12068if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
12070$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 12071else
5213506e
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
4de997d1 12074fi
1c710c3c 12075
5213506e 12076
e8b05380
PB
12077 fi
12078 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
12079 done
12080fi
1c710c3c 12081
e8b05380
PB
12082if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
12083 set dummy dlltool
12084 if test $build = $target ; then
12085 DLLTOOL_FOR_TARGET="$2"
12086 else
12087 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12088 fi
1c00b503
PB
12089else
12090 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
12091fi
12092
d1f8db0c
PB
12093else
12094 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
12095fi
12096
4de997d1 12097
e8b05380
PB
12098
12099
c7c99407
IS
12100if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
12101 if test -n "$with_build_time_tools"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
12103$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
12104 if test -x $with_build_time_tools/dsymutil; then
12105 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
12106 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
12108$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
12109 else
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12111$as_echo "no" >&6; }
12112 fi
12113 elif test $build != $host && test $have_gcc_for_target = yes; then
12114 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
12115 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
12116 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12117 fi
12118fi
12119if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12120 # Extract the first word of "dsymutil", so it can be a program name with args.
12121set dummy dsymutil; ac_word=$2
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
12124if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126else
12127 case $DSYMUTIL_FOR_TARGET in
12128 [\\/]* | ?:[\\/]*)
12129 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
12130 ;;
12131 *)
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133for as_dir in $gcc_cv_tool_dirs
12134do
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12139 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 break 2
12142 fi
12143done
12144 done
12145IFS=$as_save_IFS
12146
12147 ;;
12148esac
12149fi
12150DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
12151if test -n "$DSYMUTIL_FOR_TARGET"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12153$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12154else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159
12160fi
12161if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
12162
12163
12164if test -n "$DSYMUTIL_FOR_TARGET"; then
12165 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
12166elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12167 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12168fi
12169
12170if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12171 for ncn_progname in dsymutil; do
12172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12173set dummy ${ncn_progname}; ac_word=$2
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12175$as_echo_n "checking for $ac_word... " >&6; }
12176if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12177 $as_echo_n "(cached) " >&6
12178else
12179 if test -n "$DSYMUTIL_FOR_TARGET"; then
12180 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12181else
12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183for as_dir in $PATH
12184do
12185 IFS=$as_save_IFS
12186 test -z "$as_dir" && as_dir=.
12187 for ac_exec_ext in '' $ac_executable_extensions; do
12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191 break 2
12192 fi
12193done
12194 done
12195IFS=$as_save_IFS
12196
12197fi
12198fi
12199DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12200if test -n "$DSYMUTIL_FOR_TARGET"; then
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12202$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12203else
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205$as_echo "no" >&6; }
12206fi
12207
12208
12209 done
12210fi
12211
12212if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
12213 for ncn_progname in dsymutil; do
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12215$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12216 if test -x $with_build_time_tools/${ncn_progname}; then
12217 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219$as_echo "yes" >&6; }
12220 break
12221 else
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12223$as_echo "no" >&6; }
12224 fi
12225 done
12226fi
12227
12228if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
12229 for ncn_progname in dsymutil; do
12230 if test -n "$ncn_target_tool_prefix"; then
12231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12232set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234$as_echo_n "checking for $ac_word... " >&6; }
12235if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12236 $as_echo_n "(cached) " >&6
12237else
12238 if test -n "$DSYMUTIL_FOR_TARGET"; then
12239 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12240else
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12250 break 2
12251 fi
12252done
12253 done
12254IFS=$as_save_IFS
12255
12256fi
12257fi
12258DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12259if test -n "$DSYMUTIL_FOR_TARGET"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12261$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12262else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264$as_echo "no" >&6; }
12265fi
12266
12267
12268 fi
12269 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
12270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12271set dummy ${ncn_progname}; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$DSYMUTIL_FOR_TARGET"; then
12278 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
12298if test -n "$DSYMUTIL_FOR_TARGET"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
12300$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307 fi
12308 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
12309 done
12310fi
12311
12312if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
12313 set dummy dsymutil
12314 if test $build = $target ; then
12315 DSYMUTIL_FOR_TARGET="$2"
12316 else
12317 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
12318 fi
12319else
12320 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
12321fi
12322
12323else
12324 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
12325fi
12326
12327
12328
12329
e8b05380
PB
12330if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
12331 if test -n "$with_build_time_tools"; then
5213506e
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
12333$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12334 if test -x $with_build_time_tools/ld; then
12335 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
12336 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
12338$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 12339 else
5213506e
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
d1f8db0c 12342 fi
e8b05380
PB
12343 elif test $build != $host && test $have_gcc_for_target = yes; then
12344 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
12345 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
12346 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 12347 fi
e8b05380 12348fi
3e19841a 12349if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12350 # Extract the first word of "ld", so it can be a program name with args.
12351set dummy ld; ac_word=$2
5213506e
RW
12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12354if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 12355 $as_echo_n "(cached) " >&6
4de997d1 12356else
1c710c3c
DJ
12357 case $LD_FOR_TARGET in
12358 [\\/]* | ?:[\\/]*)
e8b05380
PB
12359 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
12360 ;;
e8b05380 12361 *)
1c710c3c
DJ
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $gcc_cv_tool_dirs
12364do
12365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
5213506e 12367 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12369 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12371 break 2
12372 fi
12373done
5213506e
RW
12374 done
12375IFS=$as_save_IFS
1c710c3c 12376
e8b05380
PB
12377 ;;
12378esac
4de997d1 12379fi
1c710c3c 12380LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 12381if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12383$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 12384else
5213506e
RW
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12386$as_echo "no" >&6; }
4de997d1 12387fi
2693c0b0 12388
5213506e 12389
e8b05380
PB
12390fi
12391if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
12392
12393
12394if test -n "$LD_FOR_TARGET"; then
12395 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
12396elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12397 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12398fi
12399
12400if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
12401 for ncn_progname in ld; do
12402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12405$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12406if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12407 $as_echo_n "(cached) " >&6
278a7a38
AO
12408else
12409 if test -n "$LD_FOR_TARGET"; then
12410 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
12411else
12412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413for as_dir in $PATH
12414do
12415 IFS=$as_save_IFS
12416 test -z "$as_dir" && as_dir=.
5213506e 12417 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12419 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12421 break 2
12422 fi
12423done
5213506e
RW
12424 done
12425IFS=$as_save_IFS
278a7a38
AO
12426
12427fi
12428fi
12429LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
12430if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12432$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 12433else
5213506e
RW
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12435$as_echo "no" >&6; }
278a7a38
AO
12436fi
12437
5213506e 12438
278a7a38
AO
12439 done
12440fi
12441
12442if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12443 for ncn_progname in ld; do
5213506e
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12445$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12446 if test -x $with_build_time_tools/${ncn_progname}; then
12447 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12449$as_echo "yes" >&6; }
e8b05380
PB
12450 break
12451 else
5213506e
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12453$as_echo "no" >&6; }
e8b05380
PB
12454 fi
12455 done
ca9f4b81
AO
12456fi
12457
e8b05380
PB
12458if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
12459 for ncn_progname in ld; do
12460 if test -n "$ncn_target_tool_prefix"; then
12461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12465if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12466 $as_echo_n "(cached) " >&6
ca9f4b81 12467else
4de997d1
PB
12468 if test -n "$LD_FOR_TARGET"; then
12469 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12470else
1c710c3c
DJ
12471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
5213506e 12476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12478 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12480 break 2
12481 fi
12482done
5213506e
RW
12483 done
12484IFS=$as_save_IFS
1c710c3c 12485
ca9f4b81
AO
12486fi
12487fi
1c710c3c 12488LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 12489if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12491$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12492else
5213506e
RW
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
ca9f4b81
AO
12495fi
12496
5213506e 12497
e8b05380
PB
12498 fi
12499 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
12500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12501set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12504if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 12505 $as_echo_n "(cached) " >&6
ca9f4b81 12506else
2693c0b0
PB
12507 if test -n "$LD_FOR_TARGET"; then
12508 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 12509else
1c710c3c
DJ
12510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511for as_dir in $PATH
12512do
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
5213506e 12515 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12517 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12519 break 2
12520 fi
12521done
5213506e
RW
12522 done
12523IFS=$as_save_IFS
1c710c3c 12524
ca9f4b81
AO
12525fi
12526fi
1c710c3c 12527LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 12528if test -n "$LD_FOR_TARGET"; then
5213506e
RW
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
12530$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 12531else
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
ca9f4b81 12534fi
1c710c3c 12535
5213506e 12536
e8b05380
PB
12537 fi
12538 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
12539 done
12540fi
1c710c3c 12541
2693c0b0
PB
12542if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
12543 set dummy ld
12544 if test $build = $target ; then
12545 LD_FOR_TARGET="$2"
ca9f4b81 12546 else
2693c0b0 12547 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12548 fi
1c00b503
PB
12549else
12550 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
12551fi
12552
d1f8db0c
PB
12553else
12554 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
12555fi
12556
12557
12558
12559
12560if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12561 if test -n "$with_build_time_tools"; then
5213506e
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12563$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12564 if test -x $with_build_time_tools/lipo; then
12565 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12566 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12568$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 12569 else
5213506e
RW
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571$as_echo "no" >&6; }
d1f8db0c 12572 fi
e8b05380
PB
12573 elif test $build != $host && test $have_gcc_for_target = yes; then
12574 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
12575 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12576 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
12577 fi
12578fi
278a7a38
AO
12579if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12580 # Extract the first word of "lipo", so it can be a program name with args.
12581set dummy lipo; ac_word=$2
5213506e
RW
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12583$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12584if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 12585 $as_echo_n "(cached) " >&6
278a7a38
AO
12586else
12587 case $LIPO_FOR_TARGET in
12588 [\\/]* | ?:[\\/]*)
12589 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12590 ;;
12591 *)
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593for as_dir in $gcc_cv_tool_dirs
12594do
12595 IFS=$as_save_IFS
12596 test -z "$as_dir" && as_dir=.
5213506e 12597 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12599 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12601 break 2
12602 fi
12603done
5213506e
RW
12604 done
12605IFS=$as_save_IFS
278a7a38
AO
12606
12607 ;;
12608esac
12609fi
12610LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12611if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12613$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12614else
5213506e
RW
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
278a7a38
AO
12617fi
12618
5213506e 12619
278a7a38
AO
12620fi
12621if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12622
12623
12624if test -n "$LIPO_FOR_TARGET"; then
12625 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12626elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12627 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12628fi
12629
12630if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12631 for ncn_progname in lipo; do
12632 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12633set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12636if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12637 $as_echo_n "(cached) " >&6
e8b05380 12638else
278a7a38
AO
12639 if test -n "$LIPO_FOR_TARGET"; then
12640 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12641else
12642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12643for as_dir in $PATH
1c710c3c
DJ
12644do
12645 IFS=$as_save_IFS
12646 test -z "$as_dir" && as_dir=.
5213506e 12647 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12649 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12651 break 2
12652 fi
12653done
5213506e
RW
12654 done
12655IFS=$as_save_IFS
1c710c3c 12656
e8b05380 12657fi
278a7a38
AO
12658fi
12659LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12660if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12662$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12663else
5213506e
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665$as_echo "no" >&6; }
e8b05380
PB
12666fi
12667
5213506e 12668
278a7a38 12669 done
e8b05380 12670fi
278a7a38
AO
12671
12672if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12673 for ncn_progname in lipo; do
5213506e
RW
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12675$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12676 if test -x $with_build_time_tools/${ncn_progname}; then
12677 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12679$as_echo "yes" >&6; }
e8b05380
PB
12680 break
12681 else
5213506e
RW
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12683$as_echo "no" >&6; }
e8b05380
PB
12684 fi
12685 done
12686fi
12687
12688if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12689 for ncn_progname in lipo; do
12690 if test -n "$ncn_target_tool_prefix"; then
12691 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12692set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12695if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12696 $as_echo_n "(cached) " >&6
040b1c5a
GK
12697else
12698 if test -n "$LIPO_FOR_TARGET"; then
12699 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12700else
1c710c3c
DJ
12701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702for as_dir in $PATH
12703do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
5213506e 12706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12708 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12710 break 2
12711 fi
12712done
5213506e
RW
12713 done
12714IFS=$as_save_IFS
1c710c3c 12715
040b1c5a
GK
12716fi
12717fi
1c710c3c 12718LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12719if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12721$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12722else
5213506e
RW
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724$as_echo "no" >&6; }
040b1c5a
GK
12725fi
12726
5213506e 12727
e8b05380
PB
12728 fi
12729 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12731set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12734if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 12735 $as_echo_n "(cached) " >&6
040b1c5a
GK
12736else
12737 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12738 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12739else
1c710c3c
DJ
12740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741for as_dir in $PATH
12742do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
5213506e 12745 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12747 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12749 break 2
12750 fi
12751done
5213506e
RW
12752 done
12753IFS=$as_save_IFS
1c710c3c 12754
040b1c5a
GK
12755fi
12756fi
1c710c3c 12757LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12758if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12760$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12761else
5213506e
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
040b1c5a 12764fi
1c710c3c 12765
5213506e 12766
e8b05380
PB
12767 fi
12768 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12769 done
12770fi
1c710c3c 12771
040b1c5a
GK
12772if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12773 set dummy lipo
12774 if test $build = $target ; then
12775 LIPO_FOR_TARGET="$2"
12776 else
12777 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12778 fi
1c00b503
PB
12779else
12780 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12781fi
12782
d1f8db0c
PB
12783else
12784 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12785fi
12786
12787
12788
12789
12790if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12791 if test -n "$with_build_time_tools"; then
5213506e
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12793$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12794 if test -x $with_build_time_tools/nm; then
12795 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12796 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12798$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12799 else
5213506e
RW
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801$as_echo "no" >&6; }
d1f8db0c 12802 fi
e8b05380
PB
12803 elif test $build != $host && test $have_gcc_for_target = yes; then
12804 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12805 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12806 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12807 fi
12808fi
3e19841a 12809if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12810 # Extract the first word of "nm", so it can be a program name with args.
12811set dummy nm; ac_word=$2
5213506e
RW
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12814if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 12815 $as_echo_n "(cached) " >&6
e8b05380 12816else
1c710c3c
DJ
12817 case $NM_FOR_TARGET in
12818 [\\/]* | ?:[\\/]*)
e8b05380
PB
12819 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12820 ;;
e8b05380 12821 *)
1c710c3c
DJ
12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12823for as_dir in $gcc_cv_tool_dirs
12824do
12825 IFS=$as_save_IFS
12826 test -z "$as_dir" && as_dir=.
5213506e 12827 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12829 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12831 break 2
12832 fi
12833done
5213506e
RW
12834 done
12835IFS=$as_save_IFS
1c710c3c 12836
e8b05380
PB
12837 ;;
12838esac
12839fi
1c710c3c 12840NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12841if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12843$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12844else
5213506e
RW
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12846$as_echo "no" >&6; }
e8b05380
PB
12847fi
12848
5213506e 12849
e8b05380
PB
12850fi
12851if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12852
12853
12854if test -n "$NM_FOR_TARGET"; then
12855 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12856elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12857 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12858fi
12859
12860if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12861 for ncn_progname in nm; do
12862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12863set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12866if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12867 $as_echo_n "(cached) " >&6
278a7a38
AO
12868else
12869 if test -n "$NM_FOR_TARGET"; then
12870 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12871else
12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
5213506e 12877 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12879 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12881 break 2
12882 fi
12883done
5213506e
RW
12884 done
12885IFS=$as_save_IFS
278a7a38
AO
12886
12887fi
12888fi
12889NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12890if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12892$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12893else
5213506e
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
278a7a38
AO
12896fi
12897
5213506e 12898
278a7a38
AO
12899 done
12900fi
12901
12902if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12903 for ncn_progname in nm; do
5213506e
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12905$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12906 if test -x $with_build_time_tools/${ncn_progname}; then
12907 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12909$as_echo "yes" >&6; }
e8b05380
PB
12910 break
12911 else
5213506e
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12913$as_echo "no" >&6; }
e8b05380
PB
12914 fi
12915 done
12916fi
12917
12918if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12919 for ncn_progname in nm; do
12920 if test -n "$ncn_target_tool_prefix"; then
12921 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12922set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12925if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12926 $as_echo_n "(cached) " >&6
ca9f4b81 12927else
4de997d1
PB
12928 if test -n "$NM_FOR_TARGET"; then
12929 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12930else
1c710c3c
DJ
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934 IFS=$as_save_IFS
12935 test -z "$as_dir" && as_dir=.
5213506e 12936 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12938 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12940 break 2
12941 fi
12942done
5213506e
RW
12943 done
12944IFS=$as_save_IFS
1c710c3c 12945
ca9f4b81
AO
12946fi
12947fi
1c710c3c 12948NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12949if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12951$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12952else
5213506e
RW
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
ca9f4b81
AO
12955fi
12956
5213506e 12957
e8b05380
PB
12958 fi
12959 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12961set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12964if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 12965 $as_echo_n "(cached) " >&6
ca9f4b81 12966else
2693c0b0
PB
12967 if test -n "$NM_FOR_TARGET"; then
12968 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12969else
1c710c3c
DJ
12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $PATH
12972do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
5213506e 12975 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12977 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12979 break 2
12980 fi
12981done
5213506e
RW
12982 done
12983IFS=$as_save_IFS
1c710c3c 12984
ca9f4b81
AO
12985fi
12986fi
1c710c3c 12987NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12988if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12990$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12991else
5213506e
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
ca9f4b81 12994fi
1c710c3c 12995
5213506e 12996
e8b05380
PB
12997 fi
12998 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12999 done
13000fi
1c710c3c 13001
2693c0b0
PB
13002if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
13003 set dummy nm
13004 if test $build = $target ; then
13005 NM_FOR_TARGET="$2"
ca9f4b81 13006 else
2693c0b0 13007 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13008 fi
1c00b503
PB
13009else
13010 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
13011fi
13012
d1f8db0c
PB
13013else
13014 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
13015fi
13016
13017
13018
13019
9bccfdf5
AP
13020if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13021 if test -n "$with_build_time_tools"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
13023$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
13024 if test -x $with_build_time_tools/objcopy; then
13025 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
13026 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
13028$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
13029 else
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031$as_echo "no" >&6; }
13032 fi
13033 elif test $build != $host && test $have_gcc_for_target = yes; then
13034 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
13035 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
13036 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13037 fi
13038fi
13039if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13040 # Extract the first word of "objcopy", so it can be a program name with args.
13041set dummy objcopy; ac_word=$2
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13044if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
13045 $as_echo_n "(cached) " >&6
13046else
13047 case $OBJCOPY_FOR_TARGET in
13048 [\\/]* | ?:[\\/]*)
13049 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
13050 ;;
13051 *)
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053for as_dir in $gcc_cv_tool_dirs
13054do
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
13059 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13062 fi
13063done
13064 done
13065IFS=$as_save_IFS
13066
13067 ;;
13068esac
13069fi
13070OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13071if test -n "$OBJCOPY_FOR_TARGET"; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13073$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13074else
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076$as_echo "no" >&6; }
13077fi
13078
13079
13080fi
13081if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
13082
13083
13084if test -n "$OBJCOPY_FOR_TARGET"; then
13085 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
13086elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13087 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13088fi
13089
13090if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13091 for ncn_progname in objcopy; do
13092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13093set dummy ${ncn_progname}; ac_word=$2
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13096if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
13097 $as_echo_n "(cached) " >&6
13098else
13099 if test -n "$OBJCOPY_FOR_TARGET"; then
13100 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13101else
13102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103for as_dir in $PATH
13104do
13105 IFS=$as_save_IFS
13106 test -z "$as_dir" && as_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
13109 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111 break 2
13112 fi
13113done
13114 done
13115IFS=$as_save_IFS
13116
13117fi
13118fi
13119OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13120if test -n "$OBJCOPY_FOR_TARGET"; then
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13122$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13123else
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
13126fi
13127
13128
13129 done
13130fi
13131
13132if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
13133 for ncn_progname in objcopy; do
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13135$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13136 if test -x $with_build_time_tools/${ncn_progname}; then
13137 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13139$as_echo "yes" >&6; }
13140 break
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143$as_echo "no" >&6; }
13144 fi
13145 done
13146fi
13147
13148if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
13149 for ncn_progname in objcopy; do
13150 if test -n "$ncn_target_tool_prefix"; then
13151 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13152set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13155if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
13156 $as_echo_n "(cached) " >&6
13157else
13158 if test -n "$OBJCOPY_FOR_TARGET"; then
13159 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13160else
13161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162for as_dir in $PATH
13163do
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
13166 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
13168 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170 break 2
13171 fi
13172done
13173 done
13174IFS=$as_save_IFS
13175
13176fi
13177fi
13178OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13179if test -n "$OBJCOPY_FOR_TARGET"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13181$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13182else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
13185fi
13186
13187
13188 fi
13189 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
13190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13191set dummy ${ncn_progname}; ac_word=$2
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13194if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
13195 $as_echo_n "(cached) " >&6
13196else
13197 if test -n "$OBJCOPY_FOR_TARGET"; then
13198 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
13199else
13200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201for as_dir in $PATH
13202do
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
13207 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13210 fi
13211done
13212 done
13213IFS=$as_save_IFS
13214
13215fi
13216fi
13217OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
13218if test -n "$OBJCOPY_FOR_TARGET"; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
13220$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
13221else
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
13224fi
13225
13226
13227 fi
13228 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
13229 done
13230fi
13231
13232if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
13233 set dummy objcopy
13234 if test $build = $target ; then
13235 OBJCOPY_FOR_TARGET="$2"
13236 else
13237 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
13238 fi
13239else
13240 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
13241fi
13242
13243else
13244 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
13245fi
13246
13247
13248
13249
e8b05380
PB
13250if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
13251 if test -n "$with_build_time_tools"; then
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
13253$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13254 if test -x $with_build_time_tools/objdump; then
13255 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
13256 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
13258$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 13259 else
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261$as_echo "no" >&6; }
d1f8db0c 13262 fi
e8b05380
PB
13263 elif test $build != $host && test $have_gcc_for_target = yes; then
13264 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
13265 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
13266 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
13267 fi
13268fi
3e19841a 13269if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13270 # Extract the first word of "objdump", so it can be a program name with args.
13271set dummy objdump; ac_word=$2
5213506e
RW
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13274if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13275 $as_echo_n "(cached) " >&6
e8b05380 13276else
1c710c3c
DJ
13277 case $OBJDUMP_FOR_TARGET in
13278 [\\/]* | ?:[\\/]*)
e8b05380
PB
13279 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
13280 ;;
e8b05380 13281 *)
1c710c3c
DJ
13282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13283for as_dir in $gcc_cv_tool_dirs
13284do
13285 IFS=$as_save_IFS
13286 test -z "$as_dir" && as_dir=.
5213506e 13287 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13289 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13291 break 2
13292 fi
13293done
5213506e
RW
13294 done
13295IFS=$as_save_IFS
1c710c3c 13296
e8b05380
PB
13297 ;;
13298esac
13299fi
1c710c3c 13300OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 13301if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13303$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 13304else
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
e8b05380
PB
13307fi
13308
5213506e 13309
e8b05380
PB
13310fi
13311if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
13312
13313
13314if test -n "$OBJDUMP_FOR_TARGET"; then
13315 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
13316elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13317 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13318fi
13319
13320if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13321 for ncn_progname in objdump; do
13322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13323set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13325$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13326if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13327 $as_echo_n "(cached) " >&6
278a7a38
AO
13328else
13329 if test -n "$OBJDUMP_FOR_TARGET"; then
13330 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13331else
13332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333for as_dir in $PATH
13334do
13335 IFS=$as_save_IFS
13336 test -z "$as_dir" && as_dir=.
5213506e 13337 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13339 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 13340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13341 break 2
13342 fi
13343done
5213506e
RW
13344 done
13345IFS=$as_save_IFS
278a7a38
AO
13346
13347fi
13348fi
13349OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
13350if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13352$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 13353else
5213506e
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13355$as_echo "no" >&6; }
278a7a38
AO
13356fi
13357
5213506e 13358
278a7a38
AO
13359 done
13360fi
13361
13362if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13363 for ncn_progname in objdump; do
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13365$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13366 if test -x $with_build_time_tools/${ncn_progname}; then
13367 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369$as_echo "yes" >&6; }
e8b05380
PB
13370 break
13371 else
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373$as_echo "no" >&6; }
e8b05380
PB
13374 fi
13375 done
13376fi
13377
13378if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
13379 for ncn_progname in objdump; do
13380 if test -n "$ncn_target_tool_prefix"; then
13381 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13382set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13384$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13385if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13386 $as_echo_n "(cached) " >&6
d739199a
DJ
13387else
13388 if test -n "$OBJDUMP_FOR_TARGET"; then
13389 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13390else
1c710c3c
DJ
13391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392for as_dir in $PATH
13393do
13394 IFS=$as_save_IFS
13395 test -z "$as_dir" && as_dir=.
5213506e 13396 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13398 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13400 break 2
13401 fi
13402done
5213506e
RW
13403 done
13404IFS=$as_save_IFS
1c710c3c 13405
d739199a
DJ
13406fi
13407fi
1c710c3c 13408OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13409if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13411$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13412else
5213506e
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13414$as_echo "no" >&6; }
d739199a
DJ
13415fi
13416
5213506e 13417
e8b05380
PB
13418 fi
13419 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
13420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 13421set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13424if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 13425 $as_echo_n "(cached) " >&6
d739199a
DJ
13426else
13427 if test -n "$OBJDUMP_FOR_TARGET"; then
13428 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
13429else
1c710c3c
DJ
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
5213506e 13435 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13437 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13439 break 2
13440 fi
13441done
5213506e
RW
13442 done
13443IFS=$as_save_IFS
1c710c3c 13444
d739199a
DJ
13445fi
13446fi
1c710c3c 13447OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 13448if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
13450$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 13451else
5213506e
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
d739199a 13454fi
1c710c3c 13455
5213506e 13456
e8b05380
PB
13457 fi
13458 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
13459 done
13460fi
1c710c3c 13461
d739199a
DJ
13462if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
13463 set dummy objdump
13464 if test $build = $target ; then
13465 OBJDUMP_FOR_TARGET="$2"
13466 else
13467 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13468 fi
1c00b503
PB
13469else
13470 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
13471fi
13472
d1f8db0c
PB
13473else
13474 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
13475fi
13476
13477
13478
13479
e4a9a572
IS
13480if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13481 if test -n "$with_build_time_tools"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
13483$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
13484 if test -x $with_build_time_tools/otool; then
13485 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
13486 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
13488$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
13489 else
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13491$as_echo "no" >&6; }
13492 fi
13493 elif test $build != $host && test $have_gcc_for_target = yes; then
13494 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
13495 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
13496 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13497 fi
13498fi
13499if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13500 # Extract the first word of "otool", so it can be a program name with args.
13501set dummy otool; ac_word=$2
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13503$as_echo_n "checking for $ac_word... " >&6; }
13504if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
13505 $as_echo_n "(cached) " >&6
13506else
13507 case $OTOOL_FOR_TARGET in
13508 [\\/]* | ?:[\\/]*)
13509 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
13510 ;;
13511 *)
13512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13513for as_dir in $gcc_cv_tool_dirs
13514do
13515 IFS=$as_save_IFS
13516 test -z "$as_dir" && as_dir=.
13517 for ac_exec_ext in '' $ac_executable_extensions; do
13518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13519 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13521 break 2
13522 fi
13523done
13524 done
13525IFS=$as_save_IFS
13526
13527 ;;
13528esac
13529fi
13530OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13531if test -n "$OTOOL_FOR_TARGET"; then
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13533$as_echo "$OTOOL_FOR_TARGET" >&6; }
13534else
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536$as_echo "no" >&6; }
13537fi
13538
13539
13540fi
13541if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
13542
13543
13544if test -n "$OTOOL_FOR_TARGET"; then
13545 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
13546elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13547 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13548fi
13549
13550if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13551 for ncn_progname in otool; do
13552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13553set dummy ${ncn_progname}; ac_word=$2
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
13556if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13557 $as_echo_n "(cached) " >&6
13558else
13559 if test -n "$OTOOL_FOR_TARGET"; then
13560 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13561else
13562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13569 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13572 fi
13573done
13574 done
13575IFS=$as_save_IFS
13576
13577fi
13578fi
13579OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13580if test -n "$OTOOL_FOR_TARGET"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13582$as_echo "$OTOOL_FOR_TARGET" >&6; }
13583else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586fi
13587
13588
13589 done
13590fi
13591
13592if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
13593 for ncn_progname in otool; do
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13595$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13596 if test -x $with_build_time_tools/${ncn_progname}; then
13597 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13599$as_echo "yes" >&6; }
13600 break
13601 else
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603$as_echo "no" >&6; }
13604 fi
13605 done
13606fi
13607
13608if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
13609 for ncn_progname in otool; do
13610 if test -n "$ncn_target_tool_prefix"; then
13611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13612set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13614$as_echo_n "checking for $ac_word... " >&6; }
13615if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13616 $as_echo_n "(cached) " >&6
13617else
13618 if test -n "$OTOOL_FOR_TARGET"; then
13619 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13620else
13621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13622for as_dir in $PATH
13623do
13624 IFS=$as_save_IFS
13625 test -z "$as_dir" && as_dir=.
13626 for ac_exec_ext in '' $ac_executable_extensions; do
13627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13628 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13630 break 2
13631 fi
13632done
13633 done
13634IFS=$as_save_IFS
13635
13636fi
13637fi
13638OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13639if test -n "$OTOOL_FOR_TARGET"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13641$as_echo "$OTOOL_FOR_TARGET" >&6; }
13642else
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13644$as_echo "no" >&6; }
13645fi
13646
13647
13648 fi
13649 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
13650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13651set dummy ${ncn_progname}; ac_word=$2
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653$as_echo_n "checking for $ac_word... " >&6; }
13654if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
13655 $as_echo_n "(cached) " >&6
13656else
13657 if test -n "$OTOOL_FOR_TARGET"; then
13658 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
13659else
13660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661for as_dir in $PATH
13662do
13663 IFS=$as_save_IFS
13664 test -z "$as_dir" && as_dir=.
13665 for ac_exec_ext in '' $ac_executable_extensions; do
13666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13667 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
13668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13669 break 2
13670 fi
13671done
13672 done
13673IFS=$as_save_IFS
13674
13675fi
13676fi
13677OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
13678if test -n "$OTOOL_FOR_TARGET"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
13680$as_echo "$OTOOL_FOR_TARGET" >&6; }
13681else
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13683$as_echo "no" >&6; }
13684fi
13685
13686
13687 fi
13688 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
13689 done
13690fi
13691
13692if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
13693 set dummy otool
13694 if test $build = $target ; then
13695 OTOOL_FOR_TARGET="$2"
13696 else
13697 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13698 fi
13699else
13700 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
13701fi
13702
13703else
13704 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
13705fi
13706
13707
13708
13709
e8b05380
PB
13710if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
13711 if test -n "$with_build_time_tools"; then
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
13713$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13714 if test -x $with_build_time_tools/ranlib; then
13715 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
13716 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
13718$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 13719 else
5213506e
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
d1f8db0c 13722 fi
e8b05380
PB
13723 elif test $build != $host && test $have_gcc_for_target = yes; then
13724 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
13725 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
13726 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
13727 fi
13728fi
3e19841a 13729if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13730 # Extract the first word of "ranlib", so it can be a program name with args.
13731set dummy ranlib; ac_word=$2
5213506e
RW
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13734if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 13735 $as_echo_n "(cached) " >&6
e8b05380 13736else
1c710c3c
DJ
13737 case $RANLIB_FOR_TARGET in
13738 [\\/]* | ?:[\\/]*)
e8b05380
PB
13739 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
13740 ;;
e8b05380 13741 *)
1c710c3c
DJ
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743for as_dir in $gcc_cv_tool_dirs
13744do
13745 IFS=$as_save_IFS
13746 test -z "$as_dir" && as_dir=.
5213506e 13747 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13749 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13751 break 2
13752 fi
13753done
5213506e
RW
13754 done
13755IFS=$as_save_IFS
1c710c3c 13756
e8b05380
PB
13757 ;;
13758esac
13759fi
1c710c3c 13760RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 13761if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13763$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 13764else
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766$as_echo "no" >&6; }
e8b05380
PB
13767fi
13768
5213506e 13769
e8b05380
PB
13770fi
13771if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
13772
13773
13774if test -n "$RANLIB_FOR_TARGET"; then
13775 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
13776elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13777 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13778fi
13779
13780if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13781 for ncn_progname in ranlib; do
13782 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13783set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13785$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13786if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13787 $as_echo_n "(cached) " >&6
278a7a38
AO
13788else
13789 if test -n "$RANLIB_FOR_TARGET"; then
13790 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
13791else
13792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13793for as_dir in $PATH
13794do
13795 IFS=$as_save_IFS
13796 test -z "$as_dir" && as_dir=.
5213506e 13797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13799 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13801 break 2
13802 fi
13803done
5213506e
RW
13804 done
13805IFS=$as_save_IFS
278a7a38
AO
13806
13807fi
13808fi
13809RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
13810if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13812$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 13813else
5213506e
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
278a7a38
AO
13816fi
13817
5213506e 13818
278a7a38
AO
13819 done
13820fi
13821
13822if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13823 for ncn_progname in ranlib; do
5213506e
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13825$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13826 if test -x $with_build_time_tools/${ncn_progname}; then
13827 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13829$as_echo "yes" >&6; }
e8b05380
PB
13830 break
13831 else
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
e8b05380
PB
13834 fi
13835 done
13836fi
13837
13838if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
13839 for ncn_progname in ranlib; do
13840 if test -n "$ncn_target_tool_prefix"; then
13841 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 13842set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13844$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13845if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13846 $as_echo_n "(cached) " >&6
ca9f4b81 13847else
4de997d1
PB
13848 if test -n "$RANLIB_FOR_TARGET"; then
13849 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13850else
1c710c3c
DJ
13851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852for as_dir in $PATH
13853do
13854 IFS=$as_save_IFS
13855 test -z "$as_dir" && as_dir=.
5213506e 13856 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13858 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13860 break 2
13861 fi
13862done
5213506e
RW
13863 done
13864IFS=$as_save_IFS
1c710c3c 13865
ca9f4b81
AO
13866fi
13867fi
1c710c3c 13868RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 13869if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13871$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13872else
5213506e
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874$as_echo "no" >&6; }
ca9f4b81
AO
13875fi
13876
5213506e 13877
e8b05380
PB
13878 fi
13879 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
13880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13881set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13883$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13884if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 13885 $as_echo_n "(cached) " >&6
ca9f4b81 13886else
2693c0b0
PB
13887 if test -n "$RANLIB_FOR_TARGET"; then
13888 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 13889else
1c710c3c
DJ
13890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13891for as_dir in $PATH
13892do
13893 IFS=$as_save_IFS
13894 test -z "$as_dir" && as_dir=.
5213506e 13895 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13897 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 13898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13899 break 2
13900 fi
13901done
5213506e
RW
13902 done
13903IFS=$as_save_IFS
1c710c3c 13904
ca9f4b81
AO
13905fi
13906fi
1c710c3c 13907RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 13908if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
13910$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 13911else
5213506e
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913$as_echo "no" >&6; }
ca9f4b81 13914fi
1c710c3c 13915
5213506e 13916
e8b05380
PB
13917 fi
13918 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
13919 done
13920fi
1c710c3c 13921
e8b05380
PB
13922if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
13923 set dummy ranlib
13924 if test $build = $target ; then
13925 RANLIB_FOR_TARGET="$2"
13926 else
13927 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13928 fi
1c00b503
PB
13929else
13930 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13931fi
2693c0b0 13932
d1f8db0c
PB
13933else
13934 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13935fi
13936
e8b05380
PB
13937
13938
13939
e7a82751
RM
13940if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13941 if test -n "$with_build_time_tools"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13943$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13944 if test -x $with_build_time_tools/readelf; then
13945 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13946 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13948$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13949 else
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13951$as_echo "no" >&6; }
13952 fi
13953 elif test $build != $host && test $have_gcc_for_target = yes; then
13954 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13955 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13956 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13957 fi
13958fi
13959if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13960 # Extract the first word of "readelf", so it can be a program name with args.
13961set dummy readelf; ac_word=$2
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13964if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
13965 $as_echo_n "(cached) " >&6
13966else
13967 case $READELF_FOR_TARGET in
13968 [\\/]* | ?:[\\/]*)
13969 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13970 ;;
13971 *)
13972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13973for as_dir in $gcc_cv_tool_dirs
13974do
13975 IFS=$as_save_IFS
13976 test -z "$as_dir" && as_dir=.
13977 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
13979 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13981 break 2
13982 fi
13983done
13984 done
13985IFS=$as_save_IFS
13986
13987 ;;
13988esac
13989fi
13990READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13991if test -n "$READELF_FOR_TARGET"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13993$as_echo "$READELF_FOR_TARGET" >&6; }
13994else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996$as_echo "no" >&6; }
13997fi
13998
13999
14000fi
14001if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
14002
14003
14004if test -n "$READELF_FOR_TARGET"; then
14005 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
14006elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14007 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14008fi
14009
14010if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
14011 for ncn_progname in readelf; do
14012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14013set dummy ${ncn_progname}; ac_word=$2
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14015$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14016if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
14017 $as_echo_n "(cached) " >&6
14018else
14019 if test -n "$READELF_FOR_TARGET"; then
14020 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14021else
14022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14023for as_dir in $PATH
14024do
14025 IFS=$as_save_IFS
14026 test -z "$as_dir" && as_dir=.
14027 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
14029 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14031 break 2
14032 fi
14033done
14034 done
14035IFS=$as_save_IFS
14036
14037fi
14038fi
14039READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14040if test -n "$READELF_FOR_TARGET"; then
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14042$as_echo "$READELF_FOR_TARGET" >&6; }
14043else
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14045$as_echo "no" >&6; }
14046fi
14047
14048
14049 done
14050fi
14051
14052if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
14053 for ncn_progname in readelf; do
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14055$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14056 if test -x $with_build_time_tools/${ncn_progname}; then
14057 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14059$as_echo "yes" >&6; }
14060 break
14061 else
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063$as_echo "no" >&6; }
14064 fi
14065 done
14066fi
14067
14068if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
14069 for ncn_progname in readelf; do
14070 if test -n "$ncn_target_tool_prefix"; then
14071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14074$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14075if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
14076 $as_echo_n "(cached) " >&6
14077else
14078 if test -n "$READELF_FOR_TARGET"; then
14079 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14080else
14081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14082for as_dir in $PATH
14083do
14084 IFS=$as_save_IFS
14085 test -z "$as_dir" && as_dir=.
14086 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
14088 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14090 break 2
14091 fi
14092done
14093 done
14094IFS=$as_save_IFS
14095
14096fi
14097fi
14098READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14099if test -n "$READELF_FOR_TARGET"; then
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14101$as_echo "$READELF_FOR_TARGET" >&6; }
14102else
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14104$as_echo "no" >&6; }
14105fi
14106
14107
14108 fi
14109 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
14110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14111set dummy ${ncn_progname}; ac_word=$2
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14114if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
14115 $as_echo_n "(cached) " >&6
14116else
14117 if test -n "$READELF_FOR_TARGET"; then
14118 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
14119else
14120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14121for as_dir in $PATH
14122do
14123 IFS=$as_save_IFS
14124 test -z "$as_dir" && as_dir=.
14125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
14127 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
14128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14129 break 2
14130 fi
14131done
14132 done
14133IFS=$as_save_IFS
14134
14135fi
14136fi
14137READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
14138if test -n "$READELF_FOR_TARGET"; then
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
14140$as_echo "$READELF_FOR_TARGET" >&6; }
14141else
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143$as_echo "no" >&6; }
14144fi
14145
14146
14147 fi
14148 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
14149 done
14150fi
14151
14152if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
14153 set dummy readelf
14154 if test $build = $target ; then
14155 READELF_FOR_TARGET="$2"
14156 else
14157 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
14158 fi
14159else
14160 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
14161fi
14162
14163else
14164 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
14165fi
14166
14167
14168
14169
e8b05380
PB
14170if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
14171 if test -n "$with_build_time_tools"; then
5213506e
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
14173$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14174 if test -x $with_build_time_tools/strip; then
14175 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
14176 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
14178$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 14179 else
5213506e
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14181$as_echo "no" >&6; }
d1f8db0c 14182 fi
e8b05380
PB
14183 elif test $build != $host && test $have_gcc_for_target = yes; then
14184 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
14185 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
14186 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
14187 fi
14188fi
3e19841a 14189if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14190 # Extract the first word of "strip", so it can be a program name with args.
14191set dummy strip; ac_word=$2
5213506e
RW
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14194if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 14195 $as_echo_n "(cached) " >&6
e8b05380 14196else
1c710c3c
DJ
14197 case $STRIP_FOR_TARGET in
14198 [\\/]* | ?:[\\/]*)
e8b05380
PB
14199 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
14200 ;;
e8b05380 14201 *)
1c710c3c
DJ
14202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14203for as_dir in $gcc_cv_tool_dirs
14204do
14205 IFS=$as_save_IFS
14206 test -z "$as_dir" && as_dir=.
5213506e 14207 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14209 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14211 break 2
14212 fi
14213done
5213506e
RW
14214 done
14215IFS=$as_save_IFS
1c710c3c 14216
e8b05380
PB
14217 ;;
14218esac
14219fi
1c710c3c 14220STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 14221if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14223$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 14224else
5213506e
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226$as_echo "no" >&6; }
e8b05380
PB
14227fi
14228
5213506e 14229
e8b05380
PB
14230fi
14231if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
14232
14233
14234if test -n "$STRIP_FOR_TARGET"; then
14235 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
14236elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14237 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14238fi
14239
14240if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
14241 for ncn_progname in strip; do
14242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14243set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14246if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 14247 $as_echo_n "(cached) " >&6
278a7a38
AO
14248else
14249 if test -n "$STRIP_FOR_TARGET"; then
14250 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14251else
14252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14253for as_dir in $PATH
14254do
14255 IFS=$as_save_IFS
14256 test -z "$as_dir" && as_dir=.
5213506e 14257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14259 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 14260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14261 break 2
14262 fi
14263done
5213506e
RW
14264 done
14265IFS=$as_save_IFS
278a7a38
AO
14266
14267fi
14268fi
14269STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
14270if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14272$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 14273else
5213506e
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14275$as_echo "no" >&6; }
278a7a38
AO
14276fi
14277
5213506e 14278
278a7a38
AO
14279 done
14280fi
14281
14282if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14283 for ncn_progname in strip; do
5213506e
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14285$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14286 if test -x $with_build_time_tools/${ncn_progname}; then
14287 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14289$as_echo "yes" >&6; }
e8b05380
PB
14290 break
14291 else
5213506e
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293$as_echo "no" >&6; }
e8b05380
PB
14294 fi
14295 done
14296fi
14297
14298if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
14299 for ncn_progname in strip; do
14300 if test -n "$ncn_target_tool_prefix"; then
14301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 14302set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14304$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14305if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 14306 $as_echo_n "(cached) " >&6
af71363e
AS
14307else
14308 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
14309 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14310else
14311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14312for as_dir in $PATH
14313do
14314 IFS=$as_save_IFS
14315 test -z "$as_dir" && as_dir=.
5213506e 14316 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14318 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14320 break 2
14321 fi
14322done
5213506e
RW
14323 done
14324IFS=$as_save_IFS
1c710c3c 14325
040b1c5a
GK
14326fi
14327fi
1c710c3c 14328STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 14329if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14331$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 14332else
5213506e
RW
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334$as_echo "no" >&6; }
040b1c5a
GK
14335fi
14336
5213506e 14337
e8b05380
PB
14338 fi
14339 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
14340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 14341set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14344if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 14345 $as_echo_n "(cached) " >&6
040b1c5a
GK
14346else
14347 if test -n "$STRIP_FOR_TARGET"; then
14348 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
14349else
1c710c3c
DJ
14350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351for as_dir in $PATH
14352do
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
5213506e 14355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14357 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 14358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14359 break 2
14360 fi
14361done
5213506e
RW
14362 done
14363IFS=$as_save_IFS
1c710c3c 14364
040b1c5a
GK
14365fi
14366fi
1c710c3c 14367STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 14368if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
14370$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 14371else
5213506e
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14373$as_echo "no" >&6; }
040b1c5a 14374fi
1c710c3c 14375
5213506e 14376
e8b05380
PB
14377 fi
14378 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
14379 done
14380fi
1c710c3c 14381
040b1c5a
GK
14382if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
14383 set dummy strip
14384 if test $build = $target ; then
14385 STRIP_FOR_TARGET="$2"
14386 else
14387 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
14388 fi
1c00b503
PB
14389else
14390 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
14391fi
14392
d1f8db0c
PB
14393else
14394 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
14395fi
14396
14397
14398
14399
14400if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
14401 if test -n "$with_build_time_tools"; then
5213506e
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
14403$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14404 if test -x $with_build_time_tools/windres; then
14405 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
14406 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
14408$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 14409 else
5213506e
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411$as_echo "no" >&6; }
d1f8db0c 14412 fi
e8b05380
PB
14413 elif test $build != $host && test $have_gcc_for_target = yes; then
14414 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
14415 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
14416 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
14417 fi
14418fi
3e19841a 14419if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14420 # Extract the first word of "windres", so it can be a program name with args.
14421set dummy windres; ac_word=$2
5213506e
RW
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14423$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14424if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 14425 $as_echo_n "(cached) " >&6
e8b05380 14426else
1c710c3c
DJ
14427 case $WINDRES_FOR_TARGET in
14428 [\\/]* | ?:[\\/]*)
e8b05380
PB
14429 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
14430 ;;
e8b05380 14431 *)
1c710c3c
DJ
14432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433for as_dir in $gcc_cv_tool_dirs
14434do
14435 IFS=$as_save_IFS
14436 test -z "$as_dir" && as_dir=.
5213506e 14437 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14439 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14441 break 2
14442 fi
14443done
5213506e
RW
14444 done
14445IFS=$as_save_IFS
1c710c3c 14446
e8b05380
PB
14447 ;;
14448esac
14449fi
1c710c3c 14450WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 14451if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14453$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 14454else
5213506e
RW
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456$as_echo "no" >&6; }
e8b05380
PB
14457fi
14458
5213506e 14459
e8b05380
PB
14460fi
14461if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
14462
14463
14464if test -n "$WINDRES_FOR_TARGET"; then
14465 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
14466elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14467 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14468fi
14469
14470if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14471 for ncn_progname in windres; do
14472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14473set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14476if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14477 $as_echo_n "(cached) " >&6
278a7a38
AO
14478else
14479 if test -n "$WINDRES_FOR_TARGET"; then
14480 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
14481else
14482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483for as_dir in $PATH
14484do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
5213506e 14487 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14489 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14491 break 2
14492 fi
14493done
5213506e
RW
14494 done
14495IFS=$as_save_IFS
278a7a38
AO
14496
14497fi
14498fi
14499WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
14500if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14502$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 14503else
5213506e
RW
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505$as_echo "no" >&6; }
278a7a38
AO
14506fi
14507
5213506e 14508
278a7a38
AO
14509 done
14510fi
14511
14512if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14513 for ncn_progname in windres; do
5213506e
RW
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14515$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14516 if test -x $with_build_time_tools/${ncn_progname}; then
14517 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14519$as_echo "yes" >&6; }
e8b05380
PB
14520 break
14521 else
5213506e
RW
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14523$as_echo "no" >&6; }
e8b05380
PB
14524 fi
14525 done
14526fi
14527
14528if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
14529 for ncn_progname in windres; do
14530 if test -n "$ncn_target_tool_prefix"; then
14531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14532set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14534$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14535if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14536 $as_echo_n "(cached) " >&6
ca9f4b81 14537else
4de997d1
PB
14538 if test -n "$WINDRES_FOR_TARGET"; then
14539 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14540else
1c710c3c
DJ
14541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14542for as_dir in $PATH
14543do
14544 IFS=$as_save_IFS
14545 test -z "$as_dir" && as_dir=.
5213506e 14546 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14548 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14550 break 2
14551 fi
14552done
5213506e
RW
14553 done
14554IFS=$as_save_IFS
1c710c3c 14555
ca9f4b81
AO
14556fi
14557fi
1c710c3c 14558WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 14559if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14561$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14562else
5213506e
RW
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14564$as_echo "no" >&6; }
ca9f4b81
AO
14565fi
14566
5213506e 14567
e8b05380
PB
14568 fi
14569 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
14570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14574if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 14575 $as_echo_n "(cached) " >&6
ca9f4b81 14576else
2693c0b0
PB
14577 if test -n "$WINDRES_FOR_TARGET"; then
14578 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 14579else
1c710c3c
DJ
14580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14581for as_dir in $PATH
14582do
14583 IFS=$as_save_IFS
14584 test -z "$as_dir" && as_dir=.
5213506e 14585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14587 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 14588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14589 break 2
14590 fi
14591done
5213506e
RW
14592 done
14593IFS=$as_save_IFS
1c710c3c 14594
ca9f4b81
AO
14595fi
14596fi
1c710c3c 14597WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 14598if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
14600$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 14601else
5213506e
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603$as_echo "no" >&6; }
ca9f4b81 14604fi
1c710c3c 14605
5213506e 14606
e8b05380
PB
14607 fi
14608 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
14609 done
14610fi
1c710c3c 14611
2693c0b0
PB
14612if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
14613 set dummy windres
14614 if test $build = $target ; then
14615 WINDRES_FOR_TARGET="$2"
ca9f4b81 14616 else
2693c0b0 14617 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14618 fi
1c00b503
PB
14619else
14620 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
14621fi
14622
d1f8db0c
PB
14623else
14624 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
14625fi
14626
4977bab6 14627
901119ae
KT
14628
14629
14630if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14631 if test -n "$with_build_time_tools"; then
5213506e
RW
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
14633$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
14634 if test -x $with_build_time_tools/windmc; then
14635 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
14636 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
14638$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 14639 else
5213506e
RW
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14641$as_echo "no" >&6; }
901119ae
KT
14642 fi
14643 elif test $build != $host && test $have_gcc_for_target = yes; then
14644 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
14645 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
14646 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
14647 fi
14648fi
14649if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14650 # Extract the first word of "windmc", so it can be a program name with args.
14651set dummy windmc; ac_word=$2
5213506e
RW
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14654if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 14655 $as_echo_n "(cached) " >&6
901119ae
KT
14656else
14657 case $WINDMC_FOR_TARGET in
14658 [\\/]* | ?:[\\/]*)
14659 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
14660 ;;
14661 *)
14662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14663for as_dir in $gcc_cv_tool_dirs
14664do
14665 IFS=$as_save_IFS
14666 test -z "$as_dir" && as_dir=.
5213506e 14667 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14669 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14671 break 2
14672 fi
14673done
5213506e
RW
14674 done
14675IFS=$as_save_IFS
901119ae
KT
14676
14677 ;;
14678esac
14679fi
14680WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 14681if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14683$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14684else
5213506e
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686$as_echo "no" >&6; }
901119ae
KT
14687fi
14688
5213506e 14689
901119ae
KT
14690fi
14691if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
14692
14693
14694if test -n "$WINDMC_FOR_TARGET"; then
14695 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
14696elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14697 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14698fi
14699
14700if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14701 for ncn_progname in windmc; do
14702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14703set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14706if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14707 $as_echo_n "(cached) " >&6
901119ae
KT
14708else
14709 if test -n "$WINDMC_FOR_TARGET"; then
14710 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14711else
14712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713for as_dir in $PATH
14714do
14715 IFS=$as_save_IFS
14716 test -z "$as_dir" && as_dir=.
5213506e 14717 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14719 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14721 break 2
14722 fi
14723done
5213506e
RW
14724 done
14725IFS=$as_save_IFS
901119ae
KT
14726
14727fi
14728fi
14729WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14730if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14732$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14733else
5213506e
RW
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735$as_echo "no" >&6; }
901119ae
KT
14736fi
14737
5213506e 14738
901119ae
KT
14739 done
14740fi
14741
14742if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14743 for ncn_progname in windmc; do
5213506e
RW
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14745$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
14746 if test -x $with_build_time_tools/${ncn_progname}; then
14747 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749$as_echo "yes" >&6; }
901119ae
KT
14750 break
14751 else
5213506e
RW
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14753$as_echo "no" >&6; }
901119ae
KT
14754 fi
14755 done
14756fi
14757
14758if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
14759 for ncn_progname in windmc; do
14760 if test -n "$ncn_target_tool_prefix"; then
14761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14762set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14764$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14765if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14766 $as_echo_n "(cached) " >&6
901119ae
KT
14767else
14768 if test -n "$WINDMC_FOR_TARGET"; then
14769 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14770else
14771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14772for as_dir in $PATH
14773do
14774 IFS=$as_save_IFS
14775 test -z "$as_dir" && as_dir=.
5213506e 14776 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14778 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14780 break 2
14781 fi
14782done
5213506e
RW
14783 done
14784IFS=$as_save_IFS
901119ae
KT
14785
14786fi
14787fi
14788WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14789if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14791$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14792else
5213506e
RW
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14794$as_echo "no" >&6; }
901119ae
KT
14795fi
14796
5213506e 14797
901119ae
KT
14798 fi
14799 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
14800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14801set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14803$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14804if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 14805 $as_echo_n "(cached) " >&6
901119ae
KT
14806else
14807 if test -n "$WINDMC_FOR_TARGET"; then
14808 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
14809else
14810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14811for as_dir in $PATH
14812do
14813 IFS=$as_save_IFS
14814 test -z "$as_dir" && as_dir=.
5213506e 14815 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 14817 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 14818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
14819 break 2
14820 fi
14821done
5213506e
RW
14822 done
14823IFS=$as_save_IFS
901119ae
KT
14824
14825fi
14826fi
14827WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
14828if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
14830$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 14831else
5213506e
RW
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833$as_echo "no" >&6; }
901119ae
KT
14834fi
14835
5213506e 14836
901119ae
KT
14837 fi
14838 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
14839 done
14840fi
14841
14842if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
14843 set dummy windmc
14844 if test $build = $target ; then
14845 WINDMC_FOR_TARGET="$2"
14846 else
14847 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14848 fi
1c00b503
PB
14849else
14850 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
14851fi
14852
14853else
14854 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
14855fi
14856
14857
2abefe3d
PB
14858RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
14859
5213506e
RW
14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
14861$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 14862if test "x${build}" != "x${host}" ; then
e8b05380
PB
14863 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14864 # We already found the complete path
172e41aa 14865 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14867$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14868 else
14869 # Canadian cross, just use what we found
5213506e
RW
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14871$as_echo "pre-installed" >&6; }
e8b05380 14872 fi
2abefe3d
PB
14873else
14874 ok=yes
14875 case " ${configdirs} " in
14876 *" binutils "*) ;;
14877 *) ok=no ;;
14878 esac
1c710c3c 14879
2abefe3d
PB
14880 if test $ok = yes; then
14881 # An in-tree tool is available and we can use it
14882 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14884$as_echo "just compiled" >&6; }
e8b05380
PB
14885 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
14886 # We already found the complete path
172e41aa 14887 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14889$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14890 elif test "x$target" = "x$host"; then
14891 # We can use an host tool
14892 AR_FOR_TARGET='$(AR)'
5213506e
RW
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14894$as_echo "host tool" >&6; }
2abefe3d
PB
14895 else
14896 # We need a cross tool
5213506e
RW
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14898$as_echo "pre-installed" >&6; }
2abefe3d
PB
14899 fi
14900fi
0b0dc272 14901
5213506e
RW
14902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
14903$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 14904if test "x${build}" != "x${host}" ; then
e8b05380
PB
14905 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14906 # We already found the complete path
172e41aa 14907 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14909$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14910 else
14911 # Canadian cross, just use what we found
5213506e
RW
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14913$as_echo "pre-installed" >&6; }
e8b05380 14914 fi
2abefe3d
PB
14915else
14916 ok=yes
14917 case " ${configdirs} " in
14918 *" gas "*) ;;
14919 *) ok=no ;;
14920 esac
1c710c3c 14921
2abefe3d
PB
14922 if test $ok = yes; then
14923 # An in-tree tool is available and we can use it
14924 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14926$as_echo "just compiled" >&6; }
e8b05380
PB
14927 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14928 # We already found the complete path
172e41aa 14929 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14931$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14932 elif test "x$target" = "x$host"; then
14933 # We can use an host tool
14934 AS_FOR_TARGET='$(AS)'
5213506e
RW
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14936$as_echo "host tool" >&6; }
2abefe3d
PB
14937 else
14938 # We need a cross tool
5213506e
RW
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14940$as_echo "pre-installed" >&6; }
2abefe3d
PB
14941 fi
14942fi
0b0dc272 14943
5213506e
RW
14944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14945$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14946if test "x${build}" != "x${host}" ; then
e8b05380
PB
14947 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14948 # We already found the complete path
172e41aa 14949 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14951$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14952 else
14953 # Canadian cross, just use what we found
5213506e
RW
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14955$as_echo "pre-installed" >&6; }
e8b05380 14956 fi
2abefe3d
PB
14957else
14958 ok=yes
14959 case " ${configdirs} " in
14960 *" gcc "*) ;;
14961 *) ok=no ;;
14962 esac
1c710c3c 14963
2abefe3d
PB
14964 if test $ok = yes; then
14965 # An in-tree tool is available and we can use it
14966 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14968$as_echo "just compiled" >&6; }
e8b05380
PB
14969 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14970 # We already found the complete path
172e41aa 14971 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14973$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14974 elif test "x$target" = "x$host"; then
14975 # We can use an host tool
14976 CC_FOR_TARGET='$(CC)'
5213506e
RW
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14978$as_echo "host tool" >&6; }
2abefe3d
PB
14979 else
14980 # We need a cross tool
5213506e
RW
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14982$as_echo "pre-installed" >&6; }
2abefe3d
PB
14983 fi
14984fi
0b0dc272 14985
5213506e
RW
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14987$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14988if test "x${build}" != "x${host}" ; then
e8b05380
PB
14989 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14990 # We already found the complete path
172e41aa 14991 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14993$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14994 else
14995 # Canadian cross, just use what we found
5213506e
RW
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14997$as_echo "pre-installed" >&6; }
e8b05380 14998 fi
2abefe3d
PB
14999else
15000 ok=yes
15001 case " ${configdirs} " in
15002 *" gcc "*) ;;
15003 *) ok=no ;;
15004 esac
15005 case ,${enable_languages}, in
15006 *,c++,*) ;;
15007 *) ok=no ;;
15008 esac
15009 if test $ok = yes; then
15010 # An in-tree tool is available and we can use it
2077db1b 15011 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
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15013$as_echo "just compiled" >&6; }
e8b05380
PB
15014 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
15015 # We already found the complete path
172e41aa 15016 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15018$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15019 elif test "x$target" = "x$host"; then
15020 # We can use an host tool
15021 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15023$as_echo "host tool" >&6; }
2abefe3d
PB
15024 else
15025 # We need a cross tool
5213506e
RW
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15027$as_echo "pre-installed" >&6; }
2abefe3d
PB
15028 fi
15029fi
0b0dc272 15030
5213506e
RW
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
15032$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 15033if test "x${build}" != "x${host}" ; then
e8b05380
PB
15034 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15035 # We already found the complete path
172e41aa 15036 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15038$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15039 else
15040 # Canadian cross, just use what we found
5213506e
RW
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15042$as_echo "pre-installed" >&6; }
e8b05380 15043 fi
2abefe3d
PB
15044else
15045 ok=yes
15046 case " ${configdirs} " in
15047 *" gcc "*) ;;
15048 *) ok=no ;;
15049 esac
15050 case ,${enable_languages}, in
15051 *,c++,*) ;;
15052 *) ok=no ;;
15053 esac
15054 if test $ok = yes; then
15055 # An in-tree tool is available and we can use it
2077db1b 15056 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
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15058$as_echo "just compiled" >&6; }
e8b05380
PB
15059 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
15060 # We already found the complete path
172e41aa 15061 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15063$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15064 elif test "x$target" = "x$host"; then
15065 # We can use an host tool
15066 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15068$as_echo "host tool" >&6; }
2abefe3d
PB
15069 else
15070 # We need a cross tool
5213506e
RW
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15072$as_echo "pre-installed" >&6; }
2abefe3d
PB
15073 fi
15074fi
0b0dc272 15075
5213506e
RW
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
15077$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 15078if test "x${build}" != "x${host}" ; then
e8b05380
PB
15079 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15080 # We already found the complete path
172e41aa 15081 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15083$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15084 else
15085 # Canadian cross, just use what we found
5213506e
RW
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15087$as_echo "pre-installed" >&6; }
e8b05380 15088 fi
2abefe3d
PB
15089else
15090 ok=yes
15091 case " ${configdirs} " in
15092 *" binutils "*) ;;
15093 *) ok=no ;;
15094 esac
1c710c3c 15095
2abefe3d
PB
15096 if test $ok = yes; then
15097 # An in-tree tool is available and we can use it
15098 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15100$as_echo "just compiled" >&6; }
e8b05380
PB
15101 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
15102 # We already found the complete path
172e41aa 15103 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15105$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15106 elif test "x$target" = "x$host"; then
15107 # We can use an host tool
15108 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15110$as_echo "host tool" >&6; }
2abefe3d
PB
15111 else
15112 # We need a cross tool
5213506e
RW
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15114$as_echo "pre-installed" >&6; }
2abefe3d
PB
15115 fi
15116fi
0b0dc272 15117
c7c99407
IS
15118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
15119$as_echo_n "checking where to find the target dsymutil... " >&6; }
15120if test "x${build}" != "x${host}" ; then
15121 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
15122 # We already found the complete path
15123 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15125$as_echo "pre-installed in $ac_dir" >&6; }
15126 else
15127 # Canadian cross, just use what we found
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15129$as_echo "pre-installed" >&6; }
15130 fi
15131else
15132 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
15133 # We already found the complete path
15134 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15136$as_echo "pre-installed in $ac_dir" >&6; }
15137 elif test "x$target" = "x$host"; then
15138 # We can use an host tool
15139 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15141$as_echo "host tool" >&6; }
15142 else
15143 # We need a cross tool
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15145$as_echo "pre-installed" >&6; }
15146 fi
15147fi
15148
5213506e
RW
15149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
15150$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 15151if test "x${build}" != "x${host}" ; then
e8b05380
PB
15152 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15153 # We already found the complete path
172e41aa 15154 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15156$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15157 else
15158 # Canadian cross, just use what we found
5213506e
RW
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15160$as_echo "pre-installed" >&6; }
e8b05380 15161 fi
2abefe3d
PB
15162else
15163 ok=yes
15164 case " ${configdirs} " in
15165 *" gcc "*) ;;
15166 *) ok=no ;;
15167 esac
1c710c3c 15168
2abefe3d
PB
15169 if test $ok = yes; then
15170 # An in-tree tool is available and we can use it
15171 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15173$as_echo "just compiled" >&6; }
e8b05380
PB
15174 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
15175 # We already found the complete path
172e41aa 15176 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15178$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15179 elif test "x$target" = "x$host"; then
15180 # We can use an host tool
15181 GCC_FOR_TARGET='$()'
5213506e
RW
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15183$as_echo "host tool" >&6; }
2abefe3d
PB
15184 else
15185 # We need a cross tool
5213506e
RW
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15187$as_echo "pre-installed" >&6; }
2abefe3d
PB
15188 fi
15189fi
0b0dc272 15190
5213506e
RW
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
15192$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 15193if test "x${build}" != "x${host}" ; then
e8b05380
PB
15194 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15195 # We already found the complete path
172e41aa 15196 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15198$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15199 else
15200 # Canadian cross, just use what we found
5213506e
RW
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15202$as_echo "pre-installed" >&6; }
e8b05380 15203 fi
2abefe3d
PB
15204else
15205 ok=yes
15206 case " ${configdirs} " in
15207 *" gcc "*) ;;
15208 *) ok=no ;;
15209 esac
15210 case ,${enable_languages}, in
15211 *,fortran,*) ;;
15212 *) ok=no ;;
15213 esac
15214 if test $ok = yes; then
15215 # An in-tree tool is available and we can use it
15216 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15218$as_echo "just compiled" >&6; }
e8b05380
PB
15219 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
15220 # We already found the complete path
172e41aa 15221 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15223$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15224 elif test "x$target" = "x$host"; then
15225 # We can use an host tool
15226 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15228$as_echo "host tool" >&6; }
2abefe3d
PB
15229 else
15230 # We need a cross tool
5213506e
RW
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15232$as_echo "pre-installed" >&6; }
2abefe3d
PB
15233 fi
15234fi
0b0dc272 15235
632e2a07
ILT
15236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
15237$as_echo_n "checking where to find the target gccgo... " >&6; }
15238if test "x${build}" != "x${host}" ; then
15239 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15240 # We already found the complete path
15241 ac_dir=`dirname $GOC_FOR_TARGET`
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15243$as_echo "pre-installed in $ac_dir" >&6; }
15244 else
15245 # Canadian cross, just use what we found
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15247$as_echo "pre-installed" >&6; }
15248 fi
15249else
15250 ok=yes
15251 case " ${configdirs} " in
15252 *" gcc "*) ;;
15253 *) ok=no ;;
15254 esac
15255 case ,${enable_languages}, in
15256 *,go,*) ;;
15257 *) ok=no ;;
15258 esac
15259 if test $ok = yes; then
15260 # An in-tree tool is available and we can use it
15261 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15263$as_echo "just compiled" >&6; }
15264 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
15265 # We already found the complete path
15266 ac_dir=`dirname $GOC_FOR_TARGET`
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15268$as_echo "pre-installed in $ac_dir" >&6; }
15269 elif test "x$target" = "x$host"; then
15270 # We can use an host tool
15271 GOC_FOR_TARGET='$(GOC)'
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15273$as_echo "host tool" >&6; }
15274 else
15275 # We need a cross tool
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15277$as_echo "pre-installed" >&6; }
15278 fi
15279fi
15280
b4c522fa
IB
15281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
15282$as_echo_n "checking where to find the target gdc... " >&6; }
15283if test "x${build}" != "x${host}" ; then
15284 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15285 # We already found the complete path
15286 ac_dir=`dirname $GDC_FOR_TARGET`
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15288$as_echo "pre-installed in $ac_dir" >&6; }
15289 else
15290 # Canadian cross, just use what we found
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15292$as_echo "pre-installed" >&6; }
15293 fi
15294else
15295 ok=yes
15296 case " ${configdirs} " in
15297 *" gcc "*) ;;
15298 *) ok=no ;;
15299 esac
15300 case ,${enable_languages}, in
15301 *,d,*) ;;
15302 *) ok=no ;;
15303 esac
15304 if test $ok = yes; then
15305 # An in-tree tool is available and we can use it
15306 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15308$as_echo "just compiled" >&6; }
15309 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
15310 # We already found the complete path
15311 ac_dir=`dirname $GDC_FOR_TARGET`
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15313$as_echo "pre-installed in $ac_dir" >&6; }
15314 elif test "x$target" = "x$host"; then
15315 # We can use an host tool
15316 GDC_FOR_TARGET='$(GDC)'
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15318$as_echo "host tool" >&6; }
15319 else
15320 # We need a cross tool
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15322$as_echo "pre-installed" >&6; }
15323 fi
15324fi
15325
5213506e
RW
15326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
15327$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 15328if test "x${build}" != "x${host}" ; then
e8b05380
PB
15329 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15330 # We already found the complete path
172e41aa 15331 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15333$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15334 else
15335 # Canadian cross, just use what we found
5213506e
RW
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15337$as_echo "pre-installed" >&6; }
e8b05380 15338 fi
2abefe3d
PB
15339else
15340 ok=yes
15341 case " ${configdirs} " in
15342 *" ld "*) ;;
15343 *) ok=no ;;
15344 esac
1c710c3c 15345
2abefe3d
PB
15346 if test $ok = yes; then
15347 # An in-tree tool is available and we can use it
15348 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15350$as_echo "just compiled" >&6; }
e8b05380
PB
15351 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
15352 # We already found the complete path
172e41aa 15353 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15355$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15356 elif test "x$target" = "x$host"; then
15357 # We can use an host tool
15358 LD_FOR_TARGET='$(LD)'
5213506e
RW
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15360$as_echo "host tool" >&6; }
2abefe3d
PB
15361 else
15362 # We need a cross tool
5213506e
RW
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15364$as_echo "pre-installed" >&6; }
2abefe3d
PB
15365 fi
15366fi
0b0dc272 15367
5213506e
RW
15368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
15369$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 15370if test "x${build}" != "x${host}" ; then
e8b05380
PB
15371 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15372 # We already found the complete path
172e41aa 15373 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15375$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15376 else
15377 # Canadian cross, just use what we found
5213506e
RW
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15379$as_echo "pre-installed" >&6; }
e8b05380 15380 fi
2abefe3d 15381else
e8b05380
PB
15382 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
15383 # We already found the complete path
172e41aa 15384 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15386$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 15387 elif test "x$target" = "x$host"; then
2abefe3d
PB
15388 # We can use an host tool
15389 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15391$as_echo "host tool" >&6; }
2abefe3d
PB
15392 else
15393 # We need a cross tool
5213506e
RW
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15395$as_echo "pre-installed" >&6; }
2abefe3d
PB
15396 fi
15397fi
0b0dc272 15398
5213506e
RW
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
15400$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 15401if test "x${build}" != "x${host}" ; then
e8b05380
PB
15402 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15403 # We already found the complete path
172e41aa 15404 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15406$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15407 else
15408 # Canadian cross, just use what we found
5213506e
RW
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15410$as_echo "pre-installed" >&6; }
e8b05380 15411 fi
2abefe3d
PB
15412else
15413 ok=yes
15414 case " ${configdirs} " in
15415 *" binutils "*) ;;
15416 *) ok=no ;;
15417 esac
1c710c3c 15418
2abefe3d
PB
15419 if test $ok = yes; then
15420 # An in-tree tool is available and we can use it
15421 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15423$as_echo "just compiled" >&6; }
e8b05380
PB
15424 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
15425 # We already found the complete path
172e41aa 15426 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15428$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15429 elif test "x$target" = "x$host"; then
15430 # We can use an host tool
15431 NM_FOR_TARGET='$(NM)'
5213506e
RW
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15433$as_echo "host tool" >&6; }
2abefe3d
PB
15434 else
15435 # We need a cross tool
5213506e
RW
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15437$as_echo "pre-installed" >&6; }
2abefe3d
PB
15438 fi
15439fi
0b0dc272 15440
9bccfdf5
AP
15441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
15442$as_echo_n "checking where to find the target objcopy... " >&6; }
15443if test "x${build}" != "x${host}" ; then
15444 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15445 # We already found the complete path
15446 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15448$as_echo "pre-installed in $ac_dir" >&6; }
15449 else
15450 # Canadian cross, just use what we found
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15452$as_echo "pre-installed" >&6; }
15453 fi
15454else
15455 ok=yes
15456 case " ${configdirs} " in
15457 *" binutils "*) ;;
15458 *) ok=no ;;
15459 esac
15460
15461 if test $ok = yes; then
15462 # An in-tree tool is available and we can use it
15463 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15465$as_echo "just compiled" >&6; }
15466 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
15467 # We already found the complete path
15468 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15470$as_echo "pre-installed in $ac_dir" >&6; }
15471 elif test "x$target" = "x$host"; then
15472 # We can use an host tool
ec8fd1c0 15473 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15475$as_echo "host tool" >&6; }
15476 else
15477 # We need a cross tool
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15479$as_echo "pre-installed" >&6; }
15480 fi
15481fi
15482
5213506e
RW
15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
15484$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 15485if test "x${build}" != "x${host}" ; then
e8b05380
PB
15486 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15487 # We already found the complete path
172e41aa 15488 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15490$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15491 else
15492 # Canadian cross, just use what we found
5213506e
RW
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15494$as_echo "pre-installed" >&6; }
e8b05380 15495 fi
2abefe3d
PB
15496else
15497 ok=yes
15498 case " ${configdirs} " in
15499 *" binutils "*) ;;
15500 *) ok=no ;;
15501 esac
1c710c3c 15502
2abefe3d
PB
15503 if test $ok = yes; then
15504 # An in-tree tool is available and we can use it
15505 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15507$as_echo "just compiled" >&6; }
e8b05380
PB
15508 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
15509 # We already found the complete path
172e41aa 15510 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15512$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15513 elif test "x$target" = "x$host"; then
15514 # We can use an host tool
15515 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15517$as_echo "host tool" >&6; }
2abefe3d
PB
15518 else
15519 # We need a cross tool
5213506e
RW
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15521$as_echo "pre-installed" >&6; }
2abefe3d
PB
15522 fi
15523fi
0b0dc272 15524
e4a9a572
IS
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
15526$as_echo_n "checking where to find the target otool... " >&6; }
15527if test "x${build}" != "x${host}" ; then
15528 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15529 # We already found the complete path
15530 ac_dir=`dirname $OTOOL_FOR_TARGET`
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15532$as_echo "pre-installed in $ac_dir" >&6; }
15533 else
15534 # Canadian cross, just use what we found
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15536$as_echo "pre-installed" >&6; }
15537 fi
15538else
15539 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
15540 # We already found the complete path
15541 ac_dir=`dirname $OTOOL_FOR_TARGET`
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15543$as_echo "pre-installed in $ac_dir" >&6; }
15544 elif test "x$target" = "x$host"; then
15545 # We can use an host tool
15546 OTOOL_FOR_TARGET='$(OTOOL)'
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15548$as_echo "host tool" >&6; }
15549 else
15550 # We need a cross tool
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15552$as_echo "pre-installed" >&6; }
15553 fi
15554fi
15555
5213506e
RW
15556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
15557$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 15558if test "x${build}" != "x${host}" ; then
e8b05380
PB
15559 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15560 # We already found the complete path
172e41aa 15561 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15563$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15564 else
15565 # Canadian cross, just use what we found
5213506e
RW
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15567$as_echo "pre-installed" >&6; }
e8b05380 15568 fi
2abefe3d
PB
15569else
15570 ok=yes
15571 case " ${configdirs} " in
15572 *" binutils "*) ;;
15573 *) ok=no ;;
15574 esac
1c710c3c 15575
2abefe3d
PB
15576 if test $ok = yes; then
15577 # An in-tree tool is available and we can use it
15578 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15580$as_echo "just compiled" >&6; }
e8b05380
PB
15581 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
15582 # We already found the complete path
172e41aa 15583 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15585$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15586 elif test "x$target" = "x$host"; then
15587 # We can use an host tool
15588 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15590$as_echo "host tool" >&6; }
2abefe3d
PB
15591 else
15592 # We need a cross tool
5213506e
RW
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15594$as_echo "pre-installed" >&6; }
2abefe3d
PB
15595 fi
15596fi
0b0dc272 15597
e7a82751
RM
15598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
15599$as_echo_n "checking where to find the target readelf... " >&6; }
15600if test "x${build}" != "x${host}" ; then
15601 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15602 # We already found the complete path
15603 ac_dir=`dirname $READELF_FOR_TARGET`
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15605$as_echo "pre-installed in $ac_dir" >&6; }
15606 else
15607 # Canadian cross, just use what we found
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15609$as_echo "pre-installed" >&6; }
15610 fi
15611else
15612 ok=yes
15613 case " ${configdirs} " in
15614 *" binutils "*) ;;
15615 *) ok=no ;;
15616 esac
15617
15618 if test $ok = yes; then
15619 # An in-tree tool is available and we can use it
15620 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15622$as_echo "just compiled" >&6; }
15623 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
15624 # We already found the complete path
15625 ac_dir=`dirname $READELF_FOR_TARGET`
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15627$as_echo "pre-installed in $ac_dir" >&6; }
15628 elif test "x$target" = "x$host"; then
15629 # We can use an host tool
15630 READELF_FOR_TARGET='$(READELF)'
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15632$as_echo "host tool" >&6; }
15633 else
15634 # We need a cross tool
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15636$as_echo "pre-installed" >&6; }
15637 fi
15638fi
15639
5213506e
RW
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
15641$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 15642if test "x${build}" != "x${host}" ; then
e8b05380
PB
15643 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15644 # We already found the complete path
172e41aa 15645 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15647$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15648 else
15649 # Canadian cross, just use what we found
5213506e
RW
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15651$as_echo "pre-installed" >&6; }
e8b05380 15652 fi
2abefe3d
PB
15653else
15654 ok=yes
15655 case " ${configdirs} " in
15656 *" binutils "*) ;;
15657 *) ok=no ;;
15658 esac
1c710c3c 15659
2abefe3d
PB
15660 if test $ok = yes; then
15661 # An in-tree tool is available and we can use it
455c8f48 15662 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15664$as_echo "just compiled" >&6; }
e8b05380
PB
15665 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
15666 # We already found the complete path
172e41aa 15667 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15669$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15670 elif test "x$target" = "x$host"; then
15671 # We can use an host tool
15672 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15674$as_echo "host tool" >&6; }
2abefe3d
PB
15675 else
15676 # We need a cross tool
5213506e
RW
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15678$as_echo "pre-installed" >&6; }
2abefe3d
PB
15679 fi
15680fi
0b0dc272 15681
5213506e
RW
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
15683$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 15684if test "x${build}" != "x${host}" ; then
e8b05380
PB
15685 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15686 # We already found the complete path
172e41aa 15687 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15689$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
15690 else
15691 # Canadian cross, just use what we found
5213506e
RW
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15693$as_echo "pre-installed" >&6; }
e8b05380 15694 fi
2abefe3d
PB
15695else
15696 ok=yes
15697 case " ${configdirs} " in
15698 *" binutils "*) ;;
15699 *) ok=no ;;
15700 esac
1c710c3c 15701
2abefe3d
PB
15702 if test $ok = yes; then
15703 # An in-tree tool is available and we can use it
15704 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15706$as_echo "just compiled" >&6; }
e8b05380
PB
15707 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
15708 # We already found the complete path
172e41aa 15709 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15711$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
15712 elif test "x$target" = "x$host"; then
15713 # We can use an host tool
15714 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15716$as_echo "host tool" >&6; }
2abefe3d
PB
15717 else
15718 # We need a cross tool
5213506e
RW
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15720$as_echo "pre-installed" >&6; }
2abefe3d 15721 fi
671aa708 15722fi
be912515 15723
5213506e
RW
15724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
15725$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
15726if test "x${build}" != "x${host}" ; then
15727 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15728 # We already found the complete path
15729 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15731$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15732 else
15733 # Canadian cross, just use what we found
5213506e
RW
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15735$as_echo "pre-installed" >&6; }
901119ae
KT
15736 fi
15737else
15738 ok=yes
15739 case " ${configdirs} " in
15740 *" binutils "*) ;;
15741 *) ok=no ;;
15742 esac
15743
15744 if test $ok = yes; then
15745 # An in-tree tool is available and we can use it
15746 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
15748$as_echo "just compiled" >&6; }
901119ae
KT
15749 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
15750 # We already found the complete path
15751 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
15753$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
15754 elif test "x$target" = "x$host"; then
15755 # We can use an host tool
15756 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
15758$as_echo "host tool" >&6; }
901119ae
KT
15759 else
15760 # We need a cross tool
5213506e
RW
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
15762$as_echo "pre-installed" >&6; }
901119ae
KT
15763 fi
15764fi
15765
be912515
NN
15766
15767
2abefe3d 15768
0b0dc272 15769
671aa708
NN
15770# Certain tools may need extra flags.
15771AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
15772RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
15773NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
15774
2abefe3d
PB
15775# When building target libraries, except in a Canadian cross, we use
15776# the same toolchain as the compiler we just built.
15777COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
15778COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
15779COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
15780if test $host = $build; then
15781 case " $configdirs " in
15782 *" gcc "*)
15783 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
15784 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
15785 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
15786 ;;
15787 esac
15788fi
15789
15790
15791
15792
15793
5213506e
RW
15794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15795$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15796# Check whether --enable-maintainer-mode was given.
15797if test "${enable_maintainer_mode+set}" = set; then :
15798 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
15799else
15800 USE_MAINTAINER_MODE=no
5213506e
RW
15801fi
15802
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15804$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
15805
15806
15807if test "$USE_MAINTAINER_MODE" = yes; then
15808 MAINTAINER_MODE_TRUE=
15809 MAINTAINER_MODE_FALSE='#'
15810else
15811 MAINTAINER_MODE_TRUE='#'
15812 MAINTAINER_MODE_FALSE=
1c710c3c 15813fi
ee03dc5e
AO
15814MAINT=$MAINTAINER_MODE_TRUE
15815
2805b53a
NN
15816# ---------------------
15817# GCC bootstrap support
15818# ---------------------
15819
15820# Stage specific cflags for build.
15821stage1_cflags="-g"
15822case $build in
15823 vax-*-*)
15824 case ${GCC} in
15825 yes) stage1_cflags="-g -Wa,-J" ;;
15826 *) stage1_cflags="-g -J" ;;
15827 esac ;;
2805b53a
NN
15828esac
15829
0b50988a 15830
2805b53a 15831
8efea775 15832# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
15833# Check whether --enable-stage1-checking was given.
15834if test "${enable_stage1_checking+set}" = set; then :
15835 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 15836else
e643dc23 15837 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
15838 # For --disable-checking or implicit --enable-checking=release, avoid
15839 # setting --enable-checking=gc in the default stage1 checking for LTO
15840 # bootstraps. See PR62077.
c10b5ea0
JJ
15841 case $BUILD_CONFIG in
15842 *lto*)
7db11a5a
JJ
15843 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
15844 *)
15845 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 15846 esac
7db11a5a
JJ
15847 if test "x$enable_checking" = x && \
15848 test -d ${srcdir}/gcc && \
15849 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 15850 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 15851 fi
8efea775 15852else
e643dc23 15853 stage1_checking=--enable-checking=$enable_checking,types
8efea775 15854fi
5213506e 15855fi
8efea775
PB
15856
15857
2aeb72e9 15858
5213506e
RW
15859# Enable -Werror in bootstrap stage2 and later.
15860# Check whether --enable-werror was given.
15861if test "${enable_werror+set}" = set; then :
15862 enableval=$enable_werror;
09a9c095
NN
15863case ${enable_werror} in
15864 yes) stage2_werror_flag="--enable-werror-always" ;;
15865 *) stage2_werror_flag="" ;;
2805b53a
NN
15866esac
15867
afd88efc
ML
15868else
15869
01c712cb
ML
15870if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
15871 case $BUILD_CONFIG in
15872 bootstrap-debug)
15873 stage2_werror_flag="--enable-werror-always" ;;
15874 "")
15875 stage2_werror_flag="--enable-werror-always" ;;
15876 esac
15877fi
15878
afd88efc
ML
15879fi
15880
15881
01c712cb 15882
2805b53a 15883
f2689b09
SE
15884# Specify what files to not compare during bootstrap.
15885
15886compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
15887case "$target" in
15888 hppa*64*-*-hpux*) ;;
4f943869
MK
15889 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
15890 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
15891esac
15892
15893
5213506e
RW
15894ac_config_files="$ac_config_files Makefile"
15895
1c710c3c 15896cat >confcache <<\_ACEOF
671aa708
NN
15897# This file is a shell script that caches the results of configure
15898# tests run on this system so they can be shared between configure
1c710c3c
DJ
15899# scripts and configure runs, see configure's option --config-cache.
15900# It is not useful on other systems. If it contains results you don't
15901# want to keep, you may remove or edit it.
671aa708 15902#
1c710c3c
DJ
15903# config.status only pays attention to the cache file if you give it
15904# the --recheck option to rerun configure.
671aa708 15905#
1c710c3c
DJ
15906# `ac_cv_env_foo' variables (set or unset) will be overridden when
15907# loading this file, other *unset* `ac_cv_foo' will be assigned the
15908# following values.
15909
15910_ACEOF
15911
671aa708
NN
15912# The following way of writing the cache mishandles newlines in values,
15913# but we know of no workaround that is simple, portable, and efficient.
5213506e 15914# So, we kill variables containing newlines.
671aa708
NN
15915# Ultrix sh set writes to stderr and can't be redirected directly,
15916# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
15917(
15918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15919 eval ac_val=\$$ac_var
15920 case $ac_val in #(
15921 *${as_nl}*)
15922 case $ac_var in #(
15923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15925 esac
15926 case $ac_var in #(
15927 _ | IFS | as_nl) ;; #(
15928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15929 *) { eval $ac_var=; unset $ac_var;} ;;
15930 esac ;;
15931 esac
15932 done
15933
1c710c3c 15934 (set) 2>&1 |
5213506e
RW
15935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15936 *${as_nl}ac_space=\ *)
15937 # `set' does not quote correctly, so add quotes: double-quote
15938 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
15939 sed -n \
15940 "s/'/'\\\\''/g;
15941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 15942 ;; #(
1c710c3c
DJ
15943 *)
15944 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 15945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 15946 ;;
5213506e
RW
15947 esac |
15948 sort
15949) |
1c710c3c 15950 sed '
5213506e 15951 /^ac_cv_env_/b end
1c710c3c 15952 t clear
5213506e 15953 :clear
1c710c3c
DJ
15954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15955 t end
5213506e
RW
15956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15957 :end' >>confcache
15958if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15959 if test -w "$cache_file"; then
22e05272 15960 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15962$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
15963 if test ! -f "$cache_file" || test -h "$cache_file"; then
15964 cat confcache >"$cache_file"
15965 else
15966 case $cache_file in #(
15967 */* | ?:*)
15968 mv -f confcache "$cache_file"$$ &&
15969 mv -f "$cache_file"$$ "$cache_file" ;; #(
15970 *)
15971 mv -f confcache "$cache_file" ;;
15972 esac
15973 fi
15974 fi
671aa708 15975 else
5213506e
RW
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15977$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15978 fi
4977bab6 15979fi
671aa708 15980rm -f confcache
79c06341 15981
671aa708
NN
15982test "x$prefix" = xNONE && prefix=$ac_default_prefix
15983# Let make expand exec_prefix.
15984test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15985
671aa708
NN
15986# Transform confdefs.h into DEFS.
15987# Protect against shell expansion while executing Makefile rules.
15988# Protect against Makefile macro expansion.
1c710c3c
DJ
15989#
15990# If the first sed substitution is executed (which looks for macros that
5213506e 15991# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15992# look for a macro that doesn't take arguments.
5213506e
RW
15993ac_script='
15994:mline
15995/\\$/{
15996 N
15997 s,\\\n,,
15998 b mline
15999}
1c710c3c 16000t clear
5213506e
RW
16001:clear
16002s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 16003t quote
5213506e 16004s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 16005t quote
5213506e
RW
16006b any
16007:quote
16008s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16009s/\[/\\&/g
16010s/\]/\\&/g
16011s/\$/$$/g
16012H
16013:any
16014${
16015 g
16016 s/^\n//
16017 s/\n/ /g
16018 p
16019}
16020'
16021DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
16022
16023
16024ac_libobjs=
16025ac_ltlibobjs=
22e05272 16026U=
1c710c3c
DJ
16027for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16028 # 1. Remove the extension, and $U if already installed.
5213506e
RW
16029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16032 # will be set to the directory where LIBOBJS objects are built.
16033 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16034 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
16035done
16036LIBOBJS=$ac_libobjs
fb0103e5 16037
1c710c3c 16038LTLIBOBJS=$ac_ltlibobjs
0b0dc272 16039
af71363e 16040
1c710c3c 16041
22e05272 16042: "${CONFIG_STATUS=./config.status}"
5213506e 16043ac_write_fail=0
1c710c3c
DJ
16044ac_clean_files_save=$ac_clean_files
16045ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
16046{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16047$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16048as_write_fail=0
16049cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
16050#! $SHELL
16051# Generated by $as_me.
671aa708 16052# Run this file to recreate the current configuration.
671aa708 16053# Compiler output produced by configure, useful for debugging
1c710c3c 16054# configure, is in config.log if it exists.
0b0dc272 16055
1c710c3c
DJ
16056debug=false
16057ac_cs_recheck=false
16058ac_cs_silent=false
1c710c3c 16059
5213506e
RW
16060SHELL=\${CONFIG_SHELL-$SHELL}
16061export SHELL
16062_ASEOF
16063cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16064## -------------------- ##
16065## M4sh Initialization. ##
16066## -------------------- ##
16067
16068# Be more Bourne compatible
16069DUALCASE=1; export DUALCASE # for MKS sh
16070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
16071 emulate sh
16072 NULLCMD=:
5213506e 16073 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
16074 # is contrary to our usage. Disable this feature.
16075 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
16076 setopt NO_GLOB_SUBST
16077else
16078 case `(set -o) 2>/dev/null` in #(
16079 *posix*) :
16080 set -o posix ;; #(
16081 *) :
16082 ;;
16083esac
1c710c3c 16084fi
1c710c3c 16085
5213506e
RW
16086
16087as_nl='
16088'
16089export as_nl
16090# Printing a long string crashes Solaris 7 /usr/bin/printf.
16091as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16093as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16094# Prefer a ksh shell builtin over an external printf program on Solaris,
16095# but without wasting forks for bash or zsh.
16096if test -z "$BASH_VERSION$ZSH_VERSION" \
16097 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16098 as_echo='print -r --'
16099 as_echo_n='print -rn --'
16100elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16101 as_echo='printf %s\n'
16102 as_echo_n='printf %s'
16103else
16104 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16105 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16106 as_echo_n='/usr/ucb/echo -n'
16107 else
16108 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16109 as_echo_n_body='eval
16110 arg=$1;
16111 case $arg in #(
16112 *"$as_nl"*)
16113 expr "X$arg" : "X\\(.*\\)$as_nl";
16114 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16115 esac;
16116 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16117 '
16118 export as_echo_n_body
16119 as_echo_n='sh -c $as_echo_n_body as_echo'
16120 fi
16121 export as_echo_body
16122 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
16123fi
16124
5213506e
RW
16125# The user is always right.
16126if test "${PATH_SEPARATOR+set}" != set; then
16127 PATH_SEPARATOR=:
16128 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16129 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16130 PATH_SEPARATOR=';'
16131 }
16132fi
16133
16134
16135# IFS
16136# We need space, tab and new line, in precisely that order. Quoting is
16137# there to prevent editors from complaining about space-tab.
16138# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16139# splitting by setting IFS to empty value.)
16140IFS=" "" $as_nl"
16141
16142# Find who we are. Look in the path if we contain no directory separator.
22e05272 16143as_myself=
5213506e
RW
16144case $0 in #((
16145 *[\\/]* ) as_myself=$0 ;;
16146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16147for as_dir in $PATH
16148do
16149 IFS=$as_save_IFS
16150 test -z "$as_dir" && as_dir=.
16151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16152 done
16153IFS=$as_save_IFS
16154
16155 ;;
16156esac
16157# We did not find ourselves, most probably we were run as `sh COMMAND'
16158# in which case we are not to be found in the path.
16159if test "x$as_myself" = x; then
16160 as_myself=$0
16161fi
16162if test ! -f "$as_myself"; then
16163 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16164 exit 1
16165fi
1c710c3c 16166
5213506e
RW
16167# Unset variables that we do not need and which cause bugs (e.g. in
16168# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16169# suppresses any "Segmentation fault" message there. '((' could
16170# trigger a bug in pdksh 5.2.14.
16171for as_var in BASH_ENV ENV MAIL MAILPATH
16172do eval test x\${$as_var+set} = xset \
16173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16174done
1c710c3c
DJ
16175PS1='$ '
16176PS2='> '
16177PS4='+ '
16178
16179# NLS nuisances.
5213506e
RW
16180LC_ALL=C
16181export LC_ALL
16182LANGUAGE=C
16183export LANGUAGE
16184
16185# CDPATH.
16186(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16187
16188
22e05272
JM
16189# as_fn_error STATUS ERROR [LINENO LOG_FD]
16190# ----------------------------------------
5213506e
RW
16191# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16192# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 16193# script with STATUS, using 1 if that was 0.
5213506e
RW
16194as_fn_error ()
16195{
22e05272
JM
16196 as_status=$1; test $as_status -eq 0 && as_status=1
16197 if test "$4"; then
16198 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16199 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 16200 fi
22e05272 16201 $as_echo "$as_me: error: $2" >&2
5213506e
RW
16202 as_fn_exit $as_status
16203} # as_fn_error
16204
16205
16206# as_fn_set_status STATUS
16207# -----------------------
16208# Set $? to STATUS, without forking.
16209as_fn_set_status ()
16210{
16211 return $1
16212} # as_fn_set_status
16213
16214# as_fn_exit STATUS
16215# -----------------
16216# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16217as_fn_exit ()
16218{
16219 set +e
16220 as_fn_set_status $1
16221 exit $1
16222} # as_fn_exit
16223
16224# as_fn_unset VAR
16225# ---------------
16226# Portably unset VAR.
16227as_fn_unset ()
16228{
16229 { eval $1=; unset $1;}
16230}
16231as_unset=as_fn_unset
16232# as_fn_append VAR VALUE
16233# ----------------------
16234# Append the text in VALUE to the end of the definition contained in VAR. Take
16235# advantage of any shell optimizations that allow amortized linear growth over
16236# repeated appends, instead of the typical quadratic growth present in naive
16237# implementations.
16238if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16239 eval 'as_fn_append ()
16240 {
16241 eval $1+=\$2
16242 }'
16243else
16244 as_fn_append ()
16245 {
16246 eval $1=\$$1\$2
16247 }
16248fi # as_fn_append
16249
16250# as_fn_arith ARG...
16251# ------------------
16252# Perform arithmetic evaluation on the ARGs, and store the result in the
16253# global $as_val. Take advantage of shells that can avoid forks. The arguments
16254# must be portable across $(()) and expr.
16255if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16256 eval 'as_fn_arith ()
16257 {
16258 as_val=$(( $* ))
16259 }'
16260else
16261 as_fn_arith ()
16262 {
16263 as_val=`expr "$@" || test $? -eq 1`
16264 }
16265fi # as_fn_arith
16266
1c710c3c 16267
5213506e
RW
16268if expr a : '\(a\)' >/dev/null 2>&1 &&
16269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
16270 as_expr=expr
16271else
16272 as_expr=false
16273fi
16274
5213506e 16275if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
16276 as_basename=basename
16277else
16278 as_basename=false
16279fi
16280
5213506e
RW
16281if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16282 as_dirname=dirname
16283else
16284 as_dirname=false
16285fi
1c710c3c 16286
5213506e 16287as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
16288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16289 X"$0" : 'X\(//\)$' \| \
5213506e
RW
16290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16291$as_echo X/"$0" |
16292 sed '/^.*\/\([^/][^/]*\)\/*$/{
16293 s//\1/
16294 q
16295 }
16296 /^X\/\(\/\/\)$/{
16297 s//\1/
16298 q
16299 }
16300 /^X\/\(\/\).*/{
16301 s//\1/
16302 q
16303 }
16304 s/.*/./; q'`
2aeb72e9 16305
2aeb72e9
DD
16306# Avoid depending upon Character Ranges.
16307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16310as_cr_digits='0123456789'
16311as_cr_alnum=$as_cr_Letters$as_cr_digits
16312
5213506e
RW
16313ECHO_C= ECHO_N= ECHO_T=
16314case `echo -n x` in #(((((
16315-n*)
16316 case `echo 'xy\c'` in
16317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16318 xy) ECHO_C='\c';;
16319 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16320 ECHO_T=' ';;
16321 esac;;
16322*)
16323 ECHO_N='-n';;
1c710c3c
DJ
16324esac
16325
5213506e
RW
16326rm -f conf$$ conf$$.exe conf$$.file
16327if test -d conf$$.dir; then
16328 rm -f conf$$.dir/conf$$.file
1c710c3c 16329else
5213506e
RW
16330 rm -f conf$$.dir
16331 mkdir conf$$.dir 2>/dev/null
1c710c3c 16332fi
5213506e
RW
16333if (echo >conf$$.file) 2>/dev/null; then
16334 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 16335 as_ln_s='ln -s'
5213506e
RW
16336 # ... but there are two gotchas:
16337 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16338 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 16339 # In both cases, we have to default to `cp -pR'.
5213506e 16340 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 16341 as_ln_s='cp -pR'
5213506e
RW
16342 elif ln conf$$.file conf$$ 2>/dev/null; then
16343 as_ln_s=ln
16344 else
22e05272 16345 as_ln_s='cp -pR'
2aeb72e9 16346 fi
1c710c3c 16347else
22e05272 16348 as_ln_s='cp -pR'
1c710c3c 16349fi
5213506e
RW
16350rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16351rmdir conf$$.dir 2>/dev/null
16352
16353
16354# as_fn_mkdir_p
16355# -------------
16356# Create "$as_dir" as a directory, including parents if necessary.
16357as_fn_mkdir_p ()
16358{
16359
16360 case $as_dir in #(
16361 -*) as_dir=./$as_dir;;
16362 esac
16363 test -d "$as_dir" || eval $as_mkdir_p || {
16364 as_dirs=
16365 while :; do
16366 case $as_dir in #(
16367 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16368 *) as_qdir=$as_dir;;
16369 esac
16370 as_dirs="'$as_qdir' $as_dirs"
16371 as_dir=`$as_dirname -- "$as_dir" ||
16372$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16373 X"$as_dir" : 'X\(//\)[^/]' \| \
16374 X"$as_dir" : 'X\(//\)$' \| \
16375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16376$as_echo X"$as_dir" |
16377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16378 s//\1/
16379 q
16380 }
16381 /^X\(\/\/\)[^/].*/{
16382 s//\1/
16383 q
16384 }
16385 /^X\(\/\/\)$/{
16386 s//\1/
16387 q
16388 }
16389 /^X\(\/\).*/{
16390 s//\1/
16391 q
16392 }
16393 s/.*/./; q'`
16394 test -d "$as_dir" && break
16395 done
16396 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 16397 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 16398
1c710c3c 16399
5213506e 16400} # as_fn_mkdir_p
1c710c3c 16401if mkdir -p . 2>/dev/null; then
5213506e 16402 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
16403else
16404 test -d ./-p && rmdir ./-p
16405 as_mkdir_p=false
16406fi
16407
22e05272
JM
16408
16409# as_fn_executable_p FILE
16410# -----------------------
16411# Test if FILE is an executable regular file.
16412as_fn_executable_p ()
16413{
16414 test -f "$1" && test -x "$1"
16415} # as_fn_executable_p
16416as_test_x='test -x'
16417as_executable_p=as_fn_executable_p
1c710c3c
DJ
16418
16419# Sed expression to map a string onto a valid CPP name.
16420as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16421
16422# Sed expression to map a string onto a valid variable name.
16423as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16424
16425
1c710c3c 16426exec 6>&1
5213506e
RW
16427## ----------------------------------- ##
16428## Main body of $CONFIG_STATUS script. ##
16429## ----------------------------------- ##
16430_ASEOF
16431test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16432
16433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16434# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 16435# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
16436# values after options handling.
16437ac_log="
1c710c3c 16438This file was extended by $as_me, which was
22e05272 16439generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
16440
16441 CONFIG_FILES = $CONFIG_FILES
16442 CONFIG_HEADERS = $CONFIG_HEADERS
16443 CONFIG_LINKS = $CONFIG_LINKS
16444 CONFIG_COMMANDS = $CONFIG_COMMANDS
16445 $ $0 $@
16446
5213506e
RW
16447on `(hostname || uname -n) 2>/dev/null | sed 1q`
16448"
16449
1c710c3c
DJ
16450_ACEOF
16451
5213506e
RW
16452case $ac_config_files in *"
16453"*) set x $ac_config_files; shift; ac_config_files=$*;;
16454esac
1c710c3c 16455
2aeb72e9 16456
2aeb72e9 16457
5213506e
RW
16458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16459# Files that config.status was made for.
16460config_files="$ac_config_files"
1c710c3c 16461
5213506e 16462_ACEOF
2aeb72e9 16463
5213506e 16464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 16465ac_cs_usage="\
5213506e
RW
16466\`$as_me' instantiates files and other configuration actions
16467from templates according to the current configuration. Unless the files
16468and actions are specified as TAGs, all are instantiated by default.
1c710c3c 16469
5213506e 16470Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
16471
16472 -h, --help print this help, then exit
5213506e 16473 -V, --version print version number and configuration settings, then exit
22e05272 16474 --config print configuration, then exit
5213506e
RW
16475 -q, --quiet, --silent
16476 do not print progress messages
1c710c3c
DJ
16477 -d, --debug don't remove temporary files
16478 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
16479 --file=FILE[:TEMPLATE]
16480 instantiate the configuration file FILE
1c710c3c
DJ
16481
16482Configuration files:
16483$config_files
16484
5213506e 16485Report bugs to the package provider."
2aeb72e9 16486
5213506e
RW
16487_ACEOF
16488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
16490ac_cs_version="\\
16491config.status
22e05272
JM
16492configured by $0, generated by GNU Autoconf 2.69,
16493 with options \\"\$ac_cs_config\\"
1c710c3c 16494
22e05272 16495Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
16496This config.status script is free software; the Free Software Foundation
16497gives unlimited permission to copy, distribute and modify it."
5213506e
RW
16498
16499ac_pwd='$ac_pwd'
16500srcdir='$srcdir'
16501INSTALL='$INSTALL'
87264276 16502AWK='$AWK'
5213506e 16503test -n "\$AWK" || AWK=awk
1c710c3c
DJ
16504_ACEOF
16505
5213506e
RW
16506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507# The default lists apply if the user does not specify any file.
1c710c3c
DJ
16508ac_need_defaults=:
16509while test $# != 0
a4b9e93e 16510do
1c710c3c 16511 case $1 in
22e05272 16512 --*=?*)
5213506e
RW
16513 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16514 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
16515 ac_shift=:
16516 ;;
22e05272
JM
16517 --*=)
16518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16519 ac_optarg=
16520 ac_shift=:
16521 ;;
5213506e 16522 *)
1c710c3c
DJ
16523 ac_option=$1
16524 ac_optarg=$2
16525 ac_shift=shift
16526 ;;
1c710c3c
DJ
16527 esac
16528
16529 case $ac_option in
16530 # Handling of the options.
671aa708 16531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 16532 ac_cs_recheck=: ;;
5213506e
RW
16533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16534 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
16535 --config | --confi | --conf | --con | --co | --c )
16536 $as_echo "$ac_cs_config"; exit ;;
5213506e 16537 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
16538 debug=: ;;
16539 --file | --fil | --fi | --f )
16540 $ac_shift
5213506e
RW
16541 case $ac_optarg in
16542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 16543 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
16544 esac
16545 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 16546 ac_need_defaults=false;;
5213506e
RW
16547 --he | --h | --help | --hel | -h )
16548 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
16549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16551 ac_cs_silent=: ;;
16552
16553 # This is an error.
22e05272 16554 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 16555Try \`$0 --help' for more information." ;;
1c710c3c 16556
5213506e
RW
16557 *) as_fn_append ac_config_targets " $1"
16558 ac_need_defaults=false ;;
1c710c3c 16559
0b0dc272 16560 esac
1c710c3c 16561 shift
0b0dc272
AM
16562done
16563
1c710c3c 16564ac_configure_extra_args=
0b0dc272 16565
1c710c3c
DJ
16566if $ac_cs_silent; then
16567 exec 6>/dev/null
16568 ac_configure_extra_args="$ac_configure_extra_args --silent"
16569fi
0b0dc272 16570
1c710c3c 16571_ACEOF
5213506e 16572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 16573if \$ac_cs_recheck; then
22e05272 16574 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
16575 shift
16576 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16577 CONFIG_SHELL='$SHELL'
16578 export CONFIG_SHELL
16579 exec "\$@"
1c710c3c
DJ
16580fi
16581
16582_ACEOF
5213506e
RW
16583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16584exec 5>>config.log
16585{
16586 echo
16587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16588## Running $as_me. ##
16589_ASBOX
16590 $as_echo "$ac_log"
16591} >&5
1c710c3c 16592
5213506e
RW
16593_ACEOF
16594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
16595#
16596# INIT-COMMANDS
16597#
16598extrasub_build="$extrasub_build"
16599 extrasub_host="$extrasub_host"
16600 extrasub_target="$extrasub_target"
16601
5213506e 16602_ACEOF
1c710c3c 16603
5213506e 16604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 16605
5213506e 16606# Handling of arguments.
1c710c3c
DJ
16607for ac_config_target in $ac_config_targets
16608do
5213506e
RW
16609 case $ac_config_target in
16610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16611
22e05272 16612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
16613 esac
16614done
16615
5213506e 16616
1c710c3c
DJ
16617# If the user did not use the arguments to specify the items to instantiate,
16618# then the envvar interface is used. Set only those that are not.
16619# We use the long form for the default assignment because of an extremely
16620# bizarre bug on SunOS 4.1.3.
16621if $ac_need_defaults; then
16622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16623fi
16624
16625# Have a temporary directory for convenience. Make it in the build tree
5213506e 16626# simply because there is no reason against having it here, and in addition,
1c710c3c 16627# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
16628# Hook for its removal unless debugging.
16629# Note that there is a small window in which the directory will not be cleaned:
16630# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
16631$debug ||
16632{
22e05272 16633 tmp= ac_tmp=
5213506e 16634 trap 'exit_status=$?
22e05272
JM
16635 : "${ac_tmp:=$tmp}"
16636 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
16637' 0
16638 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 16639}
1c710c3c
DJ
16640# Create a (secure) tmp directory for tmp files.
16641
16642{
5213506e 16643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 16644 test -d "$tmp"
1c710c3c
DJ
16645} ||
16646{
5213506e
RW
16647 tmp=./conf$$-$RANDOM
16648 (umask 077 && mkdir "$tmp")
22e05272
JM
16649} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16650ac_tmp=$tmp
5213506e
RW
16651
16652# Set up the scripts for CONFIG_FILES section.
16653# No need to generate them if there are no CONFIG_FILES.
16654# This happens for instance with `./config.status config.h'.
16655if test -n "$CONFIG_FILES"; then
16656
16657if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16658 ac_cs_awk_getline=:
16659 ac_cs_awk_pipe_init=
16660 ac_cs_awk_read_file='
16661 while ((getline aline < (F[key])) > 0)
16662 print(aline)
16663 close(F[key])'
16664 ac_cs_awk_pipe_fini=
16665else
16666 ac_cs_awk_getline=false
16667 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16668 ac_cs_awk_read_file='
16669 print "|#_!!_#|"
16670 print "cat " F[key] " &&"
16671 '$ac_cs_awk_pipe_init
16672 # The final `:' finishes the AND list.
16673 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16674fi
16675ac_cr=`echo X | tr X '\015'`
16676# On cygwin, bash can eat \r inside `` if the user requested igncr.
16677# But we know of no other shell where ac_cr would be empty at this
16678# point, so we can use a bashism as a fallback.
16679if test "x$ac_cr" = x; then
16680 eval ac_cr=\$\'\\r\'
16681fi
16682ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16683if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 16684 ac_cs_awk_cr='\\r'
5213506e
RW
16685else
16686 ac_cs_awk_cr=$ac_cr
16687fi
16688
22e05272 16689echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
16690_ACEOF
16691
16692# Create commands to substitute file output variables.
1c710c3c 16693{
5213506e 16694 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 16695 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
16696 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16697 echo "_ACAWK" &&
16698 echo "_ACEOF"
16699} >conf$$files.sh &&
16700. ./conf$$files.sh ||
22e05272 16701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 16702rm -f conf$$files.sh
1c710c3c 16703
5213506e
RW
16704{
16705 echo "cat >conf$$subs.awk <<_ACEOF" &&
16706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16707 echo "_ACEOF"
16708} >conf$$subs.sh ||
22e05272
JM
16709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16710ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
16711ac_delim='%!_!# '
16712for ac_last_try in false false false false false :; do
16713 . ./conf$$subs.sh ||
22e05272 16714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16715
16716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16717 if test $ac_delim_n = $ac_delim_num; then
16718 break
16719 elif $ac_last_try; then
22e05272 16720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
16721 else
16722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16723 fi
16724done
16725rm -f conf$$subs.sh
16726
16727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 16728cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 16729_ACEOF
5213506e
RW
16730sed -n '
16731h
16732s/^/S["/; s/!.*/"]=/
16733p
16734g
16735s/^[^!]*!//
16736:repl
16737t repl
16738s/'"$ac_delim"'$//
16739t delim
16740:nl
16741h
22e05272 16742s/\(.\{148\}\)..*/\1/
5213506e
RW
16743t more1
16744s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16745p
16746n
16747b repl
16748:more1
16749s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16750p
16751g
16752s/.\{148\}//
16753t nl
16754:delim
16755h
22e05272 16756s/\(.\{148\}\)..*/\1/
5213506e
RW
16757t more2
16758s/["\\]/\\&/g; s/^/"/; s/$/"/
16759p
16760b
16761:more2
16762s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16763p
16764g
16765s/.\{148\}//
16766t delim
16767' <conf$$subs.awk | sed '
16768/^[^""]/{
16769 N
16770 s/\n//
16771}
16772' >>$CONFIG_STATUS || ac_write_fail=1
16773rm -f conf$$subs.awk
16774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16775_ACAWK
22e05272 16776cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
16777 for (key in S) S_is_set[key] = 1
16778 FS = "\a"
16779 \$ac_cs_awk_pipe_init
16780}
16781{
16782 line = $ 0
16783 nfields = split(line, field, "@")
16784 substed = 0
16785 len = length(field[1])
16786 for (i = 2; i < nfields; i++) {
16787 key = field[i]
16788 keylen = length(key)
16789 if (S_is_set[key]) {
16790 value = S[key]
16791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16792 len += length(value) + length(field[++i])
16793 substed = 1
16794 } else
16795 len += 1 + keylen
16796 }
16797 if (nfields == 3 && !substed) {
16798 key = field[2]
16799 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16800 \$ac_cs_awk_read_file
16801 next
16802 }
16803 }
16804 print line
16805}
16806\$ac_cs_awk_pipe_fini
16807_ACAWK
16808_ACEOF
16809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16810if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16812else
16813 cat
22e05272
JM
16814fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
16816_ACEOF
16817
22e05272
JM
16818# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16819# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
16820# trailing colons and then remove the whole line if VPATH becomes empty
16821# (actually we leave an empty line to preserve line numbers).
16822if test "x$srcdir" = x.; then
22e05272
JM
16823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16824h
16825s///
16826s/^/:/
16827s/[ ]*$/:/
16828s/:\$(srcdir):/:/g
16829s/:\${srcdir}:/:/g
16830s/:@srcdir@:/:/g
16831s/^:*//
5213506e 16832s/:*$//
22e05272
JM
16833x
16834s/\(=[ ]*\).*/\1/
16835G
16836s/\n//
5213506e
RW
16837s/^[^=]*=[ ]*$//
16838}'
16839fi
2aeb72e9 16840
5213506e
RW
16841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16842fi # test -n "$CONFIG_FILES"
2aeb72e9 16843
1c710c3c 16844
5213506e
RW
16845eval set X " :F $CONFIG_FILES "
16846shift
16847for ac_tag
16848do
16849 case $ac_tag in
16850 :[FHLC]) ac_mode=$ac_tag; continue;;
16851 esac
16852 case $ac_mode$ac_tag in
16853 :[FHL]*:*);;
22e05272 16854 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
16855 :[FH]-) ac_tag=-:-;;
16856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16857 esac
16858 ac_save_IFS=$IFS
16859 IFS=:
16860 set x $ac_tag
16861 IFS=$ac_save_IFS
16862 shift
16863 ac_file=$1
16864 shift
79c06341 16865
5213506e
RW
16866 case $ac_mode in
16867 :L) ac_source=$1;;
16868 :[FH])
16869 ac_file_inputs=
16870 for ac_f
16871 do
16872 case $ac_f in
22e05272 16873 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
16874 *) # Look for the file first in the build tree, then in the source tree
16875 # (if the path is not absolute). The absolute path cannot be DOS-style,
16876 # because $ac_f cannot contain `:'.
16877 test -f "$ac_f" ||
16878 case $ac_f in
16879 [\\/$]*) false;;
16880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16881 esac ||
22e05272 16882 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
16883 esac
16884 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16885 as_fn_append ac_file_inputs " '$ac_f'"
16886 done
1c710c3c 16887
5213506e
RW
16888 # Let's still pretend it is `configure' which instantiates (i.e., don't
16889 # use $as_me), people would be surprised to read:
16890 # /* config.h. Generated by config.status. */
16891 configure_input='Generated from '`
16892 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16893 `' by configure.'
16894 if test x"$ac_file" != x-; then
16895 configure_input="$ac_file. $configure_input"
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16897$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 16898 fi
5213506e
RW
16899 # Neutralize special characters interpreted by sed in replacement strings.
16900 case $configure_input in #(
16901 *\&* | *\|* | *\\* )
16902 ac_sed_conf_input=`$as_echo "$configure_input" |
16903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16904 *) ac_sed_conf_input=$configure_input;;
16905 esac
11a67599 16906
5213506e 16907 case $ac_tag in
22e05272
JM
16908 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
16910 esac
16911 ;;
11a67599
ZW
16912 esac
16913
5213506e 16914 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
16915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16916 X"$ac_file" : 'X\(//\)[^/]' \| \
16917 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
16918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16919$as_echo X"$ac_file" |
16920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\/\)[^/].*/{
16925 s//\1/
16926 q
16927 }
16928 /^X\(\/\/\)$/{
16929 s//\1/
16930 q
16931 }
16932 /^X\(\/\).*/{
16933 s//\1/
16934 q
16935 }
16936 s/.*/./; q'`
16937 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 16938 ac_builddir=.
0b0dc272 16939
5213506e
RW
16940case "$ac_dir" in
16941.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16942*)
16943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16944 # A ".." for each directory in $ac_dir_suffix.
16945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16946 case $ac_top_builddir_sub in
16947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16949 esac ;;
16950esac
16951ac_abs_top_builddir=$ac_pwd
16952ac_abs_builddir=$ac_pwd$ac_dir_suffix
16953# for backward compatibility:
16954ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
16955
16956case $srcdir in
5213506e 16957 .) # We are building in place.
1c710c3c 16958 ac_srcdir=.
5213506e
RW
16959 ac_top_srcdir=$ac_top_builddir_sub
16960 ac_abs_top_srcdir=$ac_pwd ;;
16961 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 16962 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
16963 ac_top_srcdir=$srcdir
16964 ac_abs_top_srcdir=$srcdir ;;
16965 *) # Relative name.
16966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16967 ac_top_srcdir=$ac_top_build_prefix$srcdir
16968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 16969esac
5213506e 16970ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 16971
0b0dc272 16972
5213506e
RW
16973 case $ac_mode in
16974 :F)
16975 #
16976 # CONFIG_FILE
16977 #
1c710c3c
DJ
16978
16979 case $INSTALL in
16980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 16981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 16982 esac
5213506e 16983_ACEOF
11a67599 16984
5213506e
RW
16985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16986# If the template does not know about datarootdir, expand it.
16987# FIXME: This hack should be removed a few years after 2.60.
16988ac_datarootdir_hack=; ac_datarootdir_seen=
16989ac_sed_dataroot='
16990/datarootdir/ {
16991 p
16992 q
16993}
16994/@datadir@/p
16995/@docdir@/p
16996/@infodir@/p
16997/@localedir@/p
16998/@mandir@/p'
16999case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17000*datarootdir*) ac_datarootdir_seen=yes;;
17001*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17003$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 17004_ACEOF
5213506e
RW
17005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17006 ac_datarootdir_hack='
17007 s&@datadir@&$datadir&g
17008 s&@docdir@&$docdir&g
17009 s&@infodir@&$infodir&g
17010 s&@localedir@&$localedir&g
17011 s&@mandir@&$mandir&g
17012 s&\\\${datarootdir}&$datarootdir&g' ;;
17013esac
17014_ACEOF
17015
17016# Neutralize VPATH when `$srcdir' = `.'.
17017# Shell code in configure.ac might set extrasub.
17018# FIXME: do we really want to maintain this feature?
17019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17020ac_sed_extra="$ac_vpsub
1c710c3c
DJ
17021$extrasub
17022_ACEOF
5213506e 17023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
17024:t
17025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
17026s|@configure_input@|$ac_sed_conf_input|;t t
17027s&@top_builddir@&$ac_top_builddir_sub&;t t
17028s&@top_build_prefix@&$ac_top_build_prefix&;t t
17029s&@srcdir@&$ac_srcdir&;t t
17030s&@abs_srcdir@&$ac_abs_srcdir&;t t
17031s&@top_srcdir@&$ac_top_srcdir&;t t
17032s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17033s&@builddir@&$ac_builddir&;t t
17034s&@abs_builddir@&$ac_abs_builddir&;t t
17035s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17036s&@INSTALL@&$ac_INSTALL&;t t
17037$ac_datarootdir_hack
17038"
17039eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17040if $ac_cs_awk_getline; then
22e05272 17041 $AWK -f "$ac_tmp/subs.awk"
5213506e 17042else
22e05272
JM
17043 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17044fi \
17045 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
17046
17047test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
17048 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17049 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17050 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17052which seems to be undefined. Please make sure it is defined" >&5
5213506e 17053$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 17054which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 17055
22e05272 17056 rm -f "$ac_tmp/stdin"
5213506e 17057 case $ac_file in
22e05272
JM
17058 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17059 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 17060 esac \
22e05272 17061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 17062 ;;
11a67599 17063
11a67599 17064
79c06341 17065
5213506e
RW
17066 esac
17067
3e54529c
RW
17068
17069 case $ac_file$ac_mode in
17070 "Makefile":F) sed "$extrasub_build" Makefile |
17071 sed "$extrasub_host" |
17072 sed "$extrasub_target" > mf$$
17073 mv -f mf$$ Makefile ;;
17074
17075 esac
5213506e
RW
17076done # for ac_tag
17077
17078
17079as_fn_exit 0
1c710c3c 17080_ACEOF
1c710c3c
DJ
17081ac_clean_files=$ac_clean_files_save
17082
5213506e 17083test $ac_write_fail = 0 ||
22e05272 17084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 17085
1c710c3c
DJ
17086
17087# configure is writing to config.log, and then calls config.status.
17088# config.status does its own redirection, appending to config.log.
17089# Unfortunately, on DOS this fails, as config.log is still kept open
17090# by configure, so config.status won't be able to write to it; its
17091# output is simply discarded. So we exec the FD to /dev/null,
17092# effectively closing config.log, so it can be properly (re)opened and
17093# appended to by config.status. When coming back to configure, we
17094# need to make the FD available again.
17095if test "$no_create" != yes; then
17096 ac_cs_success=:
17097 ac_config_status_args=
17098 test "$silent" = yes &&
17099 ac_config_status_args="$ac_config_status_args --quiet"
17100 exec 5>/dev/null
17101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17102 exec 5>>config.log
17103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17104 # would make configure fail if this is the last instruction.
22e05272 17105 $ac_cs_success || as_fn_exit 1
5213506e
RW
17106fi
17107if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17109$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 17110fi
79c06341 17111