]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Use preferred mode for doloop IV [PR61837]
[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
3b5e8ee4 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
3b5e8ee4 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
3b5e8ee4 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
7ffcf5d6 700HAVE_CXX11_FOR_BUILD
ffac9597 701HAVE_CXX11
5213506e
RW
702do_compare
703GNATMAKE
704GNATBIND
705ac_ct_CXX
706CXXFLAGS
707CXX
708OBJEXT
709EXEEXT
710ac_ct_CC
711CPPFLAGS
712LDFLAGS
713CFLAGS
714CC
5f520819 715extra_liboffloadmic_configure_flags
5213506e
RW
716target_subdir
717host_subdir
718build_subdir
719build_libsubdir
87264276
PB
720AWK
721SED
5213506e
RW
722LN_S
723LN
724INSTALL_DATA
725INSTALL_SCRIPT
726INSTALL_PROGRAM
727target_os
728target_vendor
729target_cpu
730target
731host_os
732host_vendor
733host_cpu
734host
735target_noncanonical
736host_noncanonical
737build_noncanonical
738build_os
739build_vendor
740build_cpu
741build
742TOPLEVEL_CONFIGURE_ARGUMENTS
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files='serialization_dependencies
782host_makefile_frag
783target_makefile_frag
784alphaieee_frag
785ospace_frag'
786ac_user_opts='
787enable_option_checking
788with_build_libsubdir
a05c2c75 789with_system_zlib
85c64bbe
BS
790enable_as_accelerator_for
791enable_offload_targets
fe5bfa67 792enable_offload_defaulted
5213506e 793enable_gold
21539e2e 794enable_ld
78edb32f 795enable_compressed_debug_sections
87e6d9dc
TB
796enable_libquadmath
797enable_libquadmath_support
5213506e
RW
798enable_libada
799enable_libssp
1873ec0c 800enable_libstdcxx
5f520819 801enable_liboffloadmic
ff3ac0f4 802enable_bootstrap
5213506e
RW
803with_mpc
804with_mpc_include
805with_mpc_lib
806with_mpfr_dir
807with_mpfr
808with_mpfr_include
809with_mpfr_lib
810with_gmp_dir
811with_gmp
812with_gmp_include
813with_gmp_lib
5213506e 814with_stage1_libs
aac9103b 815with_static_standard_libraries
0b21f5d3 816with_stage1_ldflags
5213506e 817with_boot_libs
ed2eaa9f 818with_boot_ldflags
33ad93b9
RG
819with_isl
820with_isl_include
821with_isl_lib
822enable_isl_version_check
d7f09764 823enable_lto
45b3824d
TS
824enable_linker_plugin_configure_flags
825enable_linker_plugin_flags
cdfee50a 826enable_host_shared
5213506e 827enable_stage1_languages
43c40f3e 828enable_objc_gc
114bf3f1
MK
829with_target_bdw_gc
830with_target_bdw_gc_include
831with_target_bdw_gc_lib
3c36aa6b 832with_gcc_major_version_only
5213506e
RW
833with_build_sysroot
834with_debug_prefix_map
5646b7b9 835with_build_config
beeda1d9 836enable_vtable_verify
5213506e
RW
837enable_serial_configure
838with_build_time_tools
839enable_maintainer_mode
840enable_stage1_checking
841enable_werror
5213506e
RW
842'
843 ac_precious_vars='build_alias
844host_alias
845target_alias
846CC
847CFLAGS
848LDFLAGS
849LIBS
850CPPFLAGS
851CXX
852CXXFLAGS
853CCC
ffedf511
RW
854build_configargs
855host_configargs
856target_configargs
5213506e
RW
857AR
858AS
859DLLTOOL
3b5e8ee4 860DSYMUTIL
5213506e
RW
861LD
862LIPO
863NM
864RANLIB
865STRIP
866WINDRES
867WINDMC
868OBJCOPY
869OBJDUMP
e4a9a572 870OTOOL
e7a82751 871READELF
5213506e
RW
872CC_FOR_TARGET
873CXX_FOR_TARGET
874GCC_FOR_TARGET
5213506e 875GFORTRAN_FOR_TARGET
632e2a07 876GOC_FOR_TARGET
b4c522fa 877GDC_FOR_TARGET
5213506e
RW
878AR_FOR_TARGET
879AS_FOR_TARGET
880DLLTOOL_FOR_TARGET
3b5e8ee4 881DSYMUTIL_FOR_TARGET
5213506e
RW
882LD_FOR_TARGET
883LIPO_FOR_TARGET
884NM_FOR_TARGET
9bccfdf5 885OBJCOPY_FOR_TARGET
5213506e 886OBJDUMP_FOR_TARGET
e4a9a572 887OTOOL_FOR_TARGET
5213506e 888RANLIB_FOR_TARGET
e7a82751 889READELF_FOR_TARGET
5213506e
RW
890STRIP_FOR_TARGET
891WINDRES_FOR_TARGET
892WINDMC_FOR_TARGET'
893
671aa708
NN
894
895# Initialize some variables set by options.
1c710c3c
DJ
896ac_init_help=
897ac_init_version=false
5213506e
RW
898ac_unrecognized_opts=
899ac_unrecognized_sep=
671aa708
NN
900# The variables have the same names as the options, with
901# dashes changed to underlines.
1c710c3c 902cache_file=/dev/null
671aa708 903exec_prefix=NONE
671aa708 904no_create=
671aa708
NN
905no_recursion=
906prefix=NONE
907program_prefix=NONE
908program_suffix=NONE
909program_transform_name=s,x,x,
910silent=
911site=
912srcdir=
671aa708
NN
913verbose=
914x_includes=NONE
915x_libraries=NONE
1c710c3c
DJ
916
917# Installation directory options.
918# These are left unexpanded so users can "make install exec_prefix=/foo"
919# and all the variables that are supposed to be based on exec_prefix
920# by default will actually change.
921# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 922# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
923bindir='${exec_prefix}/bin'
924sbindir='${exec_prefix}/sbin'
925libexecdir='${exec_prefix}/libexec'
5213506e
RW
926datarootdir='${prefix}/share'
927datadir='${datarootdir}'
671aa708
NN
928sysconfdir='${prefix}/etc'
929sharedstatedir='${prefix}/com'
930localstatedir='${prefix}/var'
671aa708
NN
931includedir='${prefix}/include'
932oldincludedir='/usr/include'
5213506e
RW
933docdir='${datarootdir}/doc/${PACKAGE}'
934infodir='${datarootdir}/info'
935htmldir='${docdir}'
936dvidir='${docdir}'
937pdfdir='${docdir}'
938psdir='${docdir}'
939libdir='${exec_prefix}/lib'
940localedir='${datarootdir}/locale'
941mandir='${datarootdir}/man'
79c06341 942
671aa708 943ac_prev=
5213506e 944ac_dashdash=
671aa708
NN
945for ac_option
946do
671aa708
NN
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
5213506e 949 eval $ac_prev=\$ac_option
671aa708
NN
950 ac_prev=
951 continue
952 fi
79c06341 953
5213506e 954 case $ac_option in
22e05272
JM
955 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *=) ac_optarg= ;;
957 *) ac_optarg=yes ;;
5213506e 958 esac
671aa708
NN
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
5213506e
RW
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
671aa708
NN
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 969 bindir=$ac_optarg ;;
671aa708
NN
970
971 -build | --build | --buil | --bui | --bu)
1c710c3c 972 ac_prev=build_alias ;;
671aa708 973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 974 build_alias=$ac_optarg ;;
671aa708
NN
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
671aa708 985
5213506e 986 -datadir | --datadir | --datadi | --datad)
671aa708 987 ac_prev=datadir ;;
5213506e 988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 989 datadir=$ac_optarg ;;
671aa708 990
5213506e
RW
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
671aa708 998 -disable-* | --disable-*)
5213506e 999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1000 # Reject names that are not valid shell variable names.
5213506e 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1002 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007"enable_$ac_useropt"
1008"*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=no ;;
1013
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1018
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
671aa708
NN
1023
1024 -enable-* | --enable-*)
5213506e 1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1026 # Reject names that are not valid shell variable names.
5213506e 1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1028 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033"enable_$ac_useropt"
1034"*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
2aeb72e9 1037 esac
5213506e 1038 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1039
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1c710c3c 1047 exec_prefix=$ac_optarg ;;
671aa708
NN
1048
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1052
1c710c3c
DJ
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
671aa708
NN
1059
1060 -host | --host | --hos | --ho)
1c710c3c 1061 ac_prev=host_alias ;;
671aa708 1062 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1063 host_alias=$ac_optarg ;;
671aa708 1064
5213506e
RW
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1070
671aa708
NN
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1076 includedir=$ac_optarg ;;
671aa708
NN
1077
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1081 infodir=$ac_optarg ;;
671aa708
NN
1082
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1086 libdir=$ac_optarg ;;
671aa708
NN
1087
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1093 libexecdir=$ac_optarg ;;
671aa708 1094
5213506e
RW
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1099
671aa708 1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1101 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1105 localstatedir=$ac_optarg ;;
671aa708
NN
1106
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1110 mandir=$ac_optarg ;;
671aa708
NN
1111
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1115
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1117 | --no-cr | --no-c | -n)
671aa708
NN
1118 no_create=yes ;;
1119
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1123
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1131 oldincludedir=$ac_optarg ;;
671aa708
NN
1132
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1136 prefix=$ac_optarg ;;
671aa708
NN
1137
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1143 program_prefix=$ac_optarg ;;
671aa708
NN
1144
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1150 program_suffix=$ac_optarg ;;
671aa708
NN
1151
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1167 program_transform_name=$ac_optarg ;;
671aa708 1168
5213506e
RW
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1173
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1178
671aa708
NN
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1c710c3c 1187 sbindir=$ac_optarg ;;
671aa708
NN
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1c710c3c 1198 sharedstatedir=$ac_optarg ;;
671aa708
NN
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1c710c3c 1203 site=$ac_optarg ;;
671aa708
NN
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1208 srcdir=$ac_optarg ;;
671aa708
NN
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1215 sysconfdir=$ac_optarg ;;
671aa708
NN
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1218 ac_prev=target_alias ;;
671aa708 1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1220 target_alias=$ac_optarg ;;
671aa708
NN
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1c710c3c
DJ
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
671aa708
NN
1227
1228 -with-* | --with-*)
5213506e 1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1230 # Reject names that are not valid shell variable names.
5213506e 1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1232 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237"with_$ac_useropt"
1238"*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
2aeb72e9 1241 esac
5213506e 1242 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1243
1244 -without-* | --without-*)
5213506e 1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1246 # Reject names that are not valid shell variable names.
5213506e 1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1248 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253"with_$ac_useropt"
1254"*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
671aa708
NN
1259
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1269 x_includes=$ac_optarg ;;
671aa708
NN
1270
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1276 x_libraries=$ac_optarg ;;
671aa708 1277
22e05272
JM
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279Try \`$0 --help' for more information"
671aa708
NN
1280 ;;
1281
1c710c3c
DJ
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
5213506e
RW
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1290 export $ac_envvar ;;
1291
671aa708 1292 *)
1c710c3c 1293 # FIXME: should be removed in autoconf 3.0.
5213506e 1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1298 ;;
1299
1300 esac
1301done
1302
1303if test -n "$ac_prev"; then
1c710c3c 1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1305 as_fn_error $? "missing argument to $ac_option"
af71363e 1306fi
af71363e 1307
5213506e
RW
1308if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
22e05272 1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1313 esac
5213506e 1314fi
2aeb72e9 1315
5213506e
RW
1316# Check all directory arguments for consistency.
1317for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
2aeb72e9 1321do
5213506e
RW
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
2aeb72e9 1330 case $ac_val in
5213506e
RW
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1333 esac
22e05272 1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1335done
1336
1c710c3c
DJ
1337# There might be people who depend on the old broken behavior: `$host'
1338# used to hold the argument of --host etc.
1339# FIXME: To remove some day.
1340build=$build_alias
1341host=$host_alias
1342target=$target_alias
0b0dc272 1343
1c710c3c
DJ
1344# FIXME: To remove some day.
1345if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1c710c3c
DJ
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351fi
1352
1353ac_tool_prefix=
1354test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356test "$silent" = yes && exec 6>/dev/null
671aa708 1357
671aa708 1358
5213506e
RW
1359ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360ac_ls_di=`ls -di .` &&
1361ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1362 as_fn_error $? "working directory cannot be determined"
5213506e 1363test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1364 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1365
1366
671aa708
NN
1367# Find the source files, if location was not specified.
1368if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
5213506e
RW
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376$as_echo X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\).*/{
1390 s//\1/
1391 q
1392 }
1393 s/.*/./; q'`
671aa708 1394 srcdir=$ac_confdir
5213506e 1395 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1396 srcdir=..
1397 fi
1398else
1399 ac_srcdir_defaulted=no
1400fi
5213506e
RW
1401if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1404fi
1405ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1406ac_abs_confdir=`(
22e05272 1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1408 pwd)`
1409# When building in place, set srcdir=.
1410if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412fi
1413# Remove unnecessary trailing slashes from srcdir.
1414# Double slashes in file names in object file debugging info
1415# mess up M-x gdb in Emacs.
1416case $srcdir in
1417*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418esac
87841584
AM
1419case $srcdir in
1420 *" "*)
22e05272 1421 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1422 ;;
1423esac
ac9e6043
RW
1424ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1425
5213506e
RW
1426for ac_var in $ac_precious_vars; do
1427 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_${ac_var}_value=\$${ac_var}
1429 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431done
1c710c3c
DJ
1432
1433#
1434# Report the --help message.
1435#
1436if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1439 cat <<_ACEOF
1440\`configure' configures this package to adapt to many kinds of systems.
1441
1442Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445VAR=VALUE. See below for descriptions of some of the useful variables.
1446
1447Defaults for the options are specified in brackets.
1448
1449Configuration:
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
22e05272 1454 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459
1c710c3c
DJ
1460Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1462 [$ac_default_prefix]
1c710c3c 1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1464 [PREFIX]
1c710c3c
DJ
1465
1466By default, \`make install' will install all the files in
1467\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469for instance \`--prefix=\$HOME'.
1470
1471For better control, use the options below.
1472
1473Fine tuning of the installation directories:
5213506e
RW
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1493_ACEOF
1494
1495 cat <<\_ACEOF
1496
1497Program names:
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501
1502System types:
1503 --build=BUILD configure for building on BUILD [guessed]
1504 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1505 --target=TARGET configure for building compilers for TARGET [HOST]
1506_ACEOF
1507fi
1508
1509if test -n "$ac_init_help"; then
1510
1511 cat <<\_ACEOF
1512
1513Optional Features:
5213506e 1514 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1517 --enable-as-accelerator-for=ARG
1518 build as offload target compiler. Specify offload
1519 host triple by ARG
1520 --enable-offload-targets=LIST
1521 enable offloading to devices from comma-separated
1522 LIST of TARGET[=DIR]. Use optional path to find
1523 offload target compiler during the build
fe5bfa67
TB
1524 --enable-offload-defaulted
1525 If enabled, configured but not installed offload compilers and
1526 libgomp plugins are silently ignored. Useful for distribution
1527 compilers where those are in separate optional packages.
1528
21539e2e 1529 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1530 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1531 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1532 Enable compressed debug sections for gas, gold or ld
1533 by default
87e6d9dc
TB
1534 --disable-libquadmath do not build libquadmath directory
1535 --disable-libquadmath-support
1536 disable libquadmath support for Fortran
30b74385
RW
1537 --enable-libada build libada directory
1538 --enable-libssp build libssp directory
1873ec0c 1539 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1540 --enable-liboffloadmic=ARG
1541 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1542 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1543 --disable-isl-version-check
560d18d3 1544 disable check for isl version
d7f09764 1545 --enable-lto enable link time optimization support
45b3824d
TS
1546 --enable-linker-plugin-configure-flags=FLAGS
1547 additional flags for configuring linker plugins
1548 [none]
1549 --enable-linker-plugin-flags=FLAGS
1550 additional flags for configuring and building linker
1551 plugins [none]
cdfee50a 1552 --enable-host-shared build host code as shared libraries
33e39b66
AS
1553 --enable-stage1-languages[=all]
1554 choose additional languages to build during stage1.
1555 Mostly useful for compiler development
43c40f3e
RO
1556 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1557 Objective-C runtime
318a4e6d 1558 --enable-vtable-verify Enable vtable verification feature
30b74385 1559 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1560 force sequential configuration of sub-packages for
1561 the host, target or build machine, or all
1562 sub-packages
1563 --enable-maintainer-mode
1564 enable make rules and dependencies not useful (and
1565 sometimes confusing) to the casual installer
1566 --enable-stage1-checking[=all]
1567 choose additional checking for stage1 of the
1568 compiler
1c710c3c
DJ
1569 --enable-werror enable -Werror in bootstrap stage2 and later
1570
1571Optional Packages:
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1575 --with-system-zlib use installed libz
33e39b66
AS
1576 --with-mpc=PATH specify prefix directory for installed MPC package.
1577 Equivalent to --with-mpc-include=PATH/include plus
1578 --with-mpc-lib=PATH/lib
1579 --with-mpc-include=PATH specify directory for installed MPC include files
1580 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1581 --with-mpfr-dir=PATH this option has been REMOVED
1582 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1583 Equivalent to --with-mpfr-include=PATH/include plus
1584 --with-mpfr-lib=PATH/lib
1c710c3c 1585 --with-mpfr-include=PATH
30b74385
RW
1586 specify directory for installed MPFR include files
1587 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1588 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1589 --with-gmp=PATH specify prefix directory for the installed GMP
1590 package. Equivalent to
1591 --with-gmp-include=PATH/include plus
1592 --with-gmp-lib=PATH/lib
30b74385
RW
1593 --with-gmp-include=PATH specify directory for installed GMP include files
1594 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1595 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1596 --with-static-standard-libraries
1597 use -static-libstdc++ and -static-libgcc
1598 (default=auto)
33e39b66
AS
1599 --with-stage1-ldflags=FLAGS
1600 linker flags for stage1
33e39b66
AS
1601 --with-boot-libs=LIBS libraries for stage2 and later
1602 --with-boot-ldflags=FLAGS
1603 linker flags for stage2 and later
e357a5e0 1604 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1605 package. Equivalent to
33ad93b9
RG
1606 --with-isl-include=PATH/include plus
1607 --with-isl-lib=PATH/lib
560d18d3
AK
1608 --with-isl-include=PATH Specify directory for installed isl include files
1609 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1610 --with-target-bdw-gc=PATHLIST
1611 specify prefix directory for installed bdw-gc
1612 package. Equivalent to
1613 --with-target-bdw-gc-include=PATH/include plus
1614 --with-target-bdw-gc-lib=PATH/lib
1615 --with-target-bdw-gc-include=PATHLIST
1616 specify directories for installed bdw-gc include
1617 files
1618 --with-target-bdw-gc-lib=PATHLIST
1619 specify directories for installed bdw-gc library
3c36aa6b
JJ
1620 --with-gcc-major-version-only
1621 use only GCC major number in filesystem paths
30b74385 1622 --with-build-sysroot=SYSROOT
1c710c3c 1623 use sysroot as the system root during the build
c8aea42c 1624 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1625 map A to B, C to D ... in debug information
1626 --with-build-config='NAME NAME2...'
1627 use config/NAME.mk build configuration
30b74385 1628 --with-build-time-tools=PATH
1c710c3c 1629 use given path to find target tools during the build
1c710c3c
DJ
1630
1631Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
5213506e 1636 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1638 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1639 CXX C++ compiler command
1640 CXXFLAGS C++ compiler flags
ffedf511
RW
1641 build_configargs
1642 additional configure arguments for build directories
1643 host_configargs
1644 additional configure arguments for host directories
1645 target_configargs
1646 additional configure arguments for target directories
278a7a38
AO
1647 AR AR for the host
1648 AS AS for the host
1649 DLLTOOL DLLTOOL for the host
3b5e8ee4 1650 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1651 LD LD for the host
1652 LIPO LIPO for the host
1653 NM NM for the host
1654 RANLIB RANLIB for the host
1655 STRIP STRIP for the host
1656 WINDRES WINDRES for the host
901119ae 1657 WINDMC WINDMC for the host
278a7a38
AO
1658 OBJCOPY OBJCOPY for the host
1659 OBJDUMP OBJDUMP for the host
e4a9a572 1660 OTOOL OTOOL for the host
e7a82751 1661 READELF READELF for the host
278a7a38
AO
1662 CC_FOR_TARGET
1663 CC for the target
1664 CXX_FOR_TARGET
1665 CXX for the target
1666 GCC_FOR_TARGET
1667 GCC for the target
278a7a38
AO
1668 GFORTRAN_FOR_TARGET
1669 GFORTRAN for the target
632e2a07
ILT
1670 GOC_FOR_TARGET
1671 GOC for the target
b4c522fa
IB
1672 GDC_FOR_TARGET
1673 GDC for the target
278a7a38
AO
1674 AR_FOR_TARGET
1675 AR for the target
1676 AS_FOR_TARGET
1677 AS for the target
1678 DLLTOOL_FOR_TARGET
1679 DLLTOOL for the target
3b5e8ee4
IS
1680 DSYMUTIL_FOR_TARGET
1681 DSYMUTIL for the target
278a7a38
AO
1682 LD_FOR_TARGET
1683 LD for the target
1684 LIPO_FOR_TARGET
1685 LIPO for the target
1686 NM_FOR_TARGET
1687 NM for the target
9bccfdf5
AP
1688 OBJCOPY_FOR_TARGET
1689 OBJCOPY for the target
278a7a38
AO
1690 OBJDUMP_FOR_TARGET
1691 OBJDUMP for the target
e4a9a572
IS
1692 OTOOL_FOR_TARGET
1693 OTOOL for the target
278a7a38
AO
1694 RANLIB_FOR_TARGET
1695 RANLIB for the target
e7a82751
RM
1696 READELF_FOR_TARGET
1697 READELF for the target
278a7a38
AO
1698 STRIP_FOR_TARGET
1699 STRIP for the target
1700 WINDRES_FOR_TARGET
1701 WINDRES for the target
901119ae
KT
1702 WINDMC_FOR_TARGET
1703 WINDMC for the target
1c710c3c
DJ
1704
1705Use these variables to override the choices made by `configure' or to help
1706it to find libraries and programs with nonstandard names/locations.
1707
5213506e 1708Report bugs to the package provider.
1c710c3c 1709_ACEOF
5213506e 1710ac_status=$?
1c710c3c
DJ
1711fi
1712
1713if test "$ac_init_help" = "recursive"; then
1714 # If there are subdirs, report their specific --help.
1c710c3c 1715 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1716 test -d "$ac_dir" ||
1717 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1718 continue
1c710c3c
DJ
1719 ac_builddir=.
1720
5213506e
RW
1721case "$ac_dir" in
1722.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723*)
1724 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1725 # A ".." for each directory in $ac_dir_suffix.
1726 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1727 case $ac_top_builddir_sub in
1728 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730 esac ;;
1731esac
1732ac_abs_top_builddir=$ac_pwd
1733ac_abs_builddir=$ac_pwd$ac_dir_suffix
1734# for backward compatibility:
1735ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1736
1737case $srcdir in
5213506e 1738 .) # We are building in place.
1c710c3c 1739 ac_srcdir=.
5213506e
RW
1740 ac_top_srcdir=$ac_top_builddir_sub
1741 ac_abs_top_srcdir=$ac_pwd ;;
1742 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1743 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1744 ac_top_srcdir=$srcdir
1745 ac_abs_top_srcdir=$srcdir ;;
1746 *) # Relative name.
1747 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1748 ac_top_srcdir=$ac_top_build_prefix$srcdir
1749 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1750esac
5213506e
RW
1751ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1752
1753 cd "$ac_dir" || { ac_status=$?; continue; }
1754 # Check for guested configure.
1755 if test -f "$ac_srcdir/configure.gnu"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1758 elif test -f "$ac_srcdir/configure"; then
1759 echo &&
1760 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1761 else
5213506e
RW
1762 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1763 fi || ac_status=$?
1764 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1765 done
1766fi
1767
5213506e 1768test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1769if $ac_init_version; then
1770 cat <<\_ACEOF
5213506e 1771configure
22e05272 1772generated by GNU Autoconf 2.69
1c710c3c 1773
22e05272 1774Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1775This configure script is free software; the Free Software Foundation
1776gives unlimited permission to copy, distribute and modify it.
1777_ACEOF
5213506e 1778 exit
0b0dc272 1779fi
5213506e
RW
1780
1781## ------------------------ ##
1782## Autoconf initialization. ##
1783## ------------------------ ##
1784
1785# ac_fn_c_try_compile LINENO
1786# --------------------------
1787# Try to compile conftest.$ac_ext, and return whether this succeeded.
1788ac_fn_c_try_compile ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 rm -f conftest.$ac_objext
1792 if { { ac_try="$ac_compile"
1793case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796esac
1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798$as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1800 ac_status=$?
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1805 fi
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext; then :
1811 ac_retval=0
1812else
1813 $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=1
1817fi
22e05272
JM
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
5213506e
RW
1820
1821} # ac_fn_c_try_compile
1822
1823# ac_fn_cxx_try_compile LINENO
1824# ----------------------------
1825# Try to compile conftest.$ac_ext, and return whether this succeeded.
1826ac_fn_cxx_try_compile ()
1827{
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1831case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1838 ac_status=$?
1839 if test -s conftest.err; then
1840 grep -v '^ *+' conftest.err >conftest.er1
1841 cat conftest.er1 >&5
1842 mv -f conftest.er1 conftest.err
1843 fi
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.$ac_objext; then :
1849 ac_retval=0
1850else
1851 $as_echo "$as_me: failed program was:" >&5
1852sed 's/^/| /' conftest.$ac_ext >&5
1853
1854 ac_retval=1
1855fi
22e05272
JM
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
5213506e
RW
1858
1859} # ac_fn_cxx_try_compile
1860
0b21f5d3
EB
1861# ac_fn_cxx_try_link LINENO
1862# -------------------------
1863# Try to link conftest.$ac_ext, and return whether this succeeded.
1864ac_fn_cxx_try_link ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
22e05272 1888 test -x conftest$ac_exeext
0b21f5d3
EB
1889 }; then :
1890 ac_retval=0
1891else
1892 $as_echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=1
1896fi
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
0b21f5d3
EB
1904
1905} # ac_fn_cxx_try_link
1906
5213506e
RW
1907# ac_fn_c_try_link LINENO
1908# -----------------------
1909# Try to link conftest.$ac_ext, and return whether this succeeded.
1910ac_fn_c_try_link ()
1911{
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1915case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918esac
1919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920$as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1922 ac_status=$?
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1927 fi
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest$ac_exeext && {
1933 test "$cross_compiling" = yes ||
22e05272 1934 test -x conftest$ac_exeext
5213506e
RW
1935 }; then :
1936 ac_retval=0
1937else
1938 $as_echo "$as_me: failed program was:" >&5
1939sed 's/^/| /' conftest.$ac_ext >&5
1940
1941 ac_retval=1
1942fi
1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945 # interfere with the next link command; also delete a directory that is
1946 # left behind by Apple's compiler. We do this before executing the actions.
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
5213506e
RW
1950
1951} # ac_fn_c_try_link
1952cat >config.log <<_ACEOF
1c710c3c
DJ
1953This file contains any messages produced by compilers while
1954running configure, to aid debugging if configure makes a mistake.
1955
1956It was created by $as_me, which was
22e05272 1957generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1958
1959 $ $0 $@
1960
1961_ACEOF
5213506e 1962exec 5>>config.log
1c710c3c
DJ
1963{
1964cat <<_ASUNAME
1965## --------- ##
1966## Platform. ##
1967## --------- ##
1968
1969hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974
1975/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1977
1978/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1981/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1982/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1985
1986_ASUNAME
1987
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
5213506e
RW
1993 $as_echo "PATH: $as_dir"
1994 done
1995IFS=$as_save_IFS
1c710c3c
DJ
1996
1997} >&5
1998
1999cat >&5 <<_ACEOF
2000
2001
2002## ----------- ##
2003## Core tests. ##
2004## ----------- ##
2005
2006_ACEOF
2007
2008
2009# Keep a trace of the command line.
2010# Strip out --no-create and --no-recursion so they do not pile up.
2011# Strip out --silent because we don't want to record it for future runs.
2012# Also quote any args containing shell meta-characters.
2013# Make two passes to allow for proper duplicate-argument suppression.
2014ac_configure_args=
2015ac_configure_args0=
2016ac_configure_args1=
1c710c3c
DJ
2017ac_must_keep_next=false
2018for ac_pass in 1 2
2019do
2020 for ac_arg
2021 do
2022 case $ac_arg in
2023 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2025 | -silent | --silent | --silen | --sile | --sil)
2026 continue ;;
5213506e
RW
2027 *\'*)
2028 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2029 esac
2030 case $ac_pass in
5213506e 2031 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2032 2)
5213506e 2033 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2034 if test $ac_must_keep_next = true; then
2035 ac_must_keep_next=false # Got value, back to normal.
2036 else
2037 case $ac_arg in
2038 *=* | --config-cache | -C | -disable-* | --disable-* \
2039 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2040 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2041 | -with-* | --with-* | -without-* | --without-* | --x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2044 esac
2045 ;;
2046 -* ) ac_must_keep_next=true ;;
2047 esac
2048 fi
5213506e 2049 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2050 ;;
2051 esac
2052 done
2053done
5213506e
RW
2054{ ac_configure_args0=; unset ac_configure_args0;}
2055{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2056
2057# When interrupted or exit'd, cleanup temporary files, and complete
2058# config.log. We remove comments because anyway the quotes in there
2059# would cause problems or look ugly.
5213506e
RW
2060# WARNING: Use '\'' to represent an apostrophe within the trap.
2061# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2062trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2064 {
2065 echo
2066
22e05272 2067 $as_echo "## ---------------- ##
1c710c3c 2068## Cache variables. ##
22e05272 2069## ---------------- ##"
1c710c3c
DJ
2070 echo
2071 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2072(
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2075 case $ac_val in #(
2076 *${as_nl}*)
2077 case $ac_var in #(
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2080 esac
2081 case $ac_var in #(
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2085 esac ;;
2086 esac
2087 done
1c710c3c 2088 (set) 2>&1 |
5213506e
RW
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
1c710c3c 2091 sed -n \
5213506e
RW
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2094 ;; #(
1c710c3c 2095 *)
5213506e 2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2097 ;;
5213506e
RW
2098 esac |
2099 sort
2100)
1c710c3c
DJ
2101 echo
2102
22e05272 2103 $as_echo "## ----------------- ##
1c710c3c 2104## Output variables. ##
22e05272 2105## ----------------- ##"
1c710c3c
DJ
2106 echo
2107 for ac_var in $ac_subst_vars
2108 do
5213506e
RW
2109 eval ac_val=\$$ac_var
2110 case $ac_val in
2111 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 esac
2113 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2114 done | sort
2115 echo
2116
2117 if test -n "$ac_subst_files"; then
22e05272 2118 $as_echo "## ------------------- ##
5213506e 2119## File substitutions. ##
22e05272 2120## ------------------- ##"
1c710c3c
DJ
2121 echo
2122 for ac_var in $ac_subst_files
2123 do
5213506e
RW
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2129 done | sort
2130 echo
2131 fi
2132
2133 if test -s confdefs.h; then
22e05272 2134 $as_echo "## ----------- ##
1c710c3c 2135## confdefs.h. ##
22e05272 2136## ----------- ##"
1c710c3c 2137 echo
5213506e 2138 cat confdefs.h
1c710c3c
DJ
2139 echo
2140 fi
2141 test "$ac_signal" != 0 &&
5213506e
RW
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
1c710c3c 2144 } >&5
5213506e
RW
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2147 exit $exit_status
5213506e 2148' 0
1c710c3c 2149for ac_signal in 1 2 13 15; do
5213506e 2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2151done
2152ac_signal=0
2153
2154# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2155rm -f -r conftest* confdefs.h
2156
2157$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2158
2159# Predefined preprocessor variables.
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_NAME "$PACKAGE_NAME"
2163_ACEOF
2164
1c710c3c
DJ
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2167_ACEOF
2168
1c710c3c
DJ
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_VERSION "$PACKAGE_VERSION"
2171_ACEOF
0b0dc272 2172
1c710c3c
DJ
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_STRING "$PACKAGE_STRING"
2175_ACEOF
2176
1c710c3c
DJ
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2179_ACEOF
2180
5213506e
RW
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_URL "$PACKAGE_URL"
2183_ACEOF
2184
1c710c3c
DJ
2185
2186# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2187# Prefer an explicitly selected file to automatically selected ones.
2188ac_site_file1=NONE
2189ac_site_file2=NONE
2190if test -n "$CONFIG_SITE"; then
22e05272
JM
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1=./$CONFIG_SITE;;
2194 */*) ac_site_file1=$CONFIG_SITE;;
2195 *) ac_site_file1=./$CONFIG_SITE;;
2196 esac
5213506e
RW
2197elif test "x$prefix" != xNONE; then
2198 ac_site_file1=$prefix/share/config.site
2199 ac_site_file2=$prefix/etc/config.site
2200else
2201 ac_site_file1=$ac_default_prefix/share/config.site
2202 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2203fi
5213506e
RW
2204for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205do
2206 test "x$ac_site_file" = xNONE && continue
22e05272 2207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2210 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2211 . "$ac_site_file" \
2212 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214as_fn_error $? "failed to load site script $ac_site_file
2215See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2216 fi
2217done
2218
2219if test -r "$cache_file"; then
22e05272
JM
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2225 case $cache_file in
5213506e
RW
2226 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2227 *) . "./$cache_file";;
1c710c3c
DJ
2228 esac
2229 fi
671aa708 2230else
5213506e
RW
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2233 >$cache_file
2234fi
2235
2236# Check that the precious variables saved in the cache have kept the same
2237# value.
2238ac_cache_corrupted=false
5213506e 2239for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2241 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2242 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2243 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2244 case $ac_old_set,$ac_new_set in
2245 set,)
5213506e
RW
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2248 ac_cache_corrupted=: ;;
2249 ,set)
5213506e
RW
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2252 ac_cache_corrupted=: ;;
2253 ,);;
2254 *)
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w=`echo x $ac_old_val`
2258 ac_new_val_w=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted=:
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\$ac_old_val
2267 fi
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2272 fi;;
2273 esac
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2276 case $ac_new_val in
5213506e 2277 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2278 *) ac_arg=$ac_var=$ac_new_val ;;
2279 esac
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2282 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2283 esac
2284 fi
2285done
2286if $ac_cache_corrupted; then
5213506e
RW
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2291 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2292fi
5213506e
RW
2293## -------------------- ##
2294## Main body of script. ##
2295## -------------------- ##
671aa708 2296
2aeb72e9
DD
2297ac_ext=c
2298ac_cpp='$CPP $CPPFLAGS'
2299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301ac_compiler_gnu=$ac_cv_c_compiler_gnu
2302
1c710c3c
DJ
2303
2304
2305
1c710c3c
DJ
2306
2307
0115d4a3 2308
1c710c3c 2309
ad33ff57
RW
2310progname=$0
2311# if PWD already has a value, it is probably wrong.
2312if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2313
2314# Export original configure arguments for use by sub-configures.
2315# Quote arguments with shell meta charatcers.
2316TOPLEVEL_CONFIGURE_ARGUMENTS=
2317set -- "$progname" "$@"
2318for ac_arg
2319do
2320 case "$ac_arg" in
2321 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2322 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2323 # if the argument is of the form -foo=baz, quote the baz part only
2324 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2325 *) ;;
2326 esac
2327 # Add the quoted argument to the list.
2328 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2329done
2330if test "$silent" = yes; then
2331 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2332fi
2333# Remove the initial space we just introduced and, as these will be
2334# expanded by make, quote '$'.
2335TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2336
1c710c3c
DJ
2337
2338# Find the build, host, and target systems.
671aa708 2339ac_aux_dir=
5213506e 2340for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2341 if test -f "$ac_dir/install-sh"; then
2342 ac_aux_dir=$ac_dir
2343 ac_install_sh="$ac_aux_dir/install-sh -c"
2344 break
2345 elif test -f "$ac_dir/install.sh"; then
2346 ac_aux_dir=$ac_dir
2347 ac_install_sh="$ac_aux_dir/install.sh -c"
2348 break
2349 elif test -f "$ac_dir/shtool"; then
2350 ac_aux_dir=$ac_dir
2351 ac_install_sh="$ac_aux_dir/shtool install -c"
2352 break
2353 fi
671aa708
NN
2354done
2355if test -z "$ac_aux_dir"; then
22e05272 2356 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2357fi
5213506e
RW
2358
2359# These three variables are undocumented and unsupported,
2360# and are intended to be withdrawn in a future Autoconf release.
2361# They can cause serious problems if a builder's source tree is in a directory
2362# whose full name contains unusual characters.
2363ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2364ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2365ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2366
671aa708 2367
1c710c3c 2368# Make sure we can run config.sub.
5213506e 2369$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2370 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2371
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2373$as_echo_n "checking build system type... " >&6; }
22e05272 2374if ${ac_cv_build+:} false; then :
5213506e
RW
2375 $as_echo_n "(cached) " >&6
2376else
2377 ac_build_alias=$build_alias
2378test "x$ac_build_alias" = x &&
2379 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2380test "x$ac_build_alias" = x &&
22e05272 2381 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2382ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2383 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2384
2385fi
2386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2387$as_echo "$ac_cv_build" >&6; }
2388case $ac_cv_build in
2389*-*-*) ;;
22e05272 2390*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2391esac
1c710c3c 2392build=$ac_cv_build
5213506e
RW
2393ac_save_IFS=$IFS; IFS='-'
2394set x $ac_cv_build
2395shift
2396build_cpu=$1
2397build_vendor=$2
2398shift; shift
2399# Remember, the first character of IFS is used to create $*,
2400# except with old shells:
2401build_os=$*
2402IFS=$ac_save_IFS
2403case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2404
671aa708 2405
1c710c3c
DJ
2406 case ${build_alias} in
2407 "") build_noncanonical=${build} ;;
2408 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2409esac
2410
2411
af71363e 2412
1c710c3c
DJ
2413 case ${host_alias} in
2414 "") host_noncanonical=${build_noncanonical} ;;
2415 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2416esac
2417
af71363e 2418
1c710c3c
DJ
2419
2420 case ${target_alias} in
2421 "") target_noncanonical=${host_noncanonical} ;;
2422 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2423esac
2424
af71363e 2425
1c710c3c
DJ
2426
2427
2428test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2429 test "$program_prefix$program_suffix$program_transform_name" = \
2430 NONENONEs,x,x, &&
1c710c3c 2431 program_transform_name=s,y,y,
af71363e 2432
5213506e
RW
2433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2434$as_echo_n "checking host system type... " >&6; }
22e05272 2435if ${ac_cv_host+:} false; then :
5213506e 2436 $as_echo_n "(cached) " >&6
af71363e 2437else
5213506e
RW
2438 if test "x$host_alias" = x; then
2439 ac_cv_host=$ac_cv_build
2440else
2441 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2442 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2443fi
1c710c3c 2444
af71363e 2445fi
5213506e
RW
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2447$as_echo "$ac_cv_host" >&6; }
2448case $ac_cv_host in
2449*-*-*) ;;
22e05272 2450*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2451esac
1c710c3c 2452host=$ac_cv_host
5213506e
RW
2453ac_save_IFS=$IFS; IFS='-'
2454set x $ac_cv_host
2455shift
2456host_cpu=$1
2457host_vendor=$2
2458shift; shift
2459# Remember, the first character of IFS is used to create $*,
2460# except with old shells:
2461host_os=$*
2462IFS=$ac_save_IFS
2463case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2464
2465
5213506e
RW
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2467$as_echo_n "checking target system type... " >&6; }
22e05272 2468if ${ac_cv_target+:} false; then :
5213506e 2469 $as_echo_n "(cached) " >&6
1c710c3c 2470else
5213506e
RW
2471 if test "x$target_alias" = x; then
2472 ac_cv_target=$ac_cv_host
2473else
2474 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2476fi
1c710c3c
DJ
2477
2478fi
5213506e
RW
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2480$as_echo "$ac_cv_target" >&6; }
2481case $ac_cv_target in
2482*-*-*) ;;
22e05272 2483*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2484esac
1c710c3c 2485target=$ac_cv_target
5213506e
RW
2486ac_save_IFS=$IFS; IFS='-'
2487set x $ac_cv_target
2488shift
2489target_cpu=$1
2490target_vendor=$2
2491shift; shift
2492# Remember, the first character of IFS is used to create $*,
2493# except with old shells:
2494target_os=$*
2495IFS=$ac_save_IFS
2496case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2497
2498
2499# The aliases save the names the user supplied, while $host etc.
2500# will get canonicalized.
2501test -n "$target_alias" &&
2502 test "$program_prefix$program_suffix$program_transform_name" = \
2503 NONENONEs,x,x, &&
2504 program_prefix=${target_alias}-
5213506e 2505
671aa708 2506test "$program_prefix" != NONE &&
5213506e 2507 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2508# Use a double $ so make ignores it.
2509test "$program_suffix" != NONE &&
5213506e
RW
2510 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2511# Double any \ or $.
1c710c3c 2512# By default was `s,x,x', remove it if useless.
5213506e
RW
2513ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2514program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2515
671aa708
NN
2516
2517
775956d0
NN
2518# Get 'install' or 'install-sh' and its variants.
2519# Find a good install program. We prefer a C program (faster),
2520# so one script is as good as another. But avoid the broken or
2521# incompatible versions:
2522# SysV /etc/install, /usr/sbin/install
2523# SunOS /usr/etc/install
2524# IRIX /sbin/install
2525# AIX /bin/install
1c710c3c 2526# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2527# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2530# OS/2's system install, which has a completely different semantic
775956d0 2531# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2532# Reject install programs that cannot install multiple files.
5213506e
RW
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2535if test -z "$INSTALL"; then
22e05272 2536if ${ac_cv_path_install+:} false; then :
5213506e 2537 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2538else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
5213506e
RW
2544 # Account for people who put trailing slashes in PATH elements.
2545case $as_dir/ in #((
2546 ./ | .// | /[cC]/* | \
1c710c3c 2547 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2548 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2549 /usr/ucb/* ) ;;
2550 *)
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2553 # by default.
2554 for ac_prog in ginstall scoinst install; do
2555 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2556 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2557 if test $ac_prog = install &&
1c710c3c 2558 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2559 # AIX install. It has an incompatible calling convention.
2560 :
1c710c3c
DJ
2561 elif test $ac_prog = install &&
2562 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2564 :
775956d0 2565 else
38d24731
RW
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one > conftest.one
2568 echo two > conftest.two
2569 mkdir conftest.dir
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2571 test -s conftest.one && test -s conftest.two &&
2572 test -s conftest.dir/conftest.one &&
2573 test -s conftest.dir/conftest.two
2574 then
2575 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2576 break 3
2577 fi
775956d0
NN
2578 fi
2579 fi
2580 done
1c710c3c
DJ
2581 done
2582 ;;
2583esac
5213506e
RW
2584
2585 done
2586IFS=$as_save_IFS
1c710c3c 2587
38d24731 2588rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2589
2590fi
2591 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2592 INSTALL=$ac_cv_path_install
775956d0 2593 else
38d24731
RW
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
775956d0 2596 # break other packages using the cache if that directory is
38d24731 2597 # removed, or if the value is a relative name.
1c710c3c 2598 INSTALL=$ac_install_sh
775956d0
NN
2599 fi
2600fi
5213506e
RW
2601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602$as_echo "$INSTALL" >&6; }
775956d0
NN
2603
2604# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605# It thinks the first close brace ends the variable substitution.
2606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607
1c710c3c 2608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2609
2610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611
5213506e
RW
2612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2613$as_echo_n "checking whether ln works... " >&6; }
22e05272 2614if ${acx_cv_prog_LN+:} false; then :
5213506e 2615 $as_echo_n "(cached) " >&6
ad6717df
PB
2616else
2617 rm -f conftestdata_t
2618echo >conftestdata_f
2619if ln conftestdata_f conftestdata_t 2>/dev/null
2620then
2621 acx_cv_prog_LN=ln
2622else
2623 acx_cv_prog_LN=no
2624fi
2625rm -f conftestdata_f conftestdata_t
2626
2627fi
2628if test $acx_cv_prog_LN = no; then
2629 LN="cp"
5213506e
RW
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2631$as_echo "no, using $LN" >&6; }
ad6717df
PB
2632else
2633 LN="$acx_cv_prog_LN"
5213506e
RW
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635$as_echo "yes" >&6; }
ad6717df
PB
2636fi
2637
5213506e
RW
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2639$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2640LN_S=$as_ln_s
2641if test "$LN_S" = "ln -s"; then
5213506e
RW
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643$as_echo "yes" >&6; }
fb0103e5 2644else
5213506e
RW
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2646$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2647fi
2648
87264276
PB
2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2650$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2651if ${ac_cv_path_SED+:} false; then :
87264276
PB
2652 $as_echo_n "(cached) " >&6
2653else
2654 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2655 for ac_i in 1 2 3 4 5 6 7; do
2656 ac_script="$ac_script$as_nl$ac_script"
2657 done
2658 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2659 { ac_script=; unset ac_script;}
2660 if test -z "$SED"; then
2661 ac_path_SED_found=false
2662 # Loop through the user's path and test for each of PROGNAME-LIST
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_prog in sed gsed; do
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2671 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2672# Check for GNU ac_path_SED and select it if it is found.
2673 # Check for GNU $ac_path_SED
2674case `"$ac_path_SED" --version 2>&1` in
2675*GNU*)
2676 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2677*)
2678 ac_count=0
2679 $as_echo_n 0123456789 >"conftest.in"
2680 while :
2681 do
2682 cat "conftest.in" "conftest.in" >"conftest.tmp"
2683 mv "conftest.tmp" "conftest.in"
2684 cp "conftest.in" "conftest.nl"
2685 $as_echo '' >> "conftest.nl"
2686 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2687 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2688 as_fn_arith $ac_count + 1 && ac_count=$as_val
2689 if test $ac_count -gt ${ac_path_SED_max-0}; then
2690 # Best one so far, save it but keep looking for a better one
2691 ac_cv_path_SED="$ac_path_SED"
2692 ac_path_SED_max=$ac_count
2693 fi
2694 # 10*(2^10) chars as input seems more than enough
2695 test $ac_count -gt 10 && break
2696 done
2697 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2698esac
2699
2700 $ac_path_SED_found && break 3
2701 done
2702 done
2703 done
2704IFS=$as_save_IFS
2705 if test -z "$ac_cv_path_SED"; then
22e05272 2706 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2707 fi
2708else
2709 ac_cv_path_SED=$SED
2710fi
2711
2712fi
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2714$as_echo "$ac_cv_path_SED" >&6; }
2715 SED="$ac_cv_path_SED"
2716 rm -f conftest.sed
2717
2718for ac_prog in gawk mawk nawk awk
2719do
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721set dummy $ac_prog; ac_word=$2
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2724if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2725 $as_echo_n "(cached) " >&6
2726else
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2729else
2730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731for as_dir in $PATH
2732do
2733 IFS=$as_save_IFS
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2737 ac_cv_prog_AWK="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 break 2
2740 fi
2741done
2742 done
2743IFS=$as_save_IFS
2744
2745fi
2746fi
2747AWK=$ac_cv_prog_AWK
2748if test -n "$AWK"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750$as_echo "$AWK" >&6; }
2751else
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753$as_echo "no" >&6; }
2754fi
2755
2756
2757 test -n "$AWK" && break
2758done
2759
775956d0 2760
ee6a22df
L
2761srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2762
2763# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2764# a relative path.
2765if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2766 INSTALL="${srcpwd}/install-sh -c"
2767fi
2768
671aa708
NN
2769# Set srcdir to "." if that's what it is.
2770# This is important for multilib support.
2771pwd=`${PWDCMD-pwd}`
671aa708
NN
2772if test "${pwd}" = "${srcpwd}" ; then
2773 srcdir=.
79c06341
JL
2774fi
2775
671aa708 2776topsrcdir=$srcpwd
5d4a5ee6 2777
671aa708 2778extra_host_args=
afabd8e6 2779
671aa708
NN
2780### To add a new directory to the tree, first choose whether it is a target
2781### or a host dependent tool. Then put it into the appropriate list
2782### (library or tools, host or target), doing a dependency sort.
79c06341 2783
1c710c3c 2784# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2785# configdirs, or target_configdirs; see the serialization section below.
79c06341 2786
1c710c3c
DJ
2787# Dependency sorting is only needed when *configuration* must be done in
2788# a particular order. In all cases a dependency should be specified in
671aa708 2789# the Makefile, whether or not it's implicitly specified here.
79c06341 2790
671aa708
NN
2791# Double entries in build_configdirs, configdirs, or target_configdirs may
2792# cause circular dependencies and break everything horribly.
79c06341 2793
23f6b2f9
PB
2794# these library is used by various programs built for the build
2795# environment
2796#
929315a9 2797build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2798
2799# these tools are built for the build environment
85bfb75e 2800build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2801
671aa708 2802# these libraries are used by various programs built for the host environment
eae1a5d4 2803#f
36230329 2804host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2805
671aa708
NN
2806# these tools are built for the host environment
2807# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2808# know that we are building the simulator.
2809# binutils, gas and ld appear in that order because it makes sense to run
2810# "make check" in that particular order.
38e3d868 2811# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2812host_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 c++tools"
671aa708 2813
671aa708
NN
2814# these libraries are built for the target environment, and are built after
2815# the host libraries and the host tools (which may be a cross compiler)
8499116a 2816# Note that libiberty is not a target library.
291f172e 2817target_libraries="target-libgcc \
eff02e4f 2818 target-libbacktrace \
671aa708
NN
2819 target-libgloss \
2820 target-newlib \
6d3b5aea 2821 target-libgomp \
5f520819 2822 target-liboffloadmic \
48310492 2823 target-libatomic \
0a35513e 2824 target-libitm \
cb543528 2825 target-libstdc++-v3 \
f35db108 2826 target-libsanitizer \
2077db1b 2827 target-libvtv \
77008252 2828 target-libssp \
1ec601bf 2829 target-libquadmath \
6de9cd9a 2830 target-libgfortran \
012447ea 2831 target-libffi \
d9cdb878 2832 target-libobjc \
632e2a07 2833 target-libada \
b4c522fa 2834 target-libgo \
bb50312e
IB
2835 target-libphobos \
2836 target-zlib"
671aa708 2837
4dbda6f0
NN
2838# these tools are built using the target libraries, and are intended to
2839# run only in the target environment
671aa708 2840#
4dbda6f0 2841# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2842# list belongs in this list.
671aa708 2843#
85bfb75e 2844target_tools="target-rda"
79c06341 2845
671aa708 2846################################################################################
79c06341 2847
671aa708
NN
2848## All tools belong in one of the four categories, and are assigned above
2849## We assign ${configdirs} this way to remove all embedded newlines. This
2850## is important because configure will choke if they ever get through.
2851## ${configdirs} is directories we build using the host tools.
2852## ${target_configdirs} is directories we build using the target tools.
671aa708 2853configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2854target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2855build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2856
ac9e6043
RW
2857
2858
671aa708 2859################################################################################
79c06341 2860
671aa708 2861srcname="gnu development package"
79c06341 2862
671aa708
NN
2863# This gets set non-empty for some net releases of packages.
2864appdirs=""
79c06341 2865
671aa708
NN
2866# Define is_cross_compiler to save on calls to 'test'.
2867is_cross_compiler=
2868if test x"${host}" = x"${target}" ; then
2869 is_cross_compiler=no
79c06341 2870else
671aa708 2871 is_cross_compiler=yes
1c710c3c 2872fi
79c06341 2873
b4acb5ef 2874# Find the build and target subdir names.
8b87bb96 2875
2e9e6f68
DJ
2876# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2877# have matching libraries, they should use host libraries: Makefile.tpl
2878# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2879# However, they still use the build modules, because the corresponding
2880# host modules (e.g. bison) are only built for the host when bootstrap
2881# finishes. So:
2882# - build_subdir is where we find build modules, and never changes.
2883# - build_libsubdir is where we find build libraries, and can be overridden.
2884
2885# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2886build_subdir="build-${build_noncanonical}"
1c710c3c 2887
5213506e
RW
2888# Check whether --with-build-libsubdir was given.
2889if test "${with_build_libsubdir+set}" = set; then :
2890 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2891else
2892 build_libsubdir="$build_subdir"
5213506e
RW
2893fi
2894
215c351a
PB
2895# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2896if ( test $srcdir = . && test -d gcc ) \
2897 || test -d $srcdir/../host-${host_noncanonical}; then
2898 host_subdir="host-${host_noncanonical}"
2899else
2900 host_subdir=.
2901fi
8b87bb96
NN
2902# No prefix.
2903target_subdir=${target_noncanonical}
1c710c3c 2904
0db770bd
RW
2905# Be sure to cover against remnants of an in-tree build.
2906if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2907 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2908Use a pristine source tree when building in a separate tree" "$LINENO" 5
2909fi
79c06341 2910
671aa708
NN
2911# Skipdirs are removed silently.
2912skipdirs=
2913# Noconfigdirs are removed loudly.
2914noconfigdirs=""
79c06341 2915
671aa708
NN
2916use_gnu_ld=
2917# Make sure we don't let GNU ld be added if we didn't want it.
2918if test x$with_gnu_ld = xno ; then
2919 use_gnu_ld=no
5afab7ad 2920 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2921fi
2922
671aa708
NN
2923use_gnu_as=
2924# Make sure we don't let GNU as be added if we didn't want it.
2925if test x$with_gnu_as = xno ; then
2926 use_gnu_as=no
2927 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2928fi
2929
d7f09764 2930use_included_zlib=
a05c2c75
L
2931
2932# Check whether --with-system-zlib was given.
2933if test "${with_system_zlib+set}" = set; then :
2934 withval=$with_system_zlib;
2935fi
2936
d7f09764
DN
2937# Make sure we don't let ZLIB be added if we didn't want it.
2938if test x$with_system_zlib = xyes ; then
2939 use_included_zlib=no
2940 noconfigdirs="$noconfigdirs zlib"
2941fi
2942
1c710c3c 2943# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2944# it's not even worth trying to configure, much less build, that tool.
79c06341 2945
671aa708
NN
2946case ${with_x} in
2947 yes | "") ;; # the default value for this tree is that X11 is available
2948 no)
b4f96efe 2949 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2950 # We won't be able to build gdbtk without X.
1c710c3c 2951 enable_gdbtk=no
671aa708
NN
2952 ;;
2953 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2954esac
79c06341 2955
1bcce263 2956# Some are only suitable for cross toolchains.
671aa708
NN
2957# Remove these if host=target.
2958cross_only="target-libgloss target-newlib target-opcodes"
2959
2960case $is_cross_compiler in
2961 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2962esac
79c06341 2963
671aa708
NN
2964# If both --with-headers and --with-libs are specified, default to
2965# --without-newlib.
ee6a22df
L
2966if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2967 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2968 if test x"${with_newlib}" = x ; then
2969 with_newlib=no
2970 fi
79c06341
JL
2971fi
2972
671aa708
NN
2973# Recognize --with-newlib/--without-newlib.
2974case ${with_newlib} in
2975 no) skipdirs="${skipdirs} target-newlib" ;;
2976 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2977esac
79c06341 2978
85c64bbe
BS
2979# Check whether --enable-as-accelerator-for was given.
2980if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2981 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2982fi
2983
2984
2985# Check whether --enable-offload-targets was given.
2986if test "${enable_offload_targets+set}" = set; then :
2987 enableval=$enable_offload_targets;
2988 if test x"$enable_offload_targets" = x; then
22e05272 2989 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2990 fi
2991
2992else
2993 enable_offload_targets=
2994fi
2995
2996
fe5bfa67
TB
2997# Check whether --enable-offload-defaulted was given.
2998if test "${enable_offload_defaulted+set}" = set; then :
2999 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3000else
3001 enable_offload_defaulted=
3002fi
3003
3004
21539e2e
MK
3005# Handle --enable-gold, --enable-ld.
3006# --disable-gold [--enable-ld]
3007# Build only ld. Default option.
9580395f
L
3008# --enable-gold [--enable-ld]
3009# Build both gold and ld. Install gold as "ld.gold", install ld
3010# as "ld.bfd" and "ld".
3011# --enable-gold=default [--enable-ld]
21539e2e
MK
3012# Build both gold and ld. Install gold as "ld.gold" and "ld",
3013# install ld as "ld.bfd".
3014# --enable-gold[=default] --disable-ld
3015# Build only gold, which is then installed as both "ld.gold" and "ld".
3016# --enable-gold --enable-ld=default
9580395f
L
3017# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3018# and ld.bfd).
21539e2e
MK
3019# In other words, ld is default
3020# --enable-gold=default --enable-ld=default
3021# Error.
3022
3023default_ld=
5213506e
RW
3024# Check whether --enable-gold was given.
3025if test "${enable_gold+set}" = set; then :
3026 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3027else
3028 ENABLE_GOLD=no
5213506e
RW
3029fi
3030
21539e2e
MK
3031case "${ENABLE_GOLD}" in
3032 yes|default)
38e3d868
RM
3033 # Check for ELF target.
3034 is_elf=no
3035 case "${target}" in
3036 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3037 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3038 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3039 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3040 case "${target}" in
3041 *-*-linux*aout* | *-*-linux*oldld*)
3042 ;;
3043 *)
3044 is_elf=yes
3045 ;;
3046 esac
3047 esac
3048
3049 if test "$is_elf" = "yes"; then
3050 # Check for target supported by gold.
5afab7ad 3051 case "${target}" in
7705dfd1 3052 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3053 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3054 configdirs="$configdirs gold"
3055 if test x${ENABLE_GOLD} = xdefault; then
3056 default_ld=gold
3057 fi
38e3d868 3058 ENABLE_GOLD=yes
5afab7ad
ILT
3059 ;;
3060 esac
38e3d868
RM
3061 fi
3062 ;;
3063 no)
3064 ;;
3065 *)
22e05272 3066 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3067 ;;
21539e2e
MK
3068esac
3069
3070# Check whether --enable-ld was given.
3071if test "${enable_ld+set}" = set; then :
3072 enableval=$enable_ld; ENABLE_LD=$enableval
3073else
3074 ENABLE_LD=yes
3075fi
3076
3077
3078case "${ENABLE_LD}" in
3079 default)
9580395f 3080 if test x${default_ld} != x; then
22e05272 3081 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3082 fi
3083 ;;
3084 yes)
3085 ;;
3086 no)
3087 if test x${ENABLE_GOLD} != xyes; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3089$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3090 fi
3091 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3092 ;;
3093 *)
22e05272 3094 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3095 ;;
3096esac
5afab7ad 3097
78edb32f
L
3098# PR gas/19109
3099# Decide the default method for compressing debug sections.
3100# Provide a configure time option to override our default.
3101# Check whether --enable-compressed_debug_sections was given.
3102if test "${enable_compressed_debug_sections+set}" = set; then :
3103 enableval=$enable_compressed_debug_sections;
3104 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3105 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3106 fi
3107
3108else
3109 enable_compressed_debug_sections=
3110fi
3111
3112
671aa708 3113# Configure extra directories which are host specific
79c06341 3114
671aa708
NN
3115case "${host}" in
3116 *-cygwin*)
3117 configdirs="$configdirs libtermcap" ;;
3118esac
79c06341 3119
4fab7234
HPN
3120# A target can indicate whether a language isn't supported for some reason.
3121# Only spaces may be used in this macro; not newlines or tabs.
3122unsupported_languages=
3123
1c710c3c 3124# Remove more programs from consideration, based on the host or
671aa708
NN
3125# target this usually means that a port of the program doesn't
3126# exist yet.
ec8d6ddc 3127
671aa708 3128case "${host}" in
111eeb6e 3129 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3130 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3131 ;;
671aa708 3132esac
ec8d6ddc 3133
6de9cd9a 3134
87e6d9dc
TB
3135# Check whether --enable-libquadmath was given.
3136if test "${enable_libquadmath+set}" = set; then :
3137 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3138else
3139 ENABLE_LIBQUADMATH=yes
3140fi
3141
3142if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3143 noconfigdirs="$noconfigdirs target-libquadmath"
3144fi
3145
3146
3147# Check whether --enable-libquadmath-support was given.
3148if test "${enable_libquadmath_support+set}" = set; then :
3149 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3150else
3151 ENABLE_LIBQUADMATH_SUPPORT=yes
3152fi
3153
3154enable_libquadmath_support=
3155if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3156 enable_libquadmath_support=no
3157fi
3158
3159
5213506e
RW
3160# Check whether --enable-libada was given.
3161if test "${enable_libada+set}" = set; then :
3162 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3163else
3164 ENABLE_LIBADA=yes
5213506e
RW
3165fi
3166
d9cdb878 3167if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3168 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3169fi
3170
5213506e
RW
3171# Check whether --enable-libssp was given.
3172if test "${enable_libssp+set}" = set; then :
3173 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3174else
3175 ENABLE_LIBSSP=yes
5213506e
RW
3176fi
3177
ef0087a7 3178
1873ec0c
L
3179# Check whether --enable-libstdcxx was given.
3180if test "${enable_libstdcxx+set}" = set; then :
3181 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3182else
3183 ENABLE_LIBSTDCXX=default
3184fi
3185
3186if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3187 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3188fi
3189
5f520819
KY
3190# If this is accelerator compiler and its target is intelmic we enable
3191# target liboffloadmic by default. If this is compiler with offloading
3192# for intelmic we enable host liboffloadmic by default. Otherwise
3193# liboffloadmic is disabled by default.
3194# Check whether --enable-liboffloadmic was given.
3195if test "${enable_liboffloadmic+set}" = set; then :
3196 enableval=$enable_liboffloadmic; case "$enableval" in
3197 no | host | target)
3198 enable_liboffloadmic=$enableval ;;
3199 *)
22e05272 3200 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3201esac
3202else
4b4f2e35 3203 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3204 case "${target}" in
3205 *-intelmic-* | *-intelmicemul-*)
3206 enable_liboffloadmic=target
3207 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3208 ;;
3209 *)
3210 enable_liboffloadmic=no
3211 ;;
3212 esac
3213else
3214 case "${enable_offload_targets}" in
3215 *-intelmic-* | *-intelmicemul-*)
3216 enable_liboffloadmic=host
3217 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3218 ;;
3219 *)
3220 enable_liboffloadmic=no
3221 ;;
3222 esac
3223fi
3224fi
3225
3226
3227
44a7d18d 3228# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3229if test x$enable_libgomp = x ; then
953ff289 3230 case "${target}" in
416ac4d4 3231 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3232 ;;
8c6d158a 3233 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3234 ;;
b24513a1 3235 *-*-solaris2* | *-*-hpux11*)
953ff289 3236 ;;
cac90078 3237 *-*-darwin* | *-*-aix*)
953ff289 3238 ;;
29b1533a 3239 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3240 ;;
953ff289
DN
3241 *)
3242 noconfigdirs="$noconfigdirs target-libgomp"
3243 ;;
3244 esac
27079765 3245fi
953ff289 3246
48310492
RH
3247# Disable libatomic on unsupported systems.
3248if test -d ${srcdir}/libatomic; then
3249 if test x$enable_libatomic = x; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3251$as_echo_n "checking for libatomic support... " >&6; }
3252 if (srcdir=${srcdir}/libatomic; \
3253 . ${srcdir}/configure.tgt; \
3254 test -n "$UNSUPPORTED")
3255 then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257$as_echo "no" >&6; }
3258 noconfigdirs="$noconfigdirs target-libatomic"
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261$as_echo "yes" >&6; }
3262 fi
3263 fi
3264fi
3265
5f520819
KY
3266# Disable liboffloadmic on unsupported systems.
3267if test -d ${srcdir}/liboffloadmic; then
3268 if test x$enable_liboffloadmic != xno; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3270$as_echo_n "checking for liboffloadmic support... " >&6; }
3271 if (srcdir=${srcdir}/liboffloadmic; \
3272 . ${srcdir}/configure.tgt; \
3273 test -n "$UNSUPPORTED")
3274 then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276$as_echo "no" >&6; }
3277 noconfigdirs="$noconfigdirs target-liboffloadmic"
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280$as_echo "yes" >&6; }
3281 fi
3282 fi
3283fi
3284
e948157d
RH
3285# Disable libitm on unsupported systems.
3286if test -d ${srcdir}/libitm; then
3287 if test x$enable_libitm = x; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3289$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3290 if (srcdir=${srcdir}/libitm; \
3291 . ${srcdir}/configure.tgt; \
3292 test -n "$UNSUPPORTED")
3293 then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3295$as_echo "no" >&6; }
e948157d
RH
3296 noconfigdirs="$noconfigdirs target-libitm"
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3299$as_echo "yes" >&6; }
e948157d
RH
3300 fi
3301 fi
0a35513e
AH
3302fi
3303
93bf5390
RH
3304# Disable libsanitizer on unsupported systems.
3305if test -d ${srcdir}/libsanitizer; then
3306 if test x$enable_libsanitizer = x; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3308$as_echo_n "checking for libsanitizer support... " >&6; }
3309 if (srcdir=${srcdir}/libsanitizer; \
3310 . ${srcdir}/configure.tgt; \
3311 test -n "$UNSUPPORTED")
3312 then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315 noconfigdirs="$noconfigdirs target-libsanitizer"
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318$as_echo "yes" >&6; }
3319 fi
3320 fi
3321fi
3322
2077db1b
CT
3323# Disable libvtv on unsupported systems.
3324if test -d ${srcdir}/libvtv; then
3325 if test x$enable_libvtv = x; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3327$as_echo_n "checking for libvtv support... " >&6; }
3328 if (srcdir=${srcdir}/libvtv; \
3329 . ${srcdir}/configure.tgt; \
1e74b850 3330 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3331 then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334 noconfigdirs="$noconfigdirs target-libvtv"
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337$as_echo "yes" >&6; }
3338 fi
3339 fi
3340fi
3341
d91491e5
SE
3342# Disable libquadmath for some systems.
3343case "${target}" in
e7fae550
DE
3344 avr-*-*)
3345 noconfigdirs="$noconfigdirs target-libquadmath"
3346 ;;
d91491e5
SE
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-*-aix* | rs6000-*-aix*)
3350 noconfigdirs="$noconfigdirs target-libquadmath"
3351 ;;
3352esac
3353
1e9e0e23
JM
3354# Disable libssp for some systems.
3355case "${target}" in
3356 avr-*-*)
b318fb4b 3357 # No hosted I/O support.
1e9e0e23
JM
3358 noconfigdirs="$noconfigdirs target-libssp"
3359 ;;
91dfef96
JM
3360 bpf-*-*)
3361 noconfigdirs="$noconfigdirs target-libssp"
3362 ;;
1e9e0e23
JM
3363 powerpc-*-aix* | rs6000-*-aix*)
3364 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3365 ;;
8d2af3a2
DD
3366 pru-*-*)
3367 # No hosted I/O support.
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
85b8555e 3370 rl78-*-*)
7cb62ef1
EB
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
85b8555e 3374 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3375 ;;
0969ec7d
EB
3376 visium-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
1e9e0e23
JM
3380esac
3381
1e9e0e23 3382# Disable libstdc++-v3 for some systems.
1873ec0c
L
3383# Allow user to override this if they pass --enable-libstdc++-v3
3384if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3385 case "${target}" in
3386 *-*-vxworks*)
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3389 ;;
afa3d80e
TS
3390 amdgcn*-*-*)
3391 # Not ported/fails to build when using newlib.
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
1873ec0c
L
3394 arm*-wince-pe*)
3395 # the C++ libraries don't build on top of CE's C libraries
3396 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 ;;
3398 avr-*-*)
3399 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3400 ;;
91dfef96
JM
3401 bpf-*-*)
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
fef939d6
JB
3404 ft32-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ;;
1873ec0c
L
3407 esac
3408fi
1e9e0e23 3409
91dfef96
JM
3410# Disable C++ on systems where it is known to not work.
3411# For testing, you can override this with --enable-languages=c++.
3412case ,${enable_languages}, in
3413 *,c++,*)
3414 ;;
3415 *)
3416 case "${target}" in
3417 bpf-*-*)
3418 unsupported_languages="$unsupported_languages c++"
3419 ;;
3420 esac
3421 ;;
3422esac
3423
3424# Disable Objc on systems where it is known to not work.
3425# For testing, you can override this with --enable-languages=objc.
3426case ,${enable_languages}, in
3427 *,objc,*)
3428 ;;
3429 *)
3430 case "${target}" in
3431 bpf-*-*)
3432 unsupported_languages="$unsupported_languages objc"
3433 ;;
3434 esac
3435 ;;
3436esac
3437
260eedb9
IB
3438# Disable D on systems where it is known to not work.
3439# For testing, you can override this with --enable-languages=d.
3440case ,${enable_languages}, in
3441 *,d,*)
3442 ;;
3443 *)
3444 case "${target}" in
91dfef96 3445 bpf-*-*)
260eedb9
IB
3446 unsupported_languages="$unsupported_languages d"
3447 ;;
3448 esac
3449 ;;
3450esac
3451
3452# Disable libphobos on unsupported systems.
3453# For testing, you can override this with --enable-libphobos.
3454if test -d ${srcdir}/libphobos; then
3455 if test x$enable_libphobos = x; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3457$as_echo_n "checking for libphobos support... " >&6; }
3458 if (srcdir=${srcdir}/libphobos; \
3459 . ${srcdir}/configure.tgt; \
7d31d331 3460 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3461 then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463$as_echo "no" >&6; }
3464 noconfigdirs="$noconfigdirs target-libphobos"
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467$as_echo "yes" >&6; }
3468 fi
3469 fi
3470fi
3471
1e9e0e23
JM
3472# Disable Fortran for some systems.
3473case "${target}" in
3474 mmix-*-*)
3475 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3476 unsupported_languages="$unsupported_languages fortran"
3477 ;;
91dfef96
JM
3478 bpf-*-*)
3479 unsupported_languages="$unsupported_languages fortran"
3480 ;;
1e9e0e23
JM
3481esac
3482
012447ea
JJ
3483# Disable libffi for some systems.
3484case "${target}" in
3485 powerpc-*-darwin*)
3486 ;;
3487 i[3456789]86-*-darwin*)
3488 ;;
3489 x86_64-*-darwin[912]*)
3490 ;;
3491 *-*-darwin*)
3492 noconfigdirs="$noconfigdirs target-libffi"
3493 ;;
3494 *-*-netware*)
3495 noconfigdirs="$noconfigdirs target-libffi"
3496 ;;
3497 *-*-phoenix*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 *-*-rtems*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 *-*-tpf*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 *-*-uclinux*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 *-*-vxworks*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3511 ;;
b20e7532
AT
3512 aarch64*-*-freebsd*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
012447ea
JJ
3515 alpha*-*-*vms*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
3518 arm*-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
3521 arm-wince-pe)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 arm*-*-symbianelf*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
91dfef96
JM
3527 bpf-*-*)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
012447ea
JJ
3530 cris-*-* | crisv32-*-*)
3531 case "${target}" in
3532 *-*-linux*)
3533 ;;
3534 *) # See PR46792 regarding target-libffi.
3535 noconfigdirs="$noconfigdirs target-libffi";;
3536 esac
3537 ;;
3538 hppa*64*-*-hpux*)
3539 noconfigdirs="$noconfigdirs target-libffi"
3540 ;;
3541 hppa*-hp-hpux11*)
3542 ;;
3543 hppa*-*-hpux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
3546 ia64*-*-*vms*)
3547 noconfigdirs="$noconfigdirs target-libffi"
3548 ;;
3549 i[3456789]86-w64-mingw*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 i[3456789]86-*-mingw*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 x86_64-*-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
3558 mmix-*-*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 powerpc-*-aix*)
012447ea
JJ
3562 ;;
3563 rs6000-*-aix*)
012447ea
JJ
3564 ;;
3565 ft32-*-*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 *-*-lynxos*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571esac
3572
3573# Disable the go frontend on systems where it is known to not work. Please keep
3574# this in sync with contrib/config-list.mk.
3575case "${target}" in
91dfef96 3576*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3577 unsupported_languages="$unsupported_languages go"
3578 ;;
3579esac
3580
f9d09df0
TT
3581# Only allow gdbserver on some systems.
3582if test -d ${srcdir}/gdbserver; then
3583 if test x$enable_gdbserver = x; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3585$as_echo_n "checking for gdbserver support... " >&6; }
3586 if (srcdir=${srcdir}/gdbserver; \
3587 . ${srcdir}/configure.srv; \
3588 test -n "$UNSUPPORTED")
3589 then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591$as_echo "no" >&6; }
3592 noconfigdirs="$noconfigdirs gdbserver"
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595$as_echo "yes" >&6; }
3596 fi
3597 fi
3598fi
3599
cdbc9e92
ILT
3600# Disable libgo for some systems where it is known to not work.
3601# For testing, you can easily override this with --enable-libgo.
3602if test x$enable_libgo = x; then
3603 case "${target}" in
3604 *-*-darwin*)
3605 # PR 46986
3606 noconfigdirs="$noconfigdirs target-libgo"
3607 ;;
3608 *-*-cygwin* | *-*-mingw*)
3609 noconfigdirs="$noconfigdirs target-libgo"
3610 ;;
91dfef96
JM
3611 bpf-*-*)
3612 noconfigdirs="$noconfigdirs target-libgo"
3613 ;;
cdbc9e92
ILT
3614 esac
3615fi
3616
c03353e2
RIL
3617# Default libgloss CPU subdirectory.
3618libgloss_dir="$target_cpu"
6de9cd9a 3619
fbcf0dca
JM
3620case "${target}" in
3621 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3622 libgloss_dir=wince
3623 ;;
4dddfc74
YZ
3624 aarch64*-*-* )
3625 libgloss_dir=aarch64
3626 ;;
fbcf0dca
JM
3627 arm*-*-*)
3628 libgloss_dir=arm
3629 ;;
3630 cris-*-* | crisv32-*-*)
3631 libgloss_dir=cris
3632 ;;
3633 hppa*-*-*)
3634 libgloss_dir=pa
3635 ;;
3636 i[3456789]86-*-*)
3637 libgloss_dir=i386
3638 ;;
3639 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3640 libgloss_dir=m68hc11
3641 ;;
3642 m68*-*-* | fido-*-*)
3643 libgloss_dir=m68k
3644 ;;
3645 mips*-*-*)
3646 libgloss_dir=mips
3647 ;;
3648 powerpc*-*-*)
3649 libgloss_dir=rs6000
3650 ;;
8d2af3a2
DD
3651 pru-*-*)
3652 libgloss_dir=pru
3653 ;;
fbcf0dca
JM
3654 sparc*-*-*)
3655 libgloss_dir=sparc
3656 ;;
3657esac
3658
6a789d5e 3659# Disable newlib and libgloss for various target OSes.
671aa708 3660case "${target}" in
6a789d5e
JM
3661 alpha*-dec-osf*)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 i[3456789]86-*-linux*)
3665 # This section makes it possible to build newlib natively on linux.
3666 # If we are using a cross compiler then don't configure newlib.
3667 if test x${is_cross_compiler} != xno ; then
3668 noconfigdirs="$noconfigdirs target-newlib"
3669 fi
3670 noconfigdirs="$noconfigdirs target-libgloss"
3671 # If we are not using a cross compiler, do configure newlib.
3672 # Note however, that newlib will only be configured in this situation
3673 # if the --with-newlib option has been given, because otherwise
3674 # 'target-newlib' will appear in skipdirs.
3675 ;;
3676 i[3456789]86-*-rdos*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 sparc-*-sunos4*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
91dfef96
JM
3685 bpf-*-*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
6a789d5e
JM
3688 *-*-aix*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 *-*-beos*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
671aa708 3694 *-*-chorusos)
0036370f 3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3696 ;;
6a789d5e
JM
3697 *-*-dragonfly*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 *-*-freebsd*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
3703 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3705 ;;
3706 *-*-lynxos*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 *-*-mingw*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 *-*-netbsd*)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-netware*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-tpf*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-uclinux*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-vxworks*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727esac
3728
3729case "${target}" in
3730 *-*-chorusos)
3731 ;;
3be96231
TG
3732 aarch64-*-darwin*)
3733 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3734 noconfigdirs="$noconfigdirs sim target-rda"
3735 ;;
7431c1a1
AS
3736 amdgcn*-*-*)
3737 ;;
3be96231
TG
3738 arm-*-darwin*)
3739 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3740 noconfigdirs="$noconfigdirs sim target-rda"
3741 ;;
75eeae1a 3742 powerpc-*-darwin*)
e1514c3f 3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3744 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3745 ;;
354ebf88
RW
3746 i[3456789]86-*-darwin*)
3747 noconfigdirs="$noconfigdirs ld gprof"
3748 noconfigdirs="$noconfigdirs sim target-rda"
3749 ;;
3750 x86_64-*-darwin[912]*)
0db3a858
TG
3751 noconfigdirs="$noconfigdirs ld gas gprof"
3752 noconfigdirs="$noconfigdirs sim target-rda"
3753 ;;
42c1cd8a
AT
3754 *-*-darwin*)
3755 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3757 ;;
8c6d158a 3758 *-*-dragonfly*)
8c6d158a 3759 ;;
c3f84f61 3760 *-*-freebsd*)
6de9cd9a 3761 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
c0d0a722 3762 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3763 && test -f /usr/local/include/gmp.h; then
3764 with_gmp=/usr/local
3765 fi
6de9cd9a 3766 ;;
ef4e7569
US
3767 *-*-kaos*)
3768 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
671aa708 3771 *-*-netbsd*)
671aa708 3772 ;;
61fec9ff 3773 *-*-netware*)
671aa708 3774 ;;
fd6487af
JS
3775 *-*-phoenix*)
3776 noconfigdirs="$noconfigdirs target-libgloss"
3777 ;;
671aa708 3778 *-*-rtems*)
2909494b 3779 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3780 ;;
a8ba31f2
EC
3781 # The tpf target doesn't support gdb yet.
3782 *-*-tpf*)
6a789d5e 3783 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3784 ;;
5785c0ed 3785 *-*-uclinux*)
6a789d5e 3786 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3787 ;;
671aa708 3788 *-*-vxworks*)
671aa708
NN
3789 ;;
3790 alpha*-dec-osf*)
3791 # ld works, but does not support shared libraries.
671aa708 3792 # gas doesn't generate exception information.
6a789d5e 3793 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3794 ;;
3795 alpha*-*-*vms*)
2909494b 3796 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3797 ;;
671aa708
NN
3798 alpha*-*-*)
3799 # newlib is not 64 bit ready
2909494b 3800 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3801 ;;
91dfef96
JM
3802 bpf-*-*)
3803 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3804 ;;
671aa708 3805 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3806 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3807 ;;
2fd88f4f
AK
3808 arc*-*-*)
3809 noconfigdirs="$noconfigdirs sim"
3810 ;;
671aa708 3811 arm-*-pe*)
2909494b 3812 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3813 ;;
671aa708 3814 arm-*-riscix*)
0036370f 3815 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3816 ;;
b588ae30
GJL
3817 avr-*-*)
3818 if test x${with_avrlibc} != xno; then
3819 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3820 fi
3821 ;;
671aa708 3822 c4x-*-* | tic4x-*-*)
0036370f 3823 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3824 ;;
0036370f
JM
3825 tic54x-*-*)
3826 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3827 ;;
671aa708 3828 d10v-*-*)
0036370f 3829 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3830 ;;
3831 d30v-*-*)
0036370f 3832 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3833 ;;
3834 fr30-*-elf*)
2909494b 3835 noconfigdirs="$noconfigdirs gdb"
671aa708 3836 ;;
a05c2c75
L
3837 ft32-*-*)
3838 noconfigdirs="$noconfigdirs target-rda gprof"
3839 ;;
55f2d967 3840 moxie-*-*)
a05c2c75 3841 noconfigdirs="$noconfigdirs"
55f2d967 3842 ;;
671aa708 3843 h8300*-*-*)
2909494b 3844 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3845 ;;
3846 h8500-*-*)
0036370f 3847 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3848 ;;
ee6a22df 3849 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3850 ;;
a05c2c75
L
3851 hppa*64*-*-hpux*)
3852 noconfigdirs="$noconfigdirs gdb"
3853 ;;
3854 hppa*-*-hpux11*)
3855 noconfigdirs="$noconfigdirs gdb ld"
3856 ;;
4569f85e 3857 hppa*64*-*-linux*)
671aa708 3858 ;;
56f8587a 3859 hppa*-*-linux*)
3e732ba0 3860 ;;
671aa708 3861 hppa*-*-*elf* | \
671aa708
NN
3862 hppa*-*-lites* | \
3863 hppa*-*-openbsd* | \
3864 hppa*64*-*-*)
671aa708 3865 ;;
c03353e2 3866 hppa*-*-pro*)
c03353e2 3867 ;;
671aa708 3868 hppa*-*-*)
2909494b 3869 noconfigdirs="$noconfigdirs ld"
671aa708 3870 ;;
fb87ad5d 3871 i960-*-*)
0036370f 3872 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3873 ;;
671aa708
NN
3874 ia64*-*-elf*)
3875 # No gdb support yet.
1bcce263 3876 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3877 ;;
3878 ia64*-**-hpux*)
5a2931d1 3879 # No ld support yet.
a05c2c75 3880 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3881 ;;
52535a64 3882 ia64*-*-*vms*)
091fe9ca
TG
3883 # No ld support yet.
3884 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3885 ;;
ef4c4300 3886 i[3456789]86-w64-mingw*)
ef4c4300
KT
3887 ;;
3888 i[3456789]86-*-mingw*)
b91f0a41 3889 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3890 ;;
671aa708
NN
3891 *-*-cygwin*)
3892 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3893 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3894 # always build newlib if winsup directory is present.
b91f0a41 3895 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3896 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3897 elif test -d "$srcdir/newlib"; then
b91f0a41 3898 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3899 fi
1c710c3c 3900 ;;
f2a0e225 3901 i[3456789]86-*-pe)
ebb9f8b0 3902 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3903 ;;
f2a0e225 3904 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3905 # The linker does not yet know about weak symbols in COFF,
3906 # and is not configured to handle mixed ELF and COFF.
0036370f 3907 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3908 ;;
f2a0e225 3909 i[3456789]86-*-sco*)
0036370f 3910 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3911 ;;
fbdd5d87 3912 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3913 noconfigdirs="$noconfigdirs target-libgloss"
3914 ;;
f2a0e225 3915 i[3456789]86-*-sysv4*)
0036370f 3916 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3917 ;;
f2a0e225 3918 i[3456789]86-*-beos*)
6a789d5e 3919 noconfigdirs="$noconfigdirs gdb"
3aa83176 3920 ;;
d1f8db0c 3921 i[3456789]86-*-rdos*)
6a789d5e 3922 noconfigdirs="$noconfigdirs gdb"
c03353e2 3923 ;;
671aa708 3924 mmix-*-*)
2909494b 3925 noconfigdirs="$noconfigdirs gdb"
671aa708 3926 ;;
ab34901f 3927 mt-*-*)
79dd769c
AH
3928 noconfigdirs="$noconfigdirs sim"
3929 ;;
58b40a67
FT
3930 nfp-*-*)
3931 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3932 noconfigdirs="$noconfigdirs $target_libraries"
3933 ;;
e6cbe965
SC
3934 pdp11-*-*)
3935 noconfigdirs="$noconfigdirs gdb gprof"
3936 ;;
671aa708
NN
3937 powerpc-*-aix*)
3938 # copied from rs6000-*-* entry
6a789d5e 3939 noconfigdirs="$noconfigdirs gprof"
671aa708 3940 ;;
4569f85e 3941 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3942 target_configdirs="$target_configdirs target-winsup"
0036370f 3943 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3944 # always build newlib.
3945 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3946 ;;
3947 # This is temporary until we can link against shared libraries
3948 powerpcle-*-solaris*)
0036370f 3949 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3950 ;;
3951 powerpc-*-beos*)
6a789d5e 3952 noconfigdirs="$noconfigdirs gdb"
671aa708 3953 ;;
671aa708 3954 rs6000-*-lynxos*)
6a789d5e 3955 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3956 ;;
3957 rs6000-*-aix*)
6a789d5e 3958 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3959 ;;
3960 rs6000-*-*)
2909494b 3961 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3962 ;;
3963 m68k-apollo-*)
0036370f 3964 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3965 ;;
ca9fe997 3966 microblaze*)
2909494b 3967 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3968 ;;
d896cc4d 3969 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3970 if test x$with_newlib = xyes; then
3971 noconfigdirs="$noconfigdirs gprof"
3972 fi
d9dced13 3973 ;;
671aa708 3974 mips*-*-irix5*)
0036370f 3975 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3976 ;;
3977 mips*-*-irix6*)
2909494b 3978 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3979 ;;
671aa708 3980 mips*-*-bsd*)
bc98bcc4 3981 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3982 ;;
671aa708 3983 mips*-*-linux*)
671aa708 3984 ;;
bc98bcc4
JBG
3985 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3986 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3987 noconfigdirs="$noconfigdirs ld gas gprof"
3988 ;;
671aa708 3989 mips*-*-*)
2909494b 3990 noconfigdirs="$noconfigdirs gprof"
671aa708 3991 ;;
738f2522 3992 nvptx*-*-*)
738f2522
BS
3993 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3994 ;;
bc6d9014 3995 sh-*-*)
ea2002ba
CB
3996 case "${target}" in
3997 sh*-*-elf)
2909494b 3998 ;;
ea2002ba 3999 *)
2909494b 4000 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4001 esac
671aa708 4002 ;;
671aa708 4003 sparc-*-sunos4*)
6a789d5e 4004 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4005 use_gnu_ld=no
4006 fi
4007 ;;
b42f0d7e 4008 tic6x-*-*)
0d557ff8 4009 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4010 ;;
341c653c 4011 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4012 noconfigdirs="$noconfigdirs sim"
4013 ;;
671aa708 4014 v810-*-*)
0036370f 4015 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4016 ;;
4017 vax-*-*)
2909494b 4018 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4019 ;;
1fc1d82e
MR
4020 wasm32-*-*)
4021 noconfigdirs="$noconfigdirs ld"
4022 ;;
671aa708 4023esac
79c06341 4024
671aa708
NN
4025# If we aren't building newlib, then don't build libgloss, since libgloss
4026# depends upon some newlib header files.
4027case "${noconfigdirs}" in
4028 *target-libgloss*) ;;
4029 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4030esac
4031
671aa708 4032# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4033host_makefile_frag=/dev/null
4034if test -d ${srcdir}/config ; then
4035case "${host}" in
f2a0e225 4036 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4037 host_makefile_frag="config/mh-djgpp"
4038 ;;
4039 *-cygwin*)
2a79c47f 4040
5213506e
RW
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4042$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4043echo a >cygwin-cat-check
e25a8c82 4044if test `cat cygwin-cat-check` = a ; then
2a79c47f 4045 rm cygwin-cat-check
5213506e
RW
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047$as_echo "yes" >&6; }
2a79c47f
NC
4048else
4049 rm cygwin-cat-check
5213506e
RW
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051$as_echo "no" >&6; }
22e05272 4052 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4053 Please either mount the build directory in binary mode or run the following
4054 commands before running any configure script:
4055set -o igncr
4056export SHELLOPTS
5213506e 4057 " "$LINENO" 5
2a79c47f
NC
4058fi
4059
671aa708
NN
4060 host_makefile_frag="config/mh-cygwin"
4061 ;;
c53a18d3 4062 *-mingw*)
1f5a6b84 4063 host_makefile_frag="config/mh-mingw"
95af8923 4064 ;;
cabb9d59 4065 alpha*-linux*)
13be44ed
UB
4066 host_makefile_frag="config/mh-alpha-linux"
4067 ;;
efd41714 4068 hppa*-hp-hpux10*)
efd41714 4069 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4070 ;;
111eeb6e 4071 hppa*-hp-hpux*)
efd41714
PB
4072 host_makefile_frag="config/mh-pa"
4073 ;;
4074 hppa*-*)
4075 host_makefile_frag="config/mh-pa"
4076 ;;
54258e22 4077 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4078 host_makefile_frag="config/mh-darwin"
be8fff81 4079 ;;
d19bca38
PB
4080 powerpc-*-aix*)
4081 host_makefile_frag="config/mh-ppc-aix"
4082 ;;
4083 rs6000-*-aix*)
4084 host_makefile_frag="config/mh-ppc-aix"
4085 ;;
671aa708
NN
4086esac
4087fi
4088
55ffb5ed 4089if test "${build}" != "${host}" ; then
0999159b
PB
4090 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4091 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4092 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4093 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4094 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4095 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4096 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4097 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4098 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4099 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4100 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4101 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4102 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4103 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4104else
4105 AR_FOR_BUILD="\$(AR)"
4106 AS_FOR_BUILD="\$(AS)"
fb0103e5 4107 CC_FOR_BUILD="\$(CC)"
0999159b 4108 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4109 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4110 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4111 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4112 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4113 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4114 LD_FOR_BUILD="\$(LD)"
4115 NM_FOR_BUILD="\$(NM)"
4116 RANLIB_FOR_BUILD="\$(RANLIB)"
4117 WINDRES_FOR_BUILD="\$(WINDRES)"
4118 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4119fi
4120
4121ac_ext=c
1c710c3c
DJ
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4131if ${ac_cv_prog_CC+:} false; then :
5213506e 4132 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4133else
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
5213506e 4142 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4146 break 2
4147 fi
4148done
5213506e
RW
4149 done
4150IFS=$as_save_IFS
1c710c3c
DJ
4151
4152fi
4153fi
4154CC=$ac_cv_prog_CC
4155if test -n "$CC"; then
5213506e
RW
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157$as_echo "$CC" >&6; }
1c710c3c 4158else
5213506e
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
1c710c3c
DJ
4161fi
4162
5213506e 4163
1c710c3c
DJ
4164fi
4165if test -z "$ac_cv_prog_CC"; then
4166 ac_ct_CC=$CC
fb0103e5
RG
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168set dummy gcc; ac_word=$2
5213506e
RW
4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4171if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4172 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4173else
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
5213506e 4182 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4184 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4186 break 2
4187 fi
4188done
5213506e
RW
4189 done
4190IFS=$as_save_IFS
1c710c3c
DJ
4191
4192fi
4193fi
4194ac_ct_CC=$ac_cv_prog_ac_ct_CC
4195if test -n "$ac_ct_CC"; then
5213506e
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4198else
5213506e
RW
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200$as_echo "no" >&6; }
1c710c3c
DJ
4201fi
4202
5213506e
RW
4203 if test "x$ac_ct_CC" = x; then
4204 CC=""
4205 else
4206 case $cross_compiling:$ac_tool_warned in
4207yes:)
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210ac_tool_warned=yes ;;
4211esac
4212 CC=$ac_ct_CC
4213 fi
1c710c3c
DJ
4214else
4215 CC="$ac_cv_prog_CC"
4216fi
4217
4218if test -z "$CC"; then
5213506e
RW
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4221set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4224if ${ac_cv_prog_CC+:} false; then :
5213506e 4225 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4226else
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC="$CC" # Let the user override the test.
4229else
1c710c3c
DJ
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
5213506e 4235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4237 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4239 break 2
4240 fi
4241done
5213506e
RW
4242 done
4243IFS=$as_save_IFS
1c710c3c 4244
0b0dc272 4245fi
0b0dc272 4246fi
1c710c3c 4247CC=$ac_cv_prog_CC
af71363e 4248if test -n "$CC"; then
5213506e
RW
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250$as_echo "$CC" >&6; }
2aeb72e9 4251else
5213506e
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253$as_echo "no" >&6; }
2aeb72e9
DD
4254fi
4255
2aeb72e9 4256
5213506e 4257 fi
1c710c3c 4258fi
55ffb5ed
NN
4259if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261set dummy cc; ac_word=$2
5213506e
RW
4262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4264if ${ac_cv_prog_CC+:} false; then :
5213506e 4265 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4266else
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4269else
0b0dc272 4270 ac_prog_rejected=no
1c710c3c
DJ
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
5213506e 4276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected=yes
4280 continue
4281 fi
4282 ac_cv_prog_CC="cc"
5213506e 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4284 break 2
4285 fi
4286done
5213506e
RW
4287 done
4288IFS=$as_save_IFS
1c710c3c 4289
55ffb5ed
NN
4290if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy $ac_cv_prog_CC
4293 shift
1c710c3c 4294 if test $# != 0; then
55ffb5ed
NN
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4298 shift
1c710c3c 4299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4300 fi
4301fi
4302fi
4303fi
1c710c3c 4304CC=$ac_cv_prog_CC
55ffb5ed 4305if test -n "$CC"; then
5213506e
RW
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307$as_echo "$CC" >&6; }
55ffb5ed 4308else
5213506e
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
55ffb5ed
NN
4311fi
4312
5213506e 4313
1c710c3c
DJ
4314fi
4315if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
5213506e 4317 for ac_prog in cl.exe
1c710c3c
DJ
4318 do
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4323if ${ac_cv_prog_CC+:} false; then :
5213506e 4324 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4325else
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC="$CC" # Let the user override the test.
4328else
1c710c3c
DJ
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
5213506e 4334 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4338 break 2
4339 fi
4340done
5213506e
RW
4341 done
4342IFS=$as_save_IFS
1c710c3c 4343
55ffb5ed
NN
4344fi
4345fi
1c710c3c 4346CC=$ac_cv_prog_CC
55ffb5ed 4347if test -n "$CC"; then
5213506e
RW
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349$as_echo "$CC" >&6; }
a4b9e93e 4350else
5213506e
RW
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
fb0103e5 4353fi
af71363e 4354
5213506e 4355
1c710c3c
DJ
4356 test -n "$CC" && break
4357 done
af71363e 4358fi
1c710c3c
DJ
4359if test -z "$CC"; then
4360 ac_ct_CC=$CC
5213506e 4361 for ac_prog in cl.exe
1c710c3c
DJ
4362do
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364set dummy $ac_prog; ac_word=$2
5213506e
RW
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4367if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4368 $as_echo_n "(cached) " >&6
0b0dc272 4369else
1c710c3c
DJ
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4372else
1c710c3c
DJ
4373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374for as_dir in $PATH
4375do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
5213506e 4378 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4380 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4382 break 2
4383 fi
4384done
5213506e
RW
4385 done
4386IFS=$as_save_IFS
1c710c3c 4387
af71363e
AS
4388fi
4389fi
1c710c3c
DJ
4390ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391if test -n "$ac_ct_CC"; then
5213506e
RW
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4394else
5213506e
RW
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396$as_echo "no" >&6; }
af71363e 4397fi
0b0dc272 4398
5213506e 4399
1c710c3c
DJ
4400 test -n "$ac_ct_CC" && break
4401done
4402
5213506e
RW
4403 if test "x$ac_ct_CC" = x; then
4404 CC=""
4405 else
4406 case $cross_compiling:$ac_tool_warned in
4407yes:)
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410ac_tool_warned=yes ;;
4411esac
4412 CC=$ac_ct_CC
4413 fi
1c710c3c
DJ
4414fi
4415
4416fi
4417
4418
5213506e
RW
4419test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4421as_fn_error $? "no acceptable C compiler found in \$PATH
4422See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4423
4424# Provide some information about the compiler.
5213506e
RW
4425$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4426set X $ac_compile
4427ac_compiler=$2
4428for ac_option in --version -v -V -qversion; do
4429 { { ac_try="$ac_compiler $ac_option >&5"
4430case "(($ac_try" in
4431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4433esac
4434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435$as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4437 ac_status=$?
5213506e
RW
4438 if test -s conftest.err; then
4439 sed '10a\
4440... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
5213506e 4443 fi
22e05272 4444 rm -f conftest.er1 conftest.err
5213506e
RW
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4447done
1c710c3c 4448
5213506e 4449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4450/* end confdefs.h. */
4451
4452int
4453main ()
4454{
4455
4456 ;
4457 return 0;
4458}
4459_ACEOF
4460ac_clean_files_save=$ac_clean_files
22e05272 4461ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4462# Try to create an executable without -o first, disregard a.out.
4463# It will help us diagnose broken compilers, and finding out an intuition
4464# of exeext.
22e05272
JM
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4467ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4468
4469# The possible output files:
4470ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4471
4472ac_rmfiles=
4473for ac_file in $ac_files
4474do
4475 case $ac_file in
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4478 esac
4479done
4480rm -f $ac_rmfiles
4481
4482if { { ac_try="$ac_link_default"
4483case "(($ac_try" in
4484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485 *) ac_try_echo=$ac_try;;
4486esac
4487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488$as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_link_default") 2>&5
1c710c3c 4490 ac_status=$?
5213506e
RW
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
4493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495# in a Makefile. We should not override ac_cv_exeext if it was cached,
4496# so that the user can short-circuit this test for compilers unknown to
4497# Autoconf.
4498for ac_file in $ac_files ''
1c710c3c
DJ
4499do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
5213506e 4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4503 ;;
4504 [ab].out )
4505 # We found the default executable, but exeext='' is most
4506 # certainly right.
4507 break;;
4508 *.* )
5213506e
RW
4509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4510 then :; else
4511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4512 fi
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4517 # actually working.
1c710c3c
DJ
4518 break;;
4519 * )
4520 break;;
4521 esac
4522done
5213506e
RW
4523test "$ac_cv_exeext" = no && ac_cv_exeext=
4524
1c710c3c 4525else
5213506e
RW
4526 ac_file=''
4527fi
5213506e 4528if test -z "$ac_file"; then :
22e05272
JM
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
5213506e
RW
4534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4536as_fn_error 77 "C compiler cannot create executables
4537See \`config.log' for more details" "$LINENO" 5; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540$as_echo "yes" >&6; }
1c710c3c 4541fi
22e05272
JM
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543$as_echo_n "checking for C compiler default output file name... " >&6; }
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545$as_echo "$ac_file" >&6; }
1c710c3c 4546ac_exeext=$ac_cv_exeext
1c710c3c 4547
22e05272 4548rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4549ac_clean_files=$ac_clean_files_save
5213506e
RW
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551$as_echo_n "checking for suffix of executables... " >&6; }
4552if { { ac_try="$ac_link"
4553case "(($ac_try" in
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558$as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
1c710c3c 4560 ac_status=$?
5213506e
RW
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
1c710c3c
DJ
4563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4564# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4565# work properly (i.e., refer to `conftest.exe'), while it won't with
4566# `rm'.
4567for ac_file in conftest.exe conftest conftest.*; do
4568 test -f "$ac_file" || continue
4569 case $ac_file in
5213506e 4570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4572 break;;
4573 * ) break;;
4574 esac
4575done
af71363e 4576else
5213506e
RW
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4579as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4580See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4581fi
22e05272 4582rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4585
4586rm -f conftest.$ac_ext
4587EXEEXT=$ac_cv_exeext
4588ac_exeext=$EXEEXT
22e05272
JM
4589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
4591#include <stdio.h>
4592int
4593main ()
4594{
4595FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
4602ac_clean_files="$ac_clean_files conftest.out"
4603# Check that the compiler produces executables we can run. If not, either
4604# the compiler is broken, or we cross compile.
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606$as_echo_n "checking whether we are cross compiling... " >&6; }
4607if test "$cross_compiling" != yes; then
4608 { { ac_try="$ac_link"
4609case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612esac
4613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614$as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4616 ac_status=$?
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($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_try") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4630 cross_compiling=no
4631 else
4632 if test "$cross_compiling" = maybe; then
4633 cross_compiling=yes
4634 else
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637as_fn_error $? "cannot run C compiled programs.
4638If you meant to cross compile, use \`--host'.
4639See \`config.log' for more details" "$LINENO" 5; }
4640 fi
4641 fi
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644$as_echo "$cross_compiling" >&6; }
4645
4646rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4647ac_clean_files=$ac_clean_files_save
5213506e
RW
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4650if ${ac_cv_objext+:} false; then :
5213506e 4651 $as_echo_n "(cached) " >&6
1c710c3c 4652else
5213506e 4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4654/* end confdefs.h. */
4655
4656int
4657main ()
4658{
4659
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.o conftest.obj
5213506e
RW
4665if { { ac_try="$ac_compile"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671$as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compile") 2>&5
1c710c3c 4673 ac_status=$?
5213506e
RW
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
4676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
1c710c3c 4678 case $ac_file in
5213506e 4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4681 break;;
4682 esac
4683done
4684else
5213506e 4685 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4686sed 's/^/| /' conftest.$ac_ext >&5
4687
5213506e
RW
4688{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4690as_fn_error $? "cannot compute suffix of object files: cannot compile
4691See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4692fi
1c710c3c
DJ
4693rm -f conftest.$ac_cv_objext conftest.$ac_ext
4694fi
5213506e
RW
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4697OBJEXT=$ac_cv_objext
4698ac_objext=$OBJEXT
5213506e
RW
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4701if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4702 $as_echo_n "(cached) " >&6
1c710c3c 4703else
5213506e 4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4705/* end confdefs.h. */
4706
4707int
4708main ()
4709{
4710#ifndef __GNUC__
4711 choke me
4712#endif
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
5213506e 4718if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4719 ac_compiler_gnu=yes
4720else
5213506e 4721 ac_compiler_gnu=no
1c710c3c 4722fi
5213506e 4723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4724ac_cv_c_compiler_gnu=$ac_compiler_gnu
4725
4726fi
5213506e
RW
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729if test $ac_compiler_gnu = yes; then
4730 GCC=yes
4731else
4732 GCC=
4733fi
1c710c3c
DJ
4734ac_test_CFLAGS=${CFLAGS+set}
4735ac_save_CFLAGS=$CFLAGS
5213506e
RW
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4738if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4739 $as_echo_n "(cached) " >&6
4740else
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4743 ac_cv_prog_cc_g=no
4744 CFLAGS="-g"
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4746/* end confdefs.h. */
4747
4748int
4749main ()
4750{
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
5213506e 4756if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4757 ac_cv_prog_cc_g=yes
4758else
5213506e
RW
4759 CFLAGS=""
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762
4763int
4764main ()
4765{
4766
4767 ;
4768 return 0;
4769}
4770_ACEOF
4771if ac_fn_c_try_compile "$LINENO"; then :
4772
4773else
4774 ac_c_werror_flag=$ac_save_c_werror_flag
4775 CFLAGS="-g"
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
af71363e 4778
5213506e
RW
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
4786_ACEOF
4787if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_prog_cc_g=yes
4789fi
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4791fi
5213506e 4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4793fi
5213506e
RW
4794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4799if test "$ac_test_CFLAGS" = set; then
1c710c3c 4800 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4801elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4803 CFLAGS="-g -O2"
4804 else
4805 CFLAGS="-g"
4806 fi
4807else
4808 if test "$GCC" = yes; then
4809 CFLAGS="-O2"
4810 else
4811 CFLAGS=
4812 fi
4813fi
5213506e
RW
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4816if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4817 $as_echo_n "(cached) " >&6
1c710c3c 4818else
5213506e 4819 ac_cv_prog_cc_c89=no
1c710c3c 4820ac_save_CC=$CC
5213506e 4821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4822/* end confdefs.h. */
4823#include <stdarg.h>
4824#include <stdio.h>
22e05272 4825struct stat;
1c710c3c
DJ
4826/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827struct buf { int x; };
4828FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829static char *e (p, i)
4830 char **p;
4831 int i;
4832{
4833 return p[i];
4834}
4835static char *f (char * (*g) (char **, int), char **p, ...)
4836{
4837 char *s;
4838 va_list v;
4839 va_start (v,p);
4840 s = g (p, va_arg (v,int));
4841 va_end (v);
4842 return s;
4843}
4844
4845/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
5213506e 4848 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4851 that's true only with -std. */
1c710c3c
DJ
4852int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4853
5213506e
RW
4854/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4856#define FOO(x) 'x'
4857int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4858
1c710c3c
DJ
4859int test (int i, double x);
4860struct s1 {int (*f) (int a);};
4861struct s2 {int (*f) (double a);};
4862int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4863int argc;
4864char **argv;
4865int
4866main ()
4867{
4868return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4869 ;
4870 return 0;
4871}
4872_ACEOF
5213506e
RW
4873for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4875do
4876 CC="$ac_save_CC $ac_arg"
5213506e
RW
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4879fi
5213506e
RW
4880rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4882done
5213506e 4883rm -f conftest.$ac_ext
1c710c3c
DJ
4884CC=$ac_save_CC
4885
4886fi
5213506e
RW
4887# AC_CACHE_VAL
4888case "x$ac_cv_prog_cc_c89" in
4889 x)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891$as_echo "none needed" >&6; } ;;
4892 xno)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894$as_echo "unsupported" >&6; } ;;
1c710c3c 4895 *)
5213506e
RW
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4899esac
5213506e 4900if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4901
2aeb72e9
DD
4902fi
4903
2aeb72e9
DD
4904ac_ext=c
4905ac_cpp='$CPP $CPPFLAGS'
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909
91743432
NC
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4911$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4912if ${ac_cv_prog_cc_c99+:} false; then :
4913 $as_echo_n "(cached) " >&6
4914else
4915 ac_cv_prog_cc_c99=no
4916ac_save_CC=$CC
4917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h. */
4919#include <stdarg.h>
4920#include <stdbool.h>
4921#include <stdlib.h>
4922#include <wchar.h>
4923#include <stdio.h>
4924
4925// Check varargs macros. These examples are taken from C99 6.10.3.5.
4926#define debug(...) fprintf (stderr, __VA_ARGS__)
4927#define showlist(...) puts (#__VA_ARGS__)
4928#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4929static void
4930test_varargs_macros (void)
4931{
4932 int x = 1234;
4933 int y = 5678;
4934 debug ("Flag");
4935 debug ("X = %d\n", x);
4936 showlist (The first, second, and third items.);
4937 report (x>y, "x is %d but y is %d", x, y);
4938}
4939
4940// Check long long types.
4941#define BIG64 18446744073709551615ull
4942#define BIG32 4294967295ul
4943#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4944#if !BIG_OK
4945 your preprocessor is broken;
4946#endif
4947#if BIG_OK
4948#else
4949 your preprocessor is broken;
4950#endif
4951static long long int bignum = -9223372036854775807LL;
4952static unsigned long long int ubignum = BIG64;
4953
4954struct incomplete_array
4955{
4956 int datasize;
4957 double data[];
4958};
4959
4960struct named_init {
4961 int number;
4962 const wchar_t *name;
4963 double average;
4964};
4965
4966typedef const char *ccp;
4967
4968static inline int
4969test_restrict (ccp restrict text)
4970{
4971 // See if C++-style comments work.
4972 // Iterate through items via the restricted pointer.
4973 // Also check for declarations in for loops.
4974 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4975 continue;
4976 return 0;
4977}
4978
4979// Check varargs and va_copy.
4980static void
4981test_varargs (const char *format, ...)
4982{
4983 va_list args;
4984 va_start (args, format);
4985 va_list args_copy;
4986 va_copy (args_copy, args);
4987
4988 const char *str;
4989 int number;
4990 float fnumber;
4991
4992 while (*format)
4993 {
4994 switch (*format++)
4995 {
4996 case 's': // string
4997 str = va_arg (args_copy, const char *);
4998 break;
4999 case 'd': // int
5000 number = va_arg (args_copy, int);
5001 break;
5002 case 'f': // float
5003 fnumber = va_arg (args_copy, double);
5004 break;
5005 default:
5006 break;
5007 }
5008 }
5009 va_end (args_copy);
5010 va_end (args);
5011}
5012
5013int
5014main ()
5015{
5016
5017 // Check bool.
5018 _Bool success = false;
5019
5020 // Check restrict.
5021 if (test_restrict ("String literal") == 0)
5022 success = true;
5023 char *restrict newvar = "Another string";
5024
5025 // Check varargs.
5026 test_varargs ("s, d' f .", "string", 65, 34.234);
5027 test_varargs_macros ();
5028
5029 // Check flexible array members.
5030 struct incomplete_array *ia =
5031 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5032 ia->datasize = 10;
5033 for (int i = 0; i < ia->datasize; ++i)
5034 ia->data[i] = i * 1.234;
5035
5036 // Check named initializers.
5037 struct named_init ni = {
5038 .number = 34,
5039 .name = L"Test wide string",
5040 .average = 543.34343,
5041 };
5042
5043 ni.number = 58;
5044
5045 int dynamic_array[ni.number];
5046 dynamic_array[ni.number - 1] = 543;
5047
5048 // work around unused variable warnings
5049 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5050 || dynamic_array[ni.number - 1] != 543);
5051
5052 ;
5053 return 0;
5054}
5055_ACEOF
5056for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5057do
5058 CC="$ac_save_CC $ac_arg"
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 ac_cv_prog_cc_c99=$ac_arg
5061fi
5062rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c99" != "xno" && break
5064done
5065rm -f conftest.$ac_ext
5066CC=$ac_save_CC
5067
5068fi
5069# AC_CACHE_VAL
5070case "x$ac_cv_prog_cc_c99" in
5071 x)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073$as_echo "none needed" >&6; } ;;
5074 xno)
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5076$as_echo "unsupported" >&6; } ;;
5077 *)
5078 CC="$CC $ac_cv_prog_cc_c99"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5080$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5081esac
5082if test "x$ac_cv_prog_cc_c99" != xno; then :
5083
5084fi
5085
5086
5213506e 5087ac_ext=cpp
2aeb72e9
DD
5088ac_cpp='$CXXCPP $CPPFLAGS'
5089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5092if test -z "$CXX"; then
5093 if test -n "$CCC"; then
5094 CXX=$CCC
5095 else
5096 if test -n "$ac_tool_prefix"; then
5097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5098 do
5099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5103if ${ac_cv_prog_CXX+:} false; then :
5213506e 5104 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5105else
5106 if test -n "$CXX"; then
5107 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
5213506e 5114 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5116 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5118 break 2
5119 fi
5120done
5213506e
RW
5121 done
5122IFS=$as_save_IFS
55ffb5ed 5123
c3a86da9
DJ
5124fi
5125fi
5126CXX=$ac_cv_prog_CXX
5127if test -n "$CXX"; then
5213506e
RW
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5129$as_echo "$CXX" >&6; }
c3a86da9 5130else
5213506e
RW
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
c3a86da9
DJ
5133fi
5134
5213506e 5135
c3a86da9
DJ
5136 test -n "$CXX" && break
5137 done
5138fi
5139if test -z "$CXX"; then
5140 ac_ct_CXX=$CXX
5213506e 5141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5142do
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144set dummy $ac_prog; ac_word=$2
5213506e
RW
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5147if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5148 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5149else
5150 if test -n "$ac_ct_CXX"; then
5151 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5213506e 5158 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5160 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5162 break 2
5163 fi
5164done
5213506e
RW
5165 done
5166IFS=$as_save_IFS
c3a86da9
DJ
5167
5168fi
5169fi
5170ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5171if test -n "$ac_ct_CXX"; then
5213506e
RW
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5173$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5174else
5213506e
RW
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176$as_echo "no" >&6; }
c3a86da9
DJ
5177fi
5178
5213506e 5179
c3a86da9
DJ
5180 test -n "$ac_ct_CXX" && break
5181done
c3a86da9 5182
5213506e
RW
5183 if test "x$ac_ct_CXX" = x; then
5184 CXX="g++"
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187yes:)
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190ac_tool_warned=yes ;;
5191esac
5192 CXX=$ac_ct_CXX
5193 fi
c3a86da9
DJ
5194fi
5195
5213506e
RW
5196 fi
5197fi
c3a86da9 5198# Provide some information about the compiler.
5213506e
RW
5199$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5200set X $ac_compile
5201ac_compiler=$2
5202for ac_option in --version -v -V -qversion; do
5203 { { ac_try="$ac_compiler $ac_option >&5"
5204case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207esac
5208eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209$as_echo "$ac_try_echo"; } >&5
5210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5211 ac_status=$?
5213506e
RW
5212 if test -s conftest.err; then
5213 sed '10a\
5214... rest of stderr output deleted ...
5215 10q' conftest.err >conftest.er1
5216 cat conftest.er1 >&5
5213506e 5217 fi
22e05272 5218 rm -f conftest.er1 conftest.err
5213506e
RW
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5221done
c3a86da9 5222
5213506e
RW
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5224$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5225if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5226 $as_echo_n "(cached) " >&6
c3a86da9 5227else
5213506e 5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5229/* end confdefs.h. */
5230
5231int
5232main ()
5233{
5234#ifndef __GNUC__
5235 choke me
5236#endif
5237
5238 ;
5239 return 0;
5240}
5241_ACEOF
5213506e 5242if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5243 ac_compiler_gnu=yes
5244else
5213506e 5245 ac_compiler_gnu=no
c3a86da9 5246fi
5213506e 5247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5248ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5249
5250fi
5213506e
RW
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5252$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5253if test $ac_compiler_gnu = yes; then
5254 GXX=yes
5255else
5256 GXX=
5257fi
c3a86da9
DJ
5258ac_test_CXXFLAGS=${CXXFLAGS+set}
5259ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5261$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5262if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5263 $as_echo_n "(cached) " >&6
5264else
5265 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5266 ac_cxx_werror_flag=yes
5267 ac_cv_prog_cxx_g=no
5268 CXXFLAGS="-g"
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5270/* end confdefs.h. */
5271
5272int
5273main ()
5274{
5275
5276 ;
5277 return 0;
5278}
5279_ACEOF
5213506e 5280if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5281 ac_cv_prog_cxx_g=yes
5282else
5213506e
RW
5283 CXXFLAGS=""
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5285/* end confdefs.h. */
5213506e 5286
c3a86da9
DJ
5287int
5288main ()
5289{
5213506e 5290
c3a86da9
DJ
5291 ;
5292 return 0;
5293}
5294_ACEOF
5213506e 5295if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5296
5213506e
RW
5297else
5298 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5299 CXXFLAGS="-g"
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5301/* end confdefs.h. */
5213506e 5302
c3a86da9
DJ
5303int
5304main ()
5305{
5213506e 5306
c3a86da9
DJ
5307 ;
5308 return 0;
5309}
5310_ACEOF
5213506e
RW
5311if ac_fn_cxx_try_compile "$LINENO"; then :
5312 ac_cv_prog_cxx_g=yes
11a67599 5313fi
5213506e
RW
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317fi
5318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5320fi
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5322$as_echo "$ac_cv_prog_cxx_g" >&6; }
5323if test "$ac_test_CXXFLAGS" = set; then
5324 CXXFLAGS=$ac_save_CXXFLAGS
5325elif test $ac_cv_prog_cxx_g = yes; then
5326 if test "$GXX" = yes; then
5327 CXXFLAGS="-g -O2"
5328 else
5329 CXXFLAGS="-g"
5330 fi
5331else
5332 if test "$GXX" = yes; then
5333 CXXFLAGS="-O2"
5334 else
5335 CXXFLAGS=
5336 fi
c3a86da9 5337fi
c3a86da9
DJ
5338ac_ext=c
5339ac_cpp='$CPP $CPPFLAGS'
5340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342ac_compiler_gnu=$ac_cv_c_compiler_gnu
5343
5344
5345# We must set the default linker to the linker used by gcc for the correct
5346# operation of libtool. If LD is not defined and we are using gcc, try to
5347# set the LD default to the ld used by gcc.
5348if test -z "$LD"; then
5349 if test "$GCC" = yes; then
5350 case $build in
5351 *-*-mingw*)
5352 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5353 *)
5354 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5355 esac
5356 case $gcc_prog_ld in
5357 # Accept absolute paths.
5358 [\\/]* | [A-Za-z]:[\\/]*)
5359 LD="$gcc_prog_ld" ;;
5360 esac
5361 fi
23f6b2f9
PB
5362fi
5363
0b21f5d3
EB
5364# Check whether -static-libstdc++ -static-libgcc is supported.
5365have_static_libs=no
5366if test "$GCC" = yes; then
5367 saved_LDFLAGS="$LDFLAGS"
5368
5369 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5371$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5372 ac_ext=cpp
5373ac_cpp='$CXXCPP $CPPFLAGS'
5374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5377
5378
5379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
0d6414b2
EB
5381
5382#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5383#error -static-libstdc++ not implemented
5384#endif
0b21f5d3
EB
5385int main() {}
5386_ACEOF
5387if ac_fn_cxx_try_link "$LINENO"; then :
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389$as_echo "yes" >&6; }; have_static_libs=yes
5390else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }
5393fi
5394rm -f core conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5396 ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401
5402
5403 LDFLAGS="$saved_LDFLAGS"
5404fi
5405
23f6b2f9
PB
5406
5407
55ffb5ed 5408
1c710c3c
DJ
5409if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5411set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5414if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5415 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5416else
5417 if test -n "$GNATBIND"; then
5418 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5419else
1c710c3c
DJ
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5213506e 5425 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5427 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5429 break 2
5430 fi
5431done
5213506e
RW
5432 done
5433IFS=$as_save_IFS
1c710c3c 5434
55ffb5ed
NN
5435fi
5436fi
1c710c3c 5437GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5438if test -n "$GNATBIND"; then
5213506e
RW
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5440$as_echo "$GNATBIND" >&6; }
55ffb5ed 5441else
5213506e
RW
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443$as_echo "no" >&6; }
55ffb5ed
NN
5444fi
5445
5213506e 5446
1c710c3c 5447fi
55ffb5ed 5448if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5449 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5450 # Extract the first word of "gnatbind", so it can be a program name with args.
5451set dummy gnatbind; ac_word=$2
5213506e
RW
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5454if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5455 $as_echo_n "(cached) " >&6
55ffb5ed 5456else
1c710c3c
DJ
5457 if test -n "$ac_ct_GNATBIND"; then
5458 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5459else
1c710c3c
DJ
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5213506e 5465 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5467 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5469 break 2
5470 fi
5471done
5213506e
RW
5472 done
5473IFS=$as_save_IFS
1c710c3c 5474
55ffb5ed
NN
5475fi
5476fi
1c710c3c
DJ
5477ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5478if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5480$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5481else
5213506e
RW
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483$as_echo "no" >&6; }
55ffb5ed
NN
5484fi
5485
5213506e
RW
5486 if test "x$ac_ct_GNATBIND" = x; then
5487 GNATBIND="no"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490yes:)
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493ac_tool_warned=yes ;;
5494esac
5495 GNATBIND=$ac_ct_GNATBIND
5496 fi
55ffb5ed 5497else
1c710c3c 5498 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5499fi
5500
1c710c3c
DJ
5501if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5503set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5506if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5507 $as_echo_n "(cached) " >&6
5305be7e
RG
5508else
5509 if test -n "$GNATMAKE"; then
5510 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5511else
1c710c3c
DJ
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5213506e 5517 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5519 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5521 break 2
5522 fi
5523done
5213506e
RW
5524 done
5525IFS=$as_save_IFS
1c710c3c 5526
5305be7e
RG
5527fi
5528fi
1c710c3c 5529GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5530if test -n "$GNATMAKE"; then
5213506e
RW
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5532$as_echo "$GNATMAKE" >&6; }
5305be7e 5533else
5213506e
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5305be7e
RG
5536fi
5537
5213506e 5538
1c710c3c 5539fi
5305be7e 5540if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5541 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5542 # Extract the first word of "gnatmake", so it can be a program name with args.
5543set dummy gnatmake; ac_word=$2
5213506e
RW
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5546if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5547 $as_echo_n "(cached) " >&6
5305be7e 5548else
1c710c3c
DJ
5549 if test -n "$ac_ct_GNATMAKE"; then
5550 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5551else
1c710c3c
DJ
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555 IFS=$as_save_IFS
5556 test -z "$as_dir" && as_dir=.
5213506e 5557 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5559 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5561 break 2
5562 fi
5563done
5213506e
RW
5564 done
5565IFS=$as_save_IFS
1c710c3c 5566
5305be7e
RG
5567fi
5568fi
1c710c3c
DJ
5569ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5570if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5572$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5573else
5213506e
RW
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }
5305be7e
RG
5576fi
5577
5213506e
RW
5578 if test "x$ac_ct_GNATMAKE" = x; then
5579 GNATMAKE="no"
5580 else
5581 case $cross_compiling:$ac_tool_warned in
5582yes:)
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585ac_tool_warned=yes ;;
5586esac
5587 GNATMAKE=$ac_ct_GNATMAKE
5588 fi
5305be7e 5589else
1c710c3c 5590 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5591fi
5592
5213506e
RW
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5594$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5595if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5596 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5597else
5598 cat >conftest.adb <<EOF
5599procedure conftest is begin null; end conftest;
5600EOF
5601acx_cv_cc_gcc_supports_ada=no
5602# There is a bug in old released versions of GCC which causes the
5603# driver to exit successfully when the appropriate language module
5604# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5605# Therefore we must check for the error message as well as an
5606# unsuccessful exit.
1db673ca
RO
5607# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5608# given a .adb file, but produce no object file. So we must check
5609# if an object file was really produced to guard against this.
55ffb5ed 5610errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5611if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5612 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5613fi
5614rm -f conftest.*
5615fi
5213506e
RW
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5617$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5618
7cb62ef1 5619if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5620 have_gnat=yes
5621else
5622 have_gnat=no
5623fi
5624
5213506e
RW
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5626$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5627if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5628 $as_echo_n "(cached) " >&6
a76494aa
PB
5629else
5630 echo abfoo >t1
5631 echo cdfoo >t2
b55e6680 5632 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5633 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5634 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5635 :
5636 else
5637 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5638 fi
5639 fi
a76494aa
PB
5640 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5641 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5642 :
a76494aa
PB
5643 else
5644 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5645 fi
5646 fi
5647 rm t1 t2
5648
5649fi
5213506e
RW
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5651$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5652do_compare="$gcc_cv_prog_cmp_skip"
5653
5654
55ffb5ed 5655
ff3ac0f4
ILT
5656# Check whether --enable-bootstrap was given.
5657if test "${enable_bootstrap+set}" = set; then :
5658 enableval=$enable_bootstrap;
5659else
5660 enable_bootstrap=default
5661fi
5662
5663
5664# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5665if test -r $srcdir/gcc/configure; then
5666 have_compiler=yes
5667else
5668 have_compiler=no
5669fi
ff3ac0f4
ILT
5670
5671case "$have_compiler:$host:$target:$enable_bootstrap" in
5672 *:*:*:no) ;;
5673
5674 # Default behavior. Enable bootstrap if we have a compiler
5675 # and we are in a native configuration.
5676 yes:$build:$build:default)
5677 enable_bootstrap=yes ;;
5678
5679 *:*:*:default)
5680 enable_bootstrap=no ;;
5681
5682 # We have a compiler and we are in a native configuration, bootstrap is ok
5683 yes:$build:$build:yes)
5684 ;;
5685
5686 # Other configurations, but we have a compiler. Assume the user knows
5687 # what he's doing.
5688 yes:*:*:yes)
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5690$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5691 ;;
5692
5693 # No compiler: if they passed --enable-bootstrap explicitly, fail
5694 no:*:*:yes)
22e05272 5695 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5696
5697 # Fail if wrong command line
5698 *)
22e05272 5699 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5700 ;;
5701esac
5702
5329b59a 5703# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5704# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5705# require C++11 (or higher).
46070488 5706if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5707 CXX="$CXX -std=c++11"
ffac9597
JM
5708elif test "$have_compiler" = yes; then
5709 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5710 ac_ext=cpp
5711ac_cpp='$CXXCPP $CPPFLAGS'
5712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5715 ac_success=no
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5718$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5719if ${ax_cv_cxx_compile_cxx11+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h. */
5724
5725
5726// If the compiler admits that it is not ready for C++11, why torture it?
5727// Hopefully, this will speed up the test.
5728
5729#ifndef __cplusplus
5730
5731#error "This is not a C++ compiler"
5732
5733#elif __cplusplus < 201103L
5734
5735#error "This is not a C++11 compiler"
5736
5737#else
5738
5739namespace cxx11
5740{
5741
5742 namespace test_static_assert
5743 {
5744
5745 template <typename T>
5746 struct check
5747 {
5748 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5749 };
5750
5751 }
5752
5753 namespace test_final_override
5754 {
5755
5756 struct Base
5757 {
5758 virtual ~Base() {}
5759 virtual void f() {}
5760 };
5761
5762 struct Derived : public Base
5763 {
5764 virtual ~Derived() override {}
5765 virtual void f() override {}
5766 };
5767
5768 }
5769
5770 namespace test_double_right_angle_brackets
5771 {
5772
5773 template < typename T >
5774 struct check {};
5775
5776 typedef check<void> single_type;
5777 typedef check<check<void>> double_type;
5778 typedef check<check<check<void>>> triple_type;
5779 typedef check<check<check<check<void>>>> quadruple_type;
5780
5781 }
5782
5783 namespace test_decltype
5784 {
5785
5786 int
5787 f()
5788 {
5789 int a = 1;
5790 decltype(a) b = 2;
5791 return a + b;
5792 }
5793
5794 }
5795
5796 namespace test_type_deduction
5797 {
5798
5799 template < typename T1, typename T2 >
5800 struct is_same
5801 {
5802 static const bool value = false;
5803 };
5804
5805 template < typename T >
5806 struct is_same<T, T>
5807 {
5808 static const bool value = true;
5809 };
5810
5811 template < typename T1, typename T2 >
5812 auto
5813 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5814 {
5815 return a1 + a2;
5816 }
5817
5818 int
5819 test(const int c, volatile int v)
5820 {
5821 static_assert(is_same<int, decltype(0)>::value == true, "");
5822 static_assert(is_same<int, decltype(c)>::value == false, "");
5823 static_assert(is_same<int, decltype(v)>::value == false, "");
5824 auto ac = c;
5825 auto av = v;
5826 auto sumi = ac + av + 'x';
5827 auto sumf = ac + av + 1.0;
5828 static_assert(is_same<int, decltype(ac)>::value == true, "");
5829 static_assert(is_same<int, decltype(av)>::value == true, "");
5830 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5831 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5832 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5833 return (sumf > 0.0) ? sumi : add(c, v);
5834 }
5835
5836 }
5837
5838 namespace test_noexcept
5839 {
5840
5841 int f() { return 0; }
5842 int g() noexcept { return 0; }
5843
5844 static_assert(noexcept(f()) == false, "");
5845 static_assert(noexcept(g()) == true, "");
5846
5847 }
5848
5849 namespace test_constexpr
5850 {
5851
5852 template < typename CharT >
5853 unsigned long constexpr
5854 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5855 {
5856 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5857 }
5858
5859 template < typename CharT >
5860 unsigned long constexpr
5861 strlen_c(const CharT *const s) noexcept
5862 {
5863 return strlen_c_r(s, 0UL);
5864 }
5865
5866 static_assert(strlen_c("") == 0UL, "");
5867 static_assert(strlen_c("1") == 1UL, "");
5868 static_assert(strlen_c("example") == 7UL, "");
5869 static_assert(strlen_c("another\0example") == 7UL, "");
5870
5871 }
5872
5873 namespace test_rvalue_references
5874 {
5875
5876 template < int N >
5877 struct answer
5878 {
5879 static constexpr int value = N;
5880 };
5881
5882 answer<1> f(int&) { return answer<1>(); }
5883 answer<2> f(const int&) { return answer<2>(); }
5884 answer<3> f(int&&) { return answer<3>(); }
5885
5886 void
5887 test()
5888 {
5889 int i = 0;
5890 const int c = 0;
5891 static_assert(decltype(f(i))::value == 1, "");
5892 static_assert(decltype(f(c))::value == 2, "");
5893 static_assert(decltype(f(0))::value == 3, "");
5894 }
5895
5896 }
5897
5898 namespace test_uniform_initialization
5899 {
5900
5901 struct test
5902 {
5903 static const int zero {};
5904 static const int one {1};
5905 };
5906
5907 static_assert(test::zero == 0, "");
5908 static_assert(test::one == 1, "");
5909
5910 }
5911
5912 namespace test_lambdas
5913 {
5914
5915 void
5916 test1()
5917 {
5918 auto lambda1 = [](){};
5919 auto lambda2 = lambda1;
5920 lambda1();
5921 lambda2();
5922 }
5923
5924 int
5925 test2()
5926 {
5927 auto a = [](int i, int j){ return i + j; }(1, 2);
5928 auto b = []() -> int { return '0'; }();
5929 auto c = [=](){ return a + b; }();
5930 auto d = [&](){ return c; }();
5931 auto e = [a, &b](int x) mutable {
5932 const auto identity = [](int y){ return y; };
5933 for (auto i = 0; i < a; ++i)
5934 a += b--;
5935 return x + identity(a + b);
5936 }(0);
5937 return a + b + c + d + e;
5938 }
5939
5940 int
5941 test3()
5942 {
5943 const auto nullary = [](){ return 0; };
5944 const auto unary = [](int x){ return x; };
5945 using nullary_t = decltype(nullary);
5946 using unary_t = decltype(unary);
5947 const auto higher1st = [](nullary_t f){ return f(); };
5948 const auto higher2nd = [unary](nullary_t f1){
5949 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5950 };
5951 return higher1st(nullary) + higher2nd(nullary)(unary);
5952 }
5953
5954 }
5955
5956 namespace test_variadic_templates
5957 {
5958
5959 template <int...>
5960 struct sum;
5961
5962 template <int N0, int... N1toN>
5963 struct sum<N0, N1toN...>
5964 {
5965 static constexpr auto value = N0 + sum<N1toN...>::value;
5966 };
5967
5968 template <>
5969 struct sum<>
5970 {
5971 static constexpr auto value = 0;
5972 };
5973
5974 static_assert(sum<>::value == 0, "");
5975 static_assert(sum<1>::value == 1, "");
5976 static_assert(sum<23>::value == 23, "");
5977 static_assert(sum<1, 2>::value == 3, "");
5978 static_assert(sum<5, 5, 11>::value == 21, "");
5979 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5980
5981 }
5982
5983 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5984 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5985 // because of this.
5986 namespace test_template_alias_sfinae
5987 {
5988
5989 struct foo {};
5990
5991 template<typename T>
5992 using member = typename T::member_type;
5993
5994 template<typename T>
5995 void func(...) {}
5996
5997 template<typename T>
5998 void func(member<T>*) {}
5999
6000 void test();
6001
6002 void test() { func<foo>(0); }
6003
6004 }
6005
6006} // namespace cxx11
6007
6008#endif // __cplusplus >= 201103L
6009
6010
6011
6012_ACEOF
6013if ac_fn_cxx_try_compile "$LINENO"; then :
6014 ax_cv_cxx_compile_cxx11=yes
6015else
6016 ax_cv_cxx_compile_cxx11=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6021$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6022 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6023 ac_success=yes
6024 fi
6025
6026 if test x$ac_success = xno; then
6027 for alternative in ${ax_cxx_compile_alternatives}; do
6028 switch="-std=gnu++${alternative}"
6029 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6031$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6032if eval \${$cachevar+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034else
6035 ac_save_CXX="$CXX"
6036 CXX="$CXX $switch"
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038/* end confdefs.h. */
6039
6040
6041// If the compiler admits that it is not ready for C++11, why torture it?
6042// Hopefully, this will speed up the test.
6043
6044#ifndef __cplusplus
6045
6046#error "This is not a C++ compiler"
6047
6048#elif __cplusplus < 201103L
6049
6050#error "This is not a C++11 compiler"
6051
6052#else
6053
6054namespace cxx11
6055{
6056
6057 namespace test_static_assert
6058 {
6059
6060 template <typename T>
6061 struct check
6062 {
6063 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6064 };
6065
6066 }
6067
6068 namespace test_final_override
6069 {
6070
6071 struct Base
6072 {
6073 virtual ~Base() {}
6074 virtual void f() {}
6075 };
6076
6077 struct Derived : public Base
6078 {
6079 virtual ~Derived() override {}
6080 virtual void f() override {}
6081 };
6082
6083 }
6084
6085 namespace test_double_right_angle_brackets
6086 {
6087
6088 template < typename T >
6089 struct check {};
6090
6091 typedef check<void> single_type;
6092 typedef check<check<void>> double_type;
6093 typedef check<check<check<void>>> triple_type;
6094 typedef check<check<check<check<void>>>> quadruple_type;
6095
6096 }
6097
6098 namespace test_decltype
6099 {
6100
6101 int
6102 f()
6103 {
6104 int a = 1;
6105 decltype(a) b = 2;
6106 return a + b;
6107 }
6108
6109 }
6110
6111 namespace test_type_deduction
6112 {
6113
6114 template < typename T1, typename T2 >
6115 struct is_same
6116 {
6117 static const bool value = false;
6118 };
6119
6120 template < typename T >
6121 struct is_same<T, T>
6122 {
6123 static const bool value = true;
6124 };
6125
6126 template < typename T1, typename T2 >
6127 auto
6128 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6129 {
6130 return a1 + a2;
6131 }
6132
6133 int
6134 test(const int c, volatile int v)
6135 {
6136 static_assert(is_same<int, decltype(0)>::value == true, "");
6137 static_assert(is_same<int, decltype(c)>::value == false, "");
6138 static_assert(is_same<int, decltype(v)>::value == false, "");
6139 auto ac = c;
6140 auto av = v;
6141 auto sumi = ac + av + 'x';
6142 auto sumf = ac + av + 1.0;
6143 static_assert(is_same<int, decltype(ac)>::value == true, "");
6144 static_assert(is_same<int, decltype(av)>::value == true, "");
6145 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6146 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6147 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6148 return (sumf > 0.0) ? sumi : add(c, v);
6149 }
6150
6151 }
6152
6153 namespace test_noexcept
6154 {
6155
6156 int f() { return 0; }
6157 int g() noexcept { return 0; }
6158
6159 static_assert(noexcept(f()) == false, "");
6160 static_assert(noexcept(g()) == true, "");
6161
6162 }
6163
6164 namespace test_constexpr
6165 {
6166
6167 template < typename CharT >
6168 unsigned long constexpr
6169 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6170 {
6171 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6172 }
6173
6174 template < typename CharT >
6175 unsigned long constexpr
6176 strlen_c(const CharT *const s) noexcept
6177 {
6178 return strlen_c_r(s, 0UL);
6179 }
6180
6181 static_assert(strlen_c("") == 0UL, "");
6182 static_assert(strlen_c("1") == 1UL, "");
6183 static_assert(strlen_c("example") == 7UL, "");
6184 static_assert(strlen_c("another\0example") == 7UL, "");
6185
6186 }
6187
6188 namespace test_rvalue_references
6189 {
6190
6191 template < int N >
6192 struct answer
6193 {
6194 static constexpr int value = N;
6195 };
6196
6197 answer<1> f(int&) { return answer<1>(); }
6198 answer<2> f(const int&) { return answer<2>(); }
6199 answer<3> f(int&&) { return answer<3>(); }
6200
6201 void
6202 test()
6203 {
6204 int i = 0;
6205 const int c = 0;
6206 static_assert(decltype(f(i))::value == 1, "");
6207 static_assert(decltype(f(c))::value == 2, "");
6208 static_assert(decltype(f(0))::value == 3, "");
6209 }
6210
6211 }
6212
6213 namespace test_uniform_initialization
6214 {
6215
6216 struct test
6217 {
6218 static const int zero {};
6219 static const int one {1};
6220 };
6221
6222 static_assert(test::zero == 0, "");
6223 static_assert(test::one == 1, "");
6224
6225 }
6226
6227 namespace test_lambdas
6228 {
6229
6230 void
6231 test1()
6232 {
6233 auto lambda1 = [](){};
6234 auto lambda2 = lambda1;
6235 lambda1();
6236 lambda2();
6237 }
6238
6239 int
6240 test2()
6241 {
6242 auto a = [](int i, int j){ return i + j; }(1, 2);
6243 auto b = []() -> int { return '0'; }();
6244 auto c = [=](){ return a + b; }();
6245 auto d = [&](){ return c; }();
6246 auto e = [a, &b](int x) mutable {
6247 const auto identity = [](int y){ return y; };
6248 for (auto i = 0; i < a; ++i)
6249 a += b--;
6250 return x + identity(a + b);
6251 }(0);
6252 return a + b + c + d + e;
6253 }
6254
6255 int
6256 test3()
6257 {
6258 const auto nullary = [](){ return 0; };
6259 const auto unary = [](int x){ return x; };
6260 using nullary_t = decltype(nullary);
6261 using unary_t = decltype(unary);
6262 const auto higher1st = [](nullary_t f){ return f(); };
6263 const auto higher2nd = [unary](nullary_t f1){
6264 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6265 };
6266 return higher1st(nullary) + higher2nd(nullary)(unary);
6267 }
6268
6269 }
6270
6271 namespace test_variadic_templates
6272 {
6273
6274 template <int...>
6275 struct sum;
6276
6277 template <int N0, int... N1toN>
6278 struct sum<N0, N1toN...>
6279 {
6280 static constexpr auto value = N0 + sum<N1toN...>::value;
6281 };
6282
6283 template <>
6284 struct sum<>
6285 {
6286 static constexpr auto value = 0;
6287 };
6288
6289 static_assert(sum<>::value == 0, "");
6290 static_assert(sum<1>::value == 1, "");
6291 static_assert(sum<23>::value == 23, "");
6292 static_assert(sum<1, 2>::value == 3, "");
6293 static_assert(sum<5, 5, 11>::value == 21, "");
6294 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6295
6296 }
6297
6298 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6299 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6300 // because of this.
6301 namespace test_template_alias_sfinae
6302 {
6303
6304 struct foo {};
6305
6306 template<typename T>
6307 using member = typename T::member_type;
6308
6309 template<typename T>
6310 void func(...) {}
6311
6312 template<typename T>
6313 void func(member<T>*) {}
6314
6315 void test();
6316
6317 void test() { func<foo>(0); }
6318
6319 }
6320
6321} // namespace cxx11
6322
6323#endif // __cplusplus >= 201103L
6324
6325
6326
6327_ACEOF
6328if ac_fn_cxx_try_compile "$LINENO"; then :
6329 eval $cachevar=yes
6330else
6331 eval $cachevar=no
6332fi
6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 CXX="$ac_save_CXX"
6335fi
6336eval ac_res=\$$cachevar
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338$as_echo "$ac_res" >&6; }
6339 if eval test x\$$cachevar = xyes; then
6340 CXX="$CXX $switch"
6341 if test -n "$CXXCPP" ; then
6342 CXXCPP="$CXXCPP $switch"
6343 fi
6344 ac_success=yes
6345 break
6346 fi
6347 done
6348 fi
6349
6350 if test x$ac_success = xno; then
6351 for alternative in ${ax_cxx_compile_alternatives}; do
6352 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6353 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6355$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6356if eval \${$cachevar+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358else
6359 ac_save_CXX="$CXX"
6360 CXX="$CXX $switch"
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h. */
6363
6364
6365// If the compiler admits that it is not ready for C++11, why torture it?
6366// Hopefully, this will speed up the test.
6367
6368#ifndef __cplusplus
6369
6370#error "This is not a C++ compiler"
6371
6372#elif __cplusplus < 201103L
6373
6374#error "This is not a C++11 compiler"
6375
6376#else
6377
6378namespace cxx11
6379{
6380
6381 namespace test_static_assert
6382 {
6383
6384 template <typename T>
6385 struct check
6386 {
6387 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6388 };
6389
6390 }
6391
6392 namespace test_final_override
6393 {
6394
6395 struct Base
6396 {
6397 virtual ~Base() {}
6398 virtual void f() {}
6399 };
6400
6401 struct Derived : public Base
6402 {
6403 virtual ~Derived() override {}
6404 virtual void f() override {}
6405 };
6406
6407 }
6408
6409 namespace test_double_right_angle_brackets
6410 {
6411
6412 template < typename T >
6413 struct check {};
6414
6415 typedef check<void> single_type;
6416 typedef check<check<void>> double_type;
6417 typedef check<check<check<void>>> triple_type;
6418 typedef check<check<check<check<void>>>> quadruple_type;
6419
6420 }
6421
6422 namespace test_decltype
6423 {
6424
6425 int
6426 f()
6427 {
6428 int a = 1;
6429 decltype(a) b = 2;
6430 return a + b;
6431 }
6432
6433 }
6434
6435 namespace test_type_deduction
6436 {
6437
6438 template < typename T1, typename T2 >
6439 struct is_same
6440 {
6441 static const bool value = false;
6442 };
6443
6444 template < typename T >
6445 struct is_same<T, T>
6446 {
6447 static const bool value = true;
6448 };
6449
6450 template < typename T1, typename T2 >
6451 auto
6452 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6453 {
6454 return a1 + a2;
6455 }
6456
6457 int
6458 test(const int c, volatile int v)
6459 {
6460 static_assert(is_same<int, decltype(0)>::value == true, "");
6461 static_assert(is_same<int, decltype(c)>::value == false, "");
6462 static_assert(is_same<int, decltype(v)>::value == false, "");
6463 auto ac = c;
6464 auto av = v;
6465 auto sumi = ac + av + 'x';
6466 auto sumf = ac + av + 1.0;
6467 static_assert(is_same<int, decltype(ac)>::value == true, "");
6468 static_assert(is_same<int, decltype(av)>::value == true, "");
6469 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6470 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6471 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6472 return (sumf > 0.0) ? sumi : add(c, v);
6473 }
6474
6475 }
6476
6477 namespace test_noexcept
6478 {
6479
6480 int f() { return 0; }
6481 int g() noexcept { return 0; }
6482
6483 static_assert(noexcept(f()) == false, "");
6484 static_assert(noexcept(g()) == true, "");
6485
6486 }
6487
6488 namespace test_constexpr
6489 {
6490
6491 template < typename CharT >
6492 unsigned long constexpr
6493 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6494 {
6495 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6496 }
6497
6498 template < typename CharT >
6499 unsigned long constexpr
6500 strlen_c(const CharT *const s) noexcept
6501 {
6502 return strlen_c_r(s, 0UL);
6503 }
6504
6505 static_assert(strlen_c("") == 0UL, "");
6506 static_assert(strlen_c("1") == 1UL, "");
6507 static_assert(strlen_c("example") == 7UL, "");
6508 static_assert(strlen_c("another\0example") == 7UL, "");
6509
6510 }
6511
6512 namespace test_rvalue_references
6513 {
6514
6515 template < int N >
6516 struct answer
6517 {
6518 static constexpr int value = N;
6519 };
6520
6521 answer<1> f(int&) { return answer<1>(); }
6522 answer<2> f(const int&) { return answer<2>(); }
6523 answer<3> f(int&&) { return answer<3>(); }
6524
6525 void
6526 test()
6527 {
6528 int i = 0;
6529 const int c = 0;
6530 static_assert(decltype(f(i))::value == 1, "");
6531 static_assert(decltype(f(c))::value == 2, "");
6532 static_assert(decltype(f(0))::value == 3, "");
6533 }
6534
6535 }
6536
6537 namespace test_uniform_initialization
6538 {
6539
6540 struct test
6541 {
6542 static const int zero {};
6543 static const int one {1};
6544 };
6545
6546 static_assert(test::zero == 0, "");
6547 static_assert(test::one == 1, "");
6548
6549 }
6550
6551 namespace test_lambdas
6552 {
6553
6554 void
6555 test1()
6556 {
6557 auto lambda1 = [](){};
6558 auto lambda2 = lambda1;
6559 lambda1();
6560 lambda2();
6561 }
6562
6563 int
6564 test2()
6565 {
6566 auto a = [](int i, int j){ return i + j; }(1, 2);
6567 auto b = []() -> int { return '0'; }();
6568 auto c = [=](){ return a + b; }();
6569 auto d = [&](){ return c; }();
6570 auto e = [a, &b](int x) mutable {
6571 const auto identity = [](int y){ return y; };
6572 for (auto i = 0; i < a; ++i)
6573 a += b--;
6574 return x + identity(a + b);
6575 }(0);
6576 return a + b + c + d + e;
6577 }
6578
6579 int
6580 test3()
6581 {
6582 const auto nullary = [](){ return 0; };
6583 const auto unary = [](int x){ return x; };
6584 using nullary_t = decltype(nullary);
6585 using unary_t = decltype(unary);
6586 const auto higher1st = [](nullary_t f){ return f(); };
6587 const auto higher2nd = [unary](nullary_t f1){
6588 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6589 };
6590 return higher1st(nullary) + higher2nd(nullary)(unary);
6591 }
6592
6593 }
6594
6595 namespace test_variadic_templates
6596 {
6597
6598 template <int...>
6599 struct sum;
6600
6601 template <int N0, int... N1toN>
6602 struct sum<N0, N1toN...>
6603 {
6604 static constexpr auto value = N0 + sum<N1toN...>::value;
6605 };
6606
6607 template <>
6608 struct sum<>
6609 {
6610 static constexpr auto value = 0;
6611 };
6612
6613 static_assert(sum<>::value == 0, "");
6614 static_assert(sum<1>::value == 1, "");
6615 static_assert(sum<23>::value == 23, "");
6616 static_assert(sum<1, 2>::value == 3, "");
6617 static_assert(sum<5, 5, 11>::value == 21, "");
6618 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6619
6620 }
6621
6622 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6623 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6624 // because of this.
6625 namespace test_template_alias_sfinae
6626 {
6627
6628 struct foo {};
6629
6630 template<typename T>
6631 using member = typename T::member_type;
6632
6633 template<typename T>
6634 void func(...) {}
6635
6636 template<typename T>
6637 void func(member<T>*) {}
6638
6639 void test();
6640
6641 void test() { func<foo>(0); }
6642
6643 }
6644
6645} // namespace cxx11
6646
6647#endif // __cplusplus >= 201103L
6648
6649
6650
6651_ACEOF
6652if ac_fn_cxx_try_compile "$LINENO"; then :
6653 eval $cachevar=yes
6654else
6655 eval $cachevar=no
6656fi
6657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 CXX="$ac_save_CXX"
6659fi
6660eval ac_res=\$$cachevar
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6662$as_echo "$ac_res" >&6; }
6663 if eval test x\$$cachevar = xyes; then
6664 CXX="$CXX $switch"
6665 if test -n "$CXXCPP" ; then
6666 CXXCPP="$CXXCPP $switch"
6667 fi
6668 ac_success=yes
6669 break
6670 fi
6671 done
6672 if test x$ac_success = xyes; then
6673 break
6674 fi
6675 done
6676 fi
7ffcf5d6 6677
ffac9597
JM
6678 ac_ext=c
6679ac_cpp='$CPP $CPPFLAGS'
6680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682ac_compiler_gnu=$ac_cv_c_compiler_gnu
6683
6684 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6685 if test x$ac_success = xno; then
6686 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6687 fi
6688 fi
6689 if test x$ac_success = xno; then
6690 HAVE_CXX11=0
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6692$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6693 else
6694 HAVE_CXX11=1
6695
6696$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6697
6698 fi
6699
6700
7ffcf5d6
TB
6701
6702 if test "${build}" != "${host}"; then
6703 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6704 ac_ext=cpp
6705ac_cpp='$CXXCPP $CPPFLAGS'
6706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6709 ac_success=no
6710 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6711 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6712 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6713 CXX="$CXX_FOR_BUILD"
6714 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6715 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6717$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6718if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720else
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h. */
6723
6724
6725// If the compiler admits that it is not ready for C++11, why torture it?
6726// Hopefully, this will speed up the test.
6727
6728#ifndef __cplusplus
6729
6730#error "This is not a C++ compiler"
6731
6732#elif __cplusplus < 201103L
6733
6734#error "This is not a C++11 compiler"
6735
6736#else
6737
6738namespace cxx11
6739{
6740
6741 namespace test_static_assert
6742 {
6743
6744 template <typename T>
6745 struct check
6746 {
6747 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6748 };
6749
6750 }
6751
6752 namespace test_final_override
6753 {
6754
6755 struct Base
6756 {
6757 virtual ~Base() {}
6758 virtual void f() {}
6759 };
6760
6761 struct Derived : public Base
6762 {
6763 virtual ~Derived() override {}
6764 virtual void f() override {}
6765 };
6766
6767 }
6768
6769 namespace test_double_right_angle_brackets
6770 {
6771
6772 template < typename T >
6773 struct check {};
6774
6775 typedef check<void> single_type;
6776 typedef check<check<void>> double_type;
6777 typedef check<check<check<void>>> triple_type;
6778 typedef check<check<check<check<void>>>> quadruple_type;
6779
6780 }
6781
6782 namespace test_decltype
6783 {
6784
6785 int
6786 f()
6787 {
6788 int a = 1;
6789 decltype(a) b = 2;
6790 return a + b;
6791 }
6792
6793 }
6794
6795 namespace test_type_deduction
6796 {
6797
6798 template < typename T1, typename T2 >
6799 struct is_same
6800 {
6801 static const bool value = false;
6802 };
6803
6804 template < typename T >
6805 struct is_same<T, T>
6806 {
6807 static const bool value = true;
6808 };
6809
6810 template < typename T1, typename T2 >
6811 auto
6812 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6813 {
6814 return a1 + a2;
6815 }
6816
6817 int
6818 test(const int c, volatile int v)
6819 {
6820 static_assert(is_same<int, decltype(0)>::value == true, "");
6821 static_assert(is_same<int, decltype(c)>::value == false, "");
6822 static_assert(is_same<int, decltype(v)>::value == false, "");
6823 auto ac = c;
6824 auto av = v;
6825 auto sumi = ac + av + 'x';
6826 auto sumf = ac + av + 1.0;
6827 static_assert(is_same<int, decltype(ac)>::value == true, "");
6828 static_assert(is_same<int, decltype(av)>::value == true, "");
6829 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6830 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6831 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6832 return (sumf > 0.0) ? sumi : add(c, v);
6833 }
6834
6835 }
6836
6837 namespace test_noexcept
6838 {
6839
6840 int f() { return 0; }
6841 int g() noexcept { return 0; }
6842
6843 static_assert(noexcept(f()) == false, "");
6844 static_assert(noexcept(g()) == true, "");
6845
6846 }
6847
6848 namespace test_constexpr
6849 {
6850
6851 template < typename CharT >
6852 unsigned long constexpr
6853 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6854 {
6855 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6856 }
6857
6858 template < typename CharT >
6859 unsigned long constexpr
6860 strlen_c(const CharT *const s) noexcept
6861 {
6862 return strlen_c_r(s, 0UL);
6863 }
6864
6865 static_assert(strlen_c("") == 0UL, "");
6866 static_assert(strlen_c("1") == 1UL, "");
6867 static_assert(strlen_c("example") == 7UL, "");
6868 static_assert(strlen_c("another\0example") == 7UL, "");
6869
6870 }
6871
6872 namespace test_rvalue_references
6873 {
6874
6875 template < int N >
6876 struct answer
6877 {
6878 static constexpr int value = N;
6879 };
6880
6881 answer<1> f(int&) { return answer<1>(); }
6882 answer<2> f(const int&) { return answer<2>(); }
6883 answer<3> f(int&&) { return answer<3>(); }
6884
6885 void
6886 test()
6887 {
6888 int i = 0;
6889 const int c = 0;
6890 static_assert(decltype(f(i))::value == 1, "");
6891 static_assert(decltype(f(c))::value == 2, "");
6892 static_assert(decltype(f(0))::value == 3, "");
6893 }
6894
6895 }
6896
6897 namespace test_uniform_initialization
6898 {
6899
6900 struct test
6901 {
6902 static const int zero {};
6903 static const int one {1};
6904 };
6905
6906 static_assert(test::zero == 0, "");
6907 static_assert(test::one == 1, "");
6908
6909 }
6910
6911 namespace test_lambdas
6912 {
6913
6914 void
6915 test1()
6916 {
6917 auto lambda1 = [](){};
6918 auto lambda2 = lambda1;
6919 lambda1();
6920 lambda2();
6921 }
6922
6923 int
6924 test2()
6925 {
6926 auto a = [](int i, int j){ return i + j; }(1, 2);
6927 auto b = []() -> int { return '0'; }();
6928 auto c = [=](){ return a + b; }();
6929 auto d = [&](){ return c; }();
6930 auto e = [a, &b](int x) mutable {
6931 const auto identity = [](int y){ return y; };
6932 for (auto i = 0; i < a; ++i)
6933 a += b--;
6934 return x + identity(a + b);
6935 }(0);
6936 return a + b + c + d + e;
6937 }
6938
6939 int
6940 test3()
6941 {
6942 const auto nullary = [](){ return 0; };
6943 const auto unary = [](int x){ return x; };
6944 using nullary_t = decltype(nullary);
6945 using unary_t = decltype(unary);
6946 const auto higher1st = [](nullary_t f){ return f(); };
6947 const auto higher2nd = [unary](nullary_t f1){
6948 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6949 };
6950 return higher1st(nullary) + higher2nd(nullary)(unary);
6951 }
6952
6953 }
6954
6955 namespace test_variadic_templates
6956 {
6957
6958 template <int...>
6959 struct sum;
6960
6961 template <int N0, int... N1toN>
6962 struct sum<N0, N1toN...>
6963 {
6964 static constexpr auto value = N0 + sum<N1toN...>::value;
6965 };
6966
6967 template <>
6968 struct sum<>
6969 {
6970 static constexpr auto value = 0;
6971 };
6972
6973 static_assert(sum<>::value == 0, "");
6974 static_assert(sum<1>::value == 1, "");
6975 static_assert(sum<23>::value == 23, "");
6976 static_assert(sum<1, 2>::value == 3, "");
6977 static_assert(sum<5, 5, 11>::value == 21, "");
6978 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6979
6980 }
6981
6982 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6983 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6984 // because of this.
6985 namespace test_template_alias_sfinae
6986 {
6987
6988 struct foo {};
6989
6990 template<typename T>
6991 using member = typename T::member_type;
6992
6993 template<typename T>
6994 void func(...) {}
6995
6996 template<typename T>
6997 void func(member<T>*) {}
6998
6999 void test();
7000
7001 void test() { func<foo>(0); }
7002
7003 }
7004
7005} // namespace cxx11
7006
7007#endif // __cplusplus >= 201103L
7008
7009
7010
7011_ACEOF
7012if ac_fn_cxx_try_compile "$LINENO"; then :
7013 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7014else
7015 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7016fi
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018fi
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7020$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7021 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7022 ac_success=yes
7023 fi
7024
7025 if test x$ac_success = xno; then
7026 for alternative in ${ax_cxx_compile_alternatives}; do
7027 switch="-std=gnu++${alternative}"
7028 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7030$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7031if eval \${$cachevar+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033else
7034 ac_save_CXX="$CXX"
7035 CXX="$CXX $switch"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037/* end confdefs.h. */
7038
7039
7040// If the compiler admits that it is not ready for C++11, why torture it?
7041// Hopefully, this will speed up the test.
7042
7043#ifndef __cplusplus
7044
7045#error "This is not a C++ compiler"
7046
7047#elif __cplusplus < 201103L
7048
7049#error "This is not a C++11 compiler"
7050
7051#else
7052
7053namespace cxx11
7054{
7055
7056 namespace test_static_assert
7057 {
7058
7059 template <typename T>
7060 struct check
7061 {
7062 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7063 };
7064
7065 }
7066
7067 namespace test_final_override
7068 {
7069
7070 struct Base
7071 {
7072 virtual ~Base() {}
7073 virtual void f() {}
7074 };
7075
7076 struct Derived : public Base
7077 {
7078 virtual ~Derived() override {}
7079 virtual void f() override {}
7080 };
7081
7082 }
7083
7084 namespace test_double_right_angle_brackets
7085 {
7086
7087 template < typename T >
7088 struct check {};
7089
7090 typedef check<void> single_type;
7091 typedef check<check<void>> double_type;
7092 typedef check<check<check<void>>> triple_type;
7093 typedef check<check<check<check<void>>>> quadruple_type;
7094
7095 }
7096
7097 namespace test_decltype
7098 {
7099
7100 int
7101 f()
7102 {
7103 int a = 1;
7104 decltype(a) b = 2;
7105 return a + b;
7106 }
7107
7108 }
7109
7110 namespace test_type_deduction
7111 {
7112
7113 template < typename T1, typename T2 >
7114 struct is_same
7115 {
7116 static const bool value = false;
7117 };
7118
7119 template < typename T >
7120 struct is_same<T, T>
7121 {
7122 static const bool value = true;
7123 };
7124
7125 template < typename T1, typename T2 >
7126 auto
7127 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7128 {
7129 return a1 + a2;
7130 }
7131
7132 int
7133 test(const int c, volatile int v)
7134 {
7135 static_assert(is_same<int, decltype(0)>::value == true, "");
7136 static_assert(is_same<int, decltype(c)>::value == false, "");
7137 static_assert(is_same<int, decltype(v)>::value == false, "");
7138 auto ac = c;
7139 auto av = v;
7140 auto sumi = ac + av + 'x';
7141 auto sumf = ac + av + 1.0;
7142 static_assert(is_same<int, decltype(ac)>::value == true, "");
7143 static_assert(is_same<int, decltype(av)>::value == true, "");
7144 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7145 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7146 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7147 return (sumf > 0.0) ? sumi : add(c, v);
7148 }
7149
7150 }
7151
7152 namespace test_noexcept
7153 {
7154
7155 int f() { return 0; }
7156 int g() noexcept { return 0; }
7157
7158 static_assert(noexcept(f()) == false, "");
7159 static_assert(noexcept(g()) == true, "");
7160
7161 }
7162
7163 namespace test_constexpr
7164 {
7165
7166 template < typename CharT >
7167 unsigned long constexpr
7168 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7169 {
7170 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7171 }
7172
7173 template < typename CharT >
7174 unsigned long constexpr
7175 strlen_c(const CharT *const s) noexcept
7176 {
7177 return strlen_c_r(s, 0UL);
7178 }
7179
7180 static_assert(strlen_c("") == 0UL, "");
7181 static_assert(strlen_c("1") == 1UL, "");
7182 static_assert(strlen_c("example") == 7UL, "");
7183 static_assert(strlen_c("another\0example") == 7UL, "");
7184
7185 }
7186
7187 namespace test_rvalue_references
7188 {
7189
7190 template < int N >
7191 struct answer
7192 {
7193 static constexpr int value = N;
7194 };
7195
7196 answer<1> f(int&) { return answer<1>(); }
7197 answer<2> f(const int&) { return answer<2>(); }
7198 answer<3> f(int&&) { return answer<3>(); }
7199
7200 void
7201 test()
7202 {
7203 int i = 0;
7204 const int c = 0;
7205 static_assert(decltype(f(i))::value == 1, "");
7206 static_assert(decltype(f(c))::value == 2, "");
7207 static_assert(decltype(f(0))::value == 3, "");
7208 }
7209
7210 }
7211
7212 namespace test_uniform_initialization
7213 {
7214
7215 struct test
7216 {
7217 static const int zero {};
7218 static const int one {1};
7219 };
7220
7221 static_assert(test::zero == 0, "");
7222 static_assert(test::one == 1, "");
7223
7224 }
7225
7226 namespace test_lambdas
7227 {
7228
7229 void
7230 test1()
7231 {
7232 auto lambda1 = [](){};
7233 auto lambda2 = lambda1;
7234 lambda1();
7235 lambda2();
7236 }
7237
7238 int
7239 test2()
7240 {
7241 auto a = [](int i, int j){ return i + j; }(1, 2);
7242 auto b = []() -> int { return '0'; }();
7243 auto c = [=](){ return a + b; }();
7244 auto d = [&](){ return c; }();
7245 auto e = [a, &b](int x) mutable {
7246 const auto identity = [](int y){ return y; };
7247 for (auto i = 0; i < a; ++i)
7248 a += b--;
7249 return x + identity(a + b);
7250 }(0);
7251 return a + b + c + d + e;
7252 }
7253
7254 int
7255 test3()
7256 {
7257 const auto nullary = [](){ return 0; };
7258 const auto unary = [](int x){ return x; };
7259 using nullary_t = decltype(nullary);
7260 using unary_t = decltype(unary);
7261 const auto higher1st = [](nullary_t f){ return f(); };
7262 const auto higher2nd = [unary](nullary_t f1){
7263 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7264 };
7265 return higher1st(nullary) + higher2nd(nullary)(unary);
7266 }
7267
7268 }
7269
7270 namespace test_variadic_templates
7271 {
7272
7273 template <int...>
7274 struct sum;
7275
7276 template <int N0, int... N1toN>
7277 struct sum<N0, N1toN...>
7278 {
7279 static constexpr auto value = N0 + sum<N1toN...>::value;
7280 };
7281
7282 template <>
7283 struct sum<>
7284 {
7285 static constexpr auto value = 0;
7286 };
7287
7288 static_assert(sum<>::value == 0, "");
7289 static_assert(sum<1>::value == 1, "");
7290 static_assert(sum<23>::value == 23, "");
7291 static_assert(sum<1, 2>::value == 3, "");
7292 static_assert(sum<5, 5, 11>::value == 21, "");
7293 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7294
7295 }
7296
7297 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7298 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7299 // because of this.
7300 namespace test_template_alias_sfinae
7301 {
7302
7303 struct foo {};
7304
7305 template<typename T>
7306 using member = typename T::member_type;
7307
7308 template<typename T>
7309 void func(...) {}
7310
7311 template<typename T>
7312 void func(member<T>*) {}
7313
7314 void test();
7315
7316 void test() { func<foo>(0); }
7317
7318 }
7319
7320} // namespace cxx11
7321
7322#endif // __cplusplus >= 201103L
7323
7324
7325
7326_ACEOF
7327if ac_fn_cxx_try_compile "$LINENO"; then :
7328 eval $cachevar=yes
7329else
7330 eval $cachevar=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 CXX="$ac_save_CXX"
7334fi
7335eval ac_res=\$$cachevar
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337$as_echo "$ac_res" >&6; }
7338 if eval test x\$$cachevar = xyes; then
7339 CXX="$CXX $switch"
7340 if test -n "$CXXCPP" ; then
7341 CXXCPP="$CXXCPP $switch"
7342 fi
7343 ac_success=yes
7344 break
7345 fi
7346 done
7347 fi
7348
7349 if test x$ac_success = xno; then
7350 for alternative in ${ax_cxx_compile_alternatives}; do
7351 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7352 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7354$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7355if eval \${$cachevar+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357else
7358 ac_save_CXX="$CXX"
7359 CXX="$CXX $switch"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h. */
7362
7363
7364// If the compiler admits that it is not ready for C++11, why torture it?
7365// Hopefully, this will speed up the test.
7366
7367#ifndef __cplusplus
7368
7369#error "This is not a C++ compiler"
7370
7371#elif __cplusplus < 201103L
7372
7373#error "This is not a C++11 compiler"
7374
7375#else
7376
7377namespace cxx11
7378{
7379
7380 namespace test_static_assert
7381 {
7382
7383 template <typename T>
7384 struct check
7385 {
7386 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7387 };
7388
7389 }
7390
7391 namespace test_final_override
7392 {
7393
7394 struct Base
7395 {
7396 virtual ~Base() {}
7397 virtual void f() {}
7398 };
7399
7400 struct Derived : public Base
7401 {
7402 virtual ~Derived() override {}
7403 virtual void f() override {}
7404 };
7405
7406 }
7407
7408 namespace test_double_right_angle_brackets
7409 {
7410
7411 template < typename T >
7412 struct check {};
7413
7414 typedef check<void> single_type;
7415 typedef check<check<void>> double_type;
7416 typedef check<check<check<void>>> triple_type;
7417 typedef check<check<check<check<void>>>> quadruple_type;
7418
7419 }
7420
7421 namespace test_decltype
7422 {
7423
7424 int
7425 f()
7426 {
7427 int a = 1;
7428 decltype(a) b = 2;
7429 return a + b;
7430 }
7431
7432 }
7433
7434 namespace test_type_deduction
7435 {
7436
7437 template < typename T1, typename T2 >
7438 struct is_same
7439 {
7440 static const bool value = false;
7441 };
7442
7443 template < typename T >
7444 struct is_same<T, T>
7445 {
7446 static const bool value = true;
7447 };
7448
7449 template < typename T1, typename T2 >
7450 auto
7451 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7452 {
7453 return a1 + a2;
7454 }
7455
7456 int
7457 test(const int c, volatile int v)
7458 {
7459 static_assert(is_same<int, decltype(0)>::value == true, "");
7460 static_assert(is_same<int, decltype(c)>::value == false, "");
7461 static_assert(is_same<int, decltype(v)>::value == false, "");
7462 auto ac = c;
7463 auto av = v;
7464 auto sumi = ac + av + 'x';
7465 auto sumf = ac + av + 1.0;
7466 static_assert(is_same<int, decltype(ac)>::value == true, "");
7467 static_assert(is_same<int, decltype(av)>::value == true, "");
7468 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7469 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7470 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7471 return (sumf > 0.0) ? sumi : add(c, v);
7472 }
7473
7474 }
7475
7476 namespace test_noexcept
7477 {
7478
7479 int f() { return 0; }
7480 int g() noexcept { return 0; }
7481
7482 static_assert(noexcept(f()) == false, "");
7483 static_assert(noexcept(g()) == true, "");
7484
7485 }
7486
7487 namespace test_constexpr
7488 {
7489
7490 template < typename CharT >
7491 unsigned long constexpr
7492 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7493 {
7494 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7495 }
7496
7497 template < typename CharT >
7498 unsigned long constexpr
7499 strlen_c(const CharT *const s) noexcept
7500 {
7501 return strlen_c_r(s, 0UL);
7502 }
7503
7504 static_assert(strlen_c("") == 0UL, "");
7505 static_assert(strlen_c("1") == 1UL, "");
7506 static_assert(strlen_c("example") == 7UL, "");
7507 static_assert(strlen_c("another\0example") == 7UL, "");
7508
7509 }
7510
7511 namespace test_rvalue_references
7512 {
7513
7514 template < int N >
7515 struct answer
7516 {
7517 static constexpr int value = N;
7518 };
7519
7520 answer<1> f(int&) { return answer<1>(); }
7521 answer<2> f(const int&) { return answer<2>(); }
7522 answer<3> f(int&&) { return answer<3>(); }
7523
7524 void
7525 test()
7526 {
7527 int i = 0;
7528 const int c = 0;
7529 static_assert(decltype(f(i))::value == 1, "");
7530 static_assert(decltype(f(c))::value == 2, "");
7531 static_assert(decltype(f(0))::value == 3, "");
7532 }
7533
7534 }
7535
7536 namespace test_uniform_initialization
7537 {
7538
7539 struct test
7540 {
7541 static const int zero {};
7542 static const int one {1};
7543 };
7544
7545 static_assert(test::zero == 0, "");
7546 static_assert(test::one == 1, "");
7547
7548 }
7549
7550 namespace test_lambdas
7551 {
7552
7553 void
7554 test1()
7555 {
7556 auto lambda1 = [](){};
7557 auto lambda2 = lambda1;
7558 lambda1();
7559 lambda2();
7560 }
7561
7562 int
7563 test2()
7564 {
7565 auto a = [](int i, int j){ return i + j; }(1, 2);
7566 auto b = []() -> int { return '0'; }();
7567 auto c = [=](){ return a + b; }();
7568 auto d = [&](){ return c; }();
7569 auto e = [a, &b](int x) mutable {
7570 const auto identity = [](int y){ return y; };
7571 for (auto i = 0; i < a; ++i)
7572 a += b--;
7573 return x + identity(a + b);
7574 }(0);
7575 return a + b + c + d + e;
7576 }
7577
7578 int
7579 test3()
7580 {
7581 const auto nullary = [](){ return 0; };
7582 const auto unary = [](int x){ return x; };
7583 using nullary_t = decltype(nullary);
7584 using unary_t = decltype(unary);
7585 const auto higher1st = [](nullary_t f){ return f(); };
7586 const auto higher2nd = [unary](nullary_t f1){
7587 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7588 };
7589 return higher1st(nullary) + higher2nd(nullary)(unary);
7590 }
7591
7592 }
7593
7594 namespace test_variadic_templates
7595 {
7596
7597 template <int...>
7598 struct sum;
7599
7600 template <int N0, int... N1toN>
7601 struct sum<N0, N1toN...>
7602 {
7603 static constexpr auto value = N0 + sum<N1toN...>::value;
7604 };
7605
7606 template <>
7607 struct sum<>
7608 {
7609 static constexpr auto value = 0;
7610 };
7611
7612 static_assert(sum<>::value == 0, "");
7613 static_assert(sum<1>::value == 1, "");
7614 static_assert(sum<23>::value == 23, "");
7615 static_assert(sum<1, 2>::value == 3, "");
7616 static_assert(sum<5, 5, 11>::value == 21, "");
7617 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7618
7619 }
7620
7621 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7622 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7623 // because of this.
7624 namespace test_template_alias_sfinae
7625 {
7626
7627 struct foo {};
7628
7629 template<typename T>
7630 using member = typename T::member_type;
7631
7632 template<typename T>
7633 void func(...) {}
7634
7635 template<typename T>
7636 void func(member<T>*) {}
7637
7638 void test();
7639
7640 void test() { func<foo>(0); }
7641
7642 }
7643
7644} // namespace cxx11
7645
7646#endif // __cplusplus >= 201103L
7647
7648
7649
7650_ACEOF
7651if ac_fn_cxx_try_compile "$LINENO"; then :
7652 eval $cachevar=yes
7653else
7654 eval $cachevar=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657 CXX="$ac_save_CXX"
7658fi
7659eval ac_res=\$$cachevar
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7661$as_echo "$ac_res" >&6; }
7662 if eval test x\$$cachevar = xyes; then
7663 CXX="$CXX $switch"
7664 if test -n "$CXXCPP" ; then
7665 CXXCPP="$CXXCPP $switch"
7666 fi
7667 ac_success=yes
7668 break
7669 fi
7670 done
7671 if test x$ac_success = xyes; then
7672 break
7673 fi
7674 done
7675 fi
7676 CXX_FOR_BUILD="$CXX"
7677 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7678 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7679 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7680 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7681 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7682 ac_ext=c
7683ac_cpp='$CPP $CPPFLAGS'
7684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686ac_compiler_gnu=$ac_cv_c_compiler_gnu
7687
7688 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7689 if test x$ac_success = xno; then
7690 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7691 fi
7692 fi
7693 if test x$ac_success = xno; then
7694 HAVE_CXX11_FOR_BUILD=0
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7696$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7697 else
7698 HAVE_CXX11_FOR_BUILD=1
7699
7700$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7701
7702 fi
7703
7704
7705 fi
46070488
JM
7706fi
7707
592c90ff
KG
7708# Used for setting $lt_cv_objdir
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7710$as_echo_n "checking for objdir... " >&6; }
22e05272 7711if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7712 $as_echo_n "(cached) " >&6
7713else
7714 rm -f .libs 2>/dev/null
7715mkdir .libs 2>/dev/null
7716if test -d .libs; then
7717 lt_cv_objdir=.libs
7718else
7719 # MS-DOS does not allow filenames that begin with a dot.
7720 lt_cv_objdir=_libs
7721fi
7722rmdir .libs 2>/dev/null
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7725$as_echo "$lt_cv_objdir" >&6; }
7726objdir=$lt_cv_objdir
7727
7728
7729
7730
7731
7732cat >>confdefs.h <<_ACEOF
7733#define LT_OBJDIR "$lt_cv_objdir/"
7734_ACEOF
7735
7736
7737
acd26225 7738# Check for GMP, MPFR and MPC
3a5729ea 7739gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7740gmpinc=
e69bf64b 7741have_gmp=no
acd26225
KG
7742
7743# Specify a location for mpc
7744# check for this first so it ends up on the link line before mpfr.
7745
5213506e
RW
7746# Check whether --with-mpc was given.
7747if test "${with_mpc+set}" = set; then :
7748 withval=$with_mpc;
7749fi
acd26225 7750
acd26225 7751
9965e3cd 7752# Check whether --with-mpc-include was given.
5213506e
RW
7753if test "${with_mpc_include+set}" = set; then :
7754 withval=$with_mpc_include;
7755fi
acd26225 7756
acd26225 7757
9965e3cd 7758# Check whether --with-mpc-lib was given.
5213506e
RW
7759if test "${with_mpc_lib+set}" = set; then :
7760 withval=$with_mpc_lib;
7761fi
acd26225 7762
acd26225
KG
7763
7764if test "x$with_mpc" != x; then
3a5729ea
KG
7765 gmplibs="-L$with_mpc/lib $gmplibs"
7766 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7767fi
7768if test "x$with_mpc_include" != x; then
3a5729ea 7769 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7770fi
7771if test "x$with_mpc_lib" != x; then
3a5729ea 7772 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7773fi
7774if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7775 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7776 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7777 # Do not test the mpc version. Assume that it is sufficient, since
7778 # it is in the source tree, and the library has not been built yet
7779 # but it would be included on the link line in the version check below
7780 # hence making the test fail.
3a5729ea 7781 have_gmp=yes
acd26225 7782fi
e69bf64b 7783
bebf829d
PB
7784# Specify a location for mpfr
7785# check for this first so it ends up on the link line before gmp.
1c710c3c 7786
5213506e
RW
7787# Check whether --with-mpfr-dir was given.
7788if test "${with_mpfr_dir+set}" = set; then :
22e05272 7789 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
7790Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7791fi
7792
bebf829d
PB
7793
7794
5213506e
RW
7795# Check whether --with-mpfr was given.
7796if test "${with_mpfr+set}" = set; then :
7797 withval=$with_mpfr;
7798fi
1c710c3c 7799
bebf829d 7800
9965e3cd 7801# Check whether --with-mpfr-include was given.
5213506e
RW
7802if test "${with_mpfr_include+set}" = set; then :
7803 withval=$with_mpfr_include;
7804fi
1c710c3c 7805
8a877c9c 7806
9965e3cd 7807# Check whether --with-mpfr-lib was given.
5213506e
RW
7808if test "${with_mpfr_lib+set}" = set; then :
7809 withval=$with_mpfr_lib;
7810fi
8a877c9c 7811
bebf829d
PB
7812
7813if test "x$with_mpfr" != x; then
7814 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7815 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7816fi
8a877c9c 7817if test "x$with_mpfr_include" != x; then
3a5729ea 7818 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7819fi
7820if test "x$with_mpfr_lib" != x; then
7821 gmplibs="-L$with_mpfr_lib $gmplibs"
7822fi
e69bf64b 7823if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7824 # MPFR v3.1.0 moved the sources into a src sub-directory.
7825 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7826 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7827 fi
00f35794
BE
7828 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7829 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7830 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7831 # Do not test the mpfr version. Assume that it is sufficient, since
7832 # it is in the source tree, and the library has not been built yet
7833 # but it would be included on the link line in the version check below
7834 # hence making the test fail.
7835 have_gmp=yes
7836fi
bebf829d 7837
6de9cd9a 7838# Specify a location for gmp
1c710c3c 7839
5213506e
RW
7840# Check whether --with-gmp-dir was given.
7841if test "${with_gmp_dir+set}" = set; then :
22e05272 7842 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
7843Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7844fi
7845
6de9cd9a 7846
6de9cd9a 7847
5213506e
RW
7848# Check whether --with-gmp was given.
7849if test "${with_gmp+set}" = set; then :
7850 withval=$with_gmp;
7851fi
1c710c3c 7852
6de9cd9a 7853
9965e3cd 7854# Check whether --with-gmp-include was given.
5213506e
RW
7855if test "${with_gmp_include+set}" = set; then :
7856 withval=$with_gmp_include;
7857fi
1c710c3c 7858
8a877c9c 7859
9965e3cd 7860# Check whether --with-gmp-lib was given.
5213506e
RW
7861if test "${with_gmp_lib+set}" = set; then :
7862 withval=$with_gmp_lib;
7863fi
8a877c9c
KG
7864
7865
6de9cd9a 7866
bebf829d
PB
7867if test "x$with_gmp" != x; then
7868 gmplibs="-L$with_gmp/lib $gmplibs"
7869 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 7870fi
8a877c9c
KG
7871if test "x$with_gmp_include" != x; then
7872 gmpinc="-I$with_gmp_include $gmpinc"
7873fi
7874if test "x$with_gmp_lib" != x; then
7875 gmplibs="-L$with_gmp_lib $gmplibs"
7876fi
e69bf64b 7877if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 7878 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 7879 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 7880 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 7881 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 7882 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
7883 # Do not test the gmp version. Assume that it is sufficient, since
7884 # it is in the source tree, and the library has not been built yet
7885 # but it would be included on the link line in the version check below
7886 # hence making the test fail.
7887 have_gmp=yes
7888fi
6de9cd9a 7889
d943d7c4 7890if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
7891 have_gmp=yes
7892 saved_CFLAGS="$CFLAGS"
7893 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
7894 # Check for the recommended and required versions of GMP.
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7896$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
7897
7898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
7899/* end confdefs.h. */
7900#include "gmp.h"
7901int
7902main ()
7903{
7904
7905 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7906 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 7907 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
7908 choke me
7909 #endif
7910
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7917/* end confdefs.h. */
362c6d2f 7918#include <gmp.h>
1c710c3c
DJ
7919int
7920main ()
7921{
6de9cd9a 7922
362c6d2f
KG
7923 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7924 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7925 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
7926 choke me
7927 #endif
1c710c3c
DJ
7928
7929 ;
7930 return 0;
7931}
7932_ACEOF
5213506e
RW
7933if ac_fn_c_try_compile "$LINENO"; then :
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935$as_echo "yes" >&6; }
362c6d2f
KG
7936else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7938$as_echo "buggy but acceptable" >&6; }
7939fi
7940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 7941else
5213506e
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }; have_gmp=no
1c710c3c 7944fi
5213506e 7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 7946
acd26225 7947 # If we have GMP, check the MPFR version.
e69bf64b 7948 if test x"$have_gmp" = xyes; then
362c6d2f
KG
7949 # Check for the recommended and required versions of MPFR.
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7951$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7953/* end confdefs.h. */
70ec446f 7954#include <gmp.h>
e69bf64b 7955 #include <mpfr.h>
1c710c3c
DJ
7956int
7957main ()
7958{
e48d66a9 7959
8be34204 7960 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
7961 choke me
7962 #endif
1c710c3c
DJ
7963
7964 ;
7965 return 0;
7966}
7967_ACEOF
5213506e
RW
7968if ac_fn_c_try_compile "$LINENO"; then :
7969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7970/* end confdefs.h. */
a3993f33 7971#include <gmp.h>
e69bf64b 7972 #include <mpfr.h>
1c710c3c
DJ
7973int
7974main ()
7975{
a3993f33 7976
8be34204 7977 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
7978 choke me
7979 #endif
acd26225
KG
7980
7981 ;
7982 return 0;
7983}
7984_ACEOF
5213506e
RW
7985if ac_fn_c_try_compile "$LINENO"; then :
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987$as_echo "yes" >&6; }
acd26225 7988else
5213506e
RW
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7990$as_echo "buggy but acceptable" >&6; }
acd26225 7991fi
5213506e 7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 7993else
5213506e
RW
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995$as_echo "no" >&6; }; have_gmp=no
acd26225 7996fi
5213506e 7997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
7998 fi
7999
8000 # Check for the MPC header version.
3a5729ea 8001 if test x"$have_gmp" = xyes ; then
362c6d2f 8002 # Check for the recommended and required versions of MPC.
5213506e
RW
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8004$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8006/* end confdefs.h. */
8007#include <mpc.h>
8008int
8009main ()
8010{
8011
362c6d2f
KG
8012 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8013 choke me
8014 #endif
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020if ac_fn_c_try_compile "$LINENO"; then :
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h. */
8023#include <mpc.h>
8024int
8025main ()
8026{
8027
8028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8029 choke me
8030 #endif
8031
8032 ;
8033 return 0;
8034}
8035_ACEOF
5213506e
RW
8036if ac_fn_c_try_compile "$LINENO"; then :
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8038$as_echo "yes" >&6; }
362c6d2f
KG
8039else
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8041$as_echo "buggy but acceptable" >&6; }
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8044else
5213506e 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8046$as_echo "no" >&6; }; have_gmp=no
acd26225 8047fi
5213506e 8048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8049 fi
8050
8051 # Now check the MPFR library.
8052 if test x"$have_gmp" = xyes; then
8053 saved_LIBS="$LIBS"
8054 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8056$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8058/* end confdefs.h. */
3a5729ea 8059#include <mpc.h>
acd26225
KG
8060int
8061main ()
8062{
8063
8064 mpfr_t n;
8065 mpfr_t x;
3a5729ea 8066 mpc_t c;
acd26225
KG
8067 int t;
8068 mpfr_init (n);
8069 mpfr_init (x);
90ca6847
TB
8070 mpfr_atan2 (n, n, x, MPFR_RNDN);
8071 mpfr_erfc (n, x, MPFR_RNDN);
8072 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8073 mpfr_clear(n);
8074 mpfr_clear(x);
8075 mpc_init2 (c, 53);
8076 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8077 mpc_cosh (c, c, MPC_RNDNN);
8078 mpc_pow (c, c, c, MPC_RNDNN);
8079 mpc_acosh (c, c, MPC_RNDNN);
8080 mpc_clear (c);
1c710c3c
DJ
8081
8082 ;
8083 return 0;
8084}
8085_ACEOF
5213506e
RW
8086if ac_fn_c_try_link "$LINENO"; then :
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088$as_echo "yes" >&6; }
1c710c3c 8089else
5213506e
RW
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8092fi
5213506e
RW
8093rm -f core conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8095 LIBS="$saved_LIBS"
8096 fi
8097
e69bf64b 8098 CFLAGS="$saved_CFLAGS"
6de9cd9a 8099
362c6d2f
KG
8100# The library versions listed in the error message below should match
8101# the HARD-minimums enforced above.
e69bf64b 8102 if test x$have_gmp != xyes; then
8be34204 8103 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8104Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8105their locations. Source code for these libraries can be found at
8106their respective hosting sites as well as at
aeebd94c 8107https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
8108http://gcc.gnu.org/install/prerequisites.html for additional info. If
8109you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8110make sure that you have installed both the libraries and the header
8111files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8112 fi
70ec446f
KG
8113fi
8114
acd26225
KG
8115# Flags needed for both GMP, MPFR and/or MPC.
8116
8117
6de9cd9a
DN
8118
8119
8120
9e3eba15 8121
0ff2d841 8122
0b21f5d3 8123# Libraries to use for stage1 or when not bootstrapping.
00020c16 8124
0b21f5d3
EB
8125# Check whether --with-stage1-libs was given.
8126if test "${with_stage1_libs+set}" = set; then :
8127 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8128 stage1_libs=
00020c16 8129 else
0b21f5d3 8130 stage1_libs=$withval
00020c16
ILT
8131 fi
8132else
5dc85f7e 8133 stage1_libs=
5213506e
RW
8134fi
8135
00020c16
ILT
8136
8137
aac9103b
TT
8138# Whether or not to use -static-libstdc++ and -static-libgcc. The
8139# default is yes if gcc is being built; no otherwise. The reason for
8140# this default is that gdb is sometimes linked against GNU Source
8141# Highlight, which is a shared library that uses C++ exceptions. In
8142# this case, -static-libstdc++ will cause crashes.
8143
8144# Check whether --with-static-standard-libraries was given.
8145if test "${with_static_standard_libraries+set}" = set; then :
8146 withval=$with_static_standard_libraries;
8147else
8148 with_static_standard_libraries=auto
8149fi
8150
8151if test "$with_static_standard_libraries" = auto; then
8152 with_static_standard_libraries=$have_compiler
8153fi
8154
0b21f5d3 8155# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8156
0b21f5d3
EB
8157# Check whether --with-stage1-ldflags was given.
8158if test "${with_stage1_ldflags+set}" = set; then :
8159 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8160 stage1_ldflags=
00020c16 8161 else
0b21f5d3 8162 stage1_ldflags=$withval
00020c16
ILT
8163 fi
8164else
0b21f5d3
EB
8165 stage1_ldflags=
8166 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8167 # if supported. But if the user explicitly specified the libraries to use,
8168 # trust that they are doing what they want.
aac9103b
TT
8169 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8170 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8171 stage1_ldflags="-static-libstdc++ -static-libgcc"
8172 fi
5213506e
RW
8173fi
8174
00020c16
ILT
8175
8176
5dc85f7e 8177# Libraries to use for stage2 and later builds.
00020c16 8178
5213506e
RW
8179# Check whether --with-boot-libs was given.
8180if test "${with_boot_libs+set}" = set; then :
8181 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8182 poststage1_libs=
8183 else
8184 poststage1_libs=$withval
8185 fi
8186else
5dc85f7e 8187 poststage1_libs=
5213506e
RW
8188fi
8189
00020c16
ILT
8190
8191
ed2eaa9f
ILT
8192# Linker flags to use for stage2 and later builds.
8193
8194# Check whether --with-boot-ldflags was given.
8195if test "${with_boot_ldflags+set}" = set; then :
8196 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8197 poststage1_ldflags=
8198 else
8199 poststage1_ldflags=$withval
8200 fi
8201else
8202 poststage1_ldflags=
bec93d73
ILT
8203 # In stages 2 and 3, default to linking libstdc++ and libgcc
8204 # statically. But if the user explicitly specified the libraries to
8205 # use, trust that they are doing what they want.
8206 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8207 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8208 fi
8209fi
8210
8211
8212
e357a5e0 8213# GCC GRAPHITE dependency isl.
4a9bb2aa 8214# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8215
8216
33ad93b9
RG
8217# Check whether --with-isl was given.
8218if test "${with_isl+set}" = set; then :
8219 withval=$with_isl;
5213506e 8220fi
f8bf9252 8221
f8bf9252 8222
eae1a5d4 8223# Treat --without-isl as a request to disable
625afa23 8224# GRAPHITE support and skip all following checks.
eae1a5d4 8225if test "x$with_isl" != "xno"; then
e357a5e0 8226 # Check for isl
625afa23
RG
8227
8228
33ad93b9
RG
8229# Check whether --with-isl-include was given.
8230if test "${with_isl_include+set}" = set; then :
8231 withval=$with_isl_include;
5213506e
RW
8232fi
8233
f8bf9252 8234
33ad93b9
RG
8235# Check whether --with-isl-lib was given.
8236if test "${with_isl_lib+set}" = set; then :
8237 withval=$with_isl_lib;
5213506e 8238fi
f8bf9252 8239
f8bf9252 8240
33ad93b9
RG
8241 # Check whether --enable-isl-version-check was given.
8242if test "${enable_isl_version_check+set}" = set; then :
8243 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8244else
8245 ENABLE_ISL_CHECK=yes
7d32a440
SP
8246fi
8247
8248
33ad93b9
RG
8249 # Initialize isllibs and islinc.
8250 case $with_isl in
8251 no)
8252 isllibs=
8253 islinc=
8254 ;;
8255 "" | yes)
8256 ;;
8257 *)
8258 isllibs="-L$with_isl/lib"
8259 islinc="-I$with_isl/include"
8260 ;;
8261 esac
8262 if test "x${with_isl_include}" != x ; then
8263 islinc="-I$with_isl_include"
8264 fi
8265 if test "x${with_isl_lib}" != x; then
8266 isllibs="-L$with_isl_lib"
8267 fi
8268 if test "x${islinc}" = x && test "x${isllibs}" = x \
8269 && test -d ${srcdir}/isl; then
8270 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8271 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8272 ENABLE_ISL_CHECK=no
560d18d3
AK
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8274$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8275 fi
7d32a440 8276
eae1a5d4
RG
8277 isllibs="${isllibs} -lisl"
8278
7d32a440 8279
7d32a440 8280
9847828b
RB
8281 if test "${ENABLE_ISL_CHECK}" = yes ; then
8282 _isl_saved_CFLAGS=$CFLAGS
8283 _isl_saved_LDFLAGS=$LDFLAGS
8284 _isl_saved_LIBS=$LIBS
8285
8286 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8287 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8288 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8289
f877b3ad
RB
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8291$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8293/* end confdefs.h. */
f877b3ad 8294#include <isl/schedule.h>
622dbadf
BC
8295int
8296main ()
8297{
f877b3ad 8298isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303if ac_fn_c_try_link "$LINENO"; then :
9847828b 8304 gcc_cv_isl=yes
622dbadf
BC
8305else
8306 gcc_cv_isl=no
8307fi
8308rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8311$as_echo "$gcc_cv_isl" >&6; }
8312
560d18d3 8313 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8315$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8316 fi
8317
9847828b
RB
8318 CFLAGS=$_isl_saved_CFLAGS
8319 LDFLAGS=$_isl_saved_LDFLAGS
8320 LIBS=$_isl_saved_LIBS
8321 fi
8322
8323
f8bf9252 8324
f8bf9252 8325
33ad93b9
RG
8326
8327
33ad93b9
RG
8328 if test "x${with_isl}" = xno; then
8329 graphite_requested=no
8330 elif test "x${with_isl}" != x \
8331 || test "x${with_isl_include}" != x \
8332 || test "x${with_isl_lib}" != x ; then
8333 graphite_requested=yes
8334 else
8335 graphite_requested=no
7d32a440 8336 fi
d789184e 8337
d789184e
SP
8338
8339
33ad93b9
RG
8340 if test "${gcc_cv_isl}" = no ; then
8341 isllibs=
8342 islinc=
8343 fi
8344
8345 if test "${graphite_requested}" = yes \
8346 && test "x${isllibs}" = x \
8347 && test "x${islinc}" = x ; then
f8bf9252 8348
22e05272 8349 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8350 fi
f8bf9252 8351
d32ef397 8352
d32ef397
AS
8353fi
8354
e357a5e0 8355# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8356if test "x$with_isl" = xno ||
625afa23 8357 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8358 noconfigdirs="$noconfigdirs isl"
625afa23 8359 islinc=
32d024bf
RG
8360fi
8361
625afa23
RG
8362
8363
8364
d7f09764
DN
8365# Check for LTO support.
8366# Check whether --enable-lto was given.
8367if test "${enable_lto+set}" = set; then :
8368 enableval=$enable_lto; enable_lto=$enableval
8369else
8370 enable_lto=yes; default_enable_lto=yes
8371fi
8372
8373
7413962d 8374
9a02962b
DK
8375
8376
8377target_elf=no
8378case $target in
8379 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8380 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8381 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8382 nvptx-*-none)
9a02962b
DK
8383 target_elf=no
8384 ;;
8385 *)
8386 target_elf=yes
8387 ;;
8388esac
8389
8390if test $target_elf = yes; then :
48215350
DK
8391 # ELF platforms build the lto-plugin always.
8392 build_lto_plugin=yes
9a02962b 8393
9a02962b
DK
8394else
8395 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8396 case $target in
deeba76a 8397 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8398 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8399 *) enable_lto=no ;;
8400 esac
9a02962b 8401 else
db50fe7d
IS
8402 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8403 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8404 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8405 # warn during gcc/ subconfigure; unless you're bootstrapping with
8406 # -flto it won't be needed until after installation anyway.
8407 case $target in
9e530bcd 8408 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8409 *) if test x"$enable_lto" = x"yes"; then
22e05272 8410 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8411 fi
8412 ;;
8413 esac
8414 fi
1cd0b716 8415 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8416 # Build it unless LTO was explicitly disabled.
1cd0b716 8417 case $target in
48215350 8418 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8419 *) ;;
8420 esac
48215350 8421
9a02962b
DK
8422fi
8423
d7f09764 8424
45b3824d
TS
8425# Check whether --enable-linker-plugin-configure-flags was given.
8426if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8427 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8428else
8429 extra_linker_plugin_configure_flags=
8430fi
8431
8432
8433# Check whether --enable-linker-plugin-flags was given.
8434if test "${enable_linker_plugin_flags+set}" = set; then :
8435 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8436else
8437 extra_linker_plugin_flags=
8438fi
8439
8440
8441
cdfee50a
NS
8442# Enable --enable-host-shared.
8443# Checked early to determine whether jit is an 'all' language
8444# Check whether --enable-host-shared was given.
8445if test "${enable_host_shared+set}" = set; then :
8446 enableval=$enable_host_shared; host_shared=$enableval
8447else
8448 host_shared=no
8449fi
8450
8451
f8bf9252 8452
0823efed 8453# By default, C and C++ are the only stage 1 languages.
e1888513 8454stage1_languages=,c,
2805b53a 8455
00020c16 8456# Target libraries that we bootstrap.
ad1e5170 8457bootstrap_target_libs=,target-libgcc,
00020c16 8458
55ffb5ed
NN
8459# Figure out what language subdirectories are present.
8460# Look if the user specified --enable-languages="..."; if not, use
8461# the environment variable $LANGUAGES if defined. $LANGUAGES might
8462# go away some day.
8463# NB: embedded tabs in this IF block -- do not untabify
8464if test -d ${srcdir}/gcc; then
8465 if test x"${enable_languages+set}" != xset; then
8466 if test x"${LANGUAGES+set}" = xset; then
8467 enable_languages="${LANGUAGES}"
6b1786aa 8468 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8469 else
cdfee50a 8470 enable_languages=default
55ffb5ed
NN
8471 fi
8472 else
8473 if test x"${enable_languages}" = x ||
8474 test x"${enable_languages}" = xyes;
8475 then
6b1786aa 8476 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8477 exit 1
8478 fi
8479 fi
8480 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8481
7f26dfa3
FXC
8482 # 'f95' is the old name for the 'fortran' language. We issue a warning
8483 # and make the substitution.
8484 case ,${enable_languages}, in
8485 *,f95,*)
6b1786aa 8486 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8487 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8488 ;;
8489 esac
8490
0823efed
DN
8491 # If bootstrapping, C++ must be enabled.
8492 case ",$enable_languages,:$enable_bootstrap" in
8493 *,c++,*:*) ;;
8494 *:yes)
ff3ac0f4
ILT
8495 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8496 enable_languages="${enable_languages},c++"
8497 else
22e05272 8498 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8499 fi
8500 ;;
8501 esac
8502
55ffb5ed
NN
8503 # First scan to see if an enabled language requires some other language.
8504 # We assume that a given config-lang.in will list all the language
8505 # front ends it requires, even if some are required indirectly.
8506 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8507 case ${lang_frag} in
8508 ..) ;;
8509 # The odd quoting in the next line works around
8510 # an apparent bug in bash 1.12 on linux.
8511 ${srcdir}/gcc/[*]/config-lang.in) ;;
8512 *)
69ecd18f
ILT
8513 # From the config-lang.in, get $language, $lang_requires, and
8514 # $lang_requires_boot_languages.
55ffb5ed
NN
8515 language=
8516 lang_requires=
69ecd18f 8517 lang_requires_boot_languages=
d4360477
NS
8518 # set srcdir during sourcing lang_frag to the gcc dir.
8519 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8520 # polutes this shell
8521 saved_srcdir=${srcdir}
8522 srcdir=${srcdir}/gcc . ${lang_frag}
8523 srcdir=${saved_srcdir}
69ecd18f 8524 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8525 case ,${enable_languages}, in
8526 *,$other,*) ;;
cdfee50a 8527 *,default,*) ;;
55ffb5ed
NN
8528 *,all,*) ;;
8529 *,$language,*)
8530 echo " \`$other' language required by \`$language'; enabling" 1>&2
8531 enable_languages="${enable_languages},${other}"
8532 ;;
8533 esac
8534 done
69ecd18f
ILT
8535 for other in ${lang_requires_boot_languages} ; do
8536 if test "$other" != "c"; then
8537 case ,${enable_stage1_languages}, in
8538 *,$other,*) ;;
cdfee50a 8539 *,default,*) ;;
69ecd18f
ILT
8540 *,all,*) ;;
8541 *)
8542 case ,${enable_languages}, in
8543 *,$language,*)
8544 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8545 enable_stage1_languages="$enable_stage1_languages,${other}"
8546 ;;
8547 esac
8548 ;;
8549 esac
8550 fi
8551 done
55ffb5ed
NN
8552 ;;
8553 esac
8554 done
8555
e1888513 8556 new_enable_languages=,c,
d7f09764
DN
8557
8558 # If LTO is enabled, add the LTO front end.
d7f09764 8559 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8560 case ,${enable_languages}, in
8561 *,lto,*) ;;
8562 *) enable_languages="${enable_languages},lto" ;;
8563 esac
1cd0b716 8564 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8565 configdirs="$configdirs lto-plugin"
d7f09764
DN
8566 fi
8567 fi
8568
426c1eb0
TS
8569 # If we're building an offloading compiler, add the LTO front end.
8570 if test x"$enable_as_accelerator_for" != x ; then
8571 case ,${enable_languages}, in
8572 *,lto,*) ;;
8573 *) enable_languages="${enable_languages},lto" ;;
8574 esac
8575 fi
8576
cdfee50a 8577 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8578 potential_languages=,c,
55ffb5ed 8579
4da3b0f8
ILT
8580 enabled_target_libs=
8581 disabled_target_libs=
8582
55ffb5ed
NN
8583 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8584 case ${lang_frag} in
8585 ..) ;;
8586 # The odd quoting in the next line works around
8587 # an apparent bug in bash 1.12 on linux.
8588 ${srcdir}/gcc/[*]/config-lang.in) ;;
8589 *)
1c710c3c 8590 # From the config-lang.in, get $language, $target_libs,
2805b53a 8591 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8592 language=
8593 target_libs=
8594 lang_dirs=
1546bb64 8595 subdir_requires=
e1888513
PB
8596 boot_language=no
8597 build_by_default=yes
d4360477
NS
8598 # set srcdir during sourcing. See above about save & restore
8599 saved_srcdir=${srcdir}
8600 srcdir=${srcdir}/gcc . ${lang_frag}
8601 srcdir=${saved_srcdir}
e1888513
PB
8602 if test x${language} = x; then
8603 echo "${lang_frag} doesn't set \$language." 1>&2
8604 exit 1
8605 fi
8606
78767fd9 8607 if test "$language" = "c++"; then
0823efed 8608 boot_language=yes
00020c16
ILT
8609 fi
8610
178f875a 8611 add_this_lang=no
cdfee50a
NS
8612 # C is always enabled, so no need to add it again
8613 if test "$language" != "c"; then
8614 case ,${enable_languages}, in
8615 *,${language},*)
8616 # Language was explicitly selected; include it
d4a10d0a 8617 add_this_lang=yes
cdfee50a
NS
8618 ;;
8619 *,all,*)
8620 # All languages are enabled
8621 add_this_lang=all
8622 ;;
8623 *,default,*)
8624 # 'default' was selected, select it if it is a default language
178f875a 8625 add_this_lang=${build_by_default}
cdfee50a
NS
8626 ;;
8627 esac
8628 fi
6de9cd9a 8629
1546bb64 8630 # Disable languages that need other directories if these aren't available.
95695ad3 8631 for i in $subdir_requires; do
b6348cb3 8632 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8633 case ${add_this_lang} in
8634 yes)
1546bb64 8635 # Specifically requested language; tell them.
22e05272 8636 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8637 ;;
cdfee50a
NS
8638 all)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8640$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8641 add_this_lang=unsupported
8642 ;;
1546bb64
PB
8643 *)
8644 # Silently disable.
e1888513 8645 add_this_lang=unsupported
1546bb64
PB
8646 ;;
8647 esac
8648 done
8649
e1888513 8650 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8651 case ${add_this_lang}:${language}:${have_gnat} in
8652 yes:ada:no)
e1888513 8653 # Specifically requested language; tell them.
22e05272 8654 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8655 ;;
cdfee50a
NS
8656 all:ada:no)
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8658$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8659 add_this_lang=unsupported
8660 ;;
e1888513
PB
8661 *:ada:no)
8662 # Silently disable.
8663 add_this_lang=unsupported
8664 ;;
8665 esac
8666
cdfee50a 8667 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8668 # but not if building for Mingw. All code in Windows
8669 # is position independent code (PIC).
c83027f3
NB
8670 case $target in
8671 *mingw*) ;;
8672 *)
8673 case ${add_this_lang}:${language}:${host_shared} in
8674 yes:jit:no)
8675 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8676 as_fn_error $? "
cdfee50a
NS
8677Enabling language \"jit\" requires --enable-host-shared.
8678
8679--enable-host-shared typically slows the rest of the compiler down by
8680a few %, so you must explicitly enable it.
8681
8682If you want to build both the jit and the regular compiler, it is often
8683best to do this via two separate configure/builds, in separate
8684directories, to avoid imposing the performance cost of
8685--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8686 ;;
8687 all:jit:no)
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8689$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8690 add_this_lang=unsupported
8691 ;;
8692 *:jit:no)
8693 # Silently disable.
8694 add_this_lang=unsupported
8695 ;;
8696 esac
8697 ;;
8698 esac
cdfee50a
NS
8699
8700 # Disable a language that is unsupported by the target.
8701 case "${add_this_lang}: $unsupported_languages " in
8702 no:*) ;;
8703 unsupported:*) ;;
8704 *:*" $language "*)
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8706$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8707 add_this_lang=unsupported
4fab7234
HPN
8708 ;;
8709 esac
8710
6de9cd9a 8711 case $add_this_lang in
e1888513 8712 unsupported)
55ffb5ed 8713 # Remove language-dependent dirs.
4da3b0f8
ILT
8714 disabled_target_libs="$disabled_target_libs $target_libs"
8715 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8716 ;;
e1888513
PB
8717 no)
8718 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8719 disabled_target_libs="$disabled_target_libs $target_libs"
8720 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8721 potential_languages="${potential_languages}${language},"
8722 ;;
cdfee50a 8723 all|yes)
e1888513
PB
8724 new_enable_languages="${new_enable_languages}${language},"
8725 potential_languages="${potential_languages}${language},"
2805b53a 8726 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8727 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8728 case "${boot_language}:,$enable_stage1_languages," in
8729 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8730 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8731 case ",$stage1_languages," in
8732 *,$language,* | ,yes, | ,all,) ;;
8733 *) stage1_languages="${stage1_languages}${language}," ;;
8734 esac
00020c16
ILT
8735 # We need to bootstrap any supporting libraries.
8736 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
8737 ;;
8738 esac
8739 ;;
55ffb5ed
NN
8740 esac
8741 ;;
8742 esac
8743 done
8744
4da3b0f8
ILT
8745 # Add target libraries which are only needed for disabled languages
8746 # to noconfigdirs.
8747 if test -n "$disabled_target_libs"; then
8748 for dir in $disabled_target_libs; do
8749 case " $enabled_target_libs " in
8750 *" ${dir} "*) ;;
8751 *) noconfigdirs="$noconfigdirs $dir" ;;
8752 esac
8753 done
8754 fi
8755
5213506e
RW
8756 # Check whether --enable-stage1-languages was given.
8757if test "${enable_stage1_languages+set}" = set; then :
8758 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8759 ,no,|,,)
8760 # Set it to something that will have no effect in the loop below
8761 enable_stage1_languages=c ;;
8762 ,yes,)
8763 enable_stage1_languages=`echo $new_enable_languages | \
8764 sed -e "s/^,//" -e "s/,$//" ` ;;
8765 *,all,*)
8766 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8767 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8768 esac
8769
8770 # Add "good" languages from enable_stage1_languages to stage1_languages,
8771 # while "bad" languages go in missing_languages. Leave no duplicates.
8772 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8773 case $potential_languages in
8774 *,$i,*)
8775 case $stage1_languages in
8776 *,$i,*) ;;
8777 *) stage1_languages="$stage1_languages$i," ;;
8778 esac ;;
8779 *)
8780 case $missing_languages in
8781 *,$i,*) ;;
8782 *) missing_languages="$missing_languages$i," ;;
8783 esac ;;
8784 esac
8785 done
5213506e
RW
8786fi
8787
e1888513
PB
8788
8789 # Remove leading/trailing commas that were added for simplicity
8790 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8791 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8792 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8793 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8794
55ffb5ed 8795 if test "x$missing_languages" != x; then
22e05272 8796 as_fn_error $? "
0cf085e4 8797The following requested languages could not be built: ${missing_languages}
5213506e 8798Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8799 fi
55ffb5ed
NN
8800 if test "x$new_enable_languages" != "x$enable_languages"; then
8801 echo The following languages will be built: ${new_enable_languages}
e1888513 8802 enable_languages="$new_enable_languages"
55ffb5ed 8803 fi
e1888513 8804
1c710c3c 8805
b2eaac4a 8806 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8807fi
8808
27079765
AH
8809# Handle --disable-<component> generically.
8810for dir in $configdirs $build_configdirs $target_configdirs ; do
8811 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
8812 varname=`echo $dirname | sed -e s/+/_/g`
8813 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
8814 noconfigdirs="$noconfigdirs $dir"
8815 fi
8816done
8817
43c40f3e
RO
8818# Check for Boehm's garbage collector
8819# Check whether --enable-objc-gc was given.
8820if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
8821 enableval=$enable_objc_gc;
8822fi
8823
8824
8825# Check whether --with-target-bdw-gc was given.
8826if test "${with_target_bdw_gc+set}" = set; then :
8827 withval=$with_target_bdw_gc;
8828fi
8829
8830
8831# Check whether --with-target-bdw-gc-include was given.
8832if test "${with_target_bdw_gc_include+set}" = set; then :
8833 withval=$with_target_bdw_gc_include;
8834fi
8835
8836
8837# Check whether --with-target-bdw-gc-lib was given.
8838if test "${with_target_bdw_gc_lib+set}" = set; then :
8839 withval=$with_target_bdw_gc_lib;
8840fi
8841
8842
8843case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8845$as_echo_n "checking for bdw garbage collector... " >&6; }
8846 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8848$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
8849 else
8850 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 8851 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 8852 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 8853 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
8854 else
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8856$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8857 fi
8858 fi
43c40f3e
RO
8859esac
8860
5e9d6aa4 8861# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 8862case ,${enable_languages}, in
1007a55c 8863 *,c++,*)
5e9d6aa4 8864 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
8865 case "${noconfigdirs}" in
8866 *target-libstdc++-v3*)
5e9d6aa4 8867 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
8868 ;;
8869 *) ;;
8870 esac
8871 ;;
99776ebd 8872 *)
5e9d6aa4 8873 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
8874 ;;
8875esac
8876
ee6a22df
L
8877# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8878# $build_configdirs and $target_configdirs.
55ffb5ed
NN
8879# If we have the source for $noconfigdirs entries, add them to $notsupp.
8880
8881notsupp=""
8882for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 8883 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
8884 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8885 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8886 if test -r $srcdir/$dirname/configure ; then
8887 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8888 true
8889 else
8890 notsupp="$notsupp $dir"
8891 fi
8892 fi
8893 fi
ee6a22df
L
8894 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8895 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8896 if test -r $srcdir/$dirname/configure ; then
8897 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8898 true
8899 else
8900 notsupp="$notsupp $dir"
8901 fi
8902 fi
8903 fi
55ffb5ed
NN
8904 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8905 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8906 if test -r $srcdir/$dirname/configure ; then
8907 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8908 true
8909 else
8910 notsupp="$notsupp $dir"
8911 fi
8912 fi
8913 fi
8914done
8915
55ffb5ed
NN
8916# Quietly strip out all directories which aren't configurable in this tree.
8917# This relies on all configurable subdirectories being autoconfiscated, which
8918# is now the case.
23f6b2f9
PB
8919build_configdirs_all="$build_configdirs"
8920build_configdirs=
8921for i in ${build_configdirs_all} ; do
1c710c3c 8922 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
8923 if test -f ${srcdir}/$j/configure ; then
8924 build_configdirs="${build_configdirs} $i"
8925 fi
8926done
8927
55ffb5ed
NN
8928configdirs_all="$configdirs"
8929configdirs=
8930for i in ${configdirs_all} ; do
8931 if test -f ${srcdir}/$i/configure ; then
8932 configdirs="${configdirs} $i"
8933 fi
8934done
23f6b2f9 8935
55ffb5ed
NN
8936target_configdirs_all="$target_configdirs"
8937target_configdirs=
8938for i in ${target_configdirs_all} ; do
1c710c3c 8939 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
8940 if test -f ${srcdir}/$j/configure ; then
8941 target_configdirs="${target_configdirs} $i"
8942 fi
8943done
8944
45b3824d
TS
8945# libiberty-linker-plugin is special: it doesn't have its own source directory,
8946# so we have to add it after the preceding checks.
8947if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8948then
8949 case " $configdirs " in
8950 *" libiberty "*)
8951 # If we can build libiberty, we can also build libiberty-linker-plugin.
8952 configdirs="$configdirs libiberty-linker-plugin"
8953 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8954 --with-libiberty=../libiberty-linker-plugin";;
8955 *)
22e05272 8956 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
8957 esac
8958fi
8959
fca38047
TS
8960# Sometimes we have special requirements for the host libiberty.
8961extra_host_libiberty_configure_flags=
1c01ebf6 8962extra_host_zlib_configure_flags=
fca38047
TS
8963case " $configdirs " in
8964 *" lto-plugin "* | *" libcc1 "*)
8965 # When these are to be built as shared libraries, the same applies to
8966 # libiberty.
8967 extra_host_libiberty_configure_flags=--enable-shared
8968 ;;
1c01ebf6
L
8969 *" bfd "*)
8970 # When bfd is to be built as a shared library, the same applies to
8971 # zlib.
8972 if test "$enable_shared" = "yes"; then
8973 extra_host_zlib_configure_flags=--enable-host-shared
8974 fi
8975 ;;
fca38047
TS
8976esac
8977
8978
1c01ebf6 8979
55ffb5ed
NN
8980# Produce a warning message for the subdirs we can't configure.
8981# This isn't especially interesting in the Cygnus tree, but in the individual
8982# FSF releases, it's important to let people know when their machine isn't
8983# supported by the one or two programs in a package.
8984
8985if test -n "${notsupp}" && test -z "${norecursion}" ; then
8986 # If $appdirs is non-empty, at least one of those directories must still
8987 # be configured, or we error out. (E.g., if the gas release supports a
8988 # specified target in some subdirs but not the gas subdir, we shouldn't
8989 # pretend that all is well.)
8990 if test -n "$appdirs" ; then
8991 for dir in $appdirs ; do
8992 if test -r $dir/Makefile.in ; then
8993 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8994 appdirs=""
8995 break
8996 fi
23f6b2f9 8997 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
8998 appdirs=""
8999 break
9000 fi
9001 fi
9002 done
9003 if test -n "$appdirs" ; then
9004 echo "*** This configuration is not supported by this package." 1>&2
9005 exit 1
9006 fi
9007 fi
9008 # Okay, some application will build, or we don't care to check. Still
9009 # notify of subdirs not getting built.
9010 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9011 echo " ${notsupp}" 1>&2
9012 echo " (Any other directories should still work fine.)" 1>&2
9013fi
9014
9015case "$host" in
9016 *msdosdjgpp*)
9017 enable_gdbtk=no ;;
9018esac
9019
c3a86da9
DJ
9020# To find our prefix, in gcc_cv_tool_prefix.
9021
9022# The user is always right.
9023if test "${PATH_SEPARATOR+set}" != set; then
9024 echo "#! /bin/sh" >conf$$.sh
9025 echo "exit 0" >>conf$$.sh
9026 chmod +x conf$$.sh
9027 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9028 PATH_SEPARATOR=';'
9029 else
9030 PATH_SEPARATOR=:
9031 fi
9032 rm -f conf$$.sh
9033fi
9034
9035
3c36aa6b
JJ
9036 get_gcc_base_ver="cat"
9037
9038# Check whether --with-gcc-major-version-only was given.
9039if test "${with_gcc_major_version_only+set}" = set; then :
9040 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9041 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9042 fi
9043
9044fi
9045
9046
9047
9048
9049
c3a86da9
DJ
9050
9051if test "x$exec_prefix" = xNONE; then
9052 if test "x$prefix" = xNONE; then
9053 gcc_cv_tool_prefix=$ac_default_prefix
9054 else
9055 gcc_cv_tool_prefix=$prefix
9056 fi
9057else
9058 gcc_cv_tool_prefix=$exec_prefix
9059fi
9060
9061# If there is no compiler in the tree, use the PATH only. In any
9062# case, if there is no compiler in the tree nobody should use
9063# AS_FOR_TARGET and LD_FOR_TARGET.
9064if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9065 if test x$with_gcc_major_version_only = xyes ; then
9066 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9067 else
9068 gcc_version=`cat $srcdir/gcc/BASE-VER`
9069 fi
c3a86da9
DJ
9070 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9071 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9072 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9073 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9074 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9075 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9076else
9077 gcc_cv_tool_dirs=
9078fi
9079
9080if test x$build = x$target && test -n "$md_exec_prefix"; then
9081 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9082fi
9083
9084
9085
55ffb5ed
NN
9086copy_dirs=
9087
1c710c3c 9088
5213506e
RW
9089# Check whether --with-build-sysroot was given.
9090if test "${with_build_sysroot+set}" = set; then :
9091 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9092 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9093 fi
9094else
9095 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9096fi
526635cb
MM
9097
9098
c8aea42c 9099
5213506e
RW
9100
9101# Check whether --with-debug-prefix-map was given.
9102if test "${with_debug_prefix_map+set}" = set; then :
9103 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9104 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9105 for debug_map in $withval; do
9106 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9107 done
9108 fi
9109else
9110 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9111fi
9112
c8aea42c
PB
9113
9114
1c8bd6a3
PB
9115# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9116# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9117# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9118# We want to ensure that TARGET libraries (which we know are built with
9119# gcc) are built with "-O2 -g", so include those options when setting
9120# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9121if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9122 if test "x${is_cross_compiler}" = xyes; then
9123 CFLAGS_FOR_TARGET="-g -O2"
9124 else
9125 CFLAGS_FOR_TARGET=$CFLAGS
9126 case " $CFLAGS " in
9127 *" -O2 "*) ;;
9128 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9129 esac
9130 case " $CFLAGS " in
9131 *" -g "* | *" -g3 "*) ;;
9132 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9133 esac
9134 fi
1c8bd6a3
PB
9135fi
9136
9137
9138if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9139 if test "x${is_cross_compiler}" = xyes; then
9140 CXXFLAGS_FOR_TARGET="-g -O2"
9141 else
9142 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9143 case " $CXXFLAGS " in
9144 *" -O2 "*) ;;
9145 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9146 esac
9147 case " $CXXFLAGS " in
9148 *" -g "* | *" -g3 "*) ;;
9149 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9150 esac
9151 fi
1c8bd6a3
PB
9152fi
9153
9154
6f57bdf6
DK
9155
9156
55ffb5ed
NN
9157# Handle --with-headers=XXX. If the value is not "yes", the contents of
9158# the named directory are copied to $(tooldir)/sys-include.
9159if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9160 if test x${is_cross_compiler} = xno ; then
9161 echo 1>&2 '***' --with-headers is only supported when cross compiling
9162 exit 1
9163 fi
9164 if test x"${with_headers}" != xyes ; then
c3a86da9 9165 x=${gcc_cv_tool_prefix}
1c710c3c 9166 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9167 fi
9168fi
9169
9170# Handle --with-libs=XXX. If the value is not "yes", the contents of
9171# the name directories are copied to $(tooldir)/lib. Multiple directories
9172# are permitted.
9173if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9174 if test x${is_cross_compiler} = xno ; then
9175 echo 1>&2 '***' --with-libs is only supported when cross compiling
9176 exit 1
9177 fi
9178 if test x"${with_libs}" != xyes ; then
9179 # Copy the libraries in reverse order, so that files in the first named
9180 # library override files in subsequent libraries.
c3a86da9 9181 x=${gcc_cv_tool_prefix}
55ffb5ed 9182 for l in ${with_libs}; do
1c710c3c 9183 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9184 done
9185 fi
9186fi
9187
d7f09764 9188# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9189#
9190# This is done by determining whether or not the appropriate directory
9191# is available, and by checking whether or not specific configurations
9192# have requested that this magic not happen.
1c710c3c
DJ
9193#
9194# The command line options always override the explicit settings in
6b1786aa 9195# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9196#
1c710c3c 9197# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9198# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9199# --without-gnu-ld options for the configure script. Similarly, if
9200# the default is to use the included zlib and you don't want to do that,
9201# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9202
9203if test x${use_gnu_as} = x &&
9204 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9205 with_gnu_as=yes
9206 extra_host_args="$extra_host_args --with-gnu-as"
9207fi
9208
9209if test x${use_gnu_ld} = x &&
5afab7ad 9210 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9211 with_gnu_ld=yes
9212 extra_host_args="$extra_host_args --with-gnu-ld"
9213fi
9214
d7f09764
DN
9215if test x${use_included_zlib} = x &&
9216 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9217 :
9218else
9219 with_system_zlib=yes
9220 extra_host_args="$extra_host_args --with-system-zlib"
9221fi
9222
e8b05380
PB
9223# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9224# can detect this case.
9225
9226if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9227 with_newlib=yes
9228 extra_host_args="$extra_host_args --with-newlib"
9229fi
9230
55ffb5ed
NN
9231# Handle ${copy_dirs}
9232set fnord ${copy_dirs}
9233shift
9234while test $# != 0 ; do
9235 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9236 :
9237 else
9238 echo Copying $1 to $2
9239
9240 # Use the install script to create the directory and all required
9241 # parent directories.
9242 if test -d $2 ; then
9243 :
9244 else
9245 echo >config.temp
9246 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9247 fi
9248
9249 # Copy the directory, assuming we have tar.
9250 # FIXME: Should we use B in the second tar? Not all systems support it.
9251 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9252
9253 # It is the responsibility of the user to correctly adjust all
9254 # symlinks. If somebody can figure out how to handle them correctly
9255 # here, feel free to add the code.
9256
9257 echo $1 > $2/COPIED
9258 fi
9259 shift; shift
9260done
9261
e8b05380
PB
9262# Determine a target-dependent exec_prefix that the installed
9263# gcc will search in. Keep this list sorted by triplet, with
9264# the *-*-osname triplets last.
9265md_exec_prefix=
9266case "${target}" in
30b74385 9267 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9268 md_exec_prefix=/dev/env/DJDIR/bin
9269 ;;
e8b05380 9270 *-*-hpux* | \
e8b05380 9271 *-*-nto-qnx* | \
6de66370 9272 *-*-solaris2*)
e8b05380
PB
9273 md_exec_prefix=/usr/ccs/bin
9274 ;;
9275esac
9276
671aa708
NN
9277extra_arflags_for_target=
9278extra_nmflags_for_target=
9279extra_ranlibflags_for_target=
9280target_makefile_frag=/dev/null
9281case "${target}" in
58e24147
AM
9282 spu-*-*)
9283 target_makefile_frag="config/mt-spu"
9284 ;;
d896cc4d 9285 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9286 target_makefile_frag="config/mt-sde"
9287 ;;
1ec3b87b
RS
9288 mipsisa*-*-elfoabi*)
9289 target_makefile_frag="config/mt-mips-elfoabi"
9290 ;;
08d0963a
RS
9291 mips*-*-*linux* | mips*-*-gnu*)
9292 target_makefile_frag="config/mt-mips-gnu"
9293 ;;
707f1839
SL
9294 nios2-*-elf*)
9295 target_makefile_frag="config/mt-nios2-elf"
9296 ;;
76052545
EB
9297 *-*-linux-android*)
9298 target_makefile_frag="config/mt-android"
9299 ;;
416ac4d4 9300 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9301 target_makefile_frag="config/mt-gnu"
671aa708
NN
9302 ;;
9303 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9304 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9305 # commands to handle both 32-bit and 64-bit objects. These flags are
9306 # harmless if we're using GNU nm or ar.
9307 extra_arflags_for_target=" -X32_64"
9308 extra_nmflags_for_target=" -B -X32_64"
9309 ;;
671aa708
NN
9310esac
9311
9312alphaieee_frag=/dev/null
9313case $target in
9314 alpha*-*-*)
9315 # This just makes sure to use the -mieee option to build target libs.
9316 # This should probably be set individually by each library.
9317 alphaieee_frag="config/mt-alphaieee"
9318 ;;
9319esac
9320
9321# If --enable-target-optspace always use -Os instead of -O2 to build
9322# the target libraries, similarly if it is not specified, use -Os
9323# on selected platforms.
9324ospace_frag=/dev/null
9325case "${enable_target_optspace}:${target}" in
9326 yes:*)
9327 ospace_frag="config/mt-ospace"
9328 ;;
9329 :d30v-*)
9330 ospace_frag="config/mt-d30v"
9331 ;;
d9063947 9332 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9333 ospace_frag="config/mt-ospace"
9334 ;;
9335 no:* | :*)
9336 ;;
9337 *)
9338 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9339 ;;
9340esac
9341
671aa708
NN
9342# Some systems (e.g., one of the i386-aix systems the gas testers are
9343# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9344tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9345build_tooldir=${tooldir}
9346
671aa708
NN
9347# Create a .gdbinit file which runs the one in srcdir
9348# and tells GDB to look there for source files.
9349
9350if test -r ${srcdir}/.gdbinit ; then
9351 case ${srcdir} in
9352 .) ;;
9353 *) cat > ./.gdbinit <<EOF
9354# ${NO_EDIT}
9355dir ${srcdir}
9356dir .
9357source ${srcdir}/.gdbinit
9358EOF
9359 ;;
9360 esac
9361fi
9362
671aa708
NN
9363# Make sure that the compiler is able to generate an executable. If it
9364# can't, we are probably in trouble. We don't care whether we can run the
9365# executable--we might be using a cross compiler--we only care whether it
9366# can be created. At this point the main configure script has set CC.
9367we_are_ok=no
9368echo "int main () { return 0; }" > conftest.c
9369${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9370if test $? = 0 ; then
9371 if test -s conftest || test -s conftest.exe ; then
9372 we_are_ok=yes
9373 fi
1c710c3c 9374fi
671aa708
NN
9375case $we_are_ok in
9376 no)
9377 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9378 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9379 rm -f conftest*
9380 exit 1
9381 ;;
9382esac
9383rm -f conftest*
9384
d89f0ad6 9385# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9386case "${host}" in
9387 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9388 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9389 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9390 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9391esac
9392
d89f0ad6
AL
9393# On systems where the dynamic library environment variable is PATH,
9394# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9395# built executables to PATH.
9396if test "$RPATH_ENVVAR" = PATH; then
9397 GCC_SHLIB_SUBDIR=/shlib
9398else
9399 GCC_SHLIB_SUBDIR=
9400fi
9401
beeda1d9
JJ
9402# Adjust the toplevel makefile according to whether bootstrap was selected.
9403case $enable_bootstrap in
9404 yes)
9405 bootstrap_suffix=bootstrap
9406 BUILD_CONFIG=bootstrap-debug
9407 ;;
9408 no)
9409 bootstrap_suffix=no-bootstrap
9410 BUILD_CONFIG=
9411 ;;
9412esac
9413
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9415$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9416
9417
9418# Check whether --with-build-config was given.
9419if test "${with_build_config+set}" = set; then :
9420 withval=$with_build_config; case $with_build_config in
9421 yes) with_build_config= ;;
9422 no) with_build_config= BUILD_CONFIG= ;;
9423 esac
9424fi
9425
9426
9427if test "x${with_build_config}" != x; then
9428 BUILD_CONFIG=$with_build_config
9429else
9430 case $BUILD_CONFIG in
9431 bootstrap-debug)
9432 if echo "int f (void) { return 0; }" > conftest.c &&
9433 ${CC} -c conftest.c &&
9434 mv conftest.o conftest.o.g0 &&
9435 ${CC} -c -g conftest.c &&
9436 mv conftest.o conftest.o.g &&
9437 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9438 :
9439 else
9440 BUILD_CONFIG=
9441 fi
9442 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9443 ;;
9444 esac
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9447$as_echo "$BUILD_CONFIG" >&6; }
9448
9449
9450# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9452$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9453# Check whether --enable-vtable-verify was given.
9454if test "${enable_vtable_verify+set}" = set; then :
9455 enableval=$enable_vtable_verify; case "$enableval" in
9456 yes) enable_vtable_verify=yes ;;
9457 no) enable_vtable_verify=no ;;
9458 *) enable_vtable_verify=no;;
9459 esac
9460else
9461 enable_vtable_verify=no
9462fi
9463
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9465$as_echo "$enable_vtable_verify" >&6; }
9466
671aa708
NN
9467# Record target_configdirs and the configure arguments for target and
9468# build configuration in Makefile.
9469target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9470build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9471bootstrap_fixincludes=no
671aa708 9472
ad1e5170
JR
9473# If we are building libgomp, bootstrap it.
9474if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9475 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9476fi
9477
beeda1d9
JJ
9478# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9479# or bootstrap-ubsan, bootstrap it.
9480if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9481 case "$BUILD_CONFIG" in
170e618e 9482 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9483 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9484 bootstrap_fixincludes=yes
beeda1d9
JJ
9485 ;;
9486 esac
ac8701fe
L
9487fi
9488
beeda1d9
JJ
9489# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9490if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9491 test "$enable_vtable_verify" != no; then
2077db1b
CT
9492 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9493fi
9494
671aa708
NN
9495# Determine whether gdb needs tk/tcl or not.
9496# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9497# and in that case we want gdb to be built without tk. Ugh!
9498# In fact I believe gdb is the *only* package directly dependent on tk,
9499# so we should be able to put the 'maybe's in unconditionally and
9500# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9501# 100% sure that that's safe though.
e914a571 9502
b4f96efe 9503gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9504case "$enable_gdbtk" in
9505 no)
9506 GDB_TK="" ;;
e914a571
AC
9507 yes)
9508 GDB_TK="${gdb_tk}" ;;
671aa708 9509 *)
e914a571
AC
9510 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9511 # distro. Eventually someone will fix this and move Insight, nee
9512 # gdbtk to a separate directory.
9513 if test -d ${srcdir}/gdb/gdbtk ; then
9514 GDB_TK="${gdb_tk}"
9515 else
9516 GDB_TK=""
9517 fi
9518 ;;
671aa708 9519esac
ef9db8d5
DJ
9520CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9521INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9522
f9d09df0
TT
9523# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9524# else does, only include them if one of these is built. The Makefile
9525# provides the ordering, so it's enough here to add to the list.
9526case " ${configdirs} " in
9527 *\ gdb\ *)
9528 configdirs="${configdirs} gnulib gdbsupport"
9529 ;;
9530 *\ gdbserver\ *)
9531 configdirs="${configdirs} gnulib gdbsupport"
9532 ;;
f14c9bd4
MF
9533 *\ sim\ *)
9534 configdirs="${configdirs} gnulib"
9535 ;;
f9d09df0 9536esac
98e5be21 9537
60975492 9538# Strip out unwanted targets.
8b87bb96
NN
9539
9540# While at that, we remove Makefiles if we were started for recursive
9541# configuration, so that the top-level Makefile reconfigures them,
9542# like we used to do when configure itself was recursive.
8b87bb96 9543
3e54529c
RW
9544# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9545# but now we're fixing up the Makefile ourselves with the additional
9546# commands passed to AC_CONFIG_FILES. Use separate variables
9547# extrasub-{build,host,target} not because there is any reason to split
9548# the substitutions up that way, but only to remain below the limit of
9549# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9550
9551# Do not nest @if/@endif or @unless/@endunless pairs, because
9552# configure will not warn you at all.
8b87bb96 9553
79cd2b23
RW
9554case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9555 yes:yes:*\ gold\ *:*,c++,*) ;;
9556 yes:yes:*\ gold\ *:*)
22e05272 9557 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9558 ;;
9559esac
9560
3e54529c 9561extrasub_build=
23f6b2f9 9562for module in ${build_configdirs} ; do
5607edfd
PB
9563 if test -z "${no_recursion}" \
9564 && test -f ${build_subdir}/${module}/Makefile; then
9565 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9566 rm -f ${build_subdir}/${module}/Makefile
9567 fi
3e54529c 9568 extrasub_build="$extrasub_build
5607edfd
PB
9569/^@if build-$module\$/d
9570/^@endif build-$module\$/d
da34ca3f 9571/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9572/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9573/^@endif build-$module-$bootstrap_suffix\$/d
9574/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9575done
3e54529c 9576extrasub_host=
5607edfd 9577for module in ${configdirs} ; do
a6fbc1e2 9578 if test -z "${no_recursion}"; then
f063a9ed 9579 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9580 if test -f ${file}; then
9581 echo 1>&2 "*** removing ${file} to force reconfigure"
9582 rm -f ${file}
9583 fi
9584 done
5607edfd 9585 fi
9e1c8fc1
JJ
9586 case ${module},${bootstrap_fixincludes} in
9587 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9588 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9589 esac
3e54529c 9590 extrasub_host="$extrasub_host
5607edfd
PB
9591/^@if $module\$/d
9592/^@endif $module\$/d
da34ca3f 9593/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9594/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9595/^@endif $module-$host_bootstrap_suffix\$/d
9596/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9597done
3e54529c 9598extrasub_target=
5607edfd
PB
9599for module in ${target_configdirs} ; do
9600 if test -z "${no_recursion}" \
9601 && test -f ${target_subdir}/${module}/Makefile; then
9602 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9603 rm -f ${target_subdir}/${module}/Makefile
9604 fi
00020c16
ILT
9605
9606 # We only bootstrap target libraries listed in bootstrap_target_libs.
9607 case $bootstrap_target_libs in
9608 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9609 *) target_bootstrap_suffix=no-bootstrap ;;
9610 esac
9611
3e54529c 9612 extrasub_target="$extrasub_target
5607edfd
PB
9613/^@if target-$module\$/d
9614/^@endif target-$module\$/d
da34ca3f 9615/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9616/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9617/^@endif target-$module-$target_bootstrap_suffix\$/d
9618/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9619done
9620
3e54529c
RW
9621# Do the final fixup along with target modules.
9622extrasub_target="$extrasub_target
da34ca3f
AO
9623/^@if /,/^@endif /d
9624/^@unless /d
9625/^@endunless /d"
671aa708
NN
9626
9627# Create the serialization dependencies. This uses a temporary file.
9628
5213506e
RW
9629# Check whether --enable-serial-configure was given.
9630if test "${enable_serial_configure+set}" = set; then :
9631 enableval=$enable_serial_configure;
9632fi
ade82b16
AO
9633
9634
bf1d3e81
NN
9635case ${enable_serial_configure} in
9636 yes)
9637 enable_serial_build_configure=yes
9638 enable_serial_host_configure=yes
9639 enable_serial_target_configure=yes
9640 ;;
9641esac
9642
671aa708
NN
9643# These force 'configure's to be done one at a time, to avoid problems
9644# with contention over a shared config.cache.
9645rm -f serdep.tmp
ade82b16 9646echo '# serdep.tmp' > serdep.tmp
671aa708 9647olditem=
bf1d3e81 9648test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9649for item in ${build_configdirs} ; do
9650 case ${olditem} in
9651 "") ;;
ade82b16 9652 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9653 esac
9654 olditem=${item}
9655done
9656olditem=
bf1d3e81 9657test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9658for item in ${configdirs} ; do
9659 case ${olditem} in
9660 "") ;;
ade82b16 9661 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9662 esac
9663 olditem=${item}
9664done
9665olditem=
bf1d3e81 9666test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9667for item in ${target_configdirs} ; do
9668 case ${olditem} in
9669 "") ;;
ade82b16 9670 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9671 esac
9672 olditem=${item}
9673done
9674serialization_dependencies=serdep.tmp
9675
9676
ade82b16 9677# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9678# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9679# might not want to pass down to subconfigures. The exception being
9680# --cache-file=/dev/null, which is used to turn off the use of cache
9681# files altogether, and which should be passed on to subconfigures.
9682# Also strip program-prefix, program-suffix, and program-transform-name,
9683# so that we can pass down a consistent program-transform-name.
1c710c3c 9684baseargs=
29a63921 9685tbaseargs=
1c710c3c
DJ
9686keep_next=no
9687skip_next=no
9688eval "set -- $ac_configure_args"
44bfc3ac
DJ
9689for ac_arg
9690do
1c710c3c
DJ
9691 if test X"$skip_next" = X"yes"; then
9692 skip_next=no
9693 continue
9694 fi
9695 if test X"$keep_next" = X"yes"; then
9696 case $ac_arg in
9697 *\'*)
9698 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9699 esac
9700 baseargs="$baseargs '$ac_arg'"
29a63921 9701 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9702 keep_next=no
9703 continue
9704 fi
9705
9706 # Handle separated arguments. Based on the logic generated by
9707 # autoconf 2.59.
9708 case $ac_arg in
9709 *=* | --config-cache | -C | -disable-* | --disable-* \
9710 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9711 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9712 | -with-* | --with-* | -without-* | --without-* | --x)
9713 separate_arg=no
9714 ;;
9715 -*)
9716 separate_arg=yes
9717 ;;
9718 *)
9719 separate_arg=no
9720 ;;
9721 esac
9722
29a63921
AO
9723 skip_targ=no
9724 case $ac_arg in
9725
9726 --with-* | --without-*)
9727 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9728
9729 case $libopt in
9730 *[-_]include)
9731 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9732 ;;
9733 *[-_]lib)
9734 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9735 ;;
9736 *)
9737 lib=$libopt
9738 ;;
9739 esac
9740
9741
9742 case $lib in
4a9bb2aa 9743 mpc | mpfr | gmp | isl)
29a63921
AO
9744 # If we're processing --with-$lib, --with-$lib-include or
9745 # --with-$lib-lib, for one of the libs above, and target is
9746 # different from host, don't pass the current argument to any
9747 # target library's configure.
9748 if test x$is_cross_compiler = xyes; then
9749 skip_targ=yes
9750 fi
9751 ;;
9752 esac
9753 ;;
9754 esac
9755
1c710c3c 9756 case "$ac_arg" in
f1a036e4
NC
9757 --cache-file=/dev/null | \
9758 -cache-file=/dev/null )
9759 # Handled here to avoid the test to skip args below.
9760 baseargs="$baseargs '$ac_arg'"
29a63921 9761 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9762 # Assert: $separate_arg should always be no.
9763 keep_next=$separate_arg
9764 ;;
1c710c3c
DJ
9765 --no*)
9766 continue
9767 ;;
9768 --c* | \
9769 --sr* | \
9770 --ho* | \
9771 --bu* | \
9772 --t* | \
9773 --program-* | \
9774 -cache_file* | \
9775 -srcdir* | \
9776 -host* | \
9777 -build* | \
9778 -target* | \
9779 -program-prefix* | \
9780 -program-suffix* | \
9781 -program-transform-name* )
9782 skip_next=$separate_arg
9783 continue
9784 ;;
9785 -*)
9786 # An option. Add it.
9787 case $ac_arg in
9788 *\'*)
9789 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9790 esac
9791 baseargs="$baseargs '$ac_arg'"
29a63921
AO
9792 if test X"$skip_targ" = Xno; then
9793 tbaseargs="$tbaseargs '$ac_arg'"
9794 fi
1c710c3c
DJ
9795 keep_next=$separate_arg
9796 ;;
9797 *)
9798 # Either a variable assignment, or a nonopt (triplet). Don't
9799 # pass it down; let the Makefile handle this.
9800 continue
9801 ;;
9802 esac
9803done
9804# Remove the initial space we just introduced and, as these will be
9805# expanded by make, quote '$'.
9806baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 9807
43bb47c2
DJ
9808# Add in --program-transform-name, after --program-prefix and
9809# --program-suffix have been applied to it. Autoconf has already
9810# doubled dollar signs and backslashes in program_transform_name; we want
9811# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 9812# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
9813# Also, because we want to override the logic in subdir configure scripts to
9814# choose program_transform_name, replace any s,x,x, with s,y,y,.
9815sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9816${program_transform_name}
9817EOF_SED
9818gcc_transform_name=`cat conftestsed.out`
9819rm -f conftestsed.out
9820baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 9821tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
9822if test "$silent" = yes; then
9823 baseargs="$baseargs --silent"
29a63921 9824 tbaseargs="$tbaseargs --silent"
d9acb717 9825fi
0115d4a3 9826baseargs="$baseargs --disable-option-checking"
29a63921 9827tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 9828
ffedf511
RW
9829# Record and document user additions to sub configure arguments.
9830
9831
9832
9833
671aa708
NN
9834# For the build-side libraries, we just need to pretend we're native,
9835# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
9836# desired. We can't even use the same cache file for all build-side
9837# libraries, as they're compiled differently; some with C, some with
9838# C++ or with different feature-enabling options.
9839build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
9840
9841# For host modules, accept cache file option, or specification as blank.
9842case "${cache_file}" in
9843"") # empty
9844 cache_file_option="" ;;
9845/* | [A-Za-z]:[\\/]* ) # absolute path
9846 cache_file_option="--cache-file=${cache_file}" ;;
9847*) # relative path
9848 cache_file_option="--cache-file=../${cache_file}" ;;
9849esac
9850
09438bde
NN
9851# Host dirs don't like to share a cache file either, horribly enough.
9852# This seems to be due to autoconf 2.5x stupidity.
ffedf511 9853host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 9854
29a63921 9855target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
9856
9857# Passing a --with-cross-host argument lets the target libraries know
9858# whether they are being built with a cross-compiler or being built
9859# native. However, it would be better to use other mechanisms to make the
9860# sorts of decisions they want to make on this basis. Please consider
9861# this option to be deprecated. FIXME.
9862if test x${is_cross_compiler} = xyes ; then
1c710c3c 9863 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
9864fi
9865
79e0604d
FXC
9866# Special user-friendly check for native x86_64-linux build, if
9867# multilib is not explicitly enabled.
9868case "$target:$have_compiler:$host:$target:$enable_multilib" in
9869 x86_64-*linux*:yes:$build:$build:)
e640447c 9870 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
9871 dev64=no
9872 echo "int main () { return 0; }" > conftest.c
9873 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9874 if test $? = 0 ; then
9875 if test -s conftest || test -s conftest.exe ; then
9876 dev64=yes
9877 fi
9878 fi
9879 rm -f conftest*
9880 if test x${dev64} != xyes ; then
22e05272 9881 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
9882 fi
9883 ;;
9884esac
9885
dc683a3f
RW
9886# Default to --enable-multilib.
9887if test x${enable_multilib} = x ; then
671aa708 9888 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 9889fi
671aa708
NN
9890
9891# Pass --with-newlib if appropriate. Note that target_configdirs has
9892# changed from the earlier setting of with_newlib.
9893if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9894 target_configargs="--with-newlib ${target_configargs}"
9895fi
9896
6b9eb62c
NN
9897# Different target subdirs use different values of certain variables
9898# (notably CXX). Worse, multilibs use *lots* of different values.
9899# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9900# it doesn't automatically accept command-line overrides of them.
9901# This means it's not safe for target subdirs to share a cache file,
9902# which is disgusting, but there you have it. Hopefully this can be
9903# fixed in future. It's still worthwhile to use a cache file for each
9904# directory. I think.
9905
bebcd931
MS
9906# Pass the appropriate --build, --host, --target and --cache-file arguments.
9907# We need to pass --target, as newer autoconf's requires consistency
9908# for target_alias and gcc doesn't manage it consistently.
e69bf64b 9909target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 9910
671aa708
NN
9911FLAGS_FOR_TARGET=
9912case " $target_configdirs " in
9913 *" newlib "*)
9914 case " $target_configargs " in
9915 *" --with-newlib "*)
9916 case "$target" in
5d571eaa 9917 *-cygwin*)
443e6238 9918 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 9919 ;;
671aa708
NN
9920 esac
9921
9922 # If we're not building GCC, don't discard standard headers.
9923 if test -d ${srcdir}/gcc; then
9924 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9925
9926 if test "${build}" != "${host}"; then
9927 # On Canadian crosses, CC_FOR_TARGET will have already been set
9928 # by `configure', so we won't have an opportunity to add -Bgcc/
9929 # to it. This is right: we don't want to search that directory
9930 # for binaries, but we want the header files in there, so add
9931 # them explicitly.
0463992b 9932 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
9933
9934 # Someone might think of using the pre-installed headers on
9935 # Canadian crosses, in case the installed compiler is not fully
9936 # compatible with the compiler being built. In this case, it
9937 # would be better to flag an error than risking having
9938 # incompatible object files being constructed. We can't
9939 # guarantee that an error will be flagged, but let's hope the
9940 # compiler will do it, when presented with incompatible header
9941 # files.
9942 fi
9943 fi
9944
9945 case "${target}-${is_cross_compiler}" in
f2a0e225 9946 i[3456789]86-*-linux*-no)
671aa708
NN
9947 # Here host == target, so we don't need to build gcc,
9948 # so we don't want to discard standard headers.
9949 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9950 ;;
9951 *)
9952 # If we're building newlib, use its generic headers last, but search
9953 # for any libc-related directories first (so make it the last -B
9954 # switch).
9955 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
9956
9957 # If we're building libgloss, find the startup file, simulator library
9958 # and linker script.
9959 case " $target_configdirs " in
9960 *" libgloss "*)
9961 # Look for startup file, simulator library and maybe linker script.
9962 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9963 # Look for libnosys.a in case the target needs it.
9964 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9965 # Most targets have the linker script in the source directory.
9966 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9967 ;;
9968 esac
671aa708
NN
9969 ;;
9970 esac
9971 ;;
9972 esac
9973 ;;
9974esac
5d571eaa 9975
b91f0a41 9976case "$target" in
5d571eaa
OS
9977 x86_64-*mingw* | *-w64-mingw*)
9978 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9979 # however, use a symlink named 'mingw' in ${prefix} .
9980 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9981 ;;
9982 *-mingw*)
9983 # MinGW can't be handled as Cygwin above since it does not use newlib.
9984 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'
9985 ;;
b91f0a41 9986esac
671aa708 9987
6691a79e
ME
9988# Allow the user to override the flags for
9989# our build compiler if desired.
f019adc1
MF
9990if test x"${build}" = x"${host}" ; then
9991 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9992 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9993 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9994fi
6691a79e 9995
671aa708
NN
9996# On Canadian crosses, we'll be searching the right directories for
9997# the previously-installed cross compiler, so don't bother to add
9998# flags for directories within the install tree of the compiler
9999# being built; programs in there won't even run.
10000if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10001 # Search for pre-installed headers if nothing else fits.
9124bc53 10002 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
10003fi
10004
10005if test "x${use_gnu_ld}" = x &&
10006 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10007 # Arrange for us to find uninstalled linker scripts.
215c351a 10008 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10009fi
10010
e88a2c09
DD
10011# Search for other target-specific linker scripts and such.
10012case "${target}" in
3e19841a
PB
10013 mep*)
10014 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10015 ;;
e88a2c09
DD
10016esac
10017
671aa708 10018# Makefile fragments.
7b61653a
PE
10019for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10020do
10021 eval fragval=\$$frag
10022 if test $fragval != /dev/null; then
10023 eval $frag=${srcdir}/$fragval
10024 fi
10025done
671aa708
NN
10026
10027
10028
10029
10030
10031# Miscellanea: directories, flags, etc.
10032
10033
10034
10035
10036
10037
10038
d89f0ad6 10039
23f6b2f9 10040# Build module lists & subconfigure args.
671aa708
NN
10041
10042
10043
2abefe3d
PB
10044# Host module lists & subconfigure args.
10045
10046
10047
aae29963 10048
2abefe3d
PB
10049# Target module lists & subconfigure args.
10050
10051
10052
10053# Build tools.
10054
10055
10056
0999159b
PB
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
b4c522fa 10070
3b5e8ee4 10071
2abefe3d
PB
10072# Generate default definitions for YACC, M4, LEX and other programs that run
10073# on the build machine. These are used if the Makefile can't locate these
10074# programs in objdir.
10075MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10076
10077for ac_prog in 'bison -y' byacc yacc
10078do
1c710c3c 10079 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10080set dummy $ac_prog; ac_word=$2
5213506e
RW
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10083if ${ac_cv_prog_YACC+:} false; then :
5213506e 10084 $as_echo_n "(cached) " >&6
2abefe3d
PB
10085else
10086 if test -n "$YACC"; then
10087 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10088else
1c710c3c
DJ
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
5213506e 10094 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10096 ac_cv_prog_YACC="$ac_prog"
5213506e 10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10098 break 2
10099 fi
10100done
5213506e
RW
10101 done
10102IFS=$as_save_IFS
1c710c3c 10103
2abefe3d
PB
10104fi
10105fi
1c710c3c 10106YACC=$ac_cv_prog_YACC
2abefe3d 10107if test -n "$YACC"; then
5213506e
RW
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10109$as_echo "$YACC" >&6; }
2abefe3d 10110else
5213506e
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
2abefe3d
PB
10113fi
10114
5213506e 10115
1c710c3c 10116 test -n "$YACC" && break
2abefe3d
PB
10117done
10118test -n "$YACC" || YACC="$MISSING bison -y"
10119
10120case " $build_configdirs " in
10121 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10122esac
10123
10124for ac_prog in bison
10125do
1c710c3c 10126 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10127set dummy $ac_prog; ac_word=$2
5213506e
RW
10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10130if ${ac_cv_prog_BISON+:} false; then :
5213506e 10131 $as_echo_n "(cached) " >&6
2abefe3d
PB
10132else
10133 if test -n "$BISON"; then
10134 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10135else
1c710c3c
DJ
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
5213506e 10141 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10143 ac_cv_prog_BISON="$ac_prog"
5213506e 10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10145 break 2
10146 fi
10147done
5213506e
RW
10148 done
10149IFS=$as_save_IFS
1c710c3c 10150
2abefe3d
PB
10151fi
10152fi
1c710c3c 10153BISON=$ac_cv_prog_BISON
2abefe3d 10154if test -n "$BISON"; then
5213506e
RW
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10156$as_echo "$BISON" >&6; }
2abefe3d 10157else
5213506e
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159$as_echo "no" >&6; }
2abefe3d
PB
10160fi
10161
5213506e 10162
1c710c3c 10163 test -n "$BISON" && break
2abefe3d
PB
10164done
10165test -n "$BISON" || BISON="$MISSING bison"
10166
10167case " $build_configdirs " in
10168 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10169esac
10170
10171for ac_prog in gm4 gnum4 m4
10172do
1c710c3c 10173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10174set dummy $ac_prog; ac_word=$2
5213506e
RW
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10176$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10177if ${ac_cv_prog_M4+:} false; then :
5213506e 10178 $as_echo_n "(cached) " >&6
2abefe3d
PB
10179else
10180 if test -n "$M4"; then
10181 ac_cv_prog_M4="$M4" # Let the user override the test.
10182else
1c710c3c
DJ
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
5213506e 10188 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10190 ac_cv_prog_M4="$ac_prog"
5213506e 10191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10192 break 2
10193 fi
10194done
5213506e
RW
10195 done
10196IFS=$as_save_IFS
1c710c3c 10197
2abefe3d
PB
10198fi
10199fi
1c710c3c 10200M4=$ac_cv_prog_M4
2abefe3d 10201if test -n "$M4"; then
5213506e
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10203$as_echo "$M4" >&6; }
2abefe3d 10204else
5213506e
RW
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206$as_echo "no" >&6; }
2abefe3d
PB
10207fi
10208
5213506e 10209
1c710c3c 10210 test -n "$M4" && break
2abefe3d
PB
10211done
10212test -n "$M4" || M4="$MISSING m4"
10213
10214case " $build_configdirs " in
10215 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10216esac
10217
10218for ac_prog in flex lex
10219do
1c710c3c 10220 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10221set dummy $ac_prog; ac_word=$2
5213506e
RW
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10224if ${ac_cv_prog_LEX+:} false; then :
5213506e 10225 $as_echo_n "(cached) " >&6
2abefe3d
PB
10226else
10227 if test -n "$LEX"; then
10228 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10229else
1c710c3c
DJ
10230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231for as_dir in $PATH
10232do
10233 IFS=$as_save_IFS
10234 test -z "$as_dir" && as_dir=.
5213506e 10235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10237 ac_cv_prog_LEX="$ac_prog"
5213506e 10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10239 break 2
10240 fi
10241done
5213506e
RW
10242 done
10243IFS=$as_save_IFS
1c710c3c 10244
2abefe3d
PB
10245fi
10246fi
1c710c3c 10247LEX=$ac_cv_prog_LEX
2abefe3d 10248if test -n "$LEX"; then
5213506e
RW
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10250$as_echo "$LEX" >&6; }
2abefe3d 10251else
5213506e
RW
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253$as_echo "no" >&6; }
2abefe3d
PB
10254fi
10255
5213506e 10256
1c710c3c 10257 test -n "$LEX" && break
2abefe3d
PB
10258done
10259test -n "$LEX" || LEX="$MISSING flex"
10260
10261case " $build_configdirs " in
10262 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10263 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10264esac
10265
10266for ac_prog in flex
10267do
1c710c3c 10268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10269set dummy $ac_prog; ac_word=$2
5213506e
RW
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10272if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10273 $as_echo_n "(cached) " >&6
2abefe3d
PB
10274else
10275 if test -n "$FLEX"; then
10276 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10277else
1c710c3c
DJ
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
5213506e 10283 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10285 ac_cv_prog_FLEX="$ac_prog"
5213506e 10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10287 break 2
10288 fi
10289done
5213506e
RW
10290 done
10291IFS=$as_save_IFS
1c710c3c 10292
2abefe3d
PB
10293fi
10294fi
1c710c3c 10295FLEX=$ac_cv_prog_FLEX
2abefe3d 10296if test -n "$FLEX"; then
5213506e
RW
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10298$as_echo "$FLEX" >&6; }
2abefe3d 10299else
5213506e
RW
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301$as_echo "no" >&6; }
2abefe3d
PB
10302fi
10303
5213506e 10304
1c710c3c 10305 test -n "$FLEX" && break
2abefe3d
PB
10306done
10307test -n "$FLEX" || FLEX="$MISSING flex"
10308
10309case " $build_configdirs " in
10310 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10311esac
10312
10313for ac_prog in makeinfo
10314do
1c710c3c 10315 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10316set dummy $ac_prog; ac_word=$2
5213506e
RW
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10319if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10320 $as_echo_n "(cached) " >&6
2abefe3d
PB
10321else
10322 if test -n "$MAKEINFO"; then
10323 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10324else
1c710c3c
DJ
10325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10326for as_dir in $PATH
10327do
10328 IFS=$as_save_IFS
10329 test -z "$as_dir" && as_dir=.
5213506e 10330 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10332 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10334 break 2
10335 fi
10336done
5213506e
RW
10337 done
10338IFS=$as_save_IFS
1c710c3c 10339
2abefe3d
PB
10340fi
10341fi
1c710c3c 10342MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10343if test -n "$MAKEINFO"; then
5213506e
RW
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10345$as_echo "$MAKEINFO" >&6; }
2abefe3d 10346else
5213506e
RW
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
2abefe3d
PB
10349fi
10350
5213506e 10351
1c710c3c 10352 test -n "$MAKEINFO" && break
2abefe3d
PB
10353done
10354test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10355
10356case " $build_configdirs " in
10357 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10358 *)
10359
d18ff35a 10360 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10361 # higher, else we use the "missing" dummy.
10362 if ${MAKEINFO} --version \
d18ff35a 10363 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10364 :
10365 else
10366 MAKEINFO="$MISSING makeinfo"
10367 fi
10368 ;;
10369
10370esac
671aa708 10371
2abefe3d 10372# FIXME: expect and dejagnu may become build tools?
671aa708 10373
2abefe3d
PB
10374for ac_prog in expect
10375do
1c710c3c 10376 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10377set dummy $ac_prog; ac_word=$2
5213506e
RW
10378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10380if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10381 $as_echo_n "(cached) " >&6
2abefe3d
PB
10382else
10383 if test -n "$EXPECT"; then
10384 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10385else
1c710c3c
DJ
10386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387for as_dir in $PATH
10388do
10389 IFS=$as_save_IFS
10390 test -z "$as_dir" && as_dir=.
5213506e 10391 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10393 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10395 break 2
10396 fi
10397done
5213506e
RW
10398 done
10399IFS=$as_save_IFS
1c710c3c 10400
2abefe3d
PB
10401fi
10402fi
1c710c3c 10403EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10404if test -n "$EXPECT"; then
5213506e
RW
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10406$as_echo "$EXPECT" >&6; }
2abefe3d 10407else
5213506e
RW
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409$as_echo "no" >&6; }
2abefe3d 10410fi
671aa708 10411
5213506e 10412
1c710c3c 10413 test -n "$EXPECT" && break
2abefe3d
PB
10414done
10415test -n "$EXPECT" || EXPECT="expect"
671aa708 10416
2abefe3d
PB
10417case " $configdirs " in
10418 *" expect "*)
10419 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10420 ;;
10421esac
671aa708 10422
2abefe3d
PB
10423for ac_prog in runtest
10424do
1c710c3c 10425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10426set dummy $ac_prog; ac_word=$2
5213506e
RW
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10429if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10430 $as_echo_n "(cached) " >&6
2abefe3d
PB
10431else
10432 if test -n "$RUNTEST"; then
10433 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10434else
1c710c3c
DJ
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
5213506e 10440 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10442 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10444 break 2
10445 fi
10446done
5213506e
RW
10447 done
10448IFS=$as_save_IFS
1c710c3c 10449
2abefe3d
PB
10450fi
10451fi
1c710c3c 10452RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10453if test -n "$RUNTEST"; then
5213506e
RW
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10455$as_echo "$RUNTEST" >&6; }
2abefe3d 10456else
5213506e
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
2abefe3d 10459fi
671aa708 10460
5213506e 10461
1c710c3c 10462 test -n "$RUNTEST" && break
2abefe3d
PB
10463done
10464test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10465
2abefe3d
PB
10466case " $configdirs " in
10467 *" dejagnu "*)
c394e891 10468 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10469 ;;
10470esac
671aa708
NN
10471
10472
671aa708 10473# Host tools.
ca9f4b81
AO
10474ncn_tool_prefix=
10475test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10476ncn_target_tool_prefix=
10477test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10478
278a7a38
AO
10479
10480
10481if test -n "$AR"; then
10482 ac_cv_prog_AR=$AR
10483elif test -n "$ac_cv_prog_AR"; then
10484 AR=$ac_cv_prog_AR
10485fi
10486
10487if test -n "$ac_cv_prog_AR"; then
10488 for ncn_progname in ar; do
10489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10490set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10493if ${ac_cv_prog_AR+:} false; then :
5213506e 10494 $as_echo_n "(cached) " >&6
278a7a38
AO
10495else
10496 if test -n "$AR"; then
10497 ac_cv_prog_AR="$AR" # Let the user override the test.
10498else
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
5213506e 10504 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10506 ac_cv_prog_AR="${ncn_progname}"
5213506e 10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10508 break 2
10509 fi
10510done
5213506e
RW
10511 done
10512IFS=$as_save_IFS
278a7a38
AO
10513
10514fi
10515fi
10516AR=$ac_cv_prog_AR
10517if test -n "$AR"; then
5213506e
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10519$as_echo "$AR" >&6; }
278a7a38 10520else
5213506e
RW
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
278a7a38
AO
10523fi
10524
5213506e 10525
278a7a38
AO
10526 done
10527fi
10528
10529for ncn_progname in ar; do
2693c0b0
PB
10530 if test -n "$ncn_tool_prefix"; then
10531 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10532set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10535if ${ac_cv_prog_AR+:} false; then :
5213506e 10536 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10537else
10538 if test -n "$AR"; then
10539 ac_cv_prog_AR="$AR" # Let the user override the test.
10540else
1c710c3c
DJ
10541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542for as_dir in $PATH
10543do
10544 IFS=$as_save_IFS
10545 test -z "$as_dir" && as_dir=.
5213506e 10546 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10548 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10550 break 2
10551 fi
10552done
5213506e
RW
10553 done
10554IFS=$as_save_IFS
1c710c3c 10555
ca9f4b81
AO
10556fi
10557fi
1c710c3c 10558AR=$ac_cv_prog_AR
ca9f4b81 10559if test -n "$AR"; then
5213506e
RW
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10561$as_echo "$AR" >&6; }
ca9f4b81 10562else
5213506e
RW
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10564$as_echo "no" >&6; }
ca9f4b81
AO
10565fi
10566
5213506e 10567
2693c0b0
PB
10568 fi
10569 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10574if ${ac_cv_prog_AR+:} false; then :
5213506e 10575 $as_echo_n "(cached) " >&6
ca9f4b81 10576else
2693c0b0 10577 if test -n "$AR"; then
af71363e
AS
10578 ac_cv_prog_AR="$AR" # Let the user override the test.
10579else
1c710c3c
DJ
10580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581for as_dir in $PATH
10582do
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
5213506e 10585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10587 ac_cv_prog_AR="${ncn_progname}"
5213506e 10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10589 break 2
10590 fi
10591done
5213506e
RW
10592 done
10593IFS=$as_save_IFS
1c710c3c 10594
ca9f4b81
AO
10595fi
10596fi
1c710c3c 10597AR=$ac_cv_prog_AR
2693c0b0 10598if test -n "$AR"; then
5213506e
RW
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10600$as_echo "$AR" >&6; }
ca9f4b81 10601else
5213506e
RW
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603$as_echo "no" >&6; }
ca9f4b81 10604fi
1c710c3c 10605
5213506e 10606
2693c0b0
PB
10607 fi
10608 test -n "$ac_cv_prog_AR" && break
10609done
10610
10611if test -z "$ac_cv_prog_AR" ; then
10612 set dummy ar
10613 if test $build = $host ; then
10614 AR="$2"
ca9f4b81 10615 else
2693c0b0 10616 AR="${ncn_tool_prefix}$2"
ca9f4b81 10617 fi
ca9f4b81
AO
10618fi
10619
278a7a38
AO
10620
10621
10622if test -n "$AS"; then
10623 ac_cv_prog_AS=$AS
10624elif test -n "$ac_cv_prog_AS"; then
10625 AS=$ac_cv_prog_AS
10626fi
10627
10628if test -n "$ac_cv_prog_AS"; then
10629 for ncn_progname in as; do
10630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10631set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10634if ${ac_cv_prog_AS+:} false; then :
5213506e 10635 $as_echo_n "(cached) " >&6
278a7a38
AO
10636else
10637 if test -n "$AS"; then
10638 ac_cv_prog_AS="$AS" # Let the user override the test.
10639else
10640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641for as_dir in $PATH
10642do
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
5213506e 10645 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10647 ac_cv_prog_AS="${ncn_progname}"
5213506e 10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10649 break 2
10650 fi
10651done
5213506e
RW
10652 done
10653IFS=$as_save_IFS
278a7a38
AO
10654
10655fi
10656fi
10657AS=$ac_cv_prog_AS
10658if test -n "$AS"; then
5213506e
RW
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10660$as_echo "$AS" >&6; }
278a7a38 10661else
5213506e
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10663$as_echo "no" >&6; }
278a7a38
AO
10664fi
10665
5213506e 10666
278a7a38
AO
10667 done
10668fi
10669
10670for ncn_progname in as; do
2693c0b0
PB
10671 if test -n "$ncn_tool_prefix"; then
10672 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10673set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10675$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10676if ${ac_cv_prog_AS+:} false; then :
5213506e 10677 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10678else
10679 if test -n "$AS"; then
10680 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10681else
1c710c3c
DJ
10682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683for as_dir in $PATH
10684do
10685 IFS=$as_save_IFS
10686 test -z "$as_dir" && as_dir=.
5213506e 10687 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10689 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10691 break 2
10692 fi
10693done
5213506e
RW
10694 done
10695IFS=$as_save_IFS
1c710c3c 10696
ca9f4b81
AO
10697fi
10698fi
1c710c3c 10699AS=$ac_cv_prog_AS
ca9f4b81 10700if test -n "$AS"; then
5213506e
RW
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10702$as_echo "$AS" >&6; }
ca9f4b81 10703else
5213506e
RW
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10705$as_echo "no" >&6; }
ca9f4b81
AO
10706fi
10707
5213506e 10708
2693c0b0
PB
10709 fi
10710 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10712set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10715if ${ac_cv_prog_AS+:} false; then :
5213506e 10716 $as_echo_n "(cached) " >&6
ca9f4b81 10717else
2693c0b0
PB
10718 if test -n "$AS"; then
10719 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10720else
1c710c3c
DJ
10721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722for as_dir in $PATH
10723do
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
5213506e 10726 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10728 ac_cv_prog_AS="${ncn_progname}"
5213506e 10729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10730 break 2
10731 fi
10732done
5213506e
RW
10733 done
10734IFS=$as_save_IFS
1c710c3c 10735
ca9f4b81
AO
10736fi
10737fi
1c710c3c 10738AS=$ac_cv_prog_AS
2693c0b0 10739if test -n "$AS"; then
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10741$as_echo "$AS" >&6; }
ca9f4b81 10742else
5213506e
RW
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744$as_echo "no" >&6; }
ca9f4b81 10745fi
1c710c3c 10746
5213506e 10747
2693c0b0
PB
10748 fi
10749 test -n "$ac_cv_prog_AS" && break
10750done
10751
10752if test -z "$ac_cv_prog_AS" ; then
10753 set dummy as
10754 if test $build = $host ; then
10755 AS="$2"
ca9f4b81 10756 else
2693c0b0 10757 AS="${ncn_tool_prefix}$2"
ca9f4b81 10758 fi
ca9f4b81
AO
10759fi
10760
278a7a38
AO
10761
10762
10763if test -n "$DLLTOOL"; then
10764 ac_cv_prog_DLLTOOL=$DLLTOOL
10765elif test -n "$ac_cv_prog_DLLTOOL"; then
10766 DLLTOOL=$ac_cv_prog_DLLTOOL
10767fi
10768
10769if test -n "$ac_cv_prog_DLLTOOL"; then
10770 for ncn_progname in dlltool; do
10771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10772set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10775if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10776 $as_echo_n "(cached) " >&6
278a7a38
AO
10777else
10778 if test -n "$DLLTOOL"; then
10779 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10780else
10781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
5213506e 10786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10788 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10790 break 2
10791 fi
10792done
5213506e
RW
10793 done
10794IFS=$as_save_IFS
278a7a38
AO
10795
10796fi
10797fi
10798DLLTOOL=$ac_cv_prog_DLLTOOL
10799if test -n "$DLLTOOL"; then
5213506e
RW
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10801$as_echo "$DLLTOOL" >&6; }
278a7a38 10802else
5213506e
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804$as_echo "no" >&6; }
278a7a38
AO
10805fi
10806
5213506e 10807
278a7a38
AO
10808 done
10809fi
10810
10811for ncn_progname in dlltool; do
2693c0b0
PB
10812 if test -n "$ncn_tool_prefix"; then
10813 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10814set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10816$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10817if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10818 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10819else
10820 if test -n "$DLLTOOL"; then
10821 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10822else
1c710c3c
DJ
10823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824for as_dir in $PATH
10825do
10826 IFS=$as_save_IFS
10827 test -z "$as_dir" && as_dir=.
5213506e 10828 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10830 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 10831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10832 break 2
10833 fi
10834done
5213506e
RW
10835 done
10836IFS=$as_save_IFS
1c710c3c 10837
ca9f4b81
AO
10838fi
10839fi
1c710c3c 10840DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 10841if test -n "$DLLTOOL"; then
5213506e
RW
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10843$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10844else
5213506e
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10846$as_echo "no" >&6; }
ca9f4b81
AO
10847fi
10848
5213506e 10849
2693c0b0
PB
10850 fi
10851 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10853set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10856if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10857 $as_echo_n "(cached) " >&6
ca9f4b81 10858else
2693c0b0
PB
10859 if test -n "$DLLTOOL"; then
10860 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 10861else
1c710c3c
DJ
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
5213506e 10867 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10869 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10871 break 2
10872 fi
10873done
5213506e
RW
10874 done
10875IFS=$as_save_IFS
1c710c3c 10876
ca9f4b81
AO
10877fi
10878fi
1c710c3c 10879DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 10880if test -n "$DLLTOOL"; then
5213506e
RW
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10882$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10883else
5213506e
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
ca9f4b81 10886fi
1c710c3c 10887
5213506e 10888
2693c0b0
PB
10889 fi
10890 test -n "$ac_cv_prog_DLLTOOL" && break
10891done
10892
10893if test -z "$ac_cv_prog_DLLTOOL" ; then
10894 set dummy dlltool
10895 if test $build = $host ; then
10896 DLLTOOL="$2"
ca9f4b81 10897 else
2693c0b0 10898 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 10899 fi
ca9f4b81
AO
10900fi
10901
278a7a38
AO
10902
10903
3b5e8ee4
IS
10904if test -n "$DSYMUTIL"; then
10905 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10906elif test -n "$ac_cv_prog_DSYMUTIL"; then
10907 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10908fi
10909
10910if test -n "$ac_cv_prog_DSYMUTIL"; then
10911 for ncn_progname in dsymutil; do
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913set dummy ${ncn_progname}; ac_word=$2
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915$as_echo_n "checking for $ac_word... " >&6; }
10916if ${ac_cv_prog_DSYMUTIL+:} false; then :
10917 $as_echo_n "(cached) " >&6
10918else
10919 if test -n "$DSYMUTIL"; then
10920 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10929 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10931 break 2
10932 fi
10933done
10934 done
10935IFS=$as_save_IFS
10936
10937fi
10938fi
10939DSYMUTIL=$ac_cv_prog_DSYMUTIL
10940if test -n "$DSYMUTIL"; then
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10942$as_echo "$DSYMUTIL" >&6; }
10943else
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
10946fi
10947
10948
10949 done
10950fi
10951
10952for ncn_progname in dsymutil; do
10953 if test -n "$ncn_tool_prefix"; then
10954 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10955set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10957$as_echo_n "checking for $ac_word... " >&6; }
10958if ${ac_cv_prog_DSYMUTIL+:} false; then :
10959 $as_echo_n "(cached) " >&6
10960else
10961 if test -n "$DSYMUTIL"; then
10962 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10963else
10964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10965for as_dir in $PATH
10966do
10967 IFS=$as_save_IFS
10968 test -z "$as_dir" && as_dir=.
10969 for ac_exec_ext in '' $ac_executable_extensions; do
10970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10971 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10973 break 2
10974 fi
10975done
10976 done
10977IFS=$as_save_IFS
10978
10979fi
10980fi
10981DSYMUTIL=$ac_cv_prog_DSYMUTIL
10982if test -n "$DSYMUTIL"; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10984$as_echo "$DSYMUTIL" >&6; }
10985else
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987$as_echo "no" >&6; }
10988fi
10989
10990
10991 fi
10992 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994set dummy ${ncn_progname}; ac_word=$2
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10996$as_echo_n "checking for $ac_word... " >&6; }
10997if ${ac_cv_prog_DSYMUTIL+:} false; then :
10998 $as_echo_n "(cached) " >&6
10999else
11000 if test -n "$DSYMUTIL"; then
11001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11002else
11003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004for as_dir in $PATH
11005do
11006 IFS=$as_save_IFS
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11012 break 2
11013 fi
11014done
11015 done
11016IFS=$as_save_IFS
11017
11018fi
11019fi
11020DSYMUTIL=$ac_cv_prog_DSYMUTIL
11021if test -n "$DSYMUTIL"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11023$as_echo "$DSYMUTIL" >&6; }
11024else
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11026$as_echo "no" >&6; }
11027fi
11028
11029
11030 fi
11031 test -n "$ac_cv_prog_DSYMUTIL" && break
11032done
11033
11034if test -z "$ac_cv_prog_DSYMUTIL" ; then
11035 set dummy dsymutil
11036 if test $build = $host ; then
11037 DSYMUTIL="$2"
11038 else
11039 DSYMUTIL="${ncn_tool_prefix}$2"
11040 fi
11041fi
11042
11043
11044
278a7a38
AO
11045if test -n "$LD"; then
11046 ac_cv_prog_LD=$LD
11047elif test -n "$ac_cv_prog_LD"; then
11048 LD=$ac_cv_prog_LD
11049fi
11050
11051if test -n "$ac_cv_prog_LD"; then
11052 for ncn_progname in ld; do
11053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11054set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11056$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11057if ${ac_cv_prog_LD+:} false; then :
5213506e 11058 $as_echo_n "(cached) " >&6
278a7a38
AO
11059else
11060 if test -n "$LD"; then
11061 ac_cv_prog_LD="$LD" # Let the user override the test.
11062else
11063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064for as_dir in $PATH
11065do
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
5213506e 11068 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11070 ac_cv_prog_LD="${ncn_progname}"
5213506e 11071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11072 break 2
11073 fi
11074done
5213506e
RW
11075 done
11076IFS=$as_save_IFS
278a7a38
AO
11077
11078fi
11079fi
11080LD=$ac_cv_prog_LD
11081if test -n "$LD"; then
5213506e
RW
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11083$as_echo "$LD" >&6; }
278a7a38 11084else
5213506e
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11086$as_echo "no" >&6; }
278a7a38
AO
11087fi
11088
5213506e 11089
278a7a38
AO
11090 done
11091fi
11092
11093for ncn_progname in ld; do
2693c0b0
PB
11094 if test -n "$ncn_tool_prefix"; then
11095 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11096set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11098$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11099if ${ac_cv_prog_LD+:} false; then :
5213506e 11100 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11101else
11102 if test -n "$LD"; then
11103 ac_cv_prog_LD="$LD" # Let the user override the test.
11104else
1c710c3c
DJ
11105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11106for as_dir in $PATH
11107do
11108 IFS=$as_save_IFS
11109 test -z "$as_dir" && as_dir=.
5213506e 11110 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11112 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11114 break 2
11115 fi
11116done
5213506e
RW
11117 done
11118IFS=$as_save_IFS
1c710c3c 11119
ca9f4b81
AO
11120fi
11121fi
1c710c3c 11122LD=$ac_cv_prog_LD
ca9f4b81 11123if test -n "$LD"; then
5213506e
RW
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11125$as_echo "$LD" >&6; }
ca9f4b81 11126else
5213506e
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
ca9f4b81
AO
11129fi
11130
5213506e 11131
2693c0b0
PB
11132 fi
11133 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11135set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11138if ${ac_cv_prog_LD+:} false; then :
5213506e 11139 $as_echo_n "(cached) " >&6
ca9f4b81 11140else
2693c0b0
PB
11141 if test -n "$LD"; then
11142 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11143else
1c710c3c
DJ
11144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $PATH
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
5213506e 11149 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11151 ac_cv_prog_LD="${ncn_progname}"
5213506e 11152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11153 break 2
11154 fi
11155done
5213506e
RW
11156 done
11157IFS=$as_save_IFS
1c710c3c 11158
ca9f4b81
AO
11159fi
11160fi
1c710c3c 11161LD=$ac_cv_prog_LD
2693c0b0 11162if test -n "$LD"; then
5213506e
RW
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11164$as_echo "$LD" >&6; }
ca9f4b81 11165else
5213506e
RW
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167$as_echo "no" >&6; }
ca9f4b81 11168fi
1c710c3c 11169
5213506e 11170
2693c0b0
PB
11171 fi
11172 test -n "$ac_cv_prog_LD" && break
11173done
11174
11175if test -z "$ac_cv_prog_LD" ; then
11176 set dummy ld
11177 if test $build = $host ; then
11178 LD="$2"
ca9f4b81 11179 else
2693c0b0 11180 LD="${ncn_tool_prefix}$2"
ca9f4b81 11181 fi
ca9f4b81
AO
11182fi
11183
278a7a38
AO
11184
11185
11186if test -n "$LIPO"; then
11187 ac_cv_prog_LIPO=$LIPO
11188elif test -n "$ac_cv_prog_LIPO"; then
11189 LIPO=$ac_cv_prog_LIPO
11190fi
11191
11192if test -n "$ac_cv_prog_LIPO"; then
11193 for ncn_progname in lipo; do
11194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11195set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11198if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11199 $as_echo_n "(cached) " >&6
278a7a38
AO
11200else
11201 if test -n "$LIPO"; then
11202 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11203else
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
5213506e 11209 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11211 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11213 break 2
11214 fi
11215done
5213506e
RW
11216 done
11217IFS=$as_save_IFS
278a7a38
AO
11218
11219fi
11220fi
11221LIPO=$ac_cv_prog_LIPO
11222if test -n "$LIPO"; then
5213506e
RW
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11224$as_echo "$LIPO" >&6; }
278a7a38 11225else
5213506e
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
278a7a38
AO
11228fi
11229
5213506e 11230
278a7a38
AO
11231 done
11232fi
11233
11234for ncn_progname in lipo; do
2abefe3d
PB
11235 if test -n "$ncn_tool_prefix"; then
11236 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11237set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11240if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11241 $as_echo_n "(cached) " >&6
2abefe3d
PB
11242else
11243 if test -n "$LIPO"; then
11244 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11245else
1c710c3c
DJ
11246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11247for as_dir in $PATH
11248do
11249 IFS=$as_save_IFS
11250 test -z "$as_dir" && as_dir=.
5213506e 11251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11253 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11255 break 2
11256 fi
11257done
5213506e
RW
11258 done
11259IFS=$as_save_IFS
1c710c3c 11260
2abefe3d
PB
11261fi
11262fi
1c710c3c 11263LIPO=$ac_cv_prog_LIPO
2abefe3d 11264if test -n "$LIPO"; then
5213506e
RW
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11266$as_echo "$LIPO" >&6; }
2abefe3d 11267else
5213506e
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269$as_echo "no" >&6; }
2abefe3d
PB
11270fi
11271
5213506e 11272
2abefe3d
PB
11273 fi
11274 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11276set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11278$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11279if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11280 $as_echo_n "(cached) " >&6
2abefe3d
PB
11281else
11282 if test -n "$LIPO"; then
11283 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11284else
1c710c3c
DJ
11285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286for as_dir in $PATH
11287do
11288 IFS=$as_save_IFS
11289 test -z "$as_dir" && as_dir=.
5213506e 11290 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11292 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11294 break 2
11295 fi
11296done
5213506e
RW
11297 done
11298IFS=$as_save_IFS
1c710c3c 11299
2abefe3d
PB
11300fi
11301fi
1c710c3c 11302LIPO=$ac_cv_prog_LIPO
2abefe3d 11303if test -n "$LIPO"; then
5213506e
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11305$as_echo "$LIPO" >&6; }
2abefe3d 11306else
5213506e
RW
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11308$as_echo "no" >&6; }
2abefe3d 11309fi
1c710c3c 11310
5213506e 11311
2abefe3d
PB
11312 fi
11313 test -n "$ac_cv_prog_LIPO" && break
11314done
11315
11316if test -z "$ac_cv_prog_LIPO" ; then
11317 set dummy lipo
11318 if test $build = $host ; then
11319 LIPO="$2"
11320 else
11321 LIPO="${ncn_tool_prefix}$2"
11322 fi
11323fi
11324
278a7a38
AO
11325
11326
11327if test -n "$NM"; then
11328 ac_cv_prog_NM=$NM
11329elif test -n "$ac_cv_prog_NM"; then
11330 NM=$ac_cv_prog_NM
11331fi
11332
11333if test -n "$ac_cv_prog_NM"; then
11334 for ncn_progname in nm; do
11335 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11336set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11339if ${ac_cv_prog_NM+:} false; then :
5213506e 11340 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11341else
11342 if test -n "$NM"; then
11343 ac_cv_prog_NM="$NM" # Let the user override the test.
11344else
1c710c3c
DJ
11345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $PATH
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
5213506e 11350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11352 ac_cv_prog_NM="${ncn_progname}"
5213506e 11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11354 break 2
11355 fi
11356done
5213506e
RW
11357 done
11358IFS=$as_save_IFS
1c710c3c 11359
ca9f4b81
AO
11360fi
11361fi
1c710c3c 11362NM=$ac_cv_prog_NM
ca9f4b81 11363if test -n "$NM"; then
5213506e
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11365$as_echo "$NM" >&6; }
ca9f4b81 11366else
5213506e
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368$as_echo "no" >&6; }
ca9f4b81
AO
11369fi
11370
5213506e 11371
278a7a38
AO
11372 done
11373fi
11374
11375for ncn_progname in nm; do
11376 if test -n "$ncn_tool_prefix"; then
11377 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11378set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11381if ${ac_cv_prog_NM+:} false; then :
5213506e 11382 $as_echo_n "(cached) " >&6
ca9f4b81 11383else
2693c0b0
PB
11384 if test -n "$NM"; then
11385 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11386else
1c710c3c
DJ
11387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388for as_dir in $PATH
11389do
11390 IFS=$as_save_IFS
11391 test -z "$as_dir" && as_dir=.
5213506e 11392 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11394 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11396 break 2
11397 fi
11398done
5213506e
RW
11399 done
11400IFS=$as_save_IFS
1c710c3c 11401
ca9f4b81
AO
11402fi
11403fi
1c710c3c 11404NM=$ac_cv_prog_NM
2693c0b0 11405if test -n "$NM"; then
5213506e
RW
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11407$as_echo "$NM" >&6; }
ca9f4b81 11408else
5213506e
RW
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410$as_echo "no" >&6; }
ca9f4b81 11411fi
1c710c3c 11412
5213506e 11413
2693c0b0 11414 fi
278a7a38
AO
11415 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11417set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11420if ${ac_cv_prog_NM+:} false; then :
5213506e 11421 $as_echo_n "(cached) " >&6
278a7a38
AO
11422else
11423 if test -n "$NM"; then
11424 ac_cv_prog_NM="$NM" # Let the user override the test.
11425else
11426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427for as_dir in $PATH
11428do
11429 IFS=$as_save_IFS
11430 test -z "$as_dir" && as_dir=.
5213506e 11431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11433 ac_cv_prog_NM="${ncn_progname}"
5213506e 11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11435 break 2
11436 fi
11437done
5213506e
RW
11438 done
11439IFS=$as_save_IFS
278a7a38
AO
11440
11441fi
11442fi
11443NM=$ac_cv_prog_NM
11444if test -n "$NM"; then
5213506e
RW
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11446$as_echo "$NM" >&6; }
278a7a38 11447else
5213506e
RW
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449$as_echo "no" >&6; }
278a7a38
AO
11450fi
11451
5213506e 11452
278a7a38
AO
11453 fi
11454 test -n "$ac_cv_prog_NM" && break
11455done
11456
11457if test -z "$ac_cv_prog_NM" ; then
11458 set dummy nm
11459 if test $build = $host ; then
11460 NM="$2"
11461 else
11462 NM="${ncn_tool_prefix}$2"
11463 fi
11464fi
11465
11466
11467
11468if test -n "$RANLIB"; then
11469 ac_cv_prog_RANLIB=$RANLIB
11470elif test -n "$ac_cv_prog_RANLIB"; then
11471 RANLIB=$ac_cv_prog_RANLIB
11472fi
11473
11474if test -n "$ac_cv_prog_RANLIB"; then
11475 for ncn_progname in ranlib; do
11476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11477set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11480if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11481 $as_echo_n "(cached) " >&6
278a7a38
AO
11482else
11483 if test -n "$RANLIB"; then
11484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
5213506e 11491 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11493 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11495 break 2
11496 fi
11497done
5213506e
RW
11498 done
11499IFS=$as_save_IFS
278a7a38
AO
11500
11501fi
11502fi
11503RANLIB=$ac_cv_prog_RANLIB
11504if test -n "$RANLIB"; then
5213506e
RW
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11506$as_echo "$RANLIB" >&6; }
278a7a38 11507else
5213506e
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
278a7a38
AO
11510fi
11511
5213506e 11512
278a7a38
AO
11513 done
11514fi
ca9f4b81 11515
278a7a38 11516for ncn_progname in ranlib; do
2693c0b0
PB
11517 if test -n "$ncn_tool_prefix"; then
11518 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11519set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11521$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11522if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11523 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11524else
11525 if test -n "$RANLIB"; then
11526 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11527else
1c710c3c
DJ
11528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529for as_dir in $PATH
11530do
11531 IFS=$as_save_IFS
11532 test -z "$as_dir" && as_dir=.
5213506e 11533 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11535 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11537 break 2
11538 fi
11539done
5213506e
RW
11540 done
11541IFS=$as_save_IFS
1c710c3c 11542
ca9f4b81
AO
11543fi
11544fi
1c710c3c 11545RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11546if test -n "$RANLIB"; then
5213506e
RW
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11548$as_echo "$RANLIB" >&6; }
ca9f4b81 11549else
5213506e
RW
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551$as_echo "no" >&6; }
ca9f4b81
AO
11552fi
11553
5213506e 11554
2693c0b0
PB
11555 fi
11556 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11558set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11560$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11561if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11562 $as_echo_n "(cached) " >&6
ca9f4b81 11563else
2693c0b0
PB
11564 if test -n "$RANLIB"; then
11565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11566else
1c710c3c
DJ
11567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568for as_dir in $PATH
11569do
11570 IFS=$as_save_IFS
11571 test -z "$as_dir" && as_dir=.
5213506e 11572 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11574 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11576 break 2
11577 fi
11578done
5213506e
RW
11579 done
11580IFS=$as_save_IFS
1c710c3c 11581
ca9f4b81
AO
11582fi
11583fi
1c710c3c 11584RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11585if test -n "$RANLIB"; then
5213506e
RW
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11587$as_echo "$RANLIB" >&6; }
ca9f4b81 11588else
5213506e
RW
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11590$as_echo "no" >&6; }
ca9f4b81 11591fi
1c710c3c 11592
5213506e 11593
ca9f4b81 11594 fi
2693c0b0
PB
11595 test -n "$ac_cv_prog_RANLIB" && break
11596done
11597
11598if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11599 RANLIB="true"
ca9f4b81
AO
11600fi
11601
278a7a38
AO
11602
11603
11604if test -n "$STRIP"; then
11605 ac_cv_prog_STRIP=$STRIP
11606elif test -n "$ac_cv_prog_STRIP"; then
11607 STRIP=$ac_cv_prog_STRIP
11608fi
11609
11610if test -n "$ac_cv_prog_STRIP"; then
11611 for ncn_progname in strip; do
11612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11613set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11616if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11617 $as_echo_n "(cached) " >&6
278a7a38
AO
11618else
11619 if test -n "$STRIP"; then
11620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11621else
11622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623for as_dir in $PATH
11624do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
5213506e 11627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11629 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11631 break 2
11632 fi
11633done
5213506e
RW
11634 done
11635IFS=$as_save_IFS
278a7a38
AO
11636
11637fi
11638fi
11639STRIP=$ac_cv_prog_STRIP
11640if test -n "$STRIP"; then
5213506e
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11642$as_echo "$STRIP" >&6; }
278a7a38 11643else
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
278a7a38
AO
11646fi
11647
5213506e 11648
278a7a38
AO
11649 done
11650fi
11651
11652for ncn_progname in strip; do
2abefe3d
PB
11653 if test -n "$ncn_tool_prefix"; then
11654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11655set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11658if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11659 $as_echo_n "(cached) " >&6
2abefe3d
PB
11660else
11661 if test -n "$STRIP"; then
11662 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11663else
1c710c3c
DJ
11664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $PATH
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
5213506e 11669 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11671 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11673 break 2
11674 fi
11675done
5213506e
RW
11676 done
11677IFS=$as_save_IFS
1c710c3c 11678
2abefe3d
PB
11679fi
11680fi
1c710c3c 11681STRIP=$ac_cv_prog_STRIP
2abefe3d 11682if test -n "$STRIP"; then
5213506e
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11684$as_echo "$STRIP" >&6; }
2abefe3d 11685else
5213506e
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687$as_echo "no" >&6; }
2abefe3d
PB
11688fi
11689
5213506e 11690
2abefe3d
PB
11691 fi
11692 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11694set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11697if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11698 $as_echo_n "(cached) " >&6
2abefe3d
PB
11699else
11700 if test -n "$STRIP"; then
11701 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11702else
1c710c3c
DJ
11703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704for as_dir in $PATH
11705do
11706 IFS=$as_save_IFS
11707 test -z "$as_dir" && as_dir=.
5213506e 11708 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11710 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11712 break 2
11713 fi
11714done
5213506e
RW
11715 done
11716IFS=$as_save_IFS
1c710c3c 11717
2abefe3d
PB
11718fi
11719fi
1c710c3c 11720STRIP=$ac_cv_prog_STRIP
2abefe3d 11721if test -n "$STRIP"; then
5213506e
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11723$as_echo "$STRIP" >&6; }
2abefe3d 11724else
5213506e
RW
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726$as_echo "no" >&6; }
2abefe3d 11727fi
1c710c3c 11728
5213506e 11729
2abefe3d
PB
11730 fi
11731 test -n "$ac_cv_prog_STRIP" && break
11732done
11733
11734if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11735 STRIP="true"
2abefe3d
PB
11736fi
11737
278a7a38
AO
11738
11739
11740if test -n "$WINDRES"; then
11741 ac_cv_prog_WINDRES=$WINDRES
11742elif test -n "$ac_cv_prog_WINDRES"; then
11743 WINDRES=$ac_cv_prog_WINDRES
11744fi
11745
11746if test -n "$ac_cv_prog_WINDRES"; then
11747 for ncn_progname in windres; do
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11752if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11753 $as_echo_n "(cached) " >&6
278a7a38
AO
11754else
11755 if test -n "$WINDRES"; then
11756 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11757else
11758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759for as_dir in $PATH
11760do
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
5213506e 11763 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11765 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11767 break 2
11768 fi
11769done
5213506e
RW
11770 done
11771IFS=$as_save_IFS
278a7a38
AO
11772
11773fi
11774fi
11775WINDRES=$ac_cv_prog_WINDRES
11776if test -n "$WINDRES"; then
5213506e
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11778$as_echo "$WINDRES" >&6; }
278a7a38 11779else
5213506e
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
278a7a38
AO
11782fi
11783
5213506e 11784
278a7a38
AO
11785 done
11786fi
11787
11788for ncn_progname in windres; do
2693c0b0
PB
11789 if test -n "$ncn_tool_prefix"; then
11790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11791set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11794if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11795 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11796else
11797 if test -n "$WINDRES"; then
11798 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11799else
1c710c3c
DJ
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
5213506e 11805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11807 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11809 break 2
11810 fi
11811done
5213506e
RW
11812 done
11813IFS=$as_save_IFS
1c710c3c 11814
ca9f4b81
AO
11815fi
11816fi
1c710c3c 11817WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 11818if test -n "$WINDRES"; then
5213506e
RW
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11820$as_echo "$WINDRES" >&6; }
ca9f4b81 11821else
5213506e
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
ca9f4b81
AO
11824fi
11825
5213506e 11826
2693c0b0
PB
11827 fi
11828 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11833if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11834 $as_echo_n "(cached) " >&6
ca9f4b81 11835else
2693c0b0
PB
11836 if test -n "$WINDRES"; then
11837 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 11838else
1c710c3c
DJ
11839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
5213506e 11844 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11846 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11848 break 2
11849 fi
11850done
5213506e
RW
11851 done
11852IFS=$as_save_IFS
1c710c3c 11853
ca9f4b81
AO
11854fi
11855fi
1c710c3c 11856WINDRES=$ac_cv_prog_WINDRES
2693c0b0 11857if test -n "$WINDRES"; then
5213506e
RW
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11859$as_echo "$WINDRES" >&6; }
ca9f4b81 11860else
5213506e
RW
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
ca9f4b81 11863fi
1c710c3c 11864
5213506e 11865
2693c0b0
PB
11866 fi
11867 test -n "$ac_cv_prog_WINDRES" && break
11868done
11869
11870if test -z "$ac_cv_prog_WINDRES" ; then
11871 set dummy windres
11872 if test $build = $host ; then
11873 WINDRES="$2"
ca9f4b81 11874 else
2693c0b0 11875 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 11876 fi
ca9f4b81
AO
11877fi
11878
278a7a38
AO
11879
11880
901119ae
KT
11881if test -n "$WINDMC"; then
11882 ac_cv_prog_WINDMC=$WINDMC
11883elif test -n "$ac_cv_prog_WINDMC"; then
11884 WINDMC=$ac_cv_prog_WINDMC
11885fi
11886
11887if test -n "$ac_cv_prog_WINDMC"; then
11888 for ncn_progname in windmc; do
11889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11890set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11893if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11894 $as_echo_n "(cached) " >&6
901119ae
KT
11895else
11896 if test -n "$WINDMC"; then
11897 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
5213506e 11904 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11906 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11908 break 2
11909 fi
11910done
5213506e
RW
11911 done
11912IFS=$as_save_IFS
901119ae
KT
11913
11914fi
11915fi
11916WINDMC=$ac_cv_prog_WINDMC
11917if test -n "$WINDMC"; then
5213506e
RW
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11919$as_echo "$WINDMC" >&6; }
901119ae 11920else
5213506e
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
901119ae
KT
11923fi
11924
5213506e 11925
901119ae
KT
11926 done
11927fi
11928
11929for ncn_progname in windmc; do
11930 if test -n "$ncn_tool_prefix"; then
11931 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11932set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11934$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11935if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11936 $as_echo_n "(cached) " >&6
901119ae
KT
11937else
11938 if test -n "$WINDMC"; then
11939 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11940else
11941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942for as_dir in $PATH
11943do
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
5213506e 11946 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11948 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 11949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11950 break 2
11951 fi
11952done
5213506e
RW
11953 done
11954IFS=$as_save_IFS
901119ae
KT
11955
11956fi
11957fi
11958WINDMC=$ac_cv_prog_WINDMC
11959if test -n "$WINDMC"; then
5213506e
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11961$as_echo "$WINDMC" >&6; }
901119ae 11962else
5213506e
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964$as_echo "no" >&6; }
901119ae
KT
11965fi
11966
5213506e 11967
901119ae
KT
11968 fi
11969 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11971set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11974if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11975 $as_echo_n "(cached) " >&6
901119ae
KT
11976else
11977 if test -n "$WINDMC"; then
11978 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11979else
11980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981for as_dir in $PATH
11982do
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
5213506e 11985 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11987 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11989 break 2
11990 fi
11991done
5213506e
RW
11992 done
11993IFS=$as_save_IFS
901119ae
KT
11994
11995fi
11996fi
11997WINDMC=$ac_cv_prog_WINDMC
11998if test -n "$WINDMC"; then
5213506e
RW
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12000$as_echo "$WINDMC" >&6; }
901119ae 12001else
5213506e
RW
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003$as_echo "no" >&6; }
901119ae
KT
12004fi
12005
5213506e 12006
901119ae
KT
12007 fi
12008 test -n "$ac_cv_prog_WINDMC" && break
12009done
12010
12011if test -z "$ac_cv_prog_WINDMC" ; then
12012 set dummy windmc
12013 if test $build = $host ; then
12014 WINDMC="$2"
12015 else
12016 WINDMC="${ncn_tool_prefix}$2"
12017 fi
12018fi
12019
12020
12021
278a7a38
AO
12022if test -n "$OBJCOPY"; then
12023 ac_cv_prog_OBJCOPY=$OBJCOPY
12024elif test -n "$ac_cv_prog_OBJCOPY"; then
12025 OBJCOPY=$ac_cv_prog_OBJCOPY
12026fi
12027
12028if test -n "$ac_cv_prog_OBJCOPY"; then
12029 for ncn_progname in objcopy; do
12030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12031set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12034if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12035 $as_echo_n "(cached) " >&6
278a7a38
AO
12036else
12037 if test -n "$OBJCOPY"; then
12038 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12039else
12040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041for as_dir in $PATH
12042do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
5213506e 12045 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12047 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12049 break 2
12050 fi
12051done
5213506e
RW
12052 done
12053IFS=$as_save_IFS
278a7a38
AO
12054
12055fi
12056fi
12057OBJCOPY=$ac_cv_prog_OBJCOPY
12058if test -n "$OBJCOPY"; then
5213506e
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12060$as_echo "$OBJCOPY" >&6; }
278a7a38 12061else
5213506e
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
278a7a38
AO
12064fi
12065
5213506e 12066
278a7a38
AO
12067 done
12068fi
12069
12070for ncn_progname in objcopy; do
2693c0b0
PB
12071 if test -n "$ncn_tool_prefix"; then
12072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12073set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12076if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12077 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12078else
12079 if test -n "$OBJCOPY"; then
12080 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12081else
1c710c3c
DJ
12082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083for as_dir in $PATH
12084do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
5213506e 12087 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12089 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12091 break 2
12092 fi
12093done
5213506e
RW
12094 done
12095IFS=$as_save_IFS
1c710c3c 12096
ca9f4b81
AO
12097fi
12098fi
1c710c3c 12099OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12100if test -n "$OBJCOPY"; then
5213506e
RW
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12102$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12103else
5213506e
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
ca9f4b81
AO
12106fi
12107
5213506e 12108
2693c0b0
PB
12109 fi
12110 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12115if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12116 $as_echo_n "(cached) " >&6
ca9f4b81 12117else
2693c0b0
PB
12118 if test -n "$OBJCOPY"; then
12119 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12120else
1c710c3c
DJ
12121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122for as_dir in $PATH
12123do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
5213506e 12126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12128 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12130 break 2
12131 fi
12132done
5213506e
RW
12133 done
12134IFS=$as_save_IFS
1c710c3c 12135
ca9f4b81
AO
12136fi
12137fi
1c710c3c 12138OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12139if test -n "$OBJCOPY"; then
5213506e
RW
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12141$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12142else
5213506e
RW
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12144$as_echo "no" >&6; }
ca9f4b81 12145fi
1c710c3c 12146
5213506e 12147
2693c0b0
PB
12148 fi
12149 test -n "$ac_cv_prog_OBJCOPY" && break
12150done
12151
12152if test -z "$ac_cv_prog_OBJCOPY" ; then
12153 set dummy objcopy
12154 if test $build = $host ; then
12155 OBJCOPY="$2"
ca9f4b81 12156 else
2693c0b0 12157 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12158 fi
ca9f4b81
AO
12159fi
12160
278a7a38
AO
12161
12162
12163if test -n "$OBJDUMP"; then
12164 ac_cv_prog_OBJDUMP=$OBJDUMP
12165elif test -n "$ac_cv_prog_OBJDUMP"; then
12166 OBJDUMP=$ac_cv_prog_OBJDUMP
12167fi
12168
12169if test -n "$ac_cv_prog_OBJDUMP"; then
12170 for ncn_progname in objdump; do
12171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12172set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12175if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12176 $as_echo_n "(cached) " >&6
278a7a38
AO
12177else
12178 if test -n "$OBJDUMP"; then
12179 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12180else
12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182for as_dir in $PATH
12183do
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
5213506e 12186 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12188 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12190 break 2
12191 fi
12192done
5213506e
RW
12193 done
12194IFS=$as_save_IFS
278a7a38
AO
12195
12196fi
12197fi
12198OBJDUMP=$ac_cv_prog_OBJDUMP
12199if test -n "$OBJDUMP"; then
5213506e
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12201$as_echo "$OBJDUMP" >&6; }
278a7a38 12202else
5213506e
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204$as_echo "no" >&6; }
278a7a38
AO
12205fi
12206
5213506e 12207
278a7a38
AO
12208 done
12209fi
12210
12211for ncn_progname in objdump; do
2693c0b0
PB
12212 if test -n "$ncn_tool_prefix"; then
12213 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12214set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12217if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12218 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12219else
12220 if test -n "$OBJDUMP"; then
12221 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12222else
1c710c3c
DJ
12223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224for as_dir in $PATH
12225do
12226 IFS=$as_save_IFS
12227 test -z "$as_dir" && as_dir=.
5213506e 12228 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12230 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12232 break 2
12233 fi
12234done
5213506e
RW
12235 done
12236IFS=$as_save_IFS
1c710c3c 12237
ca9f4b81
AO
12238fi
12239fi
1c710c3c 12240OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12241if test -n "$OBJDUMP"; then
5213506e
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12243$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12244else
5213506e
RW
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246$as_echo "no" >&6; }
ca9f4b81
AO
12247fi
12248
5213506e 12249
2693c0b0
PB
12250 fi
12251 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12256if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12257 $as_echo_n "(cached) " >&6
ca9f4b81 12258else
2693c0b0
PB
12259 if test -n "$OBJDUMP"; then
12260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12261else
1c710c3c
DJ
12262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
5213506e 12267 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12269 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12271 break 2
12272 fi
12273done
5213506e
RW
12274 done
12275IFS=$as_save_IFS
1c710c3c 12276
ca9f4b81
AO
12277fi
12278fi
1c710c3c 12279OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12280if test -n "$OBJDUMP"; then
5213506e
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12282$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12283else
5213506e
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
ca9f4b81 12286fi
1c710c3c 12287
5213506e 12288
2693c0b0
PB
12289 fi
12290 test -n "$ac_cv_prog_OBJDUMP" && break
12291done
12292
12293if test -z "$ac_cv_prog_OBJDUMP" ; then
12294 set dummy objdump
12295 if test $build = $host ; then
12296 OBJDUMP="$2"
ca9f4b81 12297 else
2693c0b0 12298 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12299 fi
ca9f4b81
AO
12300fi
12301
671aa708
NN
12302
12303
e4a9a572
IS
12304if test -n "$OTOOL"; then
12305 ac_cv_prog_OTOOL=$OTOOL
12306elif test -n "$ac_cv_prog_OTOOL"; then
12307 OTOOL=$ac_cv_prog_OTOOL
12308fi
12309
12310if test -n "$ac_cv_prog_OTOOL"; then
12311 for ncn_progname in otool; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313set dummy ${ncn_progname}; ac_word=$2
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
12316if ${ac_cv_prog_OTOOL+:} false; then :
12317 $as_echo_n "(cached) " >&6
12318else
12319 if test -n "$OTOOL"; then
12320 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329 ac_cv_prog_OTOOL="${ncn_progname}"
12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333done
12334 done
12335IFS=$as_save_IFS
12336
12337fi
12338fi
12339OTOOL=$ac_cv_prog_OTOOL
12340if test -n "$OTOOL"; then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12342$as_echo "$OTOOL" >&6; }
12343else
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
12346fi
12347
12348
12349 done
12350fi
12351
12352for ncn_progname in otool; do
12353 if test -n "$ncn_tool_prefix"; then
12354 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12355set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if ${ac_cv_prog_OTOOL+:} false; then :
12359 $as_echo_n "(cached) " >&6
12360else
12361 if test -n "$OTOOL"; then
12362 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376 done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381OTOOL=$ac_cv_prog_OTOOL
12382if test -n "$OTOOL"; then
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12384$as_echo "$OTOOL" >&6; }
12385else
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390
12391 fi
12392 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12394set dummy ${ncn_progname}; ac_word=$2
12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12396$as_echo_n "checking for $ac_word... " >&6; }
12397if ${ac_cv_prog_OTOOL+:} false; then :
12398 $as_echo_n "(cached) " >&6
12399else
12400 if test -n "$OTOOL"; then
12401 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12402else
12403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404for as_dir in $PATH
12405do
12406 IFS=$as_save_IFS
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410 ac_cv_prog_OTOOL="${ncn_progname}"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12412 break 2
12413 fi
12414done
12415 done
12416IFS=$as_save_IFS
12417
12418fi
12419fi
12420OTOOL=$ac_cv_prog_OTOOL
12421if test -n "$OTOOL"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12423$as_echo "$OTOOL" >&6; }
12424else
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426$as_echo "no" >&6; }
12427fi
12428
12429
12430 fi
12431 test -n "$ac_cv_prog_OTOOL" && break
12432done
12433
12434if test -z "$ac_cv_prog_OTOOL" ; then
12435 set dummy otool
12436 if test $build = $host ; then
12437 OTOOL="$2"
12438 else
12439 OTOOL="${ncn_tool_prefix}$2"
12440 fi
12441fi
12442
12443
12444
e7a82751
RM
12445if test -n "$READELF"; then
12446 ac_cv_prog_READELF=$READELF
12447elif test -n "$ac_cv_prog_READELF"; then
12448 READELF=$ac_cv_prog_READELF
12449fi
12450
12451if test -n "$ac_cv_prog_READELF"; then
12452 for ncn_progname in readelf; do
12453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12454set dummy ${ncn_progname}; ac_word=$2
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12457if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12458 $as_echo_n "(cached) " >&6
12459else
12460 if test -n "$READELF"; then
12461 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12462else
12463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $PATH
12465do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12470 ac_cv_prog_READELF="${ncn_progname}"
12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12473 fi
12474done
12475 done
12476IFS=$as_save_IFS
12477
12478fi
12479fi
12480READELF=$ac_cv_prog_READELF
12481if test -n "$READELF"; then
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12483$as_echo "$READELF" >&6; }
12484else
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
12487fi
12488
12489
12490 done
12491fi
12492
12493for ncn_progname in readelf; do
12494 if test -n "$ncn_tool_prefix"; then
12495 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12496set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12499if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12500 $as_echo_n "(cached) " >&6
12501else
12502 if test -n "$READELF"; then
12503 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12504else
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12512 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12515 fi
12516done
12517 done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522READELF=$ac_cv_prog_READELF
12523if test -n "$READELF"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12525$as_echo "$READELF" >&6; }
12526else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531
12532 fi
12533 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12535set dummy ${ncn_progname}; ac_word=$2
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12538if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12539 $as_echo_n "(cached) " >&6
12540else
12541 if test -n "$READELF"; then
12542 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12543else
12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12551 ac_cv_prog_READELF="${ncn_progname}"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555done
12556 done
12557IFS=$as_save_IFS
12558
12559fi
12560fi
12561READELF=$ac_cv_prog_READELF
12562if test -n "$READELF"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12564$as_echo "$READELF" >&6; }
12565else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568fi
12569
12570
12571 fi
12572 test -n "$ac_cv_prog_READELF" && break
12573done
12574
12575if test -z "$ac_cv_prog_READELF" ; then
12576 set dummy readelf
12577 if test $build = $host ; then
12578 READELF="$2"
12579 else
12580 READELF="${ncn_tool_prefix}$2"
12581 fi
12582fi
12583
12584
12585
671aa708
NN
12586
12587
12588
2abefe3d 12589# Target tools.
1c710c3c 12590
5213506e
RW
12591# Check whether --with-build-time-tools was given.
12592if test "${with_build_time_tools+set}" = set; then :
12593 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12594 x/*) ;;
12595 *)
12596 with_build_time_tools=
5213506e
RW
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12598$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12599 ;;
12600 esac
ca9f4b81 12601else
e8b05380 12602 with_build_time_tools=
5213506e
RW
12603fi
12604
ca9f4b81 12605
278a7a38
AO
12606
12607
12608if test -n "$CC_FOR_TARGET"; then
12609 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12610elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12611 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12612fi
12613
12614if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12615 for ncn_progname in cc gcc; do
12616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12617set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12620if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12621 $as_echo_n "(cached) " >&6
278a7a38
AO
12622else
12623 if test -n "$CC_FOR_TARGET"; then
12624 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12625else
12626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627for as_dir in $PATH
12628do
12629 IFS=$as_save_IFS
12630 test -z "$as_dir" && as_dir=.
5213506e 12631 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12633 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12635 break 2
12636 fi
12637done
5213506e
RW
12638 done
12639IFS=$as_save_IFS
278a7a38
AO
12640
12641fi
12642fi
12643CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12644if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12646$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12647else
5213506e
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649$as_echo "no" >&6; }
278a7a38
AO
12650fi
12651
5213506e 12652
278a7a38
AO
12653 done
12654fi
12655
12656if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12657 for ncn_progname in cc gcc; do
5213506e
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12659$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12660 if test -x $with_build_time_tools/${ncn_progname}; then
12661 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12663$as_echo "yes" >&6; }
72a7ab82 12664 break
e8b05380 12665 else
5213506e
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667$as_echo "no" >&6; }
72a7ab82
AP
12668 fi
12669 done
4de997d1
PB
12670fi
12671
e8b05380
PB
12672if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12673 for ncn_progname in cc gcc; do
12674 if test -n "$ncn_target_tool_prefix"; then
12675 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12676set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12679if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12680 $as_echo_n "(cached) " >&6
4de997d1
PB
12681else
12682 if test -n "$CC_FOR_TARGET"; then
12683 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12684else
1c710c3c
DJ
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
5213506e 12690 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12692 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12694 break 2
12695 fi
12696done
5213506e
RW
12697 done
12698IFS=$as_save_IFS
1c710c3c 12699
4de997d1
PB
12700fi
12701fi
1c710c3c 12702CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12703if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12705$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12706else
5213506e
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
4de997d1
PB
12709fi
12710
5213506e 12711
e8b05380
PB
12712 fi
12713 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12715set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12718if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12719 $as_echo_n "(cached) " >&6
4de997d1 12720else
2693c0b0
PB
12721 if test -n "$CC_FOR_TARGET"; then
12722 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12723else
1c710c3c
DJ
12724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725for as_dir in $PATH
12726do
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
5213506e 12729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12731 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12733 break 2
12734 fi
12735done
5213506e
RW
12736 done
12737IFS=$as_save_IFS
1c710c3c 12738
4de997d1
PB
12739fi
12740fi
1c710c3c 12741CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12742if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12744$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12745else
5213506e
RW
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
4de997d1 12748fi
1c710c3c 12749
5213506e 12750
e8b05380
PB
12751 fi
12752 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12753 done
12754fi
1c710c3c 12755
2693c0b0
PB
12756if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12757 set dummy cc gcc
12758 if test $build = $target ; then
12759 CC_FOR_TARGET="$2"
4de997d1 12760 else
2693c0b0 12761 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12762 fi
1c00b503
PB
12763else
12764 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
12765fi
12766
278a7a38
AO
12767
12768
12769if test -n "$CXX_FOR_TARGET"; then
12770 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12771elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12772 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12773fi
12774
12775if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12776 for ncn_progname in c++ g++ cxx gxx; do
12777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12778set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12780$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12781if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12782 $as_echo_n "(cached) " >&6
278a7a38
AO
12783else
12784 if test -n "$CXX_FOR_TARGET"; then
12785 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12786else
12787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $PATH
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
5213506e 12792 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12794 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12796 break 2
12797 fi
12798done
5213506e
RW
12799 done
12800IFS=$as_save_IFS
278a7a38
AO
12801
12802fi
12803fi
12804CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12805if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12807$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 12808else
5213506e
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
278a7a38
AO
12811fi
12812
5213506e 12813
278a7a38
AO
12814 done
12815fi
12816
12817if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12818 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12820$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12821 if test -x $with_build_time_tools/${ncn_progname}; then
12822 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12824$as_echo "yes" >&6; }
e8b05380
PB
12825 break
12826 else
5213506e
RW
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828$as_echo "no" >&6; }
e8b05380
PB
12829 fi
12830 done
12831fi
12832
12833if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12834 for ncn_progname in c++ g++ cxx gxx; do
12835 if test -n "$ncn_target_tool_prefix"; then
12836 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12837set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12840if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12841 $as_echo_n "(cached) " >&6
4de997d1
PB
12842else
12843 if test -n "$CXX_FOR_TARGET"; then
12844 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12845else
1c710c3c
DJ
12846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in $PATH
12848do
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
5213506e 12851 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12853 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12855 break 2
12856 fi
12857done
5213506e
RW
12858 done
12859IFS=$as_save_IFS
1c710c3c 12860
4de997d1
PB
12861fi
12862fi
1c710c3c 12863CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 12864if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12866$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12867else
5213506e
RW
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869$as_echo "no" >&6; }
4de997d1
PB
12870fi
12871
5213506e 12872
e8b05380
PB
12873 fi
12874 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12876set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12878$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12879if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12880 $as_echo_n "(cached) " >&6
4de997d1 12881else
2693c0b0
PB
12882 if test -n "$CXX_FOR_TARGET"; then
12883 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 12884else
1c710c3c
DJ
12885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886for as_dir in $PATH
12887do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
5213506e 12890 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12892 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12894 break 2
12895 fi
12896done
5213506e
RW
12897 done
12898IFS=$as_save_IFS
1c710c3c 12899
4de997d1
PB
12900fi
12901fi
1c710c3c 12902CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 12903if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12905$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12906else
5213506e
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
4de997d1 12909fi
1c710c3c 12910
5213506e 12911
e8b05380
PB
12912 fi
12913 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12914 done
12915fi
1c710c3c 12916
2693c0b0
PB
12917if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12918 set dummy c++ g++ cxx gxx
12919 if test $build = $target ; then
12920 CXX_FOR_TARGET="$2"
4de997d1 12921 else
2693c0b0 12922 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12923 fi
1c00b503
PB
12924else
12925 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
12926fi
12927
278a7a38
AO
12928
12929
12930if test -n "$GCC_FOR_TARGET"; then
12931 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12932elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12933 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12934fi
12935
12936if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12937 for ncn_progname in gcc; do
12938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12939set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12942if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12943 $as_echo_n "(cached) " >&6
278a7a38
AO
12944else
12945 if test -n "$GCC_FOR_TARGET"; then
12946 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12947else
12948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
5213506e 12953 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12955 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12957 break 2
12958 fi
12959done
5213506e
RW
12960 done
12961IFS=$as_save_IFS
278a7a38
AO
12962
12963fi
12964fi
12965GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12966if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12968$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 12969else
5213506e
RW
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971$as_echo "no" >&6; }
278a7a38
AO
12972fi
12973
5213506e 12974
278a7a38
AO
12975 done
12976fi
12977
12978if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12979 for ncn_progname in gcc; do
5213506e
RW
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12981$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12982 if test -x $with_build_time_tools/${ncn_progname}; then
12983 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12985$as_echo "yes" >&6; }
e8b05380
PB
12986 break
12987 else
5213506e
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989$as_echo "no" >&6; }
e8b05380
PB
12990 fi
12991 done
12992fi
12993
12994if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12995 for ncn_progname in gcc; do
12996 if test -n "$ncn_target_tool_prefix"; then
12997 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12998set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13001if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13002 $as_echo_n "(cached) " >&6
ca9f4b81 13003else
e8b05380
PB
13004 if test -n "$GCC_FOR_TARGET"; then
13005 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13006else
1c710c3c
DJ
13007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008for as_dir in $PATH
13009do
13010 IFS=$as_save_IFS
13011 test -z "$as_dir" && as_dir=.
5213506e 13012 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13014 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13016 break 2
13017 fi
13018done
5213506e
RW
13019 done
13020IFS=$as_save_IFS
1c710c3c 13021
ca9f4b81
AO
13022fi
13023fi
1c710c3c 13024GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13025if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13027$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13028else
5213506e
RW
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030$as_echo "no" >&6; }
ca9f4b81
AO
13031fi
13032
5213506e 13033
e8b05380
PB
13034 fi
13035 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13036 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13037set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13039$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13040if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13041 $as_echo_n "(cached) " >&6
ca9f4b81 13042else
e8b05380
PB
13043 if test -n "$GCC_FOR_TARGET"; then
13044 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13045else
1c710c3c
DJ
13046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $PATH
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
5213506e 13051 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13053 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13055 break 2
13056 fi
13057done
5213506e
RW
13058 done
13059IFS=$as_save_IFS
1c710c3c 13060
ca9f4b81
AO
13061fi
13062fi
1c710c3c 13063GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13064if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13066$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13067else
5213506e
RW
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069$as_echo "no" >&6; }
ca9f4b81 13070fi
1c710c3c 13071
5213506e 13072
e8b05380
PB
13073 fi
13074 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13075 done
13076fi
1c710c3c 13077
e8b05380
PB
13078if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13079 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13080else
13081 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13082fi
13083
278a7a38
AO
13084
13085
278a7a38
AO
13086if test -n "$GFORTRAN_FOR_TARGET"; then
13087 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13088elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13089 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13090fi
13091
278a7a38
AO
13092if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13093 for ncn_progname in gfortran; do
13094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13095set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13098if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13099 $as_echo_n "(cached) " >&6
e8b05380 13100else
278a7a38
AO
13101 if test -n "$GFORTRAN_FOR_TARGET"; then
13102 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13103else
1c710c3c
DJ
13104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105for as_dir in $PATH
13106do
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
5213506e 13109 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13111 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13113 break 2
13114 fi
13115done
5213506e
RW
13116 done
13117IFS=$as_save_IFS
1c710c3c 13118
e8b05380
PB
13119fi
13120fi
278a7a38
AO
13121GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13122if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13124$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13125else
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127$as_echo "no" >&6; }
e8b05380 13128fi
1c710c3c 13129
5213506e 13130
e8b05380
PB
13131 done
13132fi
1c710c3c 13133
278a7a38 13134if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13135 for ncn_progname in gfortran; do
5213506e
RW
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13137$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13138 if test -x $with_build_time_tools/${ncn_progname}; then
13139 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13141$as_echo "yes" >&6; }
e8b05380
PB
13142 break
13143 else
5213506e
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
e8b05380
PB
13146 fi
13147 done
13148fi
13149
13150if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13151 for ncn_progname in gfortran; do
13152 if test -n "$ncn_target_tool_prefix"; then
13153 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13154set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13156$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13157if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13158 $as_echo_n "(cached) " >&6
e8b05380
PB
13159else
13160 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13161 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13162else
13163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13164for as_dir in $PATH
13165do
13166 IFS=$as_save_IFS
13167 test -z "$as_dir" && as_dir=.
5213506e 13168 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13170 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13172 break 2
13173 fi
13174done
5213506e
RW
13175 done
13176IFS=$as_save_IFS
1c710c3c 13177
e8b05380
PB
13178fi
13179fi
1c710c3c 13180GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13181if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13183$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13184else
5213506e
RW
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186$as_echo "no" >&6; }
e8b05380
PB
13187fi
13188
5213506e 13189
e8b05380
PB
13190 fi
13191 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13193set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13196if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13197 $as_echo_n "(cached) " >&6
e8b05380
PB
13198else
13199 if test -n "$GFORTRAN_FOR_TARGET"; then
13200 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13201else
1c710c3c
DJ
13202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203for as_dir in $PATH
13204do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
5213506e 13207 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13209 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13211 break 2
13212 fi
13213done
5213506e
RW
13214 done
13215IFS=$as_save_IFS
1c710c3c 13216
e8b05380
PB
13217fi
13218fi
1c710c3c 13219GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13220if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13222$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13223else
5213506e
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
e8b05380 13226fi
1c710c3c 13227
5213506e 13228
e8b05380
PB
13229 fi
13230 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13231 done
13232fi
1c710c3c 13233
e8b05380
PB
13234if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13235 set dummy gfortran
2693c0b0 13236 if test $build = $target ; then
e8b05380 13237 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13238 else
e8b05380
PB
13239 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13240 fi
1c00b503
PB
13241else
13242 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13243fi
13244
13245
13246
632e2a07
ILT
13247if test -n "$GOC_FOR_TARGET"; then
13248 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13249elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13250 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13251fi
13252
13253if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13254 for ncn_progname in gccgo; do
13255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13256set dummy ${ncn_progname}; ac_word=$2
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13258$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13259if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13260 $as_echo_n "(cached) " >&6
13261else
13262 if test -n "$GOC_FOR_TARGET"; then
13263 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13264else
13265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13266for as_dir in $PATH
13267do
13268 IFS=$as_save_IFS
13269 test -z "$as_dir" && as_dir=.
13270 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13272 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13274 break 2
13275 fi
13276done
13277 done
13278IFS=$as_save_IFS
13279
13280fi
13281fi
13282GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13283if test -n "$GOC_FOR_TARGET"; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13285$as_echo "$GOC_FOR_TARGET" >&6; }
13286else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288$as_echo "no" >&6; }
13289fi
13290
13291
13292 done
13293fi
13294
13295if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13296 for ncn_progname in gccgo; do
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13298$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13299 if test -x $with_build_time_tools/${ncn_progname}; then
13300 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13302$as_echo "yes" >&6; }
13303 break
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306$as_echo "no" >&6; }
13307 fi
13308 done
13309fi
13310
13311if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13312 for ncn_progname in gccgo; do
13313 if test -n "$ncn_target_tool_prefix"; then
13314 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13315set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13318if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13319 $as_echo_n "(cached) " >&6
13320else
13321 if test -n "$GOC_FOR_TARGET"; then
13322 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
13329 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13331 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 break 2
13334 fi
13335done
13336 done
13337IFS=$as_save_IFS
13338
13339fi
13340fi
13341GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13342if test -n "$GOC_FOR_TARGET"; then
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13344$as_echo "$GOC_FOR_TARGET" >&6; }
13345else
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
13348fi
13349
13350
13351 fi
13352 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13354set dummy ${ncn_progname}; ac_word=$2
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13356$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13357if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13358 $as_echo_n "(cached) " >&6
13359else
13360 if test -n "$GOC_FOR_TARGET"; then
13361 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13362else
13363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13364for as_dir in $PATH
13365do
13366 IFS=$as_save_IFS
13367 test -z "$as_dir" && as_dir=.
13368 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13370 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13372 break 2
13373 fi
13374done
13375 done
13376IFS=$as_save_IFS
13377
13378fi
13379fi
13380GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13381if test -n "$GOC_FOR_TARGET"; then
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13383$as_echo "$GOC_FOR_TARGET" >&6; }
13384else
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386$as_echo "no" >&6; }
13387fi
13388
13389
13390 fi
13391 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13392 done
13393fi
13394
13395if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13396 set dummy gccgo
13397 if test $build = $target ; then
13398 GOC_FOR_TARGET="$2"
13399 else
13400 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13401 fi
13402else
13403 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13404fi
13405
13406
13407
b4c522fa
IB
13408if test -n "$GDC_FOR_TARGET"; then
13409 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13410elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13411 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13412fi
13413
13414if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13415 for ncn_progname in gdc; do
13416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13417set dummy ${ncn_progname}; ac_word=$2
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13420if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13421 $as_echo_n "(cached) " >&6
13422else
13423 if test -n "$GDC_FOR_TARGET"; then
13424 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13425else
13426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427for as_dir in $PATH
13428do
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
13431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13433 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435 break 2
13436 fi
13437done
13438 done
13439IFS=$as_save_IFS
13440
13441fi
13442fi
13443GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13444if test -n "$GDC_FOR_TARGET"; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13446$as_echo "$GDC_FOR_TARGET" >&6; }
13447else
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451
13452
13453 done
13454fi
13455
13456if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13457 for ncn_progname in gdc; do
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13459$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13460 if test -x $with_build_time_tools/${ncn_progname}; then
13461 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13463$as_echo "yes" >&6; }
13464 break
13465 else
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13467$as_echo "no" >&6; }
13468 fi
13469 done
13470fi
13471
13472if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13473 for ncn_progname in gdc; do
13474 if test -n "$ncn_target_tool_prefix"; then
13475 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13476set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13478$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13479if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13480 $as_echo_n "(cached) " >&6
13481else
13482 if test -n "$GDC_FOR_TARGET"; then
13483 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13484else
13485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486for as_dir in $PATH
13487do
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13492 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13495 fi
13496done
13497 done
13498IFS=$as_save_IFS
13499
13500fi
13501fi
13502GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13503if test -n "$GDC_FOR_TARGET"; then
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13505$as_echo "$GDC_FOR_TARGET" >&6; }
13506else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508$as_echo "no" >&6; }
13509fi
13510
13511
13512 fi
13513 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13515set dummy ${ncn_progname}; ac_word=$2
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13518if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13519 $as_echo_n "(cached) " >&6
13520else
13521 if test -n "$GDC_FOR_TARGET"; then
13522 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13523else
13524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525for as_dir in $PATH
13526do
13527 IFS=$as_save_IFS
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13531 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13533 break 2
13534 fi
13535done
13536 done
13537IFS=$as_save_IFS
13538
13539fi
13540fi
13541GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13542if test -n "$GDC_FOR_TARGET"; then
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13544$as_echo "$GDC_FOR_TARGET" >&6; }
13545else
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13547$as_echo "no" >&6; }
13548fi
13549
13550
13551 fi
13552 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13553 done
13554fi
13555
13556if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13557 set dummy gdc
13558 if test $build = $target ; then
13559 GDC_FOR_TARGET="$2"
13560 else
13561 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13562 fi
13563else
13564 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13565fi
13566
13567
13568
e8b05380
PB
13569cat > conftest.c << \EOF
13570#ifdef __GNUC__
13571 gcc_yay;
13572#endif
13573EOF
13574if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13575 have_gcc_for_target=yes
13576else
13577 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13578 have_gcc_for_target=no
13579fi
13580rm conftest.c
13581
13582
13583
13584
13585if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13586 if test -n "$with_build_time_tools"; then
5213506e
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13588$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13589 if test -x $with_build_time_tools/ar; then
13590 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13591 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13593$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13594 else
5213506e
RW
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13596$as_echo "no" >&6; }
d1f8db0c 13597 fi
e8b05380
PB
13598 elif test $build != $host && test $have_gcc_for_target = yes; then
13599 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13600 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13601 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13602 fi
13603fi
3e19841a 13604if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13605 # Extract the first word of "ar", so it can be a program name with args.
13606set dummy ar; ac_word=$2
5213506e
RW
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13609if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13610 $as_echo_n "(cached) " >&6
e8b05380 13611else
1c710c3c
DJ
13612 case $AR_FOR_TARGET in
13613 [\\/]* | ?:[\\/]*)
e8b05380
PB
13614 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13615 ;;
e8b05380 13616 *)
1c710c3c
DJ
13617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13618for as_dir in $gcc_cv_tool_dirs
13619do
13620 IFS=$as_save_IFS
13621 test -z "$as_dir" && as_dir=.
5213506e 13622 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13624 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13626 break 2
13627 fi
13628done
5213506e
RW
13629 done
13630IFS=$as_save_IFS
1c710c3c 13631
e8b05380
PB
13632 ;;
13633esac
13634fi
1c710c3c 13635AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13636if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13638$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13639else
5213506e
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641$as_echo "no" >&6; }
4de997d1
PB
13642fi
13643
5213506e 13644
e8b05380
PB
13645fi
13646if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13647
13648
13649if test -n "$AR_FOR_TARGET"; then
13650 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13651elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13652 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13653fi
13654
13655if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13656 for ncn_progname in ar; do
13657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13658set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13660$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13661if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13662 $as_echo_n "(cached) " >&6
278a7a38
AO
13663else
13664 if test -n "$AR_FOR_TARGET"; then
13665 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13666else
13667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668for as_dir in $PATH
13669do
13670 IFS=$as_save_IFS
13671 test -z "$as_dir" && as_dir=.
5213506e 13672 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13674 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13676 break 2
13677 fi
13678done
5213506e
RW
13679 done
13680IFS=$as_save_IFS
278a7a38
AO
13681
13682fi
13683fi
13684AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13685if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13687$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13688else
5213506e
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690$as_echo "no" >&6; }
278a7a38
AO
13691fi
13692
5213506e 13693
278a7a38
AO
13694 done
13695fi
13696
13697if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13698 for ncn_progname in ar; do
5213506e
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13700$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13701 if test -x $with_build_time_tools/${ncn_progname}; then
13702 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13704$as_echo "yes" >&6; }
e8b05380
PB
13705 break
13706 else
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708$as_echo "no" >&6; }
e8b05380
PB
13709 fi
13710 done
13711fi
13712
13713if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13714 for ncn_progname in ar; do
13715 if test -n "$ncn_target_tool_prefix"; then
13716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13717set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13720if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13721 $as_echo_n "(cached) " >&6
4de997d1 13722else
e8b05380
PB
13723 if test -n "$AR_FOR_TARGET"; then
13724 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13725else
1c710c3c
DJ
13726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727for as_dir in $PATH
13728do
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
5213506e 13731 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13733 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13735 break 2
13736 fi
13737done
5213506e
RW
13738 done
13739IFS=$as_save_IFS
1c710c3c 13740
4de997d1
PB
13741fi
13742fi
1c710c3c 13743AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13744if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13746$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 13747else
5213506e
RW
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749$as_echo "no" >&6; }
4de997d1
PB
13750fi
13751
5213506e 13752
e8b05380
PB
13753 fi
13754 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13756set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13758$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13759if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13760 $as_echo_n "(cached) " >&6
e8b05380
PB
13761else
13762 if test -n "$AR_FOR_TARGET"; then
13763 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13764else
1c710c3c
DJ
13765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766for as_dir in $PATH
13767do
13768 IFS=$as_save_IFS
13769 test -z "$as_dir" && as_dir=.
5213506e 13770 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13772 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13774 break 2
13775 fi
13776done
5213506e
RW
13777 done
13778IFS=$as_save_IFS
1c710c3c 13779
e8b05380
PB
13780fi
13781fi
1c710c3c 13782AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13783if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13785$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13786else
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788$as_echo "no" >&6; }
e8b05380 13789fi
1c710c3c 13790
5213506e 13791
e8b05380
PB
13792 fi
13793 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13794 done
13795fi
1c710c3c 13796
e8b05380
PB
13797if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13798 set dummy ar
13799 if test $build = $target ; then
13800 AR_FOR_TARGET="$2"
13801 else
13802 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 13803 fi
1c00b503
PB
13804else
13805 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
13806fi
13807
d1f8db0c
PB
13808else
13809 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
13810fi
13811
13812
13813
13814
13815if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13816 if test -n "$with_build_time_tools"; then
5213506e
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13818$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13819 if test -x $with_build_time_tools/as; then
13820 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13821 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13823$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 13824 else
5213506e
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826$as_echo "no" >&6; }
d1f8db0c 13827 fi
e8b05380
PB
13828 elif test $build != $host && test $have_gcc_for_target = yes; then
13829 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
13830 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13831 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
13832 fi
13833fi
3e19841a 13834if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13835 # Extract the first word of "as", so it can be a program name with args.
13836set dummy as; ac_word=$2
5213506e
RW
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13839if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 13840 $as_echo_n "(cached) " >&6
e8b05380 13841else
1c710c3c
DJ
13842 case $AS_FOR_TARGET in
13843 [\\/]* | ?:[\\/]*)
e8b05380
PB
13844 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13845 ;;
e8b05380 13846 *)
1c710c3c
DJ
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848for as_dir in $gcc_cv_tool_dirs
13849do
13850 IFS=$as_save_IFS
13851 test -z "$as_dir" && as_dir=.
5213506e 13852 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13854 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13856 break 2
13857 fi
13858done
5213506e
RW
13859 done
13860IFS=$as_save_IFS
1c710c3c 13861
e8b05380
PB
13862 ;;
13863esac
13864fi
1c710c3c 13865AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 13866if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13868$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13869else
5213506e
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871$as_echo "no" >&6; }
e8b05380
PB
13872fi
13873
5213506e 13874
e8b05380
PB
13875fi
13876if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
13877
13878
13879if test -n "$AS_FOR_TARGET"; then
13880 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13881elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13882 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13883fi
13884
13885if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13886 for ncn_progname in as; do
13887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13888set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13890$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13891if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13892 $as_echo_n "(cached) " >&6
278a7a38
AO
13893else
13894 if test -n "$AS_FOR_TARGET"; then
13895 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13896else
13897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898for as_dir in $PATH
13899do
13900 IFS=$as_save_IFS
13901 test -z "$as_dir" && as_dir=.
5213506e 13902 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13904 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 13905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13906 break 2
13907 fi
13908done
5213506e
RW
13909 done
13910IFS=$as_save_IFS
278a7a38
AO
13911
13912fi
13913fi
13914AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13915if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13917$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 13918else
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920$as_echo "no" >&6; }
278a7a38
AO
13921fi
13922
5213506e 13923
278a7a38
AO
13924 done
13925fi
13926
13927if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13928 for ncn_progname in as; do
5213506e
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13930$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13931 if test -x $with_build_time_tools/${ncn_progname}; then
13932 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13934$as_echo "yes" >&6; }
e8b05380
PB
13935 break
13936 else
5213506e
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13938$as_echo "no" >&6; }
e8b05380
PB
13939 fi
13940 done
13941fi
13942
13943if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13944 for ncn_progname in as; do
13945 if test -n "$ncn_target_tool_prefix"; then
13946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13947set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13950if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13951 $as_echo_n "(cached) " >&6
e8b05380
PB
13952else
13953 if test -n "$AS_FOR_TARGET"; then
13954 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13955else
1c710c3c
DJ
13956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957for as_dir in $PATH
13958do
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
5213506e 13961 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13963 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13965 break 2
13966 fi
13967done
5213506e
RW
13968 done
13969IFS=$as_save_IFS
1c710c3c 13970
e8b05380
PB
13971fi
13972fi
1c710c3c 13973AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 13974if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13976$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13977else
5213506e
RW
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979$as_echo "no" >&6; }
e8b05380
PB
13980fi
13981
5213506e 13982
e8b05380
PB
13983 fi
13984 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13986set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13989if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13990 $as_echo_n "(cached) " >&6
4de997d1 13991else
e8b05380
PB
13992 if test -n "$AS_FOR_TARGET"; then
13993 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 13994else
1c710c3c
DJ
13995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13996for as_dir in $PATH
13997do
13998 IFS=$as_save_IFS
13999 test -z "$as_dir" && as_dir=.
5213506e 14000 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14002 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14004 break 2
14005 fi
14006done
5213506e
RW
14007 done
14008IFS=$as_save_IFS
1c710c3c 14009
4de997d1
PB
14010fi
14011fi
1c710c3c 14012AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14013if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14015$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14016else
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14018$as_echo "no" >&6; }
4de997d1 14019fi
1c710c3c 14020
5213506e 14021
e8b05380
PB
14022 fi
14023 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14024 done
14025fi
1c710c3c 14026
e8b05380
PB
14027if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14028 set dummy as
14029 if test $build = $target ; then
14030 AS_FOR_TARGET="$2"
14031 else
14032 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14033 fi
1c00b503
PB
14034else
14035 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14036fi
2693c0b0 14037
d1f8db0c
PB
14038else
14039 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14040fi
14041
e8b05380
PB
14042
14043
14044
14045if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14046 if test -n "$with_build_time_tools"; then
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14048$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14049 if test -x $with_build_time_tools/dlltool; then
14050 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14051 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14053$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14054 else
5213506e
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14056$as_echo "no" >&6; }
d1f8db0c 14057 fi
e8b05380
PB
14058 elif test $build != $host && test $have_gcc_for_target = yes; then
14059 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14060 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14061 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14062 fi
14063fi
3e19841a 14064if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14065 # Extract the first word of "dlltool", so it can be a program name with args.
14066set dummy dlltool; ac_word=$2
5213506e
RW
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14068$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14069if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14070 $as_echo_n "(cached) " >&6
4de997d1 14071else
1c710c3c
DJ
14072 case $DLLTOOL_FOR_TARGET in
14073 [\\/]* | ?:[\\/]*)
e8b05380
PB
14074 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14075 ;;
e8b05380 14076 *)
1c710c3c
DJ
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $gcc_cv_tool_dirs
14079do
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
5213506e 14082 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14084 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14086 break 2
14087 fi
14088done
5213506e
RW
14089 done
14090IFS=$as_save_IFS
1c710c3c 14091
e8b05380
PB
14092 ;;
14093esac
4de997d1 14094fi
1c710c3c 14095DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14096if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14098$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14099else
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101$as_echo "no" >&6; }
4de997d1
PB
14102fi
14103
5213506e 14104
e8b05380
PB
14105fi
14106if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14107
14108
14109if test -n "$DLLTOOL_FOR_TARGET"; then
14110 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14111elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14112 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14113fi
14114
14115if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14116 for ncn_progname in dlltool; do
14117 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14118set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14120$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14121if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14122 $as_echo_n "(cached) " >&6
278a7a38
AO
14123else
14124 if test -n "$DLLTOOL_FOR_TARGET"; then
14125 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14126else
14127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14128for as_dir in $PATH
14129do
14130 IFS=$as_save_IFS
14131 test -z "$as_dir" && as_dir=.
5213506e 14132 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14134 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14136 break 2
14137 fi
14138done
5213506e
RW
14139 done
14140IFS=$as_save_IFS
278a7a38
AO
14141
14142fi
14143fi
14144DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14145if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14147$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14148else
5213506e
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14150$as_echo "no" >&6; }
278a7a38
AO
14151fi
14152
5213506e 14153
278a7a38
AO
14154 done
14155fi
14156
14157if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14158 for ncn_progname in dlltool; do
5213506e
RW
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14160$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14161 if test -x $with_build_time_tools/${ncn_progname}; then
14162 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14164$as_echo "yes" >&6; }
e8b05380
PB
14165 break
14166 else
5213506e
RW
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14168$as_echo "no" >&6; }
e8b05380
PB
14169 fi
14170 done
14171fi
14172
14173if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14174 for ncn_progname in dlltool; do
14175 if test -n "$ncn_target_tool_prefix"; then
14176 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14177set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14179$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14180if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14181 $as_echo_n "(cached) " >&6
4de997d1 14182else
e8b05380
PB
14183 if test -n "$DLLTOOL_FOR_TARGET"; then
14184 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14185else
1c710c3c
DJ
14186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187for as_dir in $PATH
14188do
14189 IFS=$as_save_IFS
14190 test -z "$as_dir" && as_dir=.
5213506e 14191 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14193 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14195 break 2
14196 fi
14197done
5213506e
RW
14198 done
14199IFS=$as_save_IFS
1c710c3c 14200
4de997d1
PB
14201fi
14202fi
1c710c3c 14203DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14204if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14206$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14207else
5213506e
RW
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209$as_echo "no" >&6; }
4de997d1 14210fi
4de997d1 14211
5213506e 14212
e8b05380
PB
14213 fi
14214 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14216set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14219if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14220 $as_echo_n "(cached) " >&6
4de997d1 14221else
e8b05380
PB
14222 if test -n "$DLLTOOL_FOR_TARGET"; then
14223 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14224else
1c710c3c
DJ
14225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14226for as_dir in $PATH
14227do
14228 IFS=$as_save_IFS
14229 test -z "$as_dir" && as_dir=.
5213506e 14230 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14232 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14234 break 2
14235 fi
14236done
5213506e
RW
14237 done
14238IFS=$as_save_IFS
1c710c3c 14239
4de997d1
PB
14240fi
14241fi
1c710c3c 14242DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14243if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14245$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14246else
5213506e
RW
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248$as_echo "no" >&6; }
4de997d1 14249fi
1c710c3c 14250
5213506e 14251
e8b05380
PB
14252 fi
14253 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14254 done
14255fi
1c710c3c 14256
e8b05380
PB
14257if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14258 set dummy dlltool
14259 if test $build = $target ; then
14260 DLLTOOL_FOR_TARGET="$2"
14261 else
14262 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14263 fi
1c00b503
PB
14264else
14265 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14266fi
14267
d1f8db0c
PB
14268else
14269 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14270fi
14271
4de997d1 14272
e8b05380
PB
14273
14274
3b5e8ee4
IS
14275if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14276 if test -n "$with_build_time_tools"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14278$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14279 if test -x $with_build_time_tools/dsymutil; then
14280 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14281 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14283$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14284 else
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286$as_echo "no" >&6; }
14287 fi
14288 elif test $build != $host && test $have_gcc_for_target = yes; then
14289 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14290 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14291 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14292 fi
14293fi
14294if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14295 # Extract the first word of "dsymutil", so it can be a program name with args.
14296set dummy dsymutil; ac_word=$2
14297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14298$as_echo_n "checking for $ac_word... " >&6; }
14299if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301else
14302 case $DSYMUTIL_FOR_TARGET in
14303 [\\/]* | ?:[\\/]*)
14304 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14305 ;;
14306 *)
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308for as_dir in $gcc_cv_tool_dirs
14309do
14310 IFS=$as_save_IFS
14311 test -z "$as_dir" && as_dir=.
14312 for ac_exec_ext in '' $ac_executable_extensions; do
14313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14314 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14316 break 2
14317 fi
14318done
14319 done
14320IFS=$as_save_IFS
14321
14322 ;;
14323esac
14324fi
14325DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14326if test -n "$DSYMUTIL_FOR_TARGET"; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14328$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14329else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14331$as_echo "no" >&6; }
14332fi
14333
14334
14335fi
14336if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14337
14338
14339if test -n "$DSYMUTIL_FOR_TARGET"; then
14340 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14341elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14342 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14343fi
14344
14345if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14346 for ncn_progname in dsymutil; do
14347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14348set dummy ${ncn_progname}; ac_word=$2
14349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14350$as_echo_n "checking for $ac_word... " >&6; }
14351if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353else
14354 if test -n "$DSYMUTIL_FOR_TARGET"; then
14355 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14356else
14357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358for as_dir in $PATH
14359do
14360 IFS=$as_save_IFS
14361 test -z "$as_dir" && as_dir=.
14362 for ac_exec_ext in '' $ac_executable_extensions; do
14363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14364 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14366 break 2
14367 fi
14368done
14369 done
14370IFS=$as_save_IFS
14371
14372fi
14373fi
14374DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14375if test -n "$DSYMUTIL_FOR_TARGET"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14377$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14378else
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14380$as_echo "no" >&6; }
14381fi
14382
14383
14384 done
14385fi
14386
14387if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14388 for ncn_progname in dsymutil; do
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14390$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14391 if test -x $with_build_time_tools/${ncn_progname}; then
14392 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14394$as_echo "yes" >&6; }
14395 break
14396 else
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398$as_echo "no" >&6; }
14399 fi
14400 done
14401fi
14402
14403if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14404 for ncn_progname in dsymutil; do
14405 if test -n "$ncn_target_tool_prefix"; then
14406 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14407set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409$as_echo_n "checking for $ac_word... " >&6; }
14410if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14411 $as_echo_n "(cached) " >&6
14412else
14413 if test -n "$DSYMUTIL_FOR_TARGET"; then
14414 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14415else
14416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14417for as_dir in $PATH
14418do
14419 IFS=$as_save_IFS
14420 test -z "$as_dir" && as_dir=.
14421 for ac_exec_ext in '' $ac_executable_extensions; do
14422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14423 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14425 break 2
14426 fi
14427done
14428 done
14429IFS=$as_save_IFS
14430
14431fi
14432fi
14433DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14434if test -n "$DSYMUTIL_FOR_TARGET"; then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14436$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14437else
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439$as_echo "no" >&6; }
14440fi
14441
14442
14443 fi
14444 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14446set dummy ${ncn_progname}; ac_word=$2
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448$as_echo_n "checking for $ac_word... " >&6; }
14449if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451else
14452 if test -n "$DSYMUTIL_FOR_TARGET"; then
14453 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14454else
14455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456for as_dir in $PATH
14457do
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 break 2
14465 fi
14466done
14467 done
14468IFS=$as_save_IFS
14469
14470fi
14471fi
14472DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14473if test -n "$DSYMUTIL_FOR_TARGET"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14475$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14476else
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478$as_echo "no" >&6; }
14479fi
14480
14481
14482 fi
14483 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14484 done
14485fi
14486
14487if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14488 set dummy dsymutil
14489 if test $build = $target ; then
14490 DSYMUTIL_FOR_TARGET="$2"
14491 else
14492 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14493 fi
14494else
14495 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14496fi
14497
14498else
14499 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14500fi
14501
14502
14503
14504
e8b05380
PB
14505if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14506 if test -n "$with_build_time_tools"; then
5213506e
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14508$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14509 if test -x $with_build_time_tools/ld; then
14510 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14511 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14513$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14514 else
5213506e
RW
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14516$as_echo "no" >&6; }
d1f8db0c 14517 fi
e8b05380
PB
14518 elif test $build != $host && test $have_gcc_for_target = yes; then
14519 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14520 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14521 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14522 fi
e8b05380 14523fi
3e19841a 14524if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14525 # Extract the first word of "ld", so it can be a program name with args.
14526set dummy ld; ac_word=$2
5213506e
RW
14527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14528$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14529if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14530 $as_echo_n "(cached) " >&6
4de997d1 14531else
1c710c3c
DJ
14532 case $LD_FOR_TARGET in
14533 [\\/]* | ?:[\\/]*)
e8b05380
PB
14534 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14535 ;;
e8b05380 14536 *)
1c710c3c
DJ
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538for as_dir in $gcc_cv_tool_dirs
14539do
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
5213506e 14542 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14544 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14546 break 2
14547 fi
14548done
5213506e
RW
14549 done
14550IFS=$as_save_IFS
1c710c3c 14551
e8b05380
PB
14552 ;;
14553esac
4de997d1 14554fi
1c710c3c 14555LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14556if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14558$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14559else
5213506e
RW
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14561$as_echo "no" >&6; }
4de997d1 14562fi
2693c0b0 14563
5213506e 14564
e8b05380
PB
14565fi
14566if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14567
14568
14569if test -n "$LD_FOR_TARGET"; then
14570 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14571elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14572 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14573fi
14574
14575if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14576 for ncn_progname in ld; do
14577 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14578set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14580$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14581if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14582 $as_echo_n "(cached) " >&6
278a7a38
AO
14583else
14584 if test -n "$LD_FOR_TARGET"; then
14585 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14586else
14587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14588for as_dir in $PATH
14589do
14590 IFS=$as_save_IFS
14591 test -z "$as_dir" && as_dir=.
5213506e 14592 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14594 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14596 break 2
14597 fi
14598done
5213506e
RW
14599 done
14600IFS=$as_save_IFS
278a7a38
AO
14601
14602fi
14603fi
14604LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14605if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14607$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14608else
5213506e
RW
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610$as_echo "no" >&6; }
278a7a38
AO
14611fi
14612
5213506e 14613
278a7a38
AO
14614 done
14615fi
14616
14617if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14618 for ncn_progname in ld; do
5213506e
RW
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14620$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14621 if test -x $with_build_time_tools/${ncn_progname}; then
14622 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624$as_echo "yes" >&6; }
e8b05380
PB
14625 break
14626 else
5213506e
RW
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14628$as_echo "no" >&6; }
e8b05380
PB
14629 fi
14630 done
ca9f4b81
AO
14631fi
14632
e8b05380
PB
14633if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14634 for ncn_progname in ld; do
14635 if test -n "$ncn_target_tool_prefix"; then
14636 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14637set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14639$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14640if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14641 $as_echo_n "(cached) " >&6
ca9f4b81 14642else
4de997d1
PB
14643 if test -n "$LD_FOR_TARGET"; then
14644 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14645else
1c710c3c
DJ
14646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647for as_dir in $PATH
14648do
14649 IFS=$as_save_IFS
14650 test -z "$as_dir" && as_dir=.
5213506e 14651 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14653 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14655 break 2
14656 fi
14657done
5213506e
RW
14658 done
14659IFS=$as_save_IFS
1c710c3c 14660
ca9f4b81
AO
14661fi
14662fi
1c710c3c 14663LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14664if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14666$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14667else
5213506e
RW
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14669$as_echo "no" >&6; }
ca9f4b81
AO
14670fi
14671
5213506e 14672
e8b05380
PB
14673 fi
14674 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14676set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14678$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14679if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14680 $as_echo_n "(cached) " >&6
ca9f4b81 14681else
2693c0b0
PB
14682 if test -n "$LD_FOR_TARGET"; then
14683 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14684else
1c710c3c
DJ
14685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14686for as_dir in $PATH
14687do
14688 IFS=$as_save_IFS
14689 test -z "$as_dir" && as_dir=.
5213506e 14690 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14692 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14694 break 2
14695 fi
14696done
5213506e
RW
14697 done
14698IFS=$as_save_IFS
1c710c3c 14699
ca9f4b81
AO
14700fi
14701fi
1c710c3c 14702LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14703if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14705$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14706else
5213506e
RW
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14708$as_echo "no" >&6; }
ca9f4b81 14709fi
1c710c3c 14710
5213506e 14711
e8b05380
PB
14712 fi
14713 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14714 done
14715fi
1c710c3c 14716
2693c0b0
PB
14717if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14718 set dummy ld
14719 if test $build = $target ; then
14720 LD_FOR_TARGET="$2"
ca9f4b81 14721 else
2693c0b0 14722 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14723 fi
1c00b503
PB
14724else
14725 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14726fi
14727
d1f8db0c
PB
14728else
14729 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14730fi
14731
14732
14733
14734
14735if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14736 if test -n "$with_build_time_tools"; then
5213506e
RW
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14738$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14739 if test -x $with_build_time_tools/lipo; then
14740 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14741 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14743$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 14744 else
5213506e
RW
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14746$as_echo "no" >&6; }
d1f8db0c 14747 fi
e8b05380
PB
14748 elif test $build != $host && test $have_gcc_for_target = yes; then
14749 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
14750 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14751 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
14752 fi
14753fi
278a7a38
AO
14754if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14755 # Extract the first word of "lipo", so it can be a program name with args.
14756set dummy lipo; ac_word=$2
5213506e
RW
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14758$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14759if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 14760 $as_echo_n "(cached) " >&6
278a7a38
AO
14761else
14762 case $LIPO_FOR_TARGET in
14763 [\\/]* | ?:[\\/]*)
14764 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14765 ;;
14766 *)
14767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768for as_dir in $gcc_cv_tool_dirs
14769do
14770 IFS=$as_save_IFS
14771 test -z "$as_dir" && as_dir=.
5213506e 14772 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14774 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14776 break 2
14777 fi
14778done
5213506e
RW
14779 done
14780IFS=$as_save_IFS
278a7a38
AO
14781
14782 ;;
14783esac
14784fi
14785LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 14786if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14788$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 14789else
5213506e
RW
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14791$as_echo "no" >&6; }
278a7a38
AO
14792fi
14793
5213506e 14794
278a7a38
AO
14795fi
14796if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14797
14798
14799if test -n "$LIPO_FOR_TARGET"; then
14800 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14801elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14802 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14803fi
14804
14805if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14806 for ncn_progname in lipo; do
14807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14808set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14810$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14811if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14812 $as_echo_n "(cached) " >&6
e8b05380 14813else
278a7a38
AO
14814 if test -n "$LIPO_FOR_TARGET"; then
14815 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14816else
14817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14818for as_dir in $PATH
1c710c3c
DJ
14819do
14820 IFS=$as_save_IFS
14821 test -z "$as_dir" && as_dir=.
5213506e 14822 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14824 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14826 break 2
14827 fi
14828done
5213506e
RW
14829 done
14830IFS=$as_save_IFS
1c710c3c 14831
e8b05380 14832fi
278a7a38
AO
14833fi
14834LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 14835if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14837$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 14838else
5213506e
RW
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14840$as_echo "no" >&6; }
e8b05380
PB
14841fi
14842
5213506e 14843
278a7a38 14844 done
e8b05380 14845fi
278a7a38
AO
14846
14847if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14848 for ncn_progname in lipo; do
5213506e
RW
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14850$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14851 if test -x $with_build_time_tools/${ncn_progname}; then
14852 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14854$as_echo "yes" >&6; }
e8b05380
PB
14855 break
14856 else
5213506e
RW
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14858$as_echo "no" >&6; }
e8b05380
PB
14859 fi
14860 done
14861fi
14862
14863if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14864 for ncn_progname in lipo; do
14865 if test -n "$ncn_target_tool_prefix"; then
14866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14867set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14869$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14870if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14871 $as_echo_n "(cached) " >&6
040b1c5a
GK
14872else
14873 if test -n "$LIPO_FOR_TARGET"; then
14874 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14875else
1c710c3c
DJ
14876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14877for as_dir in $PATH
14878do
14879 IFS=$as_save_IFS
14880 test -z "$as_dir" && as_dir=.
5213506e 14881 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14883 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14885 break 2
14886 fi
14887done
5213506e
RW
14888 done
14889IFS=$as_save_IFS
1c710c3c 14890
040b1c5a
GK
14891fi
14892fi
1c710c3c 14893LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14894if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14896$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14897else
5213506e
RW
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14899$as_echo "no" >&6; }
040b1c5a
GK
14900fi
14901
5213506e 14902
e8b05380
PB
14903 fi
14904 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 14906set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14908$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14909if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14910 $as_echo_n "(cached) " >&6
040b1c5a
GK
14911else
14912 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
14913 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14914else
1c710c3c
DJ
14915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916for as_dir in $PATH
14917do
14918 IFS=$as_save_IFS
14919 test -z "$as_dir" && as_dir=.
5213506e 14920 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14922 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14924 break 2
14925 fi
14926done
5213506e
RW
14927 done
14928IFS=$as_save_IFS
1c710c3c 14929
040b1c5a
GK
14930fi
14931fi
1c710c3c 14932LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14933if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14935$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14936else
5213506e
RW
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938$as_echo "no" >&6; }
040b1c5a 14939fi
1c710c3c 14940
5213506e 14941
e8b05380
PB
14942 fi
14943 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14944 done
14945fi
1c710c3c 14946
040b1c5a
GK
14947if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14948 set dummy lipo
14949 if test $build = $target ; then
14950 LIPO_FOR_TARGET="$2"
14951 else
14952 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14953 fi
1c00b503
PB
14954else
14955 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
14956fi
14957
d1f8db0c
PB
14958else
14959 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
14960fi
14961
14962
14963
14964
14965if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14966 if test -n "$with_build_time_tools"; then
5213506e
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14968$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14969 if test -x $with_build_time_tools/nm; then
14970 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14971 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14973$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 14974 else
5213506e
RW
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14976$as_echo "no" >&6; }
d1f8db0c 14977 fi
e8b05380
PB
14978 elif test $build != $host && test $have_gcc_for_target = yes; then
14979 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
14980 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14981 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
14982 fi
14983fi
3e19841a 14984if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14985 # Extract the first word of "nm", so it can be a program name with args.
14986set dummy nm; ac_word=$2
5213506e
RW
14987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14988$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14989if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 14990 $as_echo_n "(cached) " >&6
e8b05380 14991else
1c710c3c
DJ
14992 case $NM_FOR_TARGET in
14993 [\\/]* | ?:[\\/]*)
e8b05380
PB
14994 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14995 ;;
e8b05380 14996 *)
1c710c3c
DJ
14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998for as_dir in $gcc_cv_tool_dirs
14999do
15000 IFS=$as_save_IFS
15001 test -z "$as_dir" && as_dir=.
5213506e 15002 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15004 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15006 break 2
15007 fi
15008done
5213506e
RW
15009 done
15010IFS=$as_save_IFS
1c710c3c 15011
e8b05380
PB
15012 ;;
15013esac
15014fi
1c710c3c 15015NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15016if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15018$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15019else
5213506e
RW
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15021$as_echo "no" >&6; }
e8b05380
PB
15022fi
15023
5213506e 15024
e8b05380
PB
15025fi
15026if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15027
15028
15029if test -n "$NM_FOR_TARGET"; then
15030 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15031elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15032 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15033fi
15034
15035if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15036 for ncn_progname in nm; do
15037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15038set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15040$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15041if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15042 $as_echo_n "(cached) " >&6
278a7a38
AO
15043else
15044 if test -n "$NM_FOR_TARGET"; then
15045 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15046else
15047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15048for as_dir in $PATH
15049do
15050 IFS=$as_save_IFS
15051 test -z "$as_dir" && as_dir=.
5213506e 15052 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15054 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15056 break 2
15057 fi
15058done
5213506e
RW
15059 done
15060IFS=$as_save_IFS
278a7a38
AO
15061
15062fi
15063fi
15064NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15065if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15067$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15068else
5213506e
RW
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15070$as_echo "no" >&6; }
278a7a38
AO
15071fi
15072
5213506e 15073
278a7a38
AO
15074 done
15075fi
15076
15077if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15078 for ncn_progname in nm; do
5213506e
RW
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15080$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15081 if test -x $with_build_time_tools/${ncn_progname}; then
15082 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15084$as_echo "yes" >&6; }
e8b05380
PB
15085 break
15086 else
5213506e
RW
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15088$as_echo "no" >&6; }
e8b05380
PB
15089 fi
15090 done
15091fi
15092
15093if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15094 for ncn_progname in nm; do
15095 if test -n "$ncn_target_tool_prefix"; then
15096 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15097set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15100if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15101 $as_echo_n "(cached) " >&6
ca9f4b81 15102else
4de997d1
PB
15103 if test -n "$NM_FOR_TARGET"; then
15104 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15105else
1c710c3c
DJ
15106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107for as_dir in $PATH
15108do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
5213506e 15111 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15113 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15115 break 2
15116 fi
15117done
5213506e
RW
15118 done
15119IFS=$as_save_IFS
1c710c3c 15120
ca9f4b81
AO
15121fi
15122fi
1c710c3c 15123NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15124if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15126$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15127else
5213506e
RW
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129$as_echo "no" >&6; }
ca9f4b81
AO
15130fi
15131
5213506e 15132
e8b05380
PB
15133 fi
15134 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15136set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15138$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15139if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15140 $as_echo_n "(cached) " >&6
ca9f4b81 15141else
2693c0b0
PB
15142 if test -n "$NM_FOR_TARGET"; then
15143 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15144else
1c710c3c
DJ
15145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15146for as_dir in $PATH
15147do
15148 IFS=$as_save_IFS
15149 test -z "$as_dir" && as_dir=.
5213506e 15150 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15152 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15154 break 2
15155 fi
15156done
5213506e
RW
15157 done
15158IFS=$as_save_IFS
1c710c3c 15159
ca9f4b81
AO
15160fi
15161fi
1c710c3c 15162NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15163if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15165$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15166else
5213506e
RW
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168$as_echo "no" >&6; }
ca9f4b81 15169fi
1c710c3c 15170
5213506e 15171
e8b05380
PB
15172 fi
15173 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15174 done
15175fi
1c710c3c 15176
2693c0b0
PB
15177if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15178 set dummy nm
15179 if test $build = $target ; then
15180 NM_FOR_TARGET="$2"
ca9f4b81 15181 else
2693c0b0 15182 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15183 fi
1c00b503
PB
15184else
15185 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15186fi
15187
d1f8db0c
PB
15188else
15189 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15190fi
15191
15192
15193
15194
9bccfdf5
AP
15195if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15196 if test -n "$with_build_time_tools"; then
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15198$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15199 if test -x $with_build_time_tools/objcopy; then
15200 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15201 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15203$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15204 else
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15206$as_echo "no" >&6; }
15207 fi
15208 elif test $build != $host && test $have_gcc_for_target = yes; then
15209 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15210 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15211 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15212 fi
15213fi
15214if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15215 # Extract the first word of "objcopy", so it can be a program name with args.
15216set dummy objcopy; ac_word=$2
15217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15219if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15220 $as_echo_n "(cached) " >&6
15221else
15222 case $OBJCOPY_FOR_TARGET in
15223 [\\/]* | ?:[\\/]*)
15224 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15225 ;;
15226 *)
15227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15228for as_dir in $gcc_cv_tool_dirs
15229do
15230 IFS=$as_save_IFS
15231 test -z "$as_dir" && as_dir=.
15232 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15234 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15236 break 2
15237 fi
15238done
15239 done
15240IFS=$as_save_IFS
15241
15242 ;;
15243esac
15244fi
15245OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15246if test -n "$OBJCOPY_FOR_TARGET"; then
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15248$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15249else
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15251$as_echo "no" >&6; }
15252fi
15253
15254
15255fi
15256if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15257
15258
15259if test -n "$OBJCOPY_FOR_TARGET"; then
15260 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15261elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15262 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15263fi
15264
15265if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15266 for ncn_progname in objcopy; do
15267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15268set dummy ${ncn_progname}; ac_word=$2
15269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15270$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15271if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15272 $as_echo_n "(cached) " >&6
15273else
15274 if test -n "$OBJCOPY_FOR_TARGET"; then
15275 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15276else
15277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278for as_dir in $PATH
15279do
15280 IFS=$as_save_IFS
15281 test -z "$as_dir" && as_dir=.
15282 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15284 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15286 break 2
15287 fi
15288done
15289 done
15290IFS=$as_save_IFS
15291
15292fi
15293fi
15294OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15295if test -n "$OBJCOPY_FOR_TARGET"; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15297$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15298else
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300$as_echo "no" >&6; }
15301fi
15302
15303
15304 done
15305fi
15306
15307if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15308 for ncn_progname in objcopy; do
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15310$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15311 if test -x $with_build_time_tools/${ncn_progname}; then
15312 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15314$as_echo "yes" >&6; }
15315 break
15316 else
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15318$as_echo "no" >&6; }
15319 fi
15320 done
15321fi
15322
15323if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15324 for ncn_progname in objcopy; do
15325 if test -n "$ncn_target_tool_prefix"; then
15326 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15327set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15329$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15330if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15331 $as_echo_n "(cached) " >&6
15332else
15333 if test -n "$OBJCOPY_FOR_TARGET"; then
15334 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15335else
15336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15337for as_dir in $PATH
15338do
15339 IFS=$as_save_IFS
15340 test -z "$as_dir" && as_dir=.
15341 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15343 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15345 break 2
15346 fi
15347done
15348 done
15349IFS=$as_save_IFS
15350
15351fi
15352fi
15353OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15354if test -n "$OBJCOPY_FOR_TARGET"; then
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15356$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15357else
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359$as_echo "no" >&6; }
15360fi
15361
15362
15363 fi
15364 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15366set dummy ${ncn_progname}; ac_word=$2
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15368$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15369if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15370 $as_echo_n "(cached) " >&6
15371else
15372 if test -n "$OBJCOPY_FOR_TARGET"; then
15373 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15374else
15375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15376for as_dir in $PATH
15377do
15378 IFS=$as_save_IFS
15379 test -z "$as_dir" && as_dir=.
15380 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15382 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15384 break 2
15385 fi
15386done
15387 done
15388IFS=$as_save_IFS
15389
15390fi
15391fi
15392OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15393if test -n "$OBJCOPY_FOR_TARGET"; then
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15395$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15396else
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398$as_echo "no" >&6; }
15399fi
15400
15401
15402 fi
15403 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15404 done
15405fi
15406
15407if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15408 set dummy objcopy
15409 if test $build = $target ; then
15410 OBJCOPY_FOR_TARGET="$2"
15411 else
15412 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15413 fi
15414else
15415 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15416fi
15417
15418else
15419 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15420fi
15421
15422
15423
15424
e8b05380
PB
15425if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15426 if test -n "$with_build_time_tools"; then
5213506e
RW
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15428$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15429 if test -x $with_build_time_tools/objdump; then
15430 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15431 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15433$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15434 else
5213506e
RW
15435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15436$as_echo "no" >&6; }
d1f8db0c 15437 fi
e8b05380
PB
15438 elif test $build != $host && test $have_gcc_for_target = yes; then
15439 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15440 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15441 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15442 fi
15443fi
3e19841a 15444if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15445 # Extract the first word of "objdump", so it can be a program name with args.
15446set dummy objdump; ac_word=$2
5213506e
RW
15447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15449if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15450 $as_echo_n "(cached) " >&6
e8b05380 15451else
1c710c3c
DJ
15452 case $OBJDUMP_FOR_TARGET in
15453 [\\/]* | ?:[\\/]*)
e8b05380
PB
15454 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15455 ;;
e8b05380 15456 *)
1c710c3c
DJ
15457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458for as_dir in $gcc_cv_tool_dirs
15459do
15460 IFS=$as_save_IFS
15461 test -z "$as_dir" && as_dir=.
5213506e 15462 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15464 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15466 break 2
15467 fi
15468done
5213506e
RW
15469 done
15470IFS=$as_save_IFS
1c710c3c 15471
e8b05380
PB
15472 ;;
15473esac
15474fi
1c710c3c 15475OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15476if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15478$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15479else
5213506e
RW
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15481$as_echo "no" >&6; }
e8b05380
PB
15482fi
15483
5213506e 15484
e8b05380
PB
15485fi
15486if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15487
15488
15489if test -n "$OBJDUMP_FOR_TARGET"; then
15490 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15491elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15492 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15493fi
15494
15495if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15496 for ncn_progname in objdump; do
15497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15498set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15500$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15501if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15502 $as_echo_n "(cached) " >&6
278a7a38
AO
15503else
15504 if test -n "$OBJDUMP_FOR_TARGET"; then
15505 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15506else
15507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15508for as_dir in $PATH
15509do
15510 IFS=$as_save_IFS
15511 test -z "$as_dir" && as_dir=.
5213506e 15512 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15514 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15516 break 2
15517 fi
15518done
5213506e
RW
15519 done
15520IFS=$as_save_IFS
278a7a38
AO
15521
15522fi
15523fi
15524OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15525if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15527$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15528else
5213506e
RW
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15530$as_echo "no" >&6; }
278a7a38
AO
15531fi
15532
5213506e 15533
278a7a38
AO
15534 done
15535fi
15536
15537if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15538 for ncn_progname in objdump; do
5213506e
RW
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15540$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15541 if test -x $with_build_time_tools/${ncn_progname}; then
15542 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15544$as_echo "yes" >&6; }
e8b05380
PB
15545 break
15546 else
5213506e
RW
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15548$as_echo "no" >&6; }
e8b05380
PB
15549 fi
15550 done
15551fi
15552
15553if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15554 for ncn_progname in objdump; do
15555 if test -n "$ncn_target_tool_prefix"; then
15556 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15557set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15559$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15560if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15561 $as_echo_n "(cached) " >&6
d739199a
DJ
15562else
15563 if test -n "$OBJDUMP_FOR_TARGET"; then
15564 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15565else
1c710c3c
DJ
15566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15567for as_dir in $PATH
15568do
15569 IFS=$as_save_IFS
15570 test -z "$as_dir" && as_dir=.
5213506e 15571 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15573 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15575 break 2
15576 fi
15577done
5213506e
RW
15578 done
15579IFS=$as_save_IFS
1c710c3c 15580
d739199a
DJ
15581fi
15582fi
1c710c3c 15583OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15584if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15586$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15587else
5213506e
RW
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589$as_echo "no" >&6; }
d739199a
DJ
15590fi
15591
5213506e 15592
e8b05380
PB
15593 fi
15594 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15596set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15598$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15599if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15600 $as_echo_n "(cached) " >&6
d739199a
DJ
15601else
15602 if test -n "$OBJDUMP_FOR_TARGET"; then
15603 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15604else
1c710c3c
DJ
15605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15606for as_dir in $PATH
15607do
15608 IFS=$as_save_IFS
15609 test -z "$as_dir" && as_dir=.
5213506e 15610 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15612 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15614 break 2
15615 fi
15616done
5213506e
RW
15617 done
15618IFS=$as_save_IFS
1c710c3c 15619
d739199a
DJ
15620fi
15621fi
1c710c3c 15622OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15623if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15625$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15626else
5213506e
RW
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628$as_echo "no" >&6; }
d739199a 15629fi
1c710c3c 15630
5213506e 15631
e8b05380
PB
15632 fi
15633 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15634 done
15635fi
1c710c3c 15636
d739199a
DJ
15637if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15638 set dummy objdump
15639 if test $build = $target ; then
15640 OBJDUMP_FOR_TARGET="$2"
15641 else
15642 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15643 fi
1c00b503
PB
15644else
15645 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15646fi
15647
d1f8db0c
PB
15648else
15649 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15650fi
15651
15652
15653
15654
e4a9a572
IS
15655if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15656 if test -n "$with_build_time_tools"; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15658$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15659 if test -x $with_build_time_tools/otool; then
15660 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15661 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15663$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15664 else
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15666$as_echo "no" >&6; }
15667 fi
15668 elif test $build != $host && test $have_gcc_for_target = yes; then
15669 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15670 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15671 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15672 fi
15673fi
15674if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15675 # Extract the first word of "otool", so it can be a program name with args.
15676set dummy otool; ac_word=$2
15677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15678$as_echo_n "checking for $ac_word... " >&6; }
15679if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15680 $as_echo_n "(cached) " >&6
15681else
15682 case $OTOOL_FOR_TARGET in
15683 [\\/]* | ?:[\\/]*)
15684 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15685 ;;
15686 *)
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688for as_dir in $gcc_cv_tool_dirs
15689do
15690 IFS=$as_save_IFS
15691 test -z "$as_dir" && as_dir=.
15692 for ac_exec_ext in '' $ac_executable_extensions; do
15693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15694 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15696 break 2
15697 fi
15698done
15699 done
15700IFS=$as_save_IFS
15701
15702 ;;
15703esac
15704fi
15705OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15706if test -n "$OTOOL_FOR_TARGET"; then
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15708$as_echo "$OTOOL_FOR_TARGET" >&6; }
15709else
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711$as_echo "no" >&6; }
15712fi
15713
15714
15715fi
15716if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15717
15718
15719if test -n "$OTOOL_FOR_TARGET"; then
15720 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15721elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15722 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15723fi
15724
15725if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15726 for ncn_progname in otool; do
15727 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15728set dummy ${ncn_progname}; ac_word=$2
15729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15730$as_echo_n "checking for $ac_word... " >&6; }
15731if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15732 $as_echo_n "(cached) " >&6
15733else
15734 if test -n "$OTOOL_FOR_TARGET"; then
15735 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15736else
15737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15738for as_dir in $PATH
15739do
15740 IFS=$as_save_IFS
15741 test -z "$as_dir" && as_dir=.
15742 for ac_exec_ext in '' $ac_executable_extensions; do
15743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15744 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15746 break 2
15747 fi
15748done
15749 done
15750IFS=$as_save_IFS
15751
15752fi
15753fi
15754OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15755if test -n "$OTOOL_FOR_TARGET"; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15757$as_echo "$OTOOL_FOR_TARGET" >&6; }
15758else
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15760$as_echo "no" >&6; }
15761fi
15762
15763
15764 done
15765fi
15766
15767if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15768 for ncn_progname in otool; do
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15770$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15771 if test -x $with_build_time_tools/${ncn_progname}; then
15772 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15774$as_echo "yes" >&6; }
15775 break
15776 else
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778$as_echo "no" >&6; }
15779 fi
15780 done
15781fi
15782
15783if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15784 for ncn_progname in otool; do
15785 if test -n "$ncn_target_tool_prefix"; then
15786 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15787set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15789$as_echo_n "checking for $ac_word... " >&6; }
15790if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15791 $as_echo_n "(cached) " >&6
15792else
15793 if test -n "$OTOOL_FOR_TARGET"; then
15794 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15795else
15796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15797for as_dir in $PATH
15798do
15799 IFS=$as_save_IFS
15800 test -z "$as_dir" && as_dir=.
15801 for ac_exec_ext in '' $ac_executable_extensions; do
15802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15803 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15805 break 2
15806 fi
15807done
15808 done
15809IFS=$as_save_IFS
15810
15811fi
15812fi
15813OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15814if test -n "$OTOOL_FOR_TARGET"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15816$as_echo "$OTOOL_FOR_TARGET" >&6; }
15817else
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15819$as_echo "no" >&6; }
15820fi
15821
15822
15823 fi
15824 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15825 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15826set dummy ${ncn_progname}; ac_word=$2
15827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15828$as_echo_n "checking for $ac_word... " >&6; }
15829if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15830 $as_echo_n "(cached) " >&6
15831else
15832 if test -n "$OTOOL_FOR_TARGET"; then
15833 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15834else
15835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15836for as_dir in $PATH
15837do
15838 IFS=$as_save_IFS
15839 test -z "$as_dir" && as_dir=.
15840 for ac_exec_ext in '' $ac_executable_extensions; do
15841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15842 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15844 break 2
15845 fi
15846done
15847 done
15848IFS=$as_save_IFS
15849
15850fi
15851fi
15852OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15853if test -n "$OTOOL_FOR_TARGET"; then
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15855$as_echo "$OTOOL_FOR_TARGET" >&6; }
15856else
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15858$as_echo "no" >&6; }
15859fi
15860
15861
15862 fi
15863 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15864 done
15865fi
15866
15867if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15868 set dummy otool
15869 if test $build = $target ; then
15870 OTOOL_FOR_TARGET="$2"
15871 else
15872 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15873 fi
15874else
15875 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15876fi
15877
15878else
15879 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15880fi
15881
15882
15883
15884
e8b05380
PB
15885if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15886 if test -n "$with_build_time_tools"; then
5213506e
RW
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15888$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15889 if test -x $with_build_time_tools/ranlib; then
15890 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15891 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15893$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 15894 else
5213506e
RW
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15896$as_echo "no" >&6; }
d1f8db0c 15897 fi
e8b05380
PB
15898 elif test $build != $host && test $have_gcc_for_target = yes; then
15899 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
15900 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15901 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
15902 fi
15903fi
3e19841a 15904if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15905 # Extract the first word of "ranlib", so it can be a program name with args.
15906set dummy ranlib; ac_word=$2
5213506e
RW
15907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15908$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15909if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 15910 $as_echo_n "(cached) " >&6
e8b05380 15911else
1c710c3c
DJ
15912 case $RANLIB_FOR_TARGET in
15913 [\\/]* | ?:[\\/]*)
e8b05380
PB
15914 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15915 ;;
e8b05380 15916 *)
1c710c3c
DJ
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918for as_dir in $gcc_cv_tool_dirs
15919do
15920 IFS=$as_save_IFS
15921 test -z "$as_dir" && as_dir=.
5213506e 15922 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15924 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15926 break 2
15927 fi
15928done
5213506e
RW
15929 done
15930IFS=$as_save_IFS
1c710c3c 15931
e8b05380
PB
15932 ;;
15933esac
15934fi
1c710c3c 15935RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 15936if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15938$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 15939else
5213506e
RW
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15941$as_echo "no" >&6; }
e8b05380
PB
15942fi
15943
5213506e 15944
e8b05380
PB
15945fi
15946if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
15947
15948
15949if test -n "$RANLIB_FOR_TARGET"; then
15950 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15951elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15952 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15953fi
15954
15955if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15956 for ncn_progname in ranlib; do
15957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15958set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15960$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15961if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15962 $as_echo_n "(cached) " >&6
278a7a38
AO
15963else
15964 if test -n "$RANLIB_FOR_TARGET"; then
15965 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15966else
15967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15968for as_dir in $PATH
15969do
15970 IFS=$as_save_IFS
15971 test -z "$as_dir" && as_dir=.
5213506e 15972 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15974 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 15975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15976 break 2
15977 fi
15978done
5213506e
RW
15979 done
15980IFS=$as_save_IFS
278a7a38
AO
15981
15982fi
15983fi
15984RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15985if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15987$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 15988else
5213506e
RW
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15990$as_echo "no" >&6; }
278a7a38
AO
15991fi
15992
5213506e 15993
278a7a38
AO
15994 done
15995fi
15996
15997if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15998 for ncn_progname in ranlib; do
5213506e
RW
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16000$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16001 if test -x $with_build_time_tools/${ncn_progname}; then
16002 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16004$as_echo "yes" >&6; }
e8b05380
PB
16005 break
16006 else
5213506e
RW
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16008$as_echo "no" >&6; }
e8b05380
PB
16009 fi
16010 done
16011fi
16012
16013if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16014 for ncn_progname in ranlib; do
16015 if test -n "$ncn_target_tool_prefix"; then
16016 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16017set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16019$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16020if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16021 $as_echo_n "(cached) " >&6
ca9f4b81 16022else
4de997d1
PB
16023 if test -n "$RANLIB_FOR_TARGET"; then
16024 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16025else
1c710c3c
DJ
16026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16027for as_dir in $PATH
16028do
16029 IFS=$as_save_IFS
16030 test -z "$as_dir" && as_dir=.
5213506e 16031 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16033 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16035 break 2
16036 fi
16037done
5213506e
RW
16038 done
16039IFS=$as_save_IFS
1c710c3c 16040
ca9f4b81
AO
16041fi
16042fi
1c710c3c 16043RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16044if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16046$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16047else
5213506e
RW
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16049$as_echo "no" >&6; }
ca9f4b81
AO
16050fi
16051
5213506e 16052
e8b05380
PB
16053 fi
16054 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16056set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16058$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16059if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16060 $as_echo_n "(cached) " >&6
ca9f4b81 16061else
2693c0b0
PB
16062 if test -n "$RANLIB_FOR_TARGET"; then
16063 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16064else
1c710c3c
DJ
16065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16066for as_dir in $PATH
16067do
16068 IFS=$as_save_IFS
16069 test -z "$as_dir" && as_dir=.
5213506e 16070 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16072 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16074 break 2
16075 fi
16076done
5213506e
RW
16077 done
16078IFS=$as_save_IFS
1c710c3c 16079
ca9f4b81
AO
16080fi
16081fi
1c710c3c 16082RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16083if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16085$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16086else
5213506e
RW
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088$as_echo "no" >&6; }
ca9f4b81 16089fi
1c710c3c 16090
5213506e 16091
e8b05380
PB
16092 fi
16093 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16094 done
16095fi
1c710c3c 16096
e8b05380
PB
16097if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16098 set dummy ranlib
16099 if test $build = $target ; then
16100 RANLIB_FOR_TARGET="$2"
16101 else
16102 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16103 fi
1c00b503
PB
16104else
16105 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16106fi
2693c0b0 16107
d1f8db0c
PB
16108else
16109 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16110fi
16111
e8b05380
PB
16112
16113
16114
e7a82751
RM
16115if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16116 if test -n "$with_build_time_tools"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16118$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16119 if test -x $with_build_time_tools/readelf; then
16120 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16121 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16123$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16124 else
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126$as_echo "no" >&6; }
16127 fi
16128 elif test $build != $host && test $have_gcc_for_target = yes; then
16129 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16130 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16131 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16132 fi
16133fi
16134if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16135 # Extract the first word of "readelf", so it can be a program name with args.
16136set dummy readelf; ac_word=$2
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16138$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16139if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16140 $as_echo_n "(cached) " >&6
16141else
16142 case $READELF_FOR_TARGET in
16143 [\\/]* | ?:[\\/]*)
16144 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16145 ;;
16146 *)
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148for as_dir in $gcc_cv_tool_dirs
16149do
16150 IFS=$as_save_IFS
16151 test -z "$as_dir" && as_dir=.
16152 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16154 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16156 break 2
16157 fi
16158done
16159 done
16160IFS=$as_save_IFS
16161
16162 ;;
16163esac
16164fi
16165READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16166if test -n "$READELF_FOR_TARGET"; then
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16168$as_echo "$READELF_FOR_TARGET" >&6; }
16169else
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16171$as_echo "no" >&6; }
16172fi
16173
16174
16175fi
16176if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16177
16178
16179if test -n "$READELF_FOR_TARGET"; then
16180 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16181elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16182 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16183fi
16184
16185if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16186 for ncn_progname in readelf; do
16187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16188set dummy ${ncn_progname}; ac_word=$2
16189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16190$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16191if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16192 $as_echo_n "(cached) " >&6
16193else
16194 if test -n "$READELF_FOR_TARGET"; then
16195 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16196else
16197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16198for as_dir in $PATH
16199do
16200 IFS=$as_save_IFS
16201 test -z "$as_dir" && as_dir=.
16202 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16204 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16206 break 2
16207 fi
16208done
16209 done
16210IFS=$as_save_IFS
16211
16212fi
16213fi
16214READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16215if test -n "$READELF_FOR_TARGET"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16217$as_echo "$READELF_FOR_TARGET" >&6; }
16218else
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220$as_echo "no" >&6; }
16221fi
16222
16223
16224 done
16225fi
16226
16227if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16228 for ncn_progname in readelf; do
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16230$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16231 if test -x $with_build_time_tools/${ncn_progname}; then
16232 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234$as_echo "yes" >&6; }
16235 break
16236 else
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16238$as_echo "no" >&6; }
16239 fi
16240 done
16241fi
16242
16243if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16244 for ncn_progname in readelf; do
16245 if test -n "$ncn_target_tool_prefix"; then
16246 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16247set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16249$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16250if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16251 $as_echo_n "(cached) " >&6
16252else
16253 if test -n "$READELF_FOR_TARGET"; then
16254 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16255else
16256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257for as_dir in $PATH
16258do
16259 IFS=$as_save_IFS
16260 test -z "$as_dir" && as_dir=.
16261 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16263 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 break 2
16266 fi
16267done
16268 done
16269IFS=$as_save_IFS
16270
16271fi
16272fi
16273READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16274if test -n "$READELF_FOR_TARGET"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16276$as_echo "$READELF_FOR_TARGET" >&6; }
16277else
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279$as_echo "no" >&6; }
16280fi
16281
16282
16283 fi
16284 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16286set dummy ${ncn_progname}; ac_word=$2
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16288$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16289if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16290 $as_echo_n "(cached) " >&6
16291else
16292 if test -n "$READELF_FOR_TARGET"; then
16293 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16294else
16295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296for as_dir in $PATH
16297do
16298 IFS=$as_save_IFS
16299 test -z "$as_dir" && as_dir=.
16300 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16302 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16304 break 2
16305 fi
16306done
16307 done
16308IFS=$as_save_IFS
16309
16310fi
16311fi
16312READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16313if test -n "$READELF_FOR_TARGET"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16315$as_echo "$READELF_FOR_TARGET" >&6; }
16316else
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16318$as_echo "no" >&6; }
16319fi
16320
16321
16322 fi
16323 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16324 done
16325fi
16326
16327if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16328 set dummy readelf
16329 if test $build = $target ; then
16330 READELF_FOR_TARGET="$2"
16331 else
16332 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16333 fi
16334else
16335 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16336fi
16337
16338else
16339 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16340fi
16341
16342
16343
16344
e8b05380
PB
16345if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16346 if test -n "$with_build_time_tools"; then
5213506e
RW
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16348$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16349 if test -x $with_build_time_tools/strip; then
16350 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16351 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16353$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16354 else
5213506e
RW
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356$as_echo "no" >&6; }
d1f8db0c 16357 fi
e8b05380
PB
16358 elif test $build != $host && test $have_gcc_for_target = yes; then
16359 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16360 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16361 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16362 fi
16363fi
3e19841a 16364if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16365 # Extract the first word of "strip", so it can be a program name with args.
16366set dummy strip; ac_word=$2
5213506e
RW
16367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16368$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16369if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16370 $as_echo_n "(cached) " >&6
e8b05380 16371else
1c710c3c
DJ
16372 case $STRIP_FOR_TARGET in
16373 [\\/]* | ?:[\\/]*)
e8b05380
PB
16374 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16375 ;;
e8b05380 16376 *)
1c710c3c
DJ
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378for as_dir in $gcc_cv_tool_dirs
16379do
16380 IFS=$as_save_IFS
16381 test -z "$as_dir" && as_dir=.
5213506e 16382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16384 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16386 break 2
16387 fi
16388done
5213506e
RW
16389 done
16390IFS=$as_save_IFS
1c710c3c 16391
e8b05380
PB
16392 ;;
16393esac
16394fi
1c710c3c 16395STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16396if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16398$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16399else
5213506e
RW
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16401$as_echo "no" >&6; }
e8b05380
PB
16402fi
16403
5213506e 16404
e8b05380
PB
16405fi
16406if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16407
16408
16409if test -n "$STRIP_FOR_TARGET"; then
16410 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16411elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16412 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16413fi
16414
16415if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16416 for ncn_progname in strip; do
16417 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16418set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16420$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16421if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16422 $as_echo_n "(cached) " >&6
278a7a38
AO
16423else
16424 if test -n "$STRIP_FOR_TARGET"; then
16425 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16426else
16427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16428for as_dir in $PATH
16429do
16430 IFS=$as_save_IFS
16431 test -z "$as_dir" && as_dir=.
5213506e 16432 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16434 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16436 break 2
16437 fi
16438done
5213506e
RW
16439 done
16440IFS=$as_save_IFS
278a7a38
AO
16441
16442fi
16443fi
16444STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16445if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16447$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16448else
5213506e
RW
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16450$as_echo "no" >&6; }
278a7a38
AO
16451fi
16452
5213506e 16453
278a7a38
AO
16454 done
16455fi
16456
16457if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16458 for ncn_progname in strip; do
5213506e
RW
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16460$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16461 if test -x $with_build_time_tools/${ncn_progname}; then
16462 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16464$as_echo "yes" >&6; }
e8b05380
PB
16465 break
16466 else
5213506e
RW
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468$as_echo "no" >&6; }
e8b05380
PB
16469 fi
16470 done
16471fi
16472
16473if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16474 for ncn_progname in strip; do
16475 if test -n "$ncn_target_tool_prefix"; then
16476 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16477set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16479$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16480if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16481 $as_echo_n "(cached) " >&6
af71363e
AS
16482else
16483 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16484 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16485else
16486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16487for as_dir in $PATH
16488do
16489 IFS=$as_save_IFS
16490 test -z "$as_dir" && as_dir=.
5213506e 16491 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16493 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16495 break 2
16496 fi
16497done
5213506e
RW
16498 done
16499IFS=$as_save_IFS
1c710c3c 16500
040b1c5a
GK
16501fi
16502fi
1c710c3c 16503STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16504if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16506$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16507else
5213506e
RW
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509$as_echo "no" >&6; }
040b1c5a
GK
16510fi
16511
5213506e 16512
e8b05380
PB
16513 fi
16514 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16516set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16518$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16519if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16520 $as_echo_n "(cached) " >&6
040b1c5a
GK
16521else
16522 if test -n "$STRIP_FOR_TARGET"; then
16523 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16524else
1c710c3c
DJ
16525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16526for as_dir in $PATH
16527do
16528 IFS=$as_save_IFS
16529 test -z "$as_dir" && as_dir=.
5213506e 16530 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16532 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16534 break 2
16535 fi
16536done
5213506e
RW
16537 done
16538IFS=$as_save_IFS
1c710c3c 16539
040b1c5a
GK
16540fi
16541fi
1c710c3c 16542STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16543if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16545$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16546else
5213506e
RW
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548$as_echo "no" >&6; }
040b1c5a 16549fi
1c710c3c 16550
5213506e 16551
e8b05380
PB
16552 fi
16553 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16554 done
16555fi
1c710c3c 16556
040b1c5a
GK
16557if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16558 set dummy strip
16559 if test $build = $target ; then
16560 STRIP_FOR_TARGET="$2"
16561 else
16562 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16563 fi
1c00b503
PB
16564else
16565 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16566fi
16567
d1f8db0c
PB
16568else
16569 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16570fi
16571
16572
16573
16574
16575if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16576 if test -n "$with_build_time_tools"; then
5213506e
RW
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16578$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16579 if test -x $with_build_time_tools/windres; then
16580 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16581 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16583$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16584 else
5213506e
RW
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586$as_echo "no" >&6; }
d1f8db0c 16587 fi
e8b05380
PB
16588 elif test $build != $host && test $have_gcc_for_target = yes; then
16589 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16590 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16591 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16592 fi
16593fi
3e19841a 16594if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16595 # Extract the first word of "windres", so it can be a program name with args.
16596set dummy windres; ac_word=$2
5213506e
RW
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16598$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16599if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16600 $as_echo_n "(cached) " >&6
e8b05380 16601else
1c710c3c
DJ
16602 case $WINDRES_FOR_TARGET in
16603 [\\/]* | ?:[\\/]*)
e8b05380
PB
16604 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16605 ;;
e8b05380 16606 *)
1c710c3c
DJ
16607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608for as_dir in $gcc_cv_tool_dirs
16609do
16610 IFS=$as_save_IFS
16611 test -z "$as_dir" && as_dir=.
5213506e 16612 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16614 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16616 break 2
16617 fi
16618done
5213506e
RW
16619 done
16620IFS=$as_save_IFS
1c710c3c 16621
e8b05380
PB
16622 ;;
16623esac
16624fi
1c710c3c 16625WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16626if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16628$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16629else
5213506e
RW
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16631$as_echo "no" >&6; }
e8b05380
PB
16632fi
16633
5213506e 16634
e8b05380
PB
16635fi
16636if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16637
16638
16639if test -n "$WINDRES_FOR_TARGET"; then
16640 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16641elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16642 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16643fi
16644
16645if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16646 for ncn_progname in windres; do
16647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16648set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16650$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16651if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16652 $as_echo_n "(cached) " >&6
278a7a38
AO
16653else
16654 if test -n "$WINDRES_FOR_TARGET"; then
16655 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16656else
16657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16658for as_dir in $PATH
16659do
16660 IFS=$as_save_IFS
16661 test -z "$as_dir" && as_dir=.
5213506e 16662 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16664 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16666 break 2
16667 fi
16668done
5213506e
RW
16669 done
16670IFS=$as_save_IFS
278a7a38
AO
16671
16672fi
16673fi
16674WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16675if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16677$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16678else
5213506e
RW
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16680$as_echo "no" >&6; }
278a7a38
AO
16681fi
16682
5213506e 16683
278a7a38
AO
16684 done
16685fi
16686
16687if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16688 for ncn_progname in windres; do
5213506e
RW
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16690$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16691 if test -x $with_build_time_tools/${ncn_progname}; then
16692 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16694$as_echo "yes" >&6; }
e8b05380
PB
16695 break
16696 else
5213506e
RW
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16698$as_echo "no" >&6; }
e8b05380
PB
16699 fi
16700 done
16701fi
16702
16703if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16704 for ncn_progname in windres; do
16705 if test -n "$ncn_target_tool_prefix"; then
16706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16707set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16709$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16710if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16711 $as_echo_n "(cached) " >&6
ca9f4b81 16712else
4de997d1
PB
16713 if test -n "$WINDRES_FOR_TARGET"; then
16714 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16715else
1c710c3c
DJ
16716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16717for as_dir in $PATH
16718do
16719 IFS=$as_save_IFS
16720 test -z "$as_dir" && as_dir=.
5213506e 16721 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16723 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16725 break 2
16726 fi
16727done
5213506e
RW
16728 done
16729IFS=$as_save_IFS
1c710c3c 16730
ca9f4b81
AO
16731fi
16732fi
1c710c3c 16733WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16734if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16736$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16737else
5213506e
RW
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16739$as_echo "no" >&6; }
ca9f4b81
AO
16740fi
16741
5213506e 16742
e8b05380
PB
16743 fi
16744 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16746set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16748$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16749if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16750 $as_echo_n "(cached) " >&6
ca9f4b81 16751else
2693c0b0
PB
16752 if test -n "$WINDRES_FOR_TARGET"; then
16753 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16754else
1c710c3c
DJ
16755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16756for as_dir in $PATH
16757do
16758 IFS=$as_save_IFS
16759 test -z "$as_dir" && as_dir=.
5213506e 16760 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16762 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16764 break 2
16765 fi
16766done
5213506e
RW
16767 done
16768IFS=$as_save_IFS
1c710c3c 16769
ca9f4b81
AO
16770fi
16771fi
1c710c3c 16772WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 16773if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16775$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16776else
5213506e
RW
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778$as_echo "no" >&6; }
ca9f4b81 16779fi
1c710c3c 16780
5213506e 16781
e8b05380
PB
16782 fi
16783 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16784 done
16785fi
1c710c3c 16786
2693c0b0
PB
16787if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16788 set dummy windres
16789 if test $build = $target ; then
16790 WINDRES_FOR_TARGET="$2"
ca9f4b81 16791 else
2693c0b0 16792 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16793 fi
1c00b503
PB
16794else
16795 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
16796fi
16797
d1f8db0c
PB
16798else
16799 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
16800fi
16801
4977bab6 16802
901119ae
KT
16803
16804
16805if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16806 if test -n "$with_build_time_tools"; then
5213506e
RW
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16808$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
16809 if test -x $with_build_time_tools/windmc; then
16810 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16811 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16813$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 16814 else
5213506e
RW
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16816$as_echo "no" >&6; }
901119ae
KT
16817 fi
16818 elif test $build != $host && test $have_gcc_for_target = yes; then
16819 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
16820 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16821 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
16822 fi
16823fi
16824if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16825 # Extract the first word of "windmc", so it can be a program name with args.
16826set dummy windmc; ac_word=$2
5213506e
RW
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16828$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16829if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 16830 $as_echo_n "(cached) " >&6
901119ae
KT
16831else
16832 case $WINDMC_FOR_TARGET in
16833 [\\/]* | ?:[\\/]*)
16834 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16835 ;;
16836 *)
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838for as_dir in $gcc_cv_tool_dirs
16839do
16840 IFS=$as_save_IFS
16841 test -z "$as_dir" && as_dir=.
5213506e 16842 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16844 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16846 break 2
16847 fi
16848done
5213506e
RW
16849 done
16850IFS=$as_save_IFS
901119ae
KT
16851
16852 ;;
16853esac
16854fi
16855WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 16856if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16858$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16859else
5213506e
RW
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861$as_echo "no" >&6; }
901119ae
KT
16862fi
16863
5213506e 16864
901119ae
KT
16865fi
16866if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16867
16868
16869if test -n "$WINDMC_FOR_TARGET"; then
16870 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16871elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16872 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16873fi
16874
16875if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16876 for ncn_progname in windmc; do
16877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16878set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16880$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16881if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16882 $as_echo_n "(cached) " >&6
901119ae
KT
16883else
16884 if test -n "$WINDMC_FOR_TARGET"; then
16885 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16886else
16887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888for as_dir in $PATH
16889do
16890 IFS=$as_save_IFS
16891 test -z "$as_dir" && as_dir=.
5213506e 16892 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16894 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16896 break 2
16897 fi
16898done
5213506e
RW
16899 done
16900IFS=$as_save_IFS
901119ae
KT
16901
16902fi
16903fi
16904WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16905if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16907$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16908else
5213506e
RW
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16910$as_echo "no" >&6; }
901119ae
KT
16911fi
16912
5213506e 16913
901119ae
KT
16914 done
16915fi
16916
16917if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16918 for ncn_progname in windmc; do
5213506e
RW
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
16921 if test -x $with_build_time_tools/${ncn_progname}; then
16922 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16924$as_echo "yes" >&6; }
901119ae
KT
16925 break
16926 else
5213506e
RW
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16928$as_echo "no" >&6; }
901119ae
KT
16929 fi
16930 done
16931fi
16932
16933if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16934 for ncn_progname in windmc; do
16935 if test -n "$ncn_target_tool_prefix"; then
16936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16939$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16940if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16941 $as_echo_n "(cached) " >&6
901119ae
KT
16942else
16943 if test -n "$WINDMC_FOR_TARGET"; then
16944 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16945else
16946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16947for as_dir in $PATH
16948do
16949 IFS=$as_save_IFS
16950 test -z "$as_dir" && as_dir=.
5213506e 16951 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16953 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16955 break 2
16956 fi
16957done
5213506e
RW
16958 done
16959IFS=$as_save_IFS
901119ae
KT
16960
16961fi
16962fi
16963WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16964if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16966$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16967else
5213506e
RW
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16969$as_echo "no" >&6; }
901119ae
KT
16970fi
16971
5213506e 16972
901119ae
KT
16973 fi
16974 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16976set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16978$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16979if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16980 $as_echo_n "(cached) " >&6
901119ae
KT
16981else
16982 if test -n "$WINDMC_FOR_TARGET"; then
16983 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16984else
16985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16986for as_dir in $PATH
16987do
16988 IFS=$as_save_IFS
16989 test -z "$as_dir" && as_dir=.
5213506e 16990 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16992 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16994 break 2
16995 fi
16996done
5213506e
RW
16997 done
16998IFS=$as_save_IFS
901119ae
KT
16999
17000fi
17001fi
17002WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17003if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17005$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17006else
5213506e
RW
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008$as_echo "no" >&6; }
901119ae
KT
17009fi
17010
5213506e 17011
901119ae
KT
17012 fi
17013 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17014 done
17015fi
17016
17017if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17018 set dummy windmc
17019 if test $build = $target ; then
17020 WINDMC_FOR_TARGET="$2"
17021 else
17022 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17023 fi
1c00b503
PB
17024else
17025 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17026fi
17027
17028else
17029 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17030fi
17031
17032
2abefe3d
PB
17033RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17034
5213506e
RW
17035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17036$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17037if test "x${build}" != "x${host}" ; then
e8b05380
PB
17038 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17039 # We already found the complete path
172e41aa 17040 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17042$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17043 else
17044 # Canadian cross, just use what we found
5213506e
RW
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17046$as_echo "pre-installed" >&6; }
e8b05380 17047 fi
2abefe3d
PB
17048else
17049 ok=yes
17050 case " ${configdirs} " in
17051 *" binutils "*) ;;
17052 *) ok=no ;;
17053 esac
1c710c3c 17054
2abefe3d
PB
17055 if test $ok = yes; then
17056 # An in-tree tool is available and we can use it
17057 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17059$as_echo "just compiled" >&6; }
e8b05380
PB
17060 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17061 # We already found the complete path
172e41aa 17062 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17064$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17065 elif test "x$target" = "x$host"; then
17066 # We can use an host tool
17067 AR_FOR_TARGET='$(AR)'
5213506e
RW
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17069$as_echo "host tool" >&6; }
2abefe3d
PB
17070 else
17071 # We need a cross tool
5213506e
RW
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17073$as_echo "pre-installed" >&6; }
2abefe3d
PB
17074 fi
17075fi
0b0dc272 17076
5213506e
RW
17077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17078$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17079if test "x${build}" != "x${host}" ; then
e8b05380
PB
17080 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17081 # We already found the complete path
172e41aa 17082 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17084$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17085 else
17086 # Canadian cross, just use what we found
5213506e
RW
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17088$as_echo "pre-installed" >&6; }
e8b05380 17089 fi
2abefe3d
PB
17090else
17091 ok=yes
17092 case " ${configdirs} " in
17093 *" gas "*) ;;
17094 *) ok=no ;;
17095 esac
1c710c3c 17096
2abefe3d
PB
17097 if test $ok = yes; then
17098 # An in-tree tool is available and we can use it
17099 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17101$as_echo "just compiled" >&6; }
e8b05380
PB
17102 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17103 # We already found the complete path
172e41aa 17104 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17106$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17107 elif test "x$target" = "x$host"; then
17108 # We can use an host tool
17109 AS_FOR_TARGET='$(AS)'
5213506e
RW
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17111$as_echo "host tool" >&6; }
2abefe3d
PB
17112 else
17113 # We need a cross tool
5213506e
RW
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17115$as_echo "pre-installed" >&6; }
2abefe3d
PB
17116 fi
17117fi
0b0dc272 17118
5213506e
RW
17119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17120$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17121if test "x${build}" != "x${host}" ; then
e8b05380
PB
17122 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17123 # We already found the complete path
172e41aa 17124 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17126$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17127 else
17128 # Canadian cross, just use what we found
5213506e
RW
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17130$as_echo "pre-installed" >&6; }
e8b05380 17131 fi
2abefe3d
PB
17132else
17133 ok=yes
17134 case " ${configdirs} " in
17135 *" gcc "*) ;;
17136 *) ok=no ;;
17137 esac
1c710c3c 17138
2abefe3d
PB
17139 if test $ok = yes; then
17140 # An in-tree tool is available and we can use it
17141 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17143$as_echo "just compiled" >&6; }
e8b05380
PB
17144 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17145 # We already found the complete path
172e41aa 17146 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17148$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17149 elif test "x$target" = "x$host"; then
17150 # We can use an host tool
17151 CC_FOR_TARGET='$(CC)'
5213506e
RW
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17153$as_echo "host tool" >&6; }
2abefe3d
PB
17154 else
17155 # We need a cross tool
5213506e
RW
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17157$as_echo "pre-installed" >&6; }
2abefe3d
PB
17158 fi
17159fi
0b0dc272 17160
5213506e
RW
17161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17162$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17163if test "x${build}" != "x${host}" ; then
e8b05380
PB
17164 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17165 # We already found the complete path
172e41aa 17166 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17168$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17169 else
17170 # Canadian cross, just use what we found
5213506e
RW
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17172$as_echo "pre-installed" >&6; }
e8b05380 17173 fi
2abefe3d
PB
17174else
17175 ok=yes
17176 case " ${configdirs} " in
17177 *" gcc "*) ;;
17178 *) ok=no ;;
17179 esac
17180 case ,${enable_languages}, in
17181 *,c++,*) ;;
17182 *) ok=no ;;
17183 esac
17184 if test $ok = yes; then
17185 # An in-tree tool is available and we can use it
2077db1b 17186 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
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17188$as_echo "just compiled" >&6; }
e8b05380
PB
17189 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17190 # We already found the complete path
172e41aa 17191 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17193$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17194 elif test "x$target" = "x$host"; then
17195 # We can use an host tool
17196 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17198$as_echo "host tool" >&6; }
2abefe3d
PB
17199 else
17200 # We need a cross tool
5213506e
RW
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17202$as_echo "pre-installed" >&6; }
2abefe3d
PB
17203 fi
17204fi
0b0dc272 17205
5213506e
RW
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17207$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17208if test "x${build}" != "x${host}" ; then
e8b05380
PB
17209 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17210 # We already found the complete path
172e41aa 17211 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17213$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17214 else
17215 # Canadian cross, just use what we found
5213506e
RW
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17217$as_echo "pre-installed" >&6; }
e8b05380 17218 fi
2abefe3d
PB
17219else
17220 ok=yes
17221 case " ${configdirs} " in
17222 *" gcc "*) ;;
17223 *) ok=no ;;
17224 esac
17225 case ,${enable_languages}, in
17226 *,c++,*) ;;
17227 *) ok=no ;;
17228 esac
17229 if test $ok = yes; then
17230 # An in-tree tool is available and we can use it
2077db1b 17231 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
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17233$as_echo "just compiled" >&6; }
e8b05380
PB
17234 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17235 # We already found the complete path
172e41aa 17236 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17238$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17239 elif test "x$target" = "x$host"; then
17240 # We can use an host tool
17241 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17243$as_echo "host tool" >&6; }
2abefe3d
PB
17244 else
17245 # We need a cross tool
5213506e
RW
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17247$as_echo "pre-installed" >&6; }
2abefe3d
PB
17248 fi
17249fi
0b0dc272 17250
5213506e
RW
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17252$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17253if test "x${build}" != "x${host}" ; then
e8b05380
PB
17254 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17255 # We already found the complete path
172e41aa 17256 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17258$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17259 else
17260 # Canadian cross, just use what we found
5213506e
RW
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17262$as_echo "pre-installed" >&6; }
e8b05380 17263 fi
2abefe3d
PB
17264else
17265 ok=yes
17266 case " ${configdirs} " in
17267 *" binutils "*) ;;
17268 *) ok=no ;;
17269 esac
1c710c3c 17270
2abefe3d
PB
17271 if test $ok = yes; then
17272 # An in-tree tool is available and we can use it
17273 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17275$as_echo "just compiled" >&6; }
e8b05380
PB
17276 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17277 # We already found the complete path
172e41aa 17278 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17280$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17281 elif test "x$target" = "x$host"; then
17282 # We can use an host tool
17283 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17285$as_echo "host tool" >&6; }
2abefe3d
PB
17286 else
17287 # We need a cross tool
5213506e
RW
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17289$as_echo "pre-installed" >&6; }
2abefe3d
PB
17290 fi
17291fi
0b0dc272 17292
3b5e8ee4
IS
17293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17294$as_echo_n "checking where to find the target dsymutil... " >&6; }
17295if test "x${build}" != "x${host}" ; then
17296 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17297 # We already found the complete path
17298 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17300$as_echo "pre-installed in $ac_dir" >&6; }
17301 else
17302 # Canadian cross, just use what we found
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17304$as_echo "pre-installed" >&6; }
17305 fi
17306else
17307 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17308 # We already found the complete path
17309 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17311$as_echo "pre-installed in $ac_dir" >&6; }
17312 elif test "x$target" = "x$host"; then
17313 # We can use an host tool
17314 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17316$as_echo "host tool" >&6; }
17317 else
17318 # We need a cross tool
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17320$as_echo "pre-installed" >&6; }
17321 fi
17322fi
17323
5213506e
RW
17324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17325$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17326if test "x${build}" != "x${host}" ; then
e8b05380
PB
17327 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17328 # We already found the complete path
172e41aa 17329 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17331$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17332 else
17333 # Canadian cross, just use what we found
5213506e
RW
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17335$as_echo "pre-installed" >&6; }
e8b05380 17336 fi
2abefe3d
PB
17337else
17338 ok=yes
17339 case " ${configdirs} " in
17340 *" gcc "*) ;;
17341 *) ok=no ;;
17342 esac
1c710c3c 17343
2abefe3d
PB
17344 if test $ok = yes; then
17345 # An in-tree tool is available and we can use it
17346 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17348$as_echo "just compiled" >&6; }
e8b05380
PB
17349 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17350 # We already found the complete path
172e41aa 17351 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17353$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17354 elif test "x$target" = "x$host"; then
17355 # We can use an host tool
17356 GCC_FOR_TARGET='$()'
5213506e
RW
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17358$as_echo "host tool" >&6; }
2abefe3d
PB
17359 else
17360 # We need a cross tool
5213506e
RW
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17362$as_echo "pre-installed" >&6; }
2abefe3d
PB
17363 fi
17364fi
0b0dc272 17365
5213506e
RW
17366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17367$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17368if test "x${build}" != "x${host}" ; then
e8b05380
PB
17369 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17370 # We already found the complete path
172e41aa 17371 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17373$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17374 else
17375 # Canadian cross, just use what we found
5213506e
RW
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17377$as_echo "pre-installed" >&6; }
e8b05380 17378 fi
2abefe3d
PB
17379else
17380 ok=yes
17381 case " ${configdirs} " in
17382 *" gcc "*) ;;
17383 *) ok=no ;;
17384 esac
17385 case ,${enable_languages}, in
17386 *,fortran,*) ;;
17387 *) ok=no ;;
17388 esac
17389 if test $ok = yes; then
17390 # An in-tree tool is available and we can use it
17391 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17393$as_echo "just compiled" >&6; }
e8b05380
PB
17394 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17395 # We already found the complete path
172e41aa 17396 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17398$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17399 elif test "x$target" = "x$host"; then
17400 # We can use an host tool
17401 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17403$as_echo "host tool" >&6; }
2abefe3d
PB
17404 else
17405 # We need a cross tool
5213506e
RW
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17407$as_echo "pre-installed" >&6; }
2abefe3d
PB
17408 fi
17409fi
0b0dc272 17410
632e2a07
ILT
17411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17412$as_echo_n "checking where to find the target gccgo... " >&6; }
17413if test "x${build}" != "x${host}" ; then
17414 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17415 # We already found the complete path
17416 ac_dir=`dirname $GOC_FOR_TARGET`
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17418$as_echo "pre-installed in $ac_dir" >&6; }
17419 else
17420 # Canadian cross, just use what we found
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17422$as_echo "pre-installed" >&6; }
17423 fi
17424else
17425 ok=yes
17426 case " ${configdirs} " in
17427 *" gcc "*) ;;
17428 *) ok=no ;;
17429 esac
17430 case ,${enable_languages}, in
17431 *,go,*) ;;
17432 *) ok=no ;;
17433 esac
17434 if test $ok = yes; then
17435 # An in-tree tool is available and we can use it
17436 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17438$as_echo "just compiled" >&6; }
17439 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17440 # We already found the complete path
17441 ac_dir=`dirname $GOC_FOR_TARGET`
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17443$as_echo "pre-installed in $ac_dir" >&6; }
17444 elif test "x$target" = "x$host"; then
17445 # We can use an host tool
17446 GOC_FOR_TARGET='$(GOC)'
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17448$as_echo "host tool" >&6; }
17449 else
17450 # We need a cross tool
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17452$as_echo "pre-installed" >&6; }
17453 fi
17454fi
17455
b4c522fa
IB
17456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17457$as_echo_n "checking where to find the target gdc... " >&6; }
17458if test "x${build}" != "x${host}" ; then
17459 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17460 # We already found the complete path
17461 ac_dir=`dirname $GDC_FOR_TARGET`
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17463$as_echo "pre-installed in $ac_dir" >&6; }
17464 else
17465 # Canadian cross, just use what we found
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17467$as_echo "pre-installed" >&6; }
17468 fi
17469else
17470 ok=yes
17471 case " ${configdirs} " in
17472 *" gcc "*) ;;
17473 *) ok=no ;;
17474 esac
17475 case ,${enable_languages}, in
17476 *,d,*) ;;
17477 *) ok=no ;;
17478 esac
17479 if test $ok = yes; then
17480 # An in-tree tool is available and we can use it
17481 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17483$as_echo "just compiled" >&6; }
17484 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17485 # We already found the complete path
17486 ac_dir=`dirname $GDC_FOR_TARGET`
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17488$as_echo "pre-installed in $ac_dir" >&6; }
17489 elif test "x$target" = "x$host"; then
17490 # We can use an host tool
17491 GDC_FOR_TARGET='$(GDC)'
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17493$as_echo "host tool" >&6; }
17494 else
17495 # We need a cross tool
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17497$as_echo "pre-installed" >&6; }
17498 fi
17499fi
17500
5213506e
RW
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17502$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17503if test "x${build}" != "x${host}" ; then
e8b05380
PB
17504 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17505 # We already found the complete path
172e41aa 17506 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17508$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17509 else
17510 # Canadian cross, just use what we found
5213506e
RW
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17512$as_echo "pre-installed" >&6; }
e8b05380 17513 fi
2abefe3d
PB
17514else
17515 ok=yes
17516 case " ${configdirs} " in
17517 *" ld "*) ;;
17518 *) ok=no ;;
17519 esac
1c710c3c 17520
2abefe3d
PB
17521 if test $ok = yes; then
17522 # An in-tree tool is available and we can use it
17523 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17525$as_echo "just compiled" >&6; }
e8b05380
PB
17526 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17527 # We already found the complete path
172e41aa 17528 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17530$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17531 elif test "x$target" = "x$host"; then
17532 # We can use an host tool
17533 LD_FOR_TARGET='$(LD)'
5213506e
RW
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17535$as_echo "host tool" >&6; }
2abefe3d
PB
17536 else
17537 # We need a cross tool
5213506e
RW
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17539$as_echo "pre-installed" >&6; }
2abefe3d
PB
17540 fi
17541fi
0b0dc272 17542
5213506e
RW
17543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17544$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17545if test "x${build}" != "x${host}" ; then
e8b05380
PB
17546 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17547 # We already found the complete path
172e41aa 17548 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17550$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17551 else
17552 # Canadian cross, just use what we found
5213506e
RW
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17554$as_echo "pre-installed" >&6; }
e8b05380 17555 fi
2abefe3d 17556else
e8b05380
PB
17557 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17558 # We already found the complete path
172e41aa 17559 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17561$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 17562 elif test "x$target" = "x$host"; then
2abefe3d
PB
17563 # We can use an host tool
17564 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17566$as_echo "host tool" >&6; }
2abefe3d
PB
17567 else
17568 # We need a cross tool
5213506e
RW
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17570$as_echo "pre-installed" >&6; }
2abefe3d
PB
17571 fi
17572fi
0b0dc272 17573
5213506e
RW
17574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17575$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17576if test "x${build}" != "x${host}" ; then
e8b05380
PB
17577 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17578 # We already found the complete path
172e41aa 17579 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17581$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17582 else
17583 # Canadian cross, just use what we found
5213506e
RW
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17585$as_echo "pre-installed" >&6; }
e8b05380 17586 fi
2abefe3d
PB
17587else
17588 ok=yes
17589 case " ${configdirs} " in
17590 *" binutils "*) ;;
17591 *) ok=no ;;
17592 esac
1c710c3c 17593
2abefe3d
PB
17594 if test $ok = yes; then
17595 # An in-tree tool is available and we can use it
17596 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17598$as_echo "just compiled" >&6; }
e8b05380
PB
17599 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17600 # We already found the complete path
172e41aa 17601 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17603$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17604 elif test "x$target" = "x$host"; then
17605 # We can use an host tool
17606 NM_FOR_TARGET='$(NM)'
5213506e
RW
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17608$as_echo "host tool" >&6; }
2abefe3d
PB
17609 else
17610 # We need a cross tool
5213506e
RW
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17612$as_echo "pre-installed" >&6; }
2abefe3d
PB
17613 fi
17614fi
0b0dc272 17615
9bccfdf5
AP
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17617$as_echo_n "checking where to find the target objcopy... " >&6; }
17618if test "x${build}" != "x${host}" ; then
17619 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17620 # We already found the complete path
17621 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17623$as_echo "pre-installed in $ac_dir" >&6; }
17624 else
17625 # Canadian cross, just use what we found
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17627$as_echo "pre-installed" >&6; }
17628 fi
17629else
17630 ok=yes
17631 case " ${configdirs} " in
17632 *" binutils "*) ;;
17633 *) ok=no ;;
17634 esac
17635
17636 if test $ok = yes; then
17637 # An in-tree tool is available and we can use it
17638 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17640$as_echo "just compiled" >&6; }
17641 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17642 # We already found the complete path
17643 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17645$as_echo "pre-installed in $ac_dir" >&6; }
17646 elif test "x$target" = "x$host"; then
17647 # We can use an host tool
ec8fd1c0 17648 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17650$as_echo "host tool" >&6; }
17651 else
17652 # We need a cross tool
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17654$as_echo "pre-installed" >&6; }
17655 fi
17656fi
17657
5213506e
RW
17658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17659$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17660if test "x${build}" != "x${host}" ; then
e8b05380
PB
17661 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17662 # We already found the complete path
172e41aa 17663 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17665$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17666 else
17667 # Canadian cross, just use what we found
5213506e
RW
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17669$as_echo "pre-installed" >&6; }
e8b05380 17670 fi
2abefe3d
PB
17671else
17672 ok=yes
17673 case " ${configdirs} " in
17674 *" binutils "*) ;;
17675 *) ok=no ;;
17676 esac
1c710c3c 17677
2abefe3d
PB
17678 if test $ok = yes; then
17679 # An in-tree tool is available and we can use it
17680 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17682$as_echo "just compiled" >&6; }
e8b05380
PB
17683 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17684 # We already found the complete path
172e41aa 17685 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17687$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17688 elif test "x$target" = "x$host"; then
17689 # We can use an host tool
17690 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17692$as_echo "host tool" >&6; }
2abefe3d
PB
17693 else
17694 # We need a cross tool
5213506e
RW
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17696$as_echo "pre-installed" >&6; }
2abefe3d
PB
17697 fi
17698fi
0b0dc272 17699
e4a9a572
IS
17700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17701$as_echo_n "checking where to find the target otool... " >&6; }
17702if test "x${build}" != "x${host}" ; then
17703 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17704 # We already found the complete path
17705 ac_dir=`dirname $OTOOL_FOR_TARGET`
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17707$as_echo "pre-installed in $ac_dir" >&6; }
17708 else
17709 # Canadian cross, just use what we found
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17711$as_echo "pre-installed" >&6; }
17712 fi
17713else
17714 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17715 # We already found the complete path
17716 ac_dir=`dirname $OTOOL_FOR_TARGET`
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17718$as_echo "pre-installed in $ac_dir" >&6; }
17719 elif test "x$target" = "x$host"; then
17720 # We can use an host tool
17721 OTOOL_FOR_TARGET='$(OTOOL)'
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17723$as_echo "host tool" >&6; }
17724 else
17725 # We need a cross tool
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17727$as_echo "pre-installed" >&6; }
17728 fi
17729fi
17730
5213506e
RW
17731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17732$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17733if test "x${build}" != "x${host}" ; then
e8b05380
PB
17734 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17735 # We already found the complete path
172e41aa 17736 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17738$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17739 else
17740 # Canadian cross, just use what we found
5213506e
RW
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17742$as_echo "pre-installed" >&6; }
e8b05380 17743 fi
2abefe3d
PB
17744else
17745 ok=yes
17746 case " ${configdirs} " in
17747 *" binutils "*) ;;
17748 *) ok=no ;;
17749 esac
1c710c3c 17750
2abefe3d
PB
17751 if test $ok = yes; then
17752 # An in-tree tool is available and we can use it
17753 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17755$as_echo "just compiled" >&6; }
e8b05380
PB
17756 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17757 # We already found the complete path
172e41aa 17758 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17760$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17761 elif test "x$target" = "x$host"; then
17762 # We can use an host tool
17763 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17765$as_echo "host tool" >&6; }
2abefe3d
PB
17766 else
17767 # We need a cross tool
5213506e
RW
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17769$as_echo "pre-installed" >&6; }
2abefe3d
PB
17770 fi
17771fi
0b0dc272 17772
e7a82751
RM
17773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17774$as_echo_n "checking where to find the target readelf... " >&6; }
17775if test "x${build}" != "x${host}" ; then
17776 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17777 # We already found the complete path
17778 ac_dir=`dirname $READELF_FOR_TARGET`
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17780$as_echo "pre-installed in $ac_dir" >&6; }
17781 else
17782 # Canadian cross, just use what we found
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17784$as_echo "pre-installed" >&6; }
17785 fi
17786else
17787 ok=yes
17788 case " ${configdirs} " in
17789 *" binutils "*) ;;
17790 *) ok=no ;;
17791 esac
17792
17793 if test $ok = yes; then
17794 # An in-tree tool is available and we can use it
17795 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17797$as_echo "just compiled" >&6; }
17798 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17799 # We already found the complete path
17800 ac_dir=`dirname $READELF_FOR_TARGET`
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17802$as_echo "pre-installed in $ac_dir" >&6; }
17803 elif test "x$target" = "x$host"; then
17804 # We can use an host tool
17805 READELF_FOR_TARGET='$(READELF)'
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17807$as_echo "host tool" >&6; }
17808 else
17809 # We need a cross tool
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17811$as_echo "pre-installed" >&6; }
17812 fi
17813fi
17814
5213506e
RW
17815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17816$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 17817if test "x${build}" != "x${host}" ; then
e8b05380
PB
17818 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17819 # We already found the complete path
172e41aa 17820 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17822$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17823 else
17824 # Canadian cross, just use what we found
5213506e
RW
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17826$as_echo "pre-installed" >&6; }
e8b05380 17827 fi
2abefe3d
PB
17828else
17829 ok=yes
17830 case " ${configdirs} " in
17831 *" binutils "*) ;;
17832 *) ok=no ;;
17833 esac
1c710c3c 17834
2abefe3d
PB
17835 if test $ok = yes; then
17836 # An in-tree tool is available and we can use it
455c8f48 17837 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17839$as_echo "just compiled" >&6; }
e8b05380
PB
17840 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17841 # We already found the complete path
172e41aa 17842 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17844$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17845 elif test "x$target" = "x$host"; then
17846 # We can use an host tool
17847 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17849$as_echo "host tool" >&6; }
2abefe3d
PB
17850 else
17851 # We need a cross tool
5213506e
RW
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17853$as_echo "pre-installed" >&6; }
2abefe3d
PB
17854 fi
17855fi
0b0dc272 17856
5213506e
RW
17857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17858$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 17859if test "x${build}" != "x${host}" ; then
e8b05380
PB
17860 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17861 # We already found the complete path
172e41aa 17862 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17864$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17865 else
17866 # Canadian cross, just use what we found
5213506e
RW
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17868$as_echo "pre-installed" >&6; }
e8b05380 17869 fi
2abefe3d
PB
17870else
17871 ok=yes
17872 case " ${configdirs} " in
17873 *" binutils "*) ;;
17874 *) ok=no ;;
17875 esac
1c710c3c 17876
2abefe3d
PB
17877 if test $ok = yes; then
17878 # An in-tree tool is available and we can use it
17879 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17881$as_echo "just compiled" >&6; }
e8b05380
PB
17882 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17883 # We already found the complete path
172e41aa 17884 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17886$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17887 elif test "x$target" = "x$host"; then
17888 # We can use an host tool
17889 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17891$as_echo "host tool" >&6; }
2abefe3d
PB
17892 else
17893 # We need a cross tool
5213506e
RW
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17895$as_echo "pre-installed" >&6; }
2abefe3d 17896 fi
671aa708 17897fi
be912515 17898
5213506e
RW
17899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17900$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
17901if test "x${build}" != "x${host}" ; then
17902 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17903 # We already found the complete path
17904 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17906$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17907 else
17908 # Canadian cross, just use what we found
5213506e
RW
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17910$as_echo "pre-installed" >&6; }
901119ae
KT
17911 fi
17912else
17913 ok=yes
17914 case " ${configdirs} " in
17915 *" binutils "*) ;;
17916 *) ok=no ;;
17917 esac
17918
17919 if test $ok = yes; then
17920 # An in-tree tool is available and we can use it
17921 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17923$as_echo "just compiled" >&6; }
901119ae
KT
17924 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17925 # We already found the complete path
17926 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17928$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17929 elif test "x$target" = "x$host"; then
17930 # We can use an host tool
17931 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17933$as_echo "host tool" >&6; }
901119ae
KT
17934 else
17935 # We need a cross tool
5213506e
RW
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17937$as_echo "pre-installed" >&6; }
901119ae
KT
17938 fi
17939fi
17940
be912515
NN
17941
17942
2abefe3d 17943
0b0dc272 17944
671aa708
NN
17945# Certain tools may need extra flags.
17946AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17947RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17948NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17949
2abefe3d
PB
17950# When building target libraries, except in a Canadian cross, we use
17951# the same toolchain as the compiler we just built.
17952COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17953COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17954COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17955if test $host = $build; then
17956 case " $configdirs " in
17957 *" gcc "*)
17958 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17959 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17960 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17961 ;;
17962 esac
17963fi
17964
17965
17966
17967
17968
5213506e
RW
17969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17970$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17971# Check whether --enable-maintainer-mode was given.
17972if test "${enable_maintainer_mode+set}" = set; then :
17973 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
17974else
17975 USE_MAINTAINER_MODE=no
5213506e
RW
17976fi
17977
17978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17979$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
17980
17981
17982if test "$USE_MAINTAINER_MODE" = yes; then
17983 MAINTAINER_MODE_TRUE=
17984 MAINTAINER_MODE_FALSE='#'
17985else
17986 MAINTAINER_MODE_TRUE='#'
17987 MAINTAINER_MODE_FALSE=
1c710c3c 17988fi
ee03dc5e
AO
17989MAINT=$MAINTAINER_MODE_TRUE
17990
2805b53a
NN
17991# ---------------------
17992# GCC bootstrap support
17993# ---------------------
17994
17995# Stage specific cflags for build.
17996stage1_cflags="-g"
17997case $build in
17998 vax-*-*)
17999 case ${GCC} in
18000 yes) stage1_cflags="-g -Wa,-J" ;;
18001 *) stage1_cflags="-g -J" ;;
18002 esac ;;
2805b53a
NN
18003esac
18004
0b50988a 18005
2805b53a 18006
8efea775 18007# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18008# Check whether --enable-stage1-checking was given.
18009if test "${enable_stage1_checking+set}" = set; then :
18010 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18011else
e643dc23 18012 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18013 # For --disable-checking or implicit --enable-checking=release, avoid
18014 # setting --enable-checking=gc in the default stage1 checking for LTO
18015 # bootstraps. See PR62077.
c10b5ea0
JJ
18016 case $BUILD_CONFIG in
18017 *lto*)
7db11a5a
JJ
18018 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18019 *)
18020 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18021 esac
7db11a5a
JJ
18022 if test "x$enable_checking" = x && \
18023 test -d ${srcdir}/gcc && \
18024 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18025 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18026 fi
8efea775 18027else
e643dc23 18028 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18029fi
5213506e 18030fi
8efea775
PB
18031
18032
2aeb72e9 18033
5213506e
RW
18034# Enable -Werror in bootstrap stage2 and later.
18035# Check whether --enable-werror was given.
18036if test "${enable_werror+set}" = set; then :
18037 enableval=$enable_werror;
09a9c095
NN
18038case ${enable_werror} in
18039 yes) stage2_werror_flag="--enable-werror-always" ;;
18040 *) stage2_werror_flag="" ;;
2805b53a
NN
18041esac
18042
afd88efc
ML
18043else
18044
01c712cb
ML
18045if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18046 case $BUILD_CONFIG in
18047 bootstrap-debug)
18048 stage2_werror_flag="--enable-werror-always" ;;
18049 "")
18050 stage2_werror_flag="--enable-werror-always" ;;
18051 esac
18052fi
18053
afd88efc
ML
18054fi
18055
18056
01c712cb 18057
2805b53a 18058
f2689b09
SE
18059# Specify what files to not compare during bootstrap.
18060
18061compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18062case "$target" in
18063 hppa*64*-*-hpux*) ;;
4f943869
MK
18064 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18065 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18066esac
18067
18068
5213506e
RW
18069ac_config_files="$ac_config_files Makefile"
18070
1c710c3c 18071cat >confcache <<\_ACEOF
671aa708
NN
18072# This file is a shell script that caches the results of configure
18073# tests run on this system so they can be shared between configure
1c710c3c
DJ
18074# scripts and configure runs, see configure's option --config-cache.
18075# It is not useful on other systems. If it contains results you don't
18076# want to keep, you may remove or edit it.
671aa708 18077#
1c710c3c
DJ
18078# config.status only pays attention to the cache file if you give it
18079# the --recheck option to rerun configure.
671aa708 18080#
1c710c3c
DJ
18081# `ac_cv_env_foo' variables (set or unset) will be overridden when
18082# loading this file, other *unset* `ac_cv_foo' will be assigned the
18083# following values.
18084
18085_ACEOF
18086
671aa708
NN
18087# The following way of writing the cache mishandles newlines in values,
18088# but we know of no workaround that is simple, portable, and efficient.
5213506e 18089# So, we kill variables containing newlines.
671aa708
NN
18090# Ultrix sh set writes to stderr and can't be redirected directly,
18091# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18092(
18093 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18094 eval ac_val=\$$ac_var
18095 case $ac_val in #(
18096 *${as_nl}*)
18097 case $ac_var in #(
18098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18100 esac
18101 case $ac_var in #(
18102 _ | IFS | as_nl) ;; #(
18103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18104 *) { eval $ac_var=; unset $ac_var;} ;;
18105 esac ;;
18106 esac
18107 done
18108
1c710c3c 18109 (set) 2>&1 |
5213506e
RW
18110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18111 *${as_nl}ac_space=\ *)
18112 # `set' does not quote correctly, so add quotes: double-quote
18113 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18114 sed -n \
18115 "s/'/'\\\\''/g;
18116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18117 ;; #(
1c710c3c
DJ
18118 *)
18119 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18121 ;;
5213506e
RW
18122 esac |
18123 sort
18124) |
1c710c3c 18125 sed '
5213506e 18126 /^ac_cv_env_/b end
1c710c3c 18127 t clear
5213506e 18128 :clear
1c710c3c
DJ
18129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18130 t end
5213506e
RW
18131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18132 :end' >>confcache
18133if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18134 if test -w "$cache_file"; then
22e05272 18135 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18137$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18138 if test ! -f "$cache_file" || test -h "$cache_file"; then
18139 cat confcache >"$cache_file"
18140 else
18141 case $cache_file in #(
18142 */* | ?:*)
18143 mv -f confcache "$cache_file"$$ &&
18144 mv -f "$cache_file"$$ "$cache_file" ;; #(
18145 *)
18146 mv -f confcache "$cache_file" ;;
18147 esac
18148 fi
18149 fi
671aa708 18150 else
5213506e
RW
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18152$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18153 fi
4977bab6 18154fi
671aa708 18155rm -f confcache
79c06341 18156
671aa708
NN
18157test "x$prefix" = xNONE && prefix=$ac_default_prefix
18158# Let make expand exec_prefix.
18159test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18160
671aa708
NN
18161# Transform confdefs.h into DEFS.
18162# Protect against shell expansion while executing Makefile rules.
18163# Protect against Makefile macro expansion.
1c710c3c
DJ
18164#
18165# If the first sed substitution is executed (which looks for macros that
5213506e 18166# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18167# look for a macro that doesn't take arguments.
5213506e
RW
18168ac_script='
18169:mline
18170/\\$/{
18171 N
18172 s,\\\n,,
18173 b mline
18174}
1c710c3c 18175t clear
5213506e
RW
18176:clear
18177s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18178t quote
5213506e 18179s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18180t quote
5213506e
RW
18181b any
18182:quote
18183s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18184s/\[/\\&/g
18185s/\]/\\&/g
18186s/\$/$$/g
18187H
18188:any
18189${
18190 g
18191 s/^\n//
18192 s/\n/ /g
18193 p
18194}
18195'
18196DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18197
18198
18199ac_libobjs=
18200ac_ltlibobjs=
22e05272 18201U=
1c710c3c
DJ
18202for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18203 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18205 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18207 # will be set to the directory where LIBOBJS objects are built.
18208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18210done
18211LIBOBJS=$ac_libobjs
fb0103e5 18212
1c710c3c 18213LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18214
af71363e 18215
1c710c3c 18216
22e05272 18217: "${CONFIG_STATUS=./config.status}"
5213506e 18218ac_write_fail=0
1c710c3c
DJ
18219ac_clean_files_save=$ac_clean_files
18220ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18221{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18222$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18223as_write_fail=0
18224cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18225#! $SHELL
18226# Generated by $as_me.
671aa708 18227# Run this file to recreate the current configuration.
671aa708 18228# Compiler output produced by configure, useful for debugging
1c710c3c 18229# configure, is in config.log if it exists.
0b0dc272 18230
1c710c3c
DJ
18231debug=false
18232ac_cs_recheck=false
18233ac_cs_silent=false
1c710c3c 18234
5213506e
RW
18235SHELL=\${CONFIG_SHELL-$SHELL}
18236export SHELL
18237_ASEOF
18238cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18239## -------------------- ##
18240## M4sh Initialization. ##
18241## -------------------- ##
18242
18243# Be more Bourne compatible
18244DUALCASE=1; export DUALCASE # for MKS sh
18245if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18246 emulate sh
18247 NULLCMD=:
5213506e 18248 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18249 # is contrary to our usage. Disable this feature.
18250 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18251 setopt NO_GLOB_SUBST
18252else
18253 case `(set -o) 2>/dev/null` in #(
18254 *posix*) :
18255 set -o posix ;; #(
18256 *) :
18257 ;;
18258esac
1c710c3c 18259fi
1c710c3c 18260
5213506e
RW
18261
18262as_nl='
18263'
18264export as_nl
18265# Printing a long string crashes Solaris 7 /usr/bin/printf.
18266as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18267as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18268as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18269# Prefer a ksh shell builtin over an external printf program on Solaris,
18270# but without wasting forks for bash or zsh.
18271if test -z "$BASH_VERSION$ZSH_VERSION" \
18272 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18273 as_echo='print -r --'
18274 as_echo_n='print -rn --'
18275elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18276 as_echo='printf %s\n'
18277 as_echo_n='printf %s'
18278else
18279 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18280 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18281 as_echo_n='/usr/ucb/echo -n'
18282 else
18283 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18284 as_echo_n_body='eval
18285 arg=$1;
18286 case $arg in #(
18287 *"$as_nl"*)
18288 expr "X$arg" : "X\\(.*\\)$as_nl";
18289 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18290 esac;
18291 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18292 '
18293 export as_echo_n_body
18294 as_echo_n='sh -c $as_echo_n_body as_echo'
18295 fi
18296 export as_echo_body
18297 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18298fi
18299
5213506e
RW
18300# The user is always right.
18301if test "${PATH_SEPARATOR+set}" != set; then
18302 PATH_SEPARATOR=:
18303 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18304 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18305 PATH_SEPARATOR=';'
18306 }
18307fi
18308
18309
18310# IFS
18311# We need space, tab and new line, in precisely that order. Quoting is
18312# there to prevent editors from complaining about space-tab.
18313# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18314# splitting by setting IFS to empty value.)
18315IFS=" "" $as_nl"
18316
18317# Find who we are. Look in the path if we contain no directory separator.
22e05272 18318as_myself=
5213506e
RW
18319case $0 in #((
18320 *[\\/]* ) as_myself=$0 ;;
18321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322for as_dir in $PATH
18323do
18324 IFS=$as_save_IFS
18325 test -z "$as_dir" && as_dir=.
18326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18327 done
18328IFS=$as_save_IFS
18329
18330 ;;
18331esac
18332# We did not find ourselves, most probably we were run as `sh COMMAND'
18333# in which case we are not to be found in the path.
18334if test "x$as_myself" = x; then
18335 as_myself=$0
18336fi
18337if test ! -f "$as_myself"; then
18338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18339 exit 1
18340fi
1c710c3c 18341
5213506e
RW
18342# Unset variables that we do not need and which cause bugs (e.g. in
18343# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18344# suppresses any "Segmentation fault" message there. '((' could
18345# trigger a bug in pdksh 5.2.14.
18346for as_var in BASH_ENV ENV MAIL MAILPATH
18347do eval test x\${$as_var+set} = xset \
18348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18349done
1c710c3c
DJ
18350PS1='$ '
18351PS2='> '
18352PS4='+ '
18353
18354# NLS nuisances.
5213506e
RW
18355LC_ALL=C
18356export LC_ALL
18357LANGUAGE=C
18358export LANGUAGE
18359
18360# CDPATH.
18361(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18362
18363
22e05272
JM
18364# as_fn_error STATUS ERROR [LINENO LOG_FD]
18365# ----------------------------------------
5213506e
RW
18366# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18367# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18368# script with STATUS, using 1 if that was 0.
5213506e
RW
18369as_fn_error ()
18370{
22e05272
JM
18371 as_status=$1; test $as_status -eq 0 && as_status=1
18372 if test "$4"; then
18373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18375 fi
22e05272 18376 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18377 as_fn_exit $as_status
18378} # as_fn_error
18379
18380
18381# as_fn_set_status STATUS
18382# -----------------------
18383# Set $? to STATUS, without forking.
18384as_fn_set_status ()
18385{
18386 return $1
18387} # as_fn_set_status
18388
18389# as_fn_exit STATUS
18390# -----------------
18391# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18392as_fn_exit ()
18393{
18394 set +e
18395 as_fn_set_status $1
18396 exit $1
18397} # as_fn_exit
18398
18399# as_fn_unset VAR
18400# ---------------
18401# Portably unset VAR.
18402as_fn_unset ()
18403{
18404 { eval $1=; unset $1;}
18405}
18406as_unset=as_fn_unset
18407# as_fn_append VAR VALUE
18408# ----------------------
18409# Append the text in VALUE to the end of the definition contained in VAR. Take
18410# advantage of any shell optimizations that allow amortized linear growth over
18411# repeated appends, instead of the typical quadratic growth present in naive
18412# implementations.
18413if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18414 eval 'as_fn_append ()
18415 {
18416 eval $1+=\$2
18417 }'
18418else
18419 as_fn_append ()
18420 {
18421 eval $1=\$$1\$2
18422 }
18423fi # as_fn_append
18424
18425# as_fn_arith ARG...
18426# ------------------
18427# Perform arithmetic evaluation on the ARGs, and store the result in the
18428# global $as_val. Take advantage of shells that can avoid forks. The arguments
18429# must be portable across $(()) and expr.
18430if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18431 eval 'as_fn_arith ()
18432 {
18433 as_val=$(( $* ))
18434 }'
18435else
18436 as_fn_arith ()
18437 {
18438 as_val=`expr "$@" || test $? -eq 1`
18439 }
18440fi # as_fn_arith
18441
1c710c3c 18442
5213506e
RW
18443if expr a : '\(a\)' >/dev/null 2>&1 &&
18444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18445 as_expr=expr
18446else
18447 as_expr=false
18448fi
18449
5213506e 18450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18451 as_basename=basename
18452else
18453 as_basename=false
18454fi
18455
5213506e
RW
18456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18457 as_dirname=dirname
18458else
18459 as_dirname=false
18460fi
1c710c3c 18461
5213506e 18462as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18464 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18466$as_echo X/"$0" |
18467 sed '/^.*\/\([^/][^/]*\)\/*$/{
18468 s//\1/
18469 q
18470 }
18471 /^X\/\(\/\/\)$/{
18472 s//\1/
18473 q
18474 }
18475 /^X\/\(\/\).*/{
18476 s//\1/
18477 q
18478 }
18479 s/.*/./; q'`
2aeb72e9 18480
2aeb72e9
DD
18481# Avoid depending upon Character Ranges.
18482as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18484as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18485as_cr_digits='0123456789'
18486as_cr_alnum=$as_cr_Letters$as_cr_digits
18487
5213506e
RW
18488ECHO_C= ECHO_N= ECHO_T=
18489case `echo -n x` in #(((((
18490-n*)
18491 case `echo 'xy\c'` in
18492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18493 xy) ECHO_C='\c';;
18494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18495 ECHO_T=' ';;
18496 esac;;
18497*)
18498 ECHO_N='-n';;
1c710c3c
DJ
18499esac
18500
5213506e
RW
18501rm -f conf$$ conf$$.exe conf$$.file
18502if test -d conf$$.dir; then
18503 rm -f conf$$.dir/conf$$.file
1c710c3c 18504else
5213506e
RW
18505 rm -f conf$$.dir
18506 mkdir conf$$.dir 2>/dev/null
1c710c3c 18507fi
5213506e
RW
18508if (echo >conf$$.file) 2>/dev/null; then
18509 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18510 as_ln_s='ln -s'
5213506e
RW
18511 # ... but there are two gotchas:
18512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18514 # In both cases, we have to default to `cp -pR'.
5213506e 18515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18516 as_ln_s='cp -pR'
5213506e
RW
18517 elif ln conf$$.file conf$$ 2>/dev/null; then
18518 as_ln_s=ln
18519 else
22e05272 18520 as_ln_s='cp -pR'
2aeb72e9 18521 fi
1c710c3c 18522else
22e05272 18523 as_ln_s='cp -pR'
1c710c3c 18524fi
5213506e
RW
18525rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18526rmdir conf$$.dir 2>/dev/null
18527
18528
18529# as_fn_mkdir_p
18530# -------------
18531# Create "$as_dir" as a directory, including parents if necessary.
18532as_fn_mkdir_p ()
18533{
18534
18535 case $as_dir in #(
18536 -*) as_dir=./$as_dir;;
18537 esac
18538 test -d "$as_dir" || eval $as_mkdir_p || {
18539 as_dirs=
18540 while :; do
18541 case $as_dir in #(
18542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18543 *) as_qdir=$as_dir;;
18544 esac
18545 as_dirs="'$as_qdir' $as_dirs"
18546 as_dir=`$as_dirname -- "$as_dir" ||
18547$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18548 X"$as_dir" : 'X\(//\)[^/]' \| \
18549 X"$as_dir" : 'X\(//\)$' \| \
18550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18551$as_echo X"$as_dir" |
18552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18553 s//\1/
18554 q
18555 }
18556 /^X\(\/\/\)[^/].*/{
18557 s//\1/
18558 q
18559 }
18560 /^X\(\/\/\)$/{
18561 s//\1/
18562 q
18563 }
18564 /^X\(\/\).*/{
18565 s//\1/
18566 q
18567 }
18568 s/.*/./; q'`
18569 test -d "$as_dir" && break
18570 done
18571 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18572 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18573
1c710c3c 18574
5213506e 18575} # as_fn_mkdir_p
1c710c3c 18576if mkdir -p . 2>/dev/null; then
5213506e 18577 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18578else
18579 test -d ./-p && rmdir ./-p
18580 as_mkdir_p=false
18581fi
18582
22e05272
JM
18583
18584# as_fn_executable_p FILE
18585# -----------------------
18586# Test if FILE is an executable regular file.
18587as_fn_executable_p ()
18588{
18589 test -f "$1" && test -x "$1"
18590} # as_fn_executable_p
18591as_test_x='test -x'
18592as_executable_p=as_fn_executable_p
1c710c3c
DJ
18593
18594# Sed expression to map a string onto a valid CPP name.
18595as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18596
18597# Sed expression to map a string onto a valid variable name.
18598as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18599
18600
1c710c3c 18601exec 6>&1
5213506e
RW
18602## ----------------------------------- ##
18603## Main body of $CONFIG_STATUS script. ##
18604## ----------------------------------- ##
18605_ASEOF
18606test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18607
18608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18609# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18610# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18611# values after options handling.
18612ac_log="
1c710c3c 18613This file was extended by $as_me, which was
22e05272 18614generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18615
18616 CONFIG_FILES = $CONFIG_FILES
18617 CONFIG_HEADERS = $CONFIG_HEADERS
18618 CONFIG_LINKS = $CONFIG_LINKS
18619 CONFIG_COMMANDS = $CONFIG_COMMANDS
18620 $ $0 $@
18621
5213506e
RW
18622on `(hostname || uname -n) 2>/dev/null | sed 1q`
18623"
18624
1c710c3c
DJ
18625_ACEOF
18626
5213506e
RW
18627case $ac_config_files in *"
18628"*) set x $ac_config_files; shift; ac_config_files=$*;;
18629esac
1c710c3c 18630
2aeb72e9 18631
2aeb72e9 18632
5213506e
RW
18633cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18634# Files that config.status was made for.
18635config_files="$ac_config_files"
1c710c3c 18636
5213506e 18637_ACEOF
2aeb72e9 18638
5213506e 18639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18640ac_cs_usage="\
5213506e
RW
18641\`$as_me' instantiates files and other configuration actions
18642from templates according to the current configuration. Unless the files
18643and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18644
5213506e 18645Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18646
18647 -h, --help print this help, then exit
5213506e 18648 -V, --version print version number and configuration settings, then exit
22e05272 18649 --config print configuration, then exit
5213506e
RW
18650 -q, --quiet, --silent
18651 do not print progress messages
1c710c3c
DJ
18652 -d, --debug don't remove temporary files
18653 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18654 --file=FILE[:TEMPLATE]
18655 instantiate the configuration file FILE
1c710c3c
DJ
18656
18657Configuration files:
18658$config_files
18659
5213506e 18660Report bugs to the package provider."
2aeb72e9 18661
5213506e
RW
18662_ACEOF
18663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18664ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18665ac_cs_version="\\
18666config.status
22e05272
JM
18667configured by $0, generated by GNU Autoconf 2.69,
18668 with options \\"\$ac_cs_config\\"
1c710c3c 18669
22e05272 18670Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18671This config.status script is free software; the Free Software Foundation
18672gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18673
18674ac_pwd='$ac_pwd'
18675srcdir='$srcdir'
18676INSTALL='$INSTALL'
87264276 18677AWK='$AWK'
5213506e 18678test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18679_ACEOF
18680
5213506e
RW
18681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18682# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18683ac_need_defaults=:
18684while test $# != 0
a4b9e93e 18685do
1c710c3c 18686 case $1 in
22e05272 18687 --*=?*)
5213506e
RW
18688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18690 ac_shift=:
18691 ;;
22e05272
JM
18692 --*=)
18693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18694 ac_optarg=
18695 ac_shift=:
18696 ;;
5213506e 18697 *)
1c710c3c
DJ
18698 ac_option=$1
18699 ac_optarg=$2
18700 ac_shift=shift
18701 ;;
1c710c3c
DJ
18702 esac
18703
18704 case $ac_option in
18705 # Handling of the options.
671aa708 18706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18707 ac_cs_recheck=: ;;
5213506e
RW
18708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18709 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18710 --config | --confi | --conf | --con | --co | --c )
18711 $as_echo "$ac_cs_config"; exit ;;
5213506e 18712 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18713 debug=: ;;
18714 --file | --fil | --fi | --f )
18715 $ac_shift
5213506e
RW
18716 case $ac_optarg in
18717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18718 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18719 esac
18720 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18721 ac_need_defaults=false;;
5213506e
RW
18722 --he | --h | --help | --hel | -h )
18723 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18726 ac_cs_silent=: ;;
18727
18728 # This is an error.
22e05272 18729 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18730Try \`$0 --help' for more information." ;;
1c710c3c 18731
5213506e
RW
18732 *) as_fn_append ac_config_targets " $1"
18733 ac_need_defaults=false ;;
1c710c3c 18734
0b0dc272 18735 esac
1c710c3c 18736 shift
0b0dc272
AM
18737done
18738
1c710c3c 18739ac_configure_extra_args=
0b0dc272 18740
1c710c3c
DJ
18741if $ac_cs_silent; then
18742 exec 6>/dev/null
18743 ac_configure_extra_args="$ac_configure_extra_args --silent"
18744fi
0b0dc272 18745
1c710c3c 18746_ACEOF
5213506e 18747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 18748if \$ac_cs_recheck; then
22e05272 18749 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
18750 shift
18751 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18752 CONFIG_SHELL='$SHELL'
18753 export CONFIG_SHELL
18754 exec "\$@"
1c710c3c
DJ
18755fi
18756
18757_ACEOF
5213506e
RW
18758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18759exec 5>>config.log
18760{
18761 echo
18762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18763## Running $as_me. ##
18764_ASBOX
18765 $as_echo "$ac_log"
18766} >&5
1c710c3c 18767
5213506e
RW
18768_ACEOF
18769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
18770#
18771# INIT-COMMANDS
18772#
18773extrasub_build="$extrasub_build"
18774 extrasub_host="$extrasub_host"
18775 extrasub_target="$extrasub_target"
18776
5213506e 18777_ACEOF
1c710c3c 18778
5213506e 18779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 18780
5213506e 18781# Handling of arguments.
1c710c3c
DJ
18782for ac_config_target in $ac_config_targets
18783do
5213506e
RW
18784 case $ac_config_target in
18785 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18786
22e05272 18787 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
18788 esac
18789done
18790
5213506e 18791
1c710c3c
DJ
18792# If the user did not use the arguments to specify the items to instantiate,
18793# then the envvar interface is used. Set only those that are not.
18794# We use the long form for the default assignment because of an extremely
18795# bizarre bug on SunOS 4.1.3.
18796if $ac_need_defaults; then
18797 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18798fi
18799
18800# Have a temporary directory for convenience. Make it in the build tree
5213506e 18801# simply because there is no reason against having it here, and in addition,
1c710c3c 18802# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
18803# Hook for its removal unless debugging.
18804# Note that there is a small window in which the directory will not be cleaned:
18805# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
18806$debug ||
18807{
22e05272 18808 tmp= ac_tmp=
5213506e 18809 trap 'exit_status=$?
22e05272
JM
18810 : "${ac_tmp:=$tmp}"
18811 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
18812' 0
18813 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 18814}
1c710c3c
DJ
18815# Create a (secure) tmp directory for tmp files.
18816
18817{
5213506e 18818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18819 test -d "$tmp"
1c710c3c
DJ
18820} ||
18821{
5213506e
RW
18822 tmp=./conf$$-$RANDOM
18823 (umask 077 && mkdir "$tmp")
22e05272
JM
18824} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18825ac_tmp=$tmp
5213506e
RW
18826
18827# Set up the scripts for CONFIG_FILES section.
18828# No need to generate them if there are no CONFIG_FILES.
18829# This happens for instance with `./config.status config.h'.
18830if test -n "$CONFIG_FILES"; then
18831
18832if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18833 ac_cs_awk_getline=:
18834 ac_cs_awk_pipe_init=
18835 ac_cs_awk_read_file='
18836 while ((getline aline < (F[key])) > 0)
18837 print(aline)
18838 close(F[key])'
18839 ac_cs_awk_pipe_fini=
18840else
18841 ac_cs_awk_getline=false
18842 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18843 ac_cs_awk_read_file='
18844 print "|#_!!_#|"
18845 print "cat " F[key] " &&"
18846 '$ac_cs_awk_pipe_init
18847 # The final `:' finishes the AND list.
18848 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18849fi
18850ac_cr=`echo X | tr X '\015'`
18851# On cygwin, bash can eat \r inside `` if the user requested igncr.
18852# But we know of no other shell where ac_cr would be empty at this
18853# point, so we can use a bashism as a fallback.
18854if test "x$ac_cr" = x; then
18855 eval ac_cr=\$\'\\r\'
18856fi
18857ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18858if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18859 ac_cs_awk_cr='\\r'
5213506e
RW
18860else
18861 ac_cs_awk_cr=$ac_cr
18862fi
18863
22e05272 18864echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
18865_ACEOF
18866
18867# Create commands to substitute file output variables.
1c710c3c 18868{
5213506e 18869 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 18870 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
18871 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18872 echo "_ACAWK" &&
18873 echo "_ACEOF"
18874} >conf$$files.sh &&
18875. ./conf$$files.sh ||
22e05272 18876 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 18877rm -f conf$$files.sh
1c710c3c 18878
5213506e
RW
18879{
18880 echo "cat >conf$$subs.awk <<_ACEOF" &&
18881 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18882 echo "_ACEOF"
18883} >conf$$subs.sh ||
22e05272
JM
18884 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18885ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
18886ac_delim='%!_!# '
18887for ac_last_try in false false false false false :; do
18888 . ./conf$$subs.sh ||
22e05272 18889 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18890
18891 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18892 if test $ac_delim_n = $ac_delim_num; then
18893 break
18894 elif $ac_last_try; then
22e05272 18895 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18896 else
18897 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18898 fi
18899done
18900rm -f conf$$subs.sh
18901
18902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18903cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 18904_ACEOF
5213506e
RW
18905sed -n '
18906h
18907s/^/S["/; s/!.*/"]=/
18908p
18909g
18910s/^[^!]*!//
18911:repl
18912t repl
18913s/'"$ac_delim"'$//
18914t delim
18915:nl
18916h
22e05272 18917s/\(.\{148\}\)..*/\1/
5213506e
RW
18918t more1
18919s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18920p
18921n
18922b repl
18923:more1
18924s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18925p
18926g
18927s/.\{148\}//
18928t nl
18929:delim
18930h
22e05272 18931s/\(.\{148\}\)..*/\1/
5213506e
RW
18932t more2
18933s/["\\]/\\&/g; s/^/"/; s/$/"/
18934p
18935b
18936:more2
18937s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18938p
18939g
18940s/.\{148\}//
18941t delim
18942' <conf$$subs.awk | sed '
18943/^[^""]/{
18944 N
18945 s/\n//
18946}
18947' >>$CONFIG_STATUS || ac_write_fail=1
18948rm -f conf$$subs.awk
18949cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18950_ACAWK
22e05272 18951cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
18952 for (key in S) S_is_set[key] = 1
18953 FS = "\a"
18954 \$ac_cs_awk_pipe_init
18955}
18956{
18957 line = $ 0
18958 nfields = split(line, field, "@")
18959 substed = 0
18960 len = length(field[1])
18961 for (i = 2; i < nfields; i++) {
18962 key = field[i]
18963 keylen = length(key)
18964 if (S_is_set[key]) {
18965 value = S[key]
18966 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18967 len += length(value) + length(field[++i])
18968 substed = 1
18969 } else
18970 len += 1 + keylen
18971 }
18972 if (nfields == 3 && !substed) {
18973 key = field[2]
18974 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18975 \$ac_cs_awk_read_file
18976 next
18977 }
18978 }
18979 print line
18980}
18981\$ac_cs_awk_pipe_fini
18982_ACAWK
18983_ACEOF
18984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18985if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18986 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18987else
18988 cat
22e05272
JM
18989fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18990 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
18991_ACEOF
18992
22e05272
JM
18993# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18994# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
18995# trailing colons and then remove the whole line if VPATH becomes empty
18996# (actually we leave an empty line to preserve line numbers).
18997if test "x$srcdir" = x.; then
22e05272
JM
18998 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18999h
19000s///
19001s/^/:/
19002s/[ ]*$/:/
19003s/:\$(srcdir):/:/g
19004s/:\${srcdir}:/:/g
19005s/:@srcdir@:/:/g
19006s/^:*//
5213506e 19007s/:*$//
22e05272
JM
19008x
19009s/\(=[ ]*\).*/\1/
19010G
19011s/\n//
5213506e
RW
19012s/^[^=]*=[ ]*$//
19013}'
19014fi
2aeb72e9 19015
5213506e
RW
19016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19017fi # test -n "$CONFIG_FILES"
2aeb72e9 19018
1c710c3c 19019
5213506e
RW
19020eval set X " :F $CONFIG_FILES "
19021shift
19022for ac_tag
19023do
19024 case $ac_tag in
19025 :[FHLC]) ac_mode=$ac_tag; continue;;
19026 esac
19027 case $ac_mode$ac_tag in
19028 :[FHL]*:*);;
22e05272 19029 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19030 :[FH]-) ac_tag=-:-;;
19031 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19032 esac
19033 ac_save_IFS=$IFS
19034 IFS=:
19035 set x $ac_tag
19036 IFS=$ac_save_IFS
19037 shift
19038 ac_file=$1
19039 shift
79c06341 19040
5213506e
RW
19041 case $ac_mode in
19042 :L) ac_source=$1;;
19043 :[FH])
19044 ac_file_inputs=
19045 for ac_f
19046 do
19047 case $ac_f in
22e05272 19048 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19049 *) # Look for the file first in the build tree, then in the source tree
19050 # (if the path is not absolute). The absolute path cannot be DOS-style,
19051 # because $ac_f cannot contain `:'.
19052 test -f "$ac_f" ||
19053 case $ac_f in
19054 [\\/$]*) false;;
19055 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19056 esac ||
22e05272 19057 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19058 esac
19059 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19060 as_fn_append ac_file_inputs " '$ac_f'"
19061 done
1c710c3c 19062
5213506e
RW
19063 # Let's still pretend it is `configure' which instantiates (i.e., don't
19064 # use $as_me), people would be surprised to read:
19065 # /* config.h. Generated by config.status. */
19066 configure_input='Generated from '`
19067 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19068 `' by configure.'
19069 if test x"$ac_file" != x-; then
19070 configure_input="$ac_file. $configure_input"
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19072$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19073 fi
5213506e
RW
19074 # Neutralize special characters interpreted by sed in replacement strings.
19075 case $configure_input in #(
19076 *\&* | *\|* | *\\* )
19077 ac_sed_conf_input=`$as_echo "$configure_input" |
19078 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19079 *) ac_sed_conf_input=$configure_input;;
19080 esac
11a67599 19081
5213506e 19082 case $ac_tag in
22e05272
JM
19083 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19085 esac
19086 ;;
11a67599
ZW
19087 esac
19088
5213506e 19089 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19090$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19091 X"$ac_file" : 'X\(//\)[^/]' \| \
19092 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19093 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19094$as_echo X"$ac_file" |
19095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19096 s//\1/
19097 q
19098 }
19099 /^X\(\/\/\)[^/].*/{
19100 s//\1/
19101 q
19102 }
19103 /^X\(\/\/\)$/{
19104 s//\1/
19105 q
19106 }
19107 /^X\(\/\).*/{
19108 s//\1/
19109 q
19110 }
19111 s/.*/./; q'`
19112 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19113 ac_builddir=.
0b0dc272 19114
5213506e
RW
19115case "$ac_dir" in
19116.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19117*)
19118 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19119 # A ".." for each directory in $ac_dir_suffix.
19120 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19121 case $ac_top_builddir_sub in
19122 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19123 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19124 esac ;;
19125esac
19126ac_abs_top_builddir=$ac_pwd
19127ac_abs_builddir=$ac_pwd$ac_dir_suffix
19128# for backward compatibility:
19129ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19130
19131case $srcdir in
5213506e 19132 .) # We are building in place.
1c710c3c 19133 ac_srcdir=.
5213506e
RW
19134 ac_top_srcdir=$ac_top_builddir_sub
19135 ac_abs_top_srcdir=$ac_pwd ;;
19136 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19137 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19138 ac_top_srcdir=$srcdir
19139 ac_abs_top_srcdir=$srcdir ;;
19140 *) # Relative name.
19141 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19142 ac_top_srcdir=$ac_top_build_prefix$srcdir
19143 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19144esac
5213506e 19145ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19146
0b0dc272 19147
5213506e
RW
19148 case $ac_mode in
19149 :F)
19150 #
19151 # CONFIG_FILE
19152 #
1c710c3c
DJ
19153
19154 case $INSTALL in
19155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19156 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19157 esac
5213506e 19158_ACEOF
11a67599 19159
5213506e
RW
19160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19161# If the template does not know about datarootdir, expand it.
19162# FIXME: This hack should be removed a few years after 2.60.
19163ac_datarootdir_hack=; ac_datarootdir_seen=
19164ac_sed_dataroot='
19165/datarootdir/ {
19166 p
19167 q
19168}
19169/@datadir@/p
19170/@docdir@/p
19171/@infodir@/p
19172/@localedir@/p
19173/@mandir@/p'
19174case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19175*datarootdir*) ac_datarootdir_seen=yes;;
19176*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19178$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19179_ACEOF
5213506e
RW
19180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19181 ac_datarootdir_hack='
19182 s&@datadir@&$datadir&g
19183 s&@docdir@&$docdir&g
19184 s&@infodir@&$infodir&g
19185 s&@localedir@&$localedir&g
19186 s&@mandir@&$mandir&g
19187 s&\\\${datarootdir}&$datarootdir&g' ;;
19188esac
19189_ACEOF
19190
19191# Neutralize VPATH when `$srcdir' = `.'.
19192# Shell code in configure.ac might set extrasub.
19193# FIXME: do we really want to maintain this feature?
19194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19195ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19196$extrasub
19197_ACEOF
5213506e 19198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19199:t
19200/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19201s|@configure_input@|$ac_sed_conf_input|;t t
19202s&@top_builddir@&$ac_top_builddir_sub&;t t
19203s&@top_build_prefix@&$ac_top_build_prefix&;t t
19204s&@srcdir@&$ac_srcdir&;t t
19205s&@abs_srcdir@&$ac_abs_srcdir&;t t
19206s&@top_srcdir@&$ac_top_srcdir&;t t
19207s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19208s&@builddir@&$ac_builddir&;t t
19209s&@abs_builddir@&$ac_abs_builddir&;t t
19210s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19211s&@INSTALL@&$ac_INSTALL&;t t
19212$ac_datarootdir_hack
19213"
19214eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19215if $ac_cs_awk_getline; then
22e05272 19216 $AWK -f "$ac_tmp/subs.awk"
5213506e 19217else
22e05272
JM
19218 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19219fi \
19220 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19221
19222test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19223 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19225 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19227which seems to be undefined. Please make sure it is defined" >&5
5213506e 19228$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19229which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19230
22e05272 19231 rm -f "$ac_tmp/stdin"
5213506e 19232 case $ac_file in
22e05272
JM
19233 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19234 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19235 esac \
22e05272 19236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19237 ;;
11a67599 19238
11a67599 19239
79c06341 19240
5213506e
RW
19241 esac
19242
3e54529c
RW
19243
19244 case $ac_file$ac_mode in
19245 "Makefile":F) sed "$extrasub_build" Makefile |
19246 sed "$extrasub_host" |
19247 sed "$extrasub_target" > mf$$
19248 mv -f mf$$ Makefile ;;
19249
19250 esac
5213506e
RW
19251done # for ac_tag
19252
19253
19254as_fn_exit 0
1c710c3c 19255_ACEOF
1c710c3c
DJ
19256ac_clean_files=$ac_clean_files_save
19257
5213506e 19258test $ac_write_fail = 0 ||
22e05272 19259 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19260
1c710c3c
DJ
19261
19262# configure is writing to config.log, and then calls config.status.
19263# config.status does its own redirection, appending to config.log.
19264# Unfortunately, on DOS this fails, as config.log is still kept open
19265# by configure, so config.status won't be able to write to it; its
19266# output is simply discarded. So we exec the FD to /dev/null,
19267# effectively closing config.log, so it can be properly (re)opened and
19268# appended to by config.status. When coming back to configure, we
19269# need to make the FD available again.
19270if test "$no_create" != yes; then
19271 ac_cs_success=:
19272 ac_config_status_args=
19273 test "$silent" = yes &&
19274 ac_config_status_args="$ac_config_status_args --quiet"
19275 exec 5>/dev/null
19276 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19277 exec 5>>config.log
19278 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19279 # would make configure fail if this is the last instruction.
22e05272 19280 $ac_cs_success || as_fn_exit 1
5213506e
RW
19281fi
19282if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19284$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19285fi
79c06341 19286