]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
rs6000: Raise error for __vector_{quad,pair} uses without MMA enabled [PR106736]
[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
1eee94d3 616GM2_FOR_TARGET
b4c522fa 617GDC_FOR_TARGET
632e2a07 618GOC_FOR_TARGET
5213506e 619GFORTRAN_FOR_TARGET
5213506e
RW
620GCC_FOR_TARGET
621CXX_FOR_TARGET
622CC_FOR_TARGET
5fee5ec3 623GDCFLAGS
e7a82751 624READELF
e4a9a572 625OTOOL
5213506e
RW
626OBJDUMP
627OBJCOPY
628WINDMC
629WINDRES
630STRIP
631RANLIB
632NM
633LIPO
634LD
3b5e8ee4 635DSYMUTIL
5213506e
RW
636DLLTOOL
637AS
638AR
639RUNTEST
640EXPECT
641MAKEINFO
642FLEX
643LEX
644M4
645BISON
646YACC
5213506e
RW
647WINDRES_FOR_BUILD
648WINDMC_FOR_BUILD
649RANLIB_FOR_BUILD
650NM_FOR_BUILD
651LD_FOR_BUILD
652LDFLAGS_FOR_BUILD
b4c522fa 653GDC_FOR_BUILD
632e2a07 654GOC_FOR_BUILD
5213506e 655GFORTRAN_FOR_BUILD
3b5e8ee4 656DSYMUTIL_FOR_BUILD
5213506e
RW
657DLLTOOL_FOR_BUILD
658CXX_FOR_BUILD
659CXXFLAGS_FOR_BUILD
84401ce5
RP
660CPPFLAGS_FOR_BUILD
661CPP_FOR_BUILD
5213506e
RW
662CFLAGS_FOR_BUILD
663CC_FOR_BUILD
664AS_FOR_BUILD
665AR_FOR_BUILD
aae29963 666target_configdirs
5213506e 667configdirs
5213506e 668build_configdirs
5213506e
RW
669INSTALL_GDB_TK
670GDB_TK
671CONFIGURE_GDB_TK
672build_tooldir
673tooldir
674GCC_SHLIB_SUBDIR
675RPATH_ENVVAR
ffedf511
RW
676target_configargs
677host_configargs
678build_configargs
e12c4094 679BUILD_CONFIG
6f57bdf6 680LDFLAGS_FOR_TARGET
5213506e
RW
681CXXFLAGS_FOR_TARGET
682CFLAGS_FOR_TARGET
683DEBUG_PREFIX_CFLAGS_FOR_TARGET
684SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 685get_gcc_base_ver
1c01ebf6 686extra_host_zlib_configure_flags
d7f09764 687extra_host_libiberty_configure_flags
fca38047 688stage1_languages
05048fc2 689host_libs_picflag
cdfee50a 690host_shared
45b3824d
TS
691extra_linker_plugin_flags
692extra_linker_plugin_configure_flags
33ad93b9 693islinc
eae1a5d4 694isllibs
5213506e 695poststage1_ldflags
ed2eaa9f 696poststage1_libs
5213506e 697stage1_ldflags
0b21f5d3 698stage1_libs
0ff2d841 699extra_isl_gmp_configure_flags
5213506e
RW
700extra_mpc_mpfr_configure_flags
701extra_mpc_gmp_configure_flags
702extra_mpfr_configure_flags
703gmpinc
704gmplibs
4a5e71f2
L
705PGO_BUILD_LTO_CFLAGS
706PGO_BUILD_USE_CFLAGS
707PGO_BUILD_GEN_CFLAGS
7ffcf5d6 708HAVE_CXX11_FOR_BUILD
ffac9597 709HAVE_CXX11
5213506e 710do_compare
5fee5ec3 711GDC
5213506e
RW
712GNATMAKE
713GNATBIND
714ac_ct_CXX
715CXXFLAGS
716CXX
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724target_subdir
725host_subdir
726build_subdir
727build_libsubdir
87264276
PB
728AWK
729SED
5213506e
RW
730LN_S
731LN
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743target_noncanonical
744host_noncanonical
745build_noncanonical
746build_os
747build_vendor
748build_cpu
749build
750TOPLEVEL_CONFIGURE_ARGUMENTS
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
789ac_subst_files='serialization_dependencies
790host_makefile_frag
791target_makefile_frag
792alphaieee_frag
793ospace_frag'
794ac_user_opts='
795enable_option_checking
796with_build_libsubdir
a05c2c75 797with_system_zlib
85c64bbe
BS
798enable_as_accelerator_for
799enable_offload_targets
fe5bfa67 800enable_offload_defaulted
5213506e 801enable_gold
21539e2e 802enable_ld
78edb32f 803enable_compressed_debug_sections
87e6d9dc
TB
804enable_libquadmath
805enable_libquadmath_support
5213506e 806enable_libada
1eee94d3 807enable_libgm2
5213506e 808enable_libssp
1873ec0c 809enable_libstdcxx
ff3ac0f4 810enable_bootstrap
4a5e71f2 811enable_pgo_build
5213506e
RW
812with_mpc
813with_mpc_include
814with_mpc_lib
5213506e
RW
815with_mpfr
816with_mpfr_include
817with_mpfr_lib
5213506e
RW
818with_gmp
819with_gmp_include
820with_gmp_lib
5213506e 821with_stage1_libs
aac9103b 822with_static_standard_libraries
0b21f5d3 823with_stage1_ldflags
5213506e 824with_boot_libs
ed2eaa9f 825with_boot_ldflags
33ad93b9
RG
826with_isl
827with_isl_include
828with_isl_lib
829enable_isl_version_check
d7f09764 830enable_lto
45b3824d
TS
831enable_linker_plugin_configure_flags
832enable_linker_plugin_flags
cdfee50a 833enable_host_shared
5213506e 834enable_stage1_languages
43c40f3e 835enable_objc_gc
114bf3f1
MK
836with_target_bdw_gc
837with_target_bdw_gc_include
838with_target_bdw_gc_lib
3c36aa6b 839with_gcc_major_version_only
5213506e
RW
840with_build_sysroot
841with_debug_prefix_map
5646b7b9 842with_build_config
beeda1d9 843enable_vtable_verify
5213506e
RW
844enable_serial_configure
845with_build_time_tools
846enable_maintainer_mode
847enable_stage1_checking
848enable_werror
5213506e
RW
849'
850 ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
856LIBS
857CPPFLAGS
858CXX
859CXXFLAGS
860CCC
ffedf511
RW
861build_configargs
862host_configargs
863target_configargs
5213506e
RW
864AR
865AS
866DLLTOOL
3b5e8ee4 867DSYMUTIL
5213506e
RW
868LD
869LIPO
870NM
871RANLIB
872STRIP
873WINDRES
874WINDMC
875OBJCOPY
876OBJDUMP
e4a9a572 877OTOOL
e7a82751 878READELF
5213506e
RW
879CC_FOR_TARGET
880CXX_FOR_TARGET
881GCC_FOR_TARGET
5213506e 882GFORTRAN_FOR_TARGET
632e2a07 883GOC_FOR_TARGET
b4c522fa 884GDC_FOR_TARGET
1eee94d3 885GM2_FOR_TARGET
5213506e
RW
886AR_FOR_TARGET
887AS_FOR_TARGET
888DLLTOOL_FOR_TARGET
3b5e8ee4 889DSYMUTIL_FOR_TARGET
5213506e
RW
890LD_FOR_TARGET
891LIPO_FOR_TARGET
892NM_FOR_TARGET
9bccfdf5 893OBJCOPY_FOR_TARGET
5213506e 894OBJDUMP_FOR_TARGET
e4a9a572 895OTOOL_FOR_TARGET
5213506e 896RANLIB_FOR_TARGET
e7a82751 897READELF_FOR_TARGET
5213506e
RW
898STRIP_FOR_TARGET
899WINDRES_FOR_TARGET
900WINDMC_FOR_TARGET'
901
671aa708
NN
902
903# Initialize some variables set by options.
1c710c3c
DJ
904ac_init_help=
905ac_init_version=false
5213506e
RW
906ac_unrecognized_opts=
907ac_unrecognized_sep=
671aa708
NN
908# The variables have the same names as the options, with
909# dashes changed to underlines.
1c710c3c 910cache_file=/dev/null
671aa708 911exec_prefix=NONE
671aa708 912no_create=
671aa708
NN
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
671aa708
NN
921verbose=
922x_includes=NONE
923x_libraries=NONE
1c710c3c
DJ
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 930# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
5213506e
RW
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
671aa708
NN
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
671aa708
NN
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
5213506e
RW
941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
79c06341 950
671aa708 951ac_prev=
5213506e 952ac_dashdash=
671aa708
NN
953for ac_option
954do
671aa708
NN
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
5213506e 957 eval $ac_prev=\$ac_option
671aa708
NN
958 ac_prev=
959 continue
960 fi
79c06341 961
5213506e 962 case $ac_option in
22e05272
JM
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
5213506e 966 esac
671aa708
NN
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
5213506e
RW
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
671aa708
NN
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 977 bindir=$ac_optarg ;;
671aa708
NN
978
979 -build | --build | --buil | --bui | --bu)
1c710c3c 980 ac_prev=build_alias ;;
671aa708 981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 982 build_alias=$ac_optarg ;;
671aa708
NN
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
671aa708 993
5213506e 994 -datadir | --datadir | --datadi | --datad)
671aa708 995 ac_prev=datadir ;;
5213506e 996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 997 datadir=$ac_optarg ;;
671aa708 998
5213506e
RW
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
671aa708 1006 -disable-* | --disable-*)
5213506e 1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1008 # Reject names that are not valid shell variable names.
5213506e 1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1010 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
671aa708
NN
1031
1032 -enable-* | --enable-*)
5213506e 1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1034 # Reject names that are not valid shell variable names.
5213506e 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1036 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
2aeb72e9 1045 esac
5213506e 1046 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1c710c3c 1055 exec_prefix=$ac_optarg ;;
671aa708
NN
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
1c710c3c
DJ
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
671aa708
NN
1067
1068 -host | --host | --hos | --ho)
1c710c3c 1069 ac_prev=host_alias ;;
671aa708 1070 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1071 host_alias=$ac_optarg ;;
671aa708 1072
5213506e
RW
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
671aa708
NN
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1084 includedir=$ac_optarg ;;
671aa708
NN
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1089 infodir=$ac_optarg ;;
671aa708
NN
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1094 libdir=$ac_optarg ;;
671aa708
NN
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1101 libexecdir=$ac_optarg ;;
671aa708 1102
5213506e
RW
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
671aa708 1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1109 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1113 localstatedir=$ac_optarg ;;
671aa708
NN
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1118 mandir=$ac_optarg ;;
671aa708
NN
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1125 | --no-cr | --no-c | -n)
671aa708
NN
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1139 oldincludedir=$ac_optarg ;;
671aa708
NN
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1144 prefix=$ac_optarg ;;
671aa708
NN
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1151 program_prefix=$ac_optarg ;;
671aa708
NN
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1158 program_suffix=$ac_optarg ;;
671aa708
NN
1159
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)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1175 program_transform_name=$ac_optarg ;;
671aa708 1176
5213506e
RW
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
671aa708
NN
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1c710c3c 1195 sbindir=$ac_optarg ;;
671aa708
NN
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1c710c3c 1206 sharedstatedir=$ac_optarg ;;
671aa708
NN
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1c710c3c 1211 site=$ac_optarg ;;
671aa708
NN
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1216 srcdir=$ac_optarg ;;
671aa708
NN
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1223 sysconfdir=$ac_optarg ;;
671aa708
NN
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1226 ac_prev=target_alias ;;
671aa708 1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1228 target_alias=$ac_optarg ;;
671aa708
NN
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
1c710c3c
DJ
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
671aa708
NN
1235
1236 -with-* | --with-*)
5213506e 1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1238 # Reject names that are not valid shell variable names.
5213506e 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1240 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
2aeb72e9 1249 esac
5213506e 1250 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1251
1252 -without-* | --without-*)
5213506e 1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1254 # Reject names that are not valid shell variable names.
5213506e 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1256 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
671aa708
NN
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1277 x_includes=$ac_optarg ;;
671aa708
NN
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1284 x_libraries=$ac_optarg ;;
671aa708 1285
22e05272
JM
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287Try \`$0 --help' for more information"
671aa708
NN
1288 ;;
1289
1c710c3c
DJ
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
5213506e
RW
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1298 export $ac_envvar ;;
1299
671aa708 1300 *)
1c710c3c 1301 # FIXME: should be removed in autoconf 3.0.
5213506e 1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1306 ;;
1307
1308 esac
1309done
1310
1311if test -n "$ac_prev"; then
1c710c3c 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1313 as_fn_error $? "missing argument to $ac_option"
af71363e 1314fi
af71363e 1315
5213506e
RW
1316if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
22e05272 1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1321 esac
5213506e 1322fi
2aeb72e9 1323
5213506e
RW
1324# Check all directory arguments for consistency.
1325for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
2aeb72e9 1329do
5213506e
RW
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
2aeb72e9 1338 case $ac_val in
5213506e
RW
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1341 esac
22e05272 1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1343done
1344
1c710c3c
DJ
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
0b0dc272 1351
1c710c3c
DJ
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1c710c3c
DJ
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
671aa708 1365
671aa708 1366
5213506e
RW
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1370 as_fn_error $? "working directory cannot be determined"
5213506e 1371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1372 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1373
1374
671aa708
NN
1375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
5213506e
RW
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
671aa708 1402 srcdir=$ac_confdir
5213506e 1403 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
5213506e
RW
1409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1412fi
1413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
22e05272 1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
87841584
AM
1427case $srcdir in
1428 *" "*)
22e05272 1429 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1430 ;;
1431esac
ac9e6043
RW
1432ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1433
5213506e
RW
1434for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439done
1c710c3c
DJ
1440
1441#
1442# Report the --help message.
1443#
1444if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448\`configure' configures this package to adapt to many kinds of systems.
1449
1450Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455Defaults for the options are specified in brackets.
1456
1457Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
22e05272 1462 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
1c710c3c
DJ
1468Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1470 [$ac_default_prefix]
1c710c3c 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1472 [PREFIX]
1c710c3c
DJ
1473
1474By default, \`make install' will install all the files in
1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477for instance \`--prefix=\$HOME'.
1478
1479For better control, use the options below.
1480
1481Fine tuning of the installation directories:
5213506e
RW
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1501_ACEOF
1502
1503 cat <<\_ACEOF
1504
1505Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518
1519 cat <<\_ACEOF
1520
1521Optional Features:
5213506e 1522 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1525 --enable-as-accelerator-for=ARG
1526 build as offload target compiler. Specify offload
1527 host triple by ARG
1528 --enable-offload-targets=LIST
1529 enable offloading to devices from comma-separated
1530 LIST of TARGET[=DIR]. Use optional path to find
1531 offload target compiler during the build
fe5bfa67
TB
1532 --enable-offload-defaulted
1533 If enabled, configured but not installed offload compilers and
1534 libgomp plugins are silently ignored. Useful for distribution
1535 compilers where those are in separate optional packages.
1536
21539e2e 1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1538 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1539 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1540 Enable compressed debug sections for gas, gold or ld
1541 by default
87e6d9dc
TB
1542 --disable-libquadmath do not build libquadmath directory
1543 --disable-libquadmath-support
1544 disable libquadmath support for Fortran
30b74385 1545 --enable-libada build libada directory
1eee94d3 1546 --enable-libgm2 build libgm2 directory
30b74385 1547 --enable-libssp build libssp directory
1873ec0c 1548 --disable-libstdcxx do not build libstdc++-v3 directory
ff3ac0f4 1549 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1550 --enable-pgo-build[=lto]
1551 enable the PGO build
33ad93b9 1552 --disable-isl-version-check
560d18d3 1553 disable check for isl version
d7f09764 1554 --enable-lto enable link time optimization support
45b3824d
TS
1555 --enable-linker-plugin-configure-flags=FLAGS
1556 additional flags for configuring linker plugins
1557 [none]
1558 --enable-linker-plugin-flags=FLAGS
1559 additional flags for configuring and building linker
1560 plugins [none]
cdfee50a 1561 --enable-host-shared build host code as shared libraries
33e39b66
AS
1562 --enable-stage1-languages[=all]
1563 choose additional languages to build during stage1.
1564 Mostly useful for compiler development
43c40f3e
RO
1565 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1566 Objective-C runtime
318a4e6d 1567 --enable-vtable-verify Enable vtable verification feature
30b74385 1568 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1569 force sequential configuration of sub-packages for
1570 the host, target or build machine, or all
1571 sub-packages
1572 --enable-maintainer-mode
1573 enable make rules and dependencies not useful (and
1574 sometimes confusing) to the casual installer
1575 --enable-stage1-checking[=all]
1576 choose additional checking for stage1 of the
1577 compiler
1c710c3c
DJ
1578 --enable-werror enable -Werror in bootstrap stage2 and later
1579
1580Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1584 --with-system-zlib use installed libz
33e39b66
AS
1585 --with-mpc=PATH specify prefix directory for installed MPC package.
1586 Equivalent to --with-mpc-include=PATH/include plus
1587 --with-mpc-lib=PATH/lib
1588 --with-mpc-include=PATH specify directory for installed MPC include files
1589 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1590 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1591 Equivalent to --with-mpfr-include=PATH/include plus
1592 --with-mpfr-lib=PATH/lib
1c710c3c 1593 --with-mpfr-include=PATH
30b74385
RW
1594 specify directory for installed MPFR include files
1595 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1596 --with-gmp=PATH specify prefix directory for the installed GMP
1597 package. Equivalent to
1598 --with-gmp-include=PATH/include plus
1599 --with-gmp-lib=PATH/lib
30b74385
RW
1600 --with-gmp-include=PATH specify directory for installed GMP include files
1601 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1602 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1603 --with-static-standard-libraries
1604 use -static-libstdc++ and -static-libgcc
1605 (default=auto)
33e39b66
AS
1606 --with-stage1-ldflags=FLAGS
1607 linker flags for stage1
33e39b66
AS
1608 --with-boot-libs=LIBS libraries for stage2 and later
1609 --with-boot-ldflags=FLAGS
1610 linker flags for stage2 and later
e357a5e0 1611 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1612 package. Equivalent to
33ad93b9
RG
1613 --with-isl-include=PATH/include plus
1614 --with-isl-lib=PATH/lib
560d18d3
AK
1615 --with-isl-include=PATH Specify directory for installed isl include files
1616 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1617 --with-target-bdw-gc=PATHLIST
1618 specify prefix directory for installed bdw-gc
1619 package. Equivalent to
1620 --with-target-bdw-gc-include=PATH/include plus
1621 --with-target-bdw-gc-lib=PATH/lib
1622 --with-target-bdw-gc-include=PATHLIST
1623 specify directories for installed bdw-gc include
1624 files
1625 --with-target-bdw-gc-lib=PATHLIST
1626 specify directories for installed bdw-gc library
3c36aa6b
JJ
1627 --with-gcc-major-version-only
1628 use only GCC major number in filesystem paths
30b74385 1629 --with-build-sysroot=SYSROOT
1c710c3c 1630 use sysroot as the system root during the build
c8aea42c 1631 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1632 map A to B, C to D ... in debug information
1633 --with-build-config='NAME NAME2...'
1634 use config/NAME.mk build configuration
30b74385 1635 --with-build-time-tools=PATH
1c710c3c 1636 use given path to find target tools during the build
1c710c3c
DJ
1637
1638Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
5213506e 1643 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1644 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1645 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1646 CXX C++ compiler command
1647 CXXFLAGS C++ compiler flags
ffedf511
RW
1648 build_configargs
1649 additional configure arguments for build directories
1650 host_configargs
1651 additional configure arguments for host directories
1652 target_configargs
1653 additional configure arguments for target directories
278a7a38
AO
1654 AR AR for the host
1655 AS AS for the host
1656 DLLTOOL DLLTOOL for the host
3b5e8ee4 1657 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1658 LD LD for the host
1659 LIPO LIPO for the host
1660 NM NM for the host
1661 RANLIB RANLIB for the host
1662 STRIP STRIP for the host
1663 WINDRES WINDRES for the host
901119ae 1664 WINDMC WINDMC for the host
278a7a38
AO
1665 OBJCOPY OBJCOPY for the host
1666 OBJDUMP OBJDUMP for the host
e4a9a572 1667 OTOOL OTOOL for the host
e7a82751 1668 READELF READELF for the host
278a7a38
AO
1669 CC_FOR_TARGET
1670 CC for the target
1671 CXX_FOR_TARGET
1672 CXX for the target
1673 GCC_FOR_TARGET
1674 GCC for the target
278a7a38
AO
1675 GFORTRAN_FOR_TARGET
1676 GFORTRAN for the target
632e2a07
ILT
1677 GOC_FOR_TARGET
1678 GOC for the target
b4c522fa
IB
1679 GDC_FOR_TARGET
1680 GDC for the target
1eee94d3
GM
1681 GM2_FOR_TARGET
1682 GM2 for the target
278a7a38
AO
1683 AR_FOR_TARGET
1684 AR for the target
1685 AS_FOR_TARGET
1686 AS for the target
1687 DLLTOOL_FOR_TARGET
1688 DLLTOOL for the target
3b5e8ee4
IS
1689 DSYMUTIL_FOR_TARGET
1690 DSYMUTIL for the target
278a7a38
AO
1691 LD_FOR_TARGET
1692 LD for the target
1693 LIPO_FOR_TARGET
1694 LIPO for the target
1695 NM_FOR_TARGET
1696 NM for the target
9bccfdf5
AP
1697 OBJCOPY_FOR_TARGET
1698 OBJCOPY for the target
278a7a38
AO
1699 OBJDUMP_FOR_TARGET
1700 OBJDUMP for the target
e4a9a572
IS
1701 OTOOL_FOR_TARGET
1702 OTOOL for the target
278a7a38
AO
1703 RANLIB_FOR_TARGET
1704 RANLIB for the target
e7a82751
RM
1705 READELF_FOR_TARGET
1706 READELF for the target
278a7a38
AO
1707 STRIP_FOR_TARGET
1708 STRIP for the target
1709 WINDRES_FOR_TARGET
1710 WINDRES for the target
901119ae
KT
1711 WINDMC_FOR_TARGET
1712 WINDMC for the target
1c710c3c
DJ
1713
1714Use these variables to override the choices made by `configure' or to help
1715it to find libraries and programs with nonstandard names/locations.
1716
5213506e 1717Report bugs to the package provider.
1c710c3c 1718_ACEOF
5213506e 1719ac_status=$?
1c710c3c
DJ
1720fi
1721
1722if test "$ac_init_help" = "recursive"; then
1723 # If there are subdirs, report their specific --help.
1c710c3c 1724 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1725 test -d "$ac_dir" ||
1726 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 continue
1c710c3c
DJ
1728 ac_builddir=.
1729
5213506e
RW
1730case "$ac_dir" in
1731.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732*)
1733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1734 # A ".." for each directory in $ac_dir_suffix.
1735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1736 case $ac_top_builddir_sub in
1737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 esac ;;
1740esac
1741ac_abs_top_builddir=$ac_pwd
1742ac_abs_builddir=$ac_pwd$ac_dir_suffix
1743# for backward compatibility:
1744ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1745
1746case $srcdir in
5213506e 1747 .) # We are building in place.
1c710c3c 1748 ac_srcdir=.
5213506e
RW
1749 ac_top_srcdir=$ac_top_builddir_sub
1750 ac_abs_top_srcdir=$ac_pwd ;;
1751 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1752 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1753 ac_top_srcdir=$srcdir
1754 ac_abs_top_srcdir=$srcdir ;;
1755 *) # Relative name.
1756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1757 ac_top_srcdir=$ac_top_build_prefix$srcdir
1758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1759esac
5213506e
RW
1760ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761
1762 cd "$ac_dir" || { ac_status=$?; continue; }
1763 # Check for guested configure.
1764 if test -f "$ac_srcdir/configure.gnu"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1767 elif test -f "$ac_srcdir/configure"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1770 else
5213506e
RW
1771 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 fi || ac_status=$?
1773 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1774 done
1775fi
1776
5213506e 1777test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1778if $ac_init_version; then
1779 cat <<\_ACEOF
5213506e 1780configure
22e05272 1781generated by GNU Autoconf 2.69
1c710c3c 1782
22e05272 1783Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1784This configure script is free software; the Free Software Foundation
1785gives unlimited permission to copy, distribute and modify it.
1786_ACEOF
5213506e 1787 exit
0b0dc272 1788fi
5213506e
RW
1789
1790## ------------------------ ##
1791## Autoconf initialization. ##
1792## ------------------------ ##
1793
1794# ac_fn_c_try_compile LINENO
1795# --------------------------
1796# Try to compile conftest.$ac_ext, and return whether this succeeded.
1797ac_fn_c_try_compile ()
1798{
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1814 fi
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821else
1822 $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 ac_retval=1
1826fi
22e05272
JM
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828 as_fn_set_status $ac_retval
5213506e
RW
1829
1830} # ac_fn_c_try_compile
1831
1832# ac_fn_cxx_try_compile LINENO
1833# ----------------------------
1834# Try to compile conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_cxx_try_compile ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
22e05272
JM
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
5213506e
RW
1867
1868} # ac_fn_cxx_try_compile
1869
0b21f5d3
EB
1870# ac_fn_cxx_try_link LINENO
1871# -------------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_cxx_try_link ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
22e05272 1897 test -x conftest$ac_exeext
0b21f5d3
EB
1898 }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
0b21f5d3
EB
1913
1914} # ac_fn_cxx_try_link
1915
5213506e
RW
1916# ac_fn_c_try_link LINENO
1917# -----------------------
1918# Try to link conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_c_try_link ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext conftest$ac_exeext
1923 if { { ac_try="$ac_link"
1924case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_link") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1936 fi
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_c_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest$ac_exeext && {
1942 test "$cross_compiling" = yes ||
22e05272 1943 test -x conftest$ac_exeext
5213506e
RW
1944 }; then :
1945 ac_retval=0
1946else
1947 $as_echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 ac_retval=1
1951fi
1952 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1953 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1954 # interfere with the next link command; also delete a directory that is
1955 # left behind by Apple's compiler. We do this before executing the actions.
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
5213506e
RW
1959
1960} # ac_fn_c_try_link
1961cat >config.log <<_ACEOF
1c710c3c
DJ
1962This file contains any messages produced by compilers while
1963running configure, to aid debugging if configure makes a mistake.
1964
1965It was created by $as_me, which was
22e05272 1966generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1967
1968 $ $0 $@
1969
1970_ACEOF
5213506e 1971exec 5>>config.log
1c710c3c
DJ
1972{
1973cat <<_ASUNAME
1974## --------- ##
1975## Platform. ##
1976## --------- ##
1977
1978hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1979uname -m = `(uname -m) 2>/dev/null || echo unknown`
1980uname -r = `(uname -r) 2>/dev/null || echo unknown`
1981uname -s = `(uname -s) 2>/dev/null || echo unknown`
1982uname -v = `(uname -v) 2>/dev/null || echo unknown`
1983
1984/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1985/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1986
1987/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1988/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1989/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1990/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1991/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1992/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1993/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994
1995_ASUNAME
1996
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
5213506e
RW
2002 $as_echo "PATH: $as_dir"
2003 done
2004IFS=$as_save_IFS
1c710c3c
DJ
2005
2006} >&5
2007
2008cat >&5 <<_ACEOF
2009
2010
2011## ----------- ##
2012## Core tests. ##
2013## ----------- ##
2014
2015_ACEOF
2016
2017
2018# Keep a trace of the command line.
2019# Strip out --no-create and --no-recursion so they do not pile up.
2020# Strip out --silent because we don't want to record it for future runs.
2021# Also quote any args containing shell meta-characters.
2022# Make two passes to allow for proper duplicate-argument suppression.
2023ac_configure_args=
2024ac_configure_args0=
2025ac_configure_args1=
1c710c3c
DJ
2026ac_must_keep_next=false
2027for ac_pass in 1 2
2028do
2029 for ac_arg
2030 do
2031 case $ac_arg in
2032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034 | -silent | --silent | --silen | --sile | --sil)
2035 continue ;;
5213506e
RW
2036 *\'*)
2037 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2038 esac
2039 case $ac_pass in
5213506e 2040 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2041 2)
5213506e 2042 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2043 if test $ac_must_keep_next = true; then
2044 ac_must_keep_next=false # Got value, back to normal.
2045 else
2046 case $ac_arg in
2047 *=* | --config-cache | -C | -disable-* | --disable-* \
2048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050 | -with-* | --with-* | -without-* | --without-* | --x)
2051 case "$ac_configure_args0 " in
2052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2053 esac
2054 ;;
2055 -* ) ac_must_keep_next=true ;;
2056 esac
2057 fi
5213506e 2058 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2059 ;;
2060 esac
2061 done
2062done
5213506e
RW
2063{ ac_configure_args0=; unset ac_configure_args0;}
2064{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2065
2066# When interrupted or exit'd, cleanup temporary files, and complete
2067# config.log. We remove comments because anyway the quotes in there
2068# would cause problems or look ugly.
5213506e
RW
2069# WARNING: Use '\'' to represent an apostrophe within the trap.
2070# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2071trap 'exit_status=$?
2072 # Save into config.log some information that might help in debugging.
2073 {
2074 echo
2075
22e05272 2076 $as_echo "## ---------------- ##
1c710c3c 2077## Cache variables. ##
22e05272 2078## ---------------- ##"
1c710c3c
DJ
2079 echo
2080 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2081(
2082 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2083 eval ac_val=\$$ac_var
2084 case $ac_val in #(
2085 *${as_nl}*)
2086 case $ac_var in #(
2087 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2088$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2089 esac
2090 case $ac_var in #(
2091 _ | IFS | as_nl) ;; #(
2092 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2093 *) { eval $ac_var=; unset $ac_var;} ;;
2094 esac ;;
2095 esac
2096 done
1c710c3c 2097 (set) 2>&1 |
5213506e
RW
2098 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2099 *${as_nl}ac_space=\ *)
1c710c3c 2100 sed -n \
5213506e
RW
2101 "s/'\''/'\''\\\\'\'''\''/g;
2102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2103 ;; #(
1c710c3c 2104 *)
5213506e 2105 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2106 ;;
5213506e
RW
2107 esac |
2108 sort
2109)
1c710c3c
DJ
2110 echo
2111
22e05272 2112 $as_echo "## ----------------- ##
1c710c3c 2113## Output variables. ##
22e05272 2114## ----------------- ##"
1c710c3c
DJ
2115 echo
2116 for ac_var in $ac_subst_vars
2117 do
5213506e
RW
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2123 done | sort
2124 echo
2125
2126 if test -n "$ac_subst_files"; then
22e05272 2127 $as_echo "## ------------------- ##
5213506e 2128## File substitutions. ##
22e05272 2129## ------------------- ##"
1c710c3c
DJ
2130 echo
2131 for ac_var in $ac_subst_files
2132 do
5213506e
RW
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2138 done | sort
2139 echo
2140 fi
2141
2142 if test -s confdefs.h; then
22e05272 2143 $as_echo "## ----------- ##
1c710c3c 2144## confdefs.h. ##
22e05272 2145## ----------- ##"
1c710c3c 2146 echo
5213506e 2147 cat confdefs.h
1c710c3c
DJ
2148 echo
2149 fi
2150 test "$ac_signal" != 0 &&
5213506e
RW
2151 $as_echo "$as_me: caught signal $ac_signal"
2152 $as_echo "$as_me: exit $exit_status"
1c710c3c 2153 } >&5
5213506e
RW
2154 rm -f core *.core core.conftest.* &&
2155 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2156 exit $exit_status
5213506e 2157' 0
1c710c3c 2158for ac_signal in 1 2 13 15; do
5213506e 2159 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2160done
2161ac_signal=0
2162
2163# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2164rm -f -r conftest* confdefs.h
2165
2166$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2167
2168# Predefined preprocessor variables.
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_NAME "$PACKAGE_NAME"
2172_ACEOF
2173
1c710c3c
DJ
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2176_ACEOF
2177
1c710c3c
DJ
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_VERSION "$PACKAGE_VERSION"
2180_ACEOF
0b0dc272 2181
1c710c3c
DJ
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_STRING "$PACKAGE_STRING"
2184_ACEOF
2185
1c710c3c
DJ
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2188_ACEOF
2189
5213506e
RW
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_URL "$PACKAGE_URL"
2192_ACEOF
2193
1c710c3c
DJ
2194
2195# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2196# Prefer an explicitly selected file to automatically selected ones.
2197ac_site_file1=NONE
2198ac_site_file2=NONE
2199if test -n "$CONFIG_SITE"; then
22e05272
JM
2200 # We do not want a PATH search for config.site.
2201 case $CONFIG_SITE in #((
2202 -*) ac_site_file1=./$CONFIG_SITE;;
2203 */*) ac_site_file1=$CONFIG_SITE;;
2204 *) ac_site_file1=./$CONFIG_SITE;;
2205 esac
5213506e
RW
2206elif test "x$prefix" != xNONE; then
2207 ac_site_file1=$prefix/share/config.site
2208 ac_site_file2=$prefix/etc/config.site
2209else
2210 ac_site_file1=$ac_default_prefix/share/config.site
2211 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2212fi
5213506e
RW
2213for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2214do
2215 test "x$ac_site_file" = xNONE && continue
22e05272 2216 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2218$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2219 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2220 . "$ac_site_file" \
2221 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223as_fn_error $? "failed to load site script $ac_site_file
2224See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2225 fi
2226done
2227
2228if test -r "$cache_file"; then
22e05272
JM
2229 # Some versions of bash will fail to source /dev/null (special files
2230 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2231 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2234 case $cache_file in
5213506e
RW
2235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236 *) . "./$cache_file";;
1c710c3c
DJ
2237 esac
2238 fi
671aa708 2239else
5213506e
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2242 >$cache_file
2243fi
2244
2245# Check that the precious variables saved in the cache have kept the same
2246# value.
2247ac_cache_corrupted=false
5213506e 2248for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2253 case $ac_old_set,$ac_new_set in
2254 set,)
5213506e
RW
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2257 ac_cache_corrupted=: ;;
2258 ,set)
5213506e
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2261 ac_cache_corrupted=: ;;
2262 ,);;
2263 *)
2264 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2265 # differences in whitespace do not lead to failure.
2266 ac_old_val_w=`echo x $ac_old_val`
2267 ac_new_val_w=`echo x $ac_new_val`
2268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271 ac_cache_corrupted=:
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275 eval $ac_var=\$ac_old_val
2276 fi
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2278$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2280$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2281 fi;;
2282 esac
2283 # Pass precious variables to config.status.
2284 if test "$ac_new_set" = set; then
2285 case $ac_new_val in
5213506e 2286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2287 *) ac_arg=$ac_var=$ac_new_val ;;
2288 esac
2289 case " $ac_configure_args " in
2290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2292 esac
2293 fi
2294done
2295if $ac_cache_corrupted; then
5213506e
RW
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2300 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2301fi
5213506e
RW
2302## -------------------- ##
2303## Main body of script. ##
2304## -------------------- ##
671aa708 2305
2aeb72e9
DD
2306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311
1c710c3c
DJ
2312
2313
2314
1c710c3c
DJ
2315
2316
0115d4a3 2317
1c710c3c 2318
ad33ff57
RW
2319progname=$0
2320# if PWD already has a value, it is probably wrong.
2321if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2322
2323# Export original configure arguments for use by sub-configures.
2324# Quote arguments with shell meta charatcers.
2325TOPLEVEL_CONFIGURE_ARGUMENTS=
2326set -- "$progname" "$@"
2327for ac_arg
2328do
2329 case "$ac_arg" in
2330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2331 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2332 # if the argument is of the form -foo=baz, quote the baz part only
2333 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2334 *) ;;
2335 esac
2336 # Add the quoted argument to the list.
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2338done
2339if test "$silent" = yes; then
2340 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2341fi
2342# Remove the initial space we just introduced and, as these will be
2343# expanded by make, quote '$'.
2344TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2345
1c710c3c
DJ
2346
2347# Find the build, host, and target systems.
671aa708 2348ac_aux_dir=
5213506e 2349for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2350 if test -f "$ac_dir/install-sh"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 break
2354 elif test -f "$ac_dir/install.sh"; then
2355 ac_aux_dir=$ac_dir
2356 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 break
2358 elif test -f "$ac_dir/shtool"; then
2359 ac_aux_dir=$ac_dir
2360 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 break
2362 fi
671aa708
NN
2363done
2364if test -z "$ac_aux_dir"; then
22e05272 2365 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2366fi
5213506e
RW
2367
2368# These three variables are undocumented and unsupported,
2369# and are intended to be withdrawn in a future Autoconf release.
2370# They can cause serious problems if a builder's source tree is in a directory
2371# whose full name contains unusual characters.
2372ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2373ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2374ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375
671aa708 2376
1c710c3c 2377# Make sure we can run config.sub.
5213506e 2378$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2379 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2380
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2382$as_echo_n "checking build system type... " >&6; }
22e05272 2383if ${ac_cv_build+:} false; then :
5213506e
RW
2384 $as_echo_n "(cached) " >&6
2385else
2386 ac_build_alias=$build_alias
2387test "x$ac_build_alias" = x &&
2388 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2389test "x$ac_build_alias" = x &&
22e05272 2390 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2391ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2393
2394fi
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2396$as_echo "$ac_cv_build" >&6; }
2397case $ac_cv_build in
2398*-*-*) ;;
22e05272 2399*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2400esac
1c710c3c 2401build=$ac_cv_build
5213506e
RW
2402ac_save_IFS=$IFS; IFS='-'
2403set x $ac_cv_build
2404shift
2405build_cpu=$1
2406build_vendor=$2
2407shift; shift
2408# Remember, the first character of IFS is used to create $*,
2409# except with old shells:
2410build_os=$*
2411IFS=$ac_save_IFS
2412case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2413
671aa708 2414
1c710c3c
DJ
2415 case ${build_alias} in
2416 "") build_noncanonical=${build} ;;
2417 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2418esac
2419
2420
af71363e 2421
1c710c3c
DJ
2422 case ${host_alias} in
2423 "") host_noncanonical=${build_noncanonical} ;;
2424 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2425esac
2426
af71363e 2427
1c710c3c
DJ
2428
2429 case ${target_alias} in
2430 "") target_noncanonical=${host_noncanonical} ;;
2431 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2432esac
2433
af71363e 2434
1c710c3c
DJ
2435
2436
2437test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2438 test "$program_prefix$program_suffix$program_transform_name" = \
2439 NONENONEs,x,x, &&
1c710c3c 2440 program_transform_name=s,y,y,
af71363e 2441
5213506e
RW
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2443$as_echo_n "checking host system type... " >&6; }
22e05272 2444if ${ac_cv_host+:} false; then :
5213506e 2445 $as_echo_n "(cached) " >&6
af71363e 2446else
5213506e
RW
2447 if test "x$host_alias" = x; then
2448 ac_cv_host=$ac_cv_build
2449else
2450 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2451 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2452fi
1c710c3c 2453
af71363e 2454fi
5213506e
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2456$as_echo "$ac_cv_host" >&6; }
2457case $ac_cv_host in
2458*-*-*) ;;
22e05272 2459*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2460esac
1c710c3c 2461host=$ac_cv_host
5213506e
RW
2462ac_save_IFS=$IFS; IFS='-'
2463set x $ac_cv_host
2464shift
2465host_cpu=$1
2466host_vendor=$2
2467shift; shift
2468# Remember, the first character of IFS is used to create $*,
2469# except with old shells:
2470host_os=$*
2471IFS=$ac_save_IFS
2472case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2473
2474
5213506e
RW
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2476$as_echo_n "checking target system type... " >&6; }
22e05272 2477if ${ac_cv_target+:} false; then :
5213506e 2478 $as_echo_n "(cached) " >&6
1c710c3c 2479else
5213506e
RW
2480 if test "x$target_alias" = x; then
2481 ac_cv_target=$ac_cv_host
2482else
2483 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2485fi
1c710c3c
DJ
2486
2487fi
5213506e
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2489$as_echo "$ac_cv_target" >&6; }
2490case $ac_cv_target in
2491*-*-*) ;;
22e05272 2492*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2493esac
1c710c3c 2494target=$ac_cv_target
5213506e
RW
2495ac_save_IFS=$IFS; IFS='-'
2496set x $ac_cv_target
2497shift
2498target_cpu=$1
2499target_vendor=$2
2500shift; shift
2501# Remember, the first character of IFS is used to create $*,
2502# except with old shells:
2503target_os=$*
2504IFS=$ac_save_IFS
2505case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2506
2507
2508# The aliases save the names the user supplied, while $host etc.
2509# will get canonicalized.
2510test -n "$target_alias" &&
2511 test "$program_prefix$program_suffix$program_transform_name" = \
2512 NONENONEs,x,x, &&
2513 program_prefix=${target_alias}-
5213506e 2514
671aa708 2515test "$program_prefix" != NONE &&
5213506e 2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2517# Use a double $ so make ignores it.
2518test "$program_suffix" != NONE &&
5213506e
RW
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520# Double any \ or $.
1c710c3c 2521# By default was `s,x,x', remove it if useless.
5213506e
RW
2522ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2524
671aa708
NN
2525
2526
775956d0
NN
2527# Get 'install' or 'install-sh' and its variants.
2528# Find a good install program. We prefer a C program (faster),
2529# so one script is as good as another. But avoid the broken or
2530# incompatible versions:
2531# SysV /etc/install, /usr/sbin/install
2532# SunOS /usr/etc/install
2533# IRIX /sbin/install
2534# AIX /bin/install
1c710c3c 2535# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2537# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2539# OS/2's system install, which has a completely different semantic
775956d0 2540# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2541# Reject install programs that cannot install multiple files.
5213506e
RW
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2543$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2544if test -z "$INSTALL"; then
22e05272 2545if ${ac_cv_path_install+:} false; then :
5213506e 2546 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2547else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
5213506e
RW
2553 # Account for people who put trailing slashes in PATH elements.
2554case $as_dir/ in #((
2555 ./ | .// | /[cC]/* | \
1c710c3c 2556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2558 /usr/ucb/* ) ;;
2559 *)
2560 # OSF1 and SCO ODT 3.0 have their own names for install.
2561 # Don't use installbsd from OSF since it installs stuff as root
2562 # by default.
2563 for ac_prog in ginstall scoinst install; do
2564 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2565 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2566 if test $ac_prog = install &&
1c710c3c 2567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2568 # AIX install. It has an incompatible calling convention.
2569 :
1c710c3c
DJ
2570 elif test $ac_prog = install &&
2571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2572 # program-specific install script used by HP pwplus--don't use.
2573 :
775956d0 2574 else
38d24731
RW
2575 rm -rf conftest.one conftest.two conftest.dir
2576 echo one > conftest.one
2577 echo two > conftest.two
2578 mkdir conftest.dir
2579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2580 test -s conftest.one && test -s conftest.two &&
2581 test -s conftest.dir/conftest.one &&
2582 test -s conftest.dir/conftest.two
2583 then
2584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2585 break 3
2586 fi
775956d0
NN
2587 fi
2588 fi
2589 done
1c710c3c
DJ
2590 done
2591 ;;
2592esac
5213506e
RW
2593
2594 done
2595IFS=$as_save_IFS
1c710c3c 2596
38d24731 2597rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2598
2599fi
2600 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2601 INSTALL=$ac_cv_path_install
775956d0 2602 else
38d24731
RW
2603 # As a last resort, use the slow shell script. Don't cache a
2604 # value for INSTALL within a source directory, because that will
775956d0 2605 # break other packages using the cache if that directory is
38d24731 2606 # removed, or if the value is a relative name.
1c710c3c 2607 INSTALL=$ac_install_sh
775956d0
NN
2608 fi
2609fi
5213506e
RW
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2611$as_echo "$INSTALL" >&6; }
775956d0
NN
2612
2613# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2614# It thinks the first close brace ends the variable substitution.
2615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2616
1c710c3c 2617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2618
2619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2620
5213506e
RW
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2622$as_echo_n "checking whether ln works... " >&6; }
22e05272 2623if ${acx_cv_prog_LN+:} false; then :
5213506e 2624 $as_echo_n "(cached) " >&6
ad6717df
PB
2625else
2626 rm -f conftestdata_t
2627echo >conftestdata_f
2628if ln conftestdata_f conftestdata_t 2>/dev/null
2629then
2630 acx_cv_prog_LN=ln
2631else
2632 acx_cv_prog_LN=no
2633fi
2634rm -f conftestdata_f conftestdata_t
2635
2636fi
2637if test $acx_cv_prog_LN = no; then
2638 LN="cp"
5213506e
RW
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2640$as_echo "no, using $LN" >&6; }
ad6717df
PB
2641else
2642 LN="$acx_cv_prog_LN"
5213506e
RW
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644$as_echo "yes" >&6; }
ad6717df
PB
2645fi
2646
5213506e
RW
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2648$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2649LN_S=$as_ln_s
2650if test "$LN_S" = "ln -s"; then
5213506e
RW
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2652$as_echo "yes" >&6; }
fb0103e5 2653else
5213506e
RW
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2655$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2656fi
2657
87264276
PB
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2659$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2660if ${ac_cv_path_SED+:} false; then :
87264276
PB
2661 $as_echo_n "(cached) " >&6
2662else
2663 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2664 for ac_i in 1 2 3 4 5 6 7; do
2665 ac_script="$ac_script$as_nl$ac_script"
2666 done
2667 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2668 { ac_script=; unset ac_script;}
2669 if test -z "$SED"; then
2670 ac_path_SED_found=false
2671 # Loop through the user's path and test for each of PROGNAME-LIST
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_prog in sed gsed; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2680 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2681# Check for GNU ac_path_SED and select it if it is found.
2682 # Check for GNU $ac_path_SED
2683case `"$ac_path_SED" --version 2>&1` in
2684*GNU*)
2685 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2686*)
2687 ac_count=0
2688 $as_echo_n 0123456789 >"conftest.in"
2689 while :
2690 do
2691 cat "conftest.in" "conftest.in" >"conftest.tmp"
2692 mv "conftest.tmp" "conftest.in"
2693 cp "conftest.in" "conftest.nl"
2694 $as_echo '' >> "conftest.nl"
2695 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2697 as_fn_arith $ac_count + 1 && ac_count=$as_val
2698 if test $ac_count -gt ${ac_path_SED_max-0}; then
2699 # Best one so far, save it but keep looking for a better one
2700 ac_cv_path_SED="$ac_path_SED"
2701 ac_path_SED_max=$ac_count
2702 fi
2703 # 10*(2^10) chars as input seems more than enough
2704 test $ac_count -gt 10 && break
2705 done
2706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2707esac
2708
2709 $ac_path_SED_found && break 3
2710 done
2711 done
2712 done
2713IFS=$as_save_IFS
2714 if test -z "$ac_cv_path_SED"; then
22e05272 2715 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2716 fi
2717else
2718 ac_cv_path_SED=$SED
2719fi
2720
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2723$as_echo "$ac_cv_path_SED" >&6; }
2724 SED="$ac_cv_path_SED"
2725 rm -f conftest.sed
2726
2727for ac_prog in gawk mawk nawk awk
2728do
2729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2730set dummy $ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2733if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2734 $as_echo_n "(cached) " >&6
2735else
2736 if test -n "$AWK"; then
2737 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2746 ac_cv_prog_AWK="$ac_prog"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2749 fi
2750done
2751 done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756AWK=$ac_cv_prog_AWK
2757if test -n "$AWK"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759$as_echo "$AWK" >&6; }
2760else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766 test -n "$AWK" && break
2767done
2768
775956d0 2769
ee6a22df
L
2770srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2771
2772# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2773# a relative path.
2774if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2775 INSTALL="${srcpwd}/install-sh -c"
2776fi
2777
671aa708
NN
2778# Set srcdir to "." if that's what it is.
2779# This is important for multilib support.
2780pwd=`${PWDCMD-pwd}`
671aa708
NN
2781if test "${pwd}" = "${srcpwd}" ; then
2782 srcdir=.
79c06341
JL
2783fi
2784
671aa708 2785topsrcdir=$srcpwd
5d4a5ee6 2786
671aa708 2787extra_host_args=
afabd8e6 2788
671aa708
NN
2789### To add a new directory to the tree, first choose whether it is a target
2790### or a host dependent tool. Then put it into the appropriate list
2791### (library or tools, host or target), doing a dependency sort.
79c06341 2792
1c710c3c 2793# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2794# configdirs, or target_configdirs; see the serialization section below.
79c06341 2795
1c710c3c
DJ
2796# Dependency sorting is only needed when *configuration* must be done in
2797# a particular order. In all cases a dependency should be specified in
671aa708 2798# the Makefile, whether or not it's implicitly specified here.
79c06341 2799
671aa708
NN
2800# Double entries in build_configdirs, configdirs, or target_configdirs may
2801# cause circular dependencies and break everything horribly.
79c06341 2802
23f6b2f9
PB
2803# these library is used by various programs built for the build
2804# environment
2805#
929315a9 2806build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2807
2808# these tools are built for the build environment
85bfb75e 2809build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2810
671aa708 2811# these libraries are used by various programs built for the host environment
eae1a5d4 2812#f
3de627ff 2813host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
671aa708 2814
671aa708
NN
2815# these tools are built for the host environment
2816# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2817# know that we are building the simulator.
2818# binutils, gas and ld appear in that order because it makes sense to run
2819# "make check" in that particular order.
38e3d868 2820# If --enable-gold is used, "gold" may replace "ld".
1eee94d3 2821host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
671aa708 2822
671aa708
NN
2823# these libraries are built for the target environment, and are built after
2824# the host libraries and the host tools (which may be a cross compiler)
8499116a 2825# Note that libiberty is not a target library.
291f172e 2826target_libraries="target-libgcc \
eff02e4f 2827 target-libbacktrace \
671aa708
NN
2828 target-libgloss \
2829 target-newlib \
6d3b5aea 2830 target-libgomp \
48310492 2831 target-libatomic \
0a35513e 2832 target-libitm \
cb543528 2833 target-libstdc++-v3 \
f35db108 2834 target-libsanitizer \
2077db1b 2835 target-libvtv \
77008252 2836 target-libssp \
1ec601bf 2837 target-libquadmath \
6de9cd9a 2838 target-libgfortran \
012447ea 2839 target-libffi \
d9cdb878 2840 target-libobjc \
632e2a07 2841 target-libada \
1eee94d3 2842 target-libgm2 \
b4c522fa 2843 target-libgo \
bb50312e
IB
2844 target-libphobos \
2845 target-zlib"
671aa708 2846
4dbda6f0
NN
2847# these tools are built using the target libraries, and are intended to
2848# run only in the target environment
671aa708 2849#
4dbda6f0 2850# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2851# list belongs in this list.
671aa708 2852#
85bfb75e 2853target_tools="target-rda"
79c06341 2854
671aa708 2855################################################################################
79c06341 2856
671aa708
NN
2857## All tools belong in one of the four categories, and are assigned above
2858## We assign ${configdirs} this way to remove all embedded newlines. This
2859## is important because configure will choke if they ever get through.
2860## ${configdirs} is directories we build using the host tools.
2861## ${target_configdirs} is directories we build using the target tools.
671aa708 2862configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2863target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2864build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2865
ac9e6043
RW
2866
2867
671aa708 2868################################################################################
79c06341 2869
671aa708 2870srcname="gnu development package"
79c06341 2871
671aa708
NN
2872# This gets set non-empty for some net releases of packages.
2873appdirs=""
79c06341 2874
671aa708
NN
2875# Define is_cross_compiler to save on calls to 'test'.
2876is_cross_compiler=
2877if test x"${host}" = x"${target}" ; then
2878 is_cross_compiler=no
79c06341 2879else
671aa708 2880 is_cross_compiler=yes
1c710c3c 2881fi
79c06341 2882
b4acb5ef 2883# Find the build and target subdir names.
8b87bb96 2884
2e9e6f68
DJ
2885# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2886# have matching libraries, they should use host libraries: Makefile.tpl
2887# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2888# However, they still use the build modules, because the corresponding
2889# host modules (e.g. bison) are only built for the host when bootstrap
2890# finishes. So:
2891# - build_subdir is where we find build modules, and never changes.
2892# - build_libsubdir is where we find build libraries, and can be overridden.
2893
2894# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2895build_subdir="build-${build_noncanonical}"
1c710c3c 2896
5213506e
RW
2897# Check whether --with-build-libsubdir was given.
2898if test "${with_build_libsubdir+set}" = set; then :
2899 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2900else
2901 build_libsubdir="$build_subdir"
5213506e
RW
2902fi
2903
215c351a
PB
2904# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2905if ( test $srcdir = . && test -d gcc ) \
2906 || test -d $srcdir/../host-${host_noncanonical}; then
2907 host_subdir="host-${host_noncanonical}"
2908else
2909 host_subdir=.
2910fi
8b87bb96
NN
2911# No prefix.
2912target_subdir=${target_noncanonical}
1c710c3c 2913
0db770bd
RW
2914# Be sure to cover against remnants of an in-tree build.
2915if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2916 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2917Use a pristine source tree when building in a separate tree" "$LINENO" 5
2918fi
79c06341 2919
671aa708
NN
2920# Skipdirs are removed silently.
2921skipdirs=
2922# Noconfigdirs are removed loudly.
2923noconfigdirs=""
79c06341 2924
671aa708
NN
2925use_gnu_ld=
2926# Make sure we don't let GNU ld be added if we didn't want it.
2927if test x$with_gnu_ld = xno ; then
2928 use_gnu_ld=no
5afab7ad 2929 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2930fi
2931
671aa708
NN
2932use_gnu_as=
2933# Make sure we don't let GNU as be added if we didn't want it.
2934if test x$with_gnu_as = xno ; then
2935 use_gnu_as=no
2936 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2937fi
2938
d7f09764 2939use_included_zlib=
a05c2c75
L
2940
2941# Check whether --with-system-zlib was given.
2942if test "${with_system_zlib+set}" = set; then :
2943 withval=$with_system_zlib;
2944fi
2945
d7f09764
DN
2946# Make sure we don't let ZLIB be added if we didn't want it.
2947if test x$with_system_zlib = xyes ; then
2948 use_included_zlib=no
2949 noconfigdirs="$noconfigdirs zlib"
2950fi
2951
36ba9851
ДП
2952# Don't compile the bundled readline/libreadline.a if --with-system-readline
2953# is provided.
2954if test x$with_system_readline = xyes ; then
2955 noconfigdirs="$noconfigdirs readline"
2956fi
2957
1c710c3c 2958# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2959# it's not even worth trying to configure, much less build, that tool.
79c06341 2960
671aa708
NN
2961case ${with_x} in
2962 yes | "") ;; # the default value for this tree is that X11 is available
2963 no)
b4f96efe 2964 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2965 # We won't be able to build gdbtk without X.
1c710c3c 2966 enable_gdbtk=no
671aa708
NN
2967 ;;
2968 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2969esac
79c06341 2970
1bcce263 2971# Some are only suitable for cross toolchains.
671aa708
NN
2972# Remove these if host=target.
2973cross_only="target-libgloss target-newlib target-opcodes"
2974
2975case $is_cross_compiler in
2976 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2977esac
79c06341 2978
671aa708
NN
2979# If both --with-headers and --with-libs are specified, default to
2980# --without-newlib.
ee6a22df
L
2981if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2982 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2983 if test x"${with_newlib}" = x ; then
2984 with_newlib=no
2985 fi
79c06341
JL
2986fi
2987
671aa708
NN
2988# Recognize --with-newlib/--without-newlib.
2989case ${with_newlib} in
2990 no) skipdirs="${skipdirs} target-newlib" ;;
2991 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2992esac
79c06341 2993
85c64bbe
BS
2994# Check whether --enable-as-accelerator-for was given.
2995if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2996 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2997fi
2998
2999
3000# Check whether --enable-offload-targets was given.
3001if test "${enable_offload_targets+set}" = set; then :
3002 enableval=$enable_offload_targets;
3003 if test x"$enable_offload_targets" = x; then
22e05272 3004 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3005 fi
3006
3007else
3008 enable_offload_targets=
3009fi
3010
3011
fe5bfa67
TB
3012# Check whether --enable-offload-defaulted was given.
3013if test "${enable_offload_defaulted+set}" = set; then :
3014 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3015else
3016 enable_offload_defaulted=
3017fi
3018
3019
21539e2e
MK
3020# Handle --enable-gold, --enable-ld.
3021# --disable-gold [--enable-ld]
3022# Build only ld. Default option.
9580395f
L
3023# --enable-gold [--enable-ld]
3024# Build both gold and ld. Install gold as "ld.gold", install ld
3025# as "ld.bfd" and "ld".
3026# --enable-gold=default [--enable-ld]
21539e2e
MK
3027# Build both gold and ld. Install gold as "ld.gold" and "ld",
3028# install ld as "ld.bfd".
3029# --enable-gold[=default] --disable-ld
3030# Build only gold, which is then installed as both "ld.gold" and "ld".
3031# --enable-gold --enable-ld=default
9580395f
L
3032# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3033# and ld.bfd).
21539e2e
MK
3034# In other words, ld is default
3035# --enable-gold=default --enable-ld=default
3036# Error.
3037
3038default_ld=
5213506e
RW
3039# Check whether --enable-gold was given.
3040if test "${enable_gold+set}" = set; then :
3041 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3042else
3043 ENABLE_GOLD=no
5213506e
RW
3044fi
3045
21539e2e
MK
3046case "${ENABLE_GOLD}" in
3047 yes|default)
38e3d868
RM
3048 # Check for ELF target.
3049 is_elf=no
3050 case "${target}" in
3051 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3052 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3053 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3054 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3055 case "${target}" in
3056 *-*-linux*aout* | *-*-linux*oldld*)
3057 ;;
3058 *)
3059 is_elf=yes
3060 ;;
3061 esac
3062 esac
3063
3064 if test "$is_elf" = "yes"; then
3065 # Check for target supported by gold.
5afab7ad 3066 case "${target}" in
7705dfd1 3067 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
fc259b52 3068 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3069 configdirs="$configdirs gold"
3070 if test x${ENABLE_GOLD} = xdefault; then
3071 default_ld=gold
3072 fi
38e3d868 3073 ENABLE_GOLD=yes
5afab7ad
ILT
3074 ;;
3075 esac
38e3d868
RM
3076 fi
3077 ;;
3078 no)
3079 ;;
3080 *)
22e05272 3081 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3082 ;;
21539e2e
MK
3083esac
3084
3085# Check whether --enable-ld was given.
3086if test "${enable_ld+set}" = set; then :
3087 enableval=$enable_ld; ENABLE_LD=$enableval
3088else
3089 ENABLE_LD=yes
3090fi
3091
3092
3093case "${ENABLE_LD}" in
3094 default)
9580395f 3095 if test x${default_ld} != x; then
22e05272 3096 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3097 fi
3098 ;;
3099 yes)
3100 ;;
3101 no)
3102 if test x${ENABLE_GOLD} != xyes; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3104$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3105 fi
3106 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3107 ;;
3108 *)
22e05272 3109 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3110 ;;
3111esac
5afab7ad 3112
78edb32f
L
3113# PR gas/19109
3114# Decide the default method for compressing debug sections.
3115# Provide a configure time option to override our default.
3116# Check whether --enable-compressed_debug_sections was given.
3117if test "${enable_compressed_debug_sections+set}" = set; then :
3118 enableval=$enable_compressed_debug_sections;
3119 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3120 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3121 fi
3122
3123else
3124 enable_compressed_debug_sections=
3125fi
3126
3127
671aa708 3128# Configure extra directories which are host specific
79c06341 3129
671aa708
NN
3130case "${host}" in
3131 *-cygwin*)
3132 configdirs="$configdirs libtermcap" ;;
3133esac
79c06341 3134
4fab7234
HPN
3135# A target can indicate whether a language isn't supported for some reason.
3136# Only spaces may be used in this macro; not newlines or tabs.
3137unsupported_languages=
3138
1c710c3c 3139# Remove more programs from consideration, based on the host or
671aa708
NN
3140# target this usually means that a port of the program doesn't
3141# exist yet.
ec8d6ddc 3142
671aa708 3143case "${host}" in
111eeb6e 3144 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3145 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3146 ;;
671aa708 3147esac
ec8d6ddc 3148
6de9cd9a 3149
87e6d9dc
TB
3150# Check whether --enable-libquadmath was given.
3151if test "${enable_libquadmath+set}" = set; then :
3152 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3153else
3154 ENABLE_LIBQUADMATH=yes
3155fi
3156
3157if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3158 noconfigdirs="$noconfigdirs target-libquadmath"
3159fi
3160
3161
3162# Check whether --enable-libquadmath-support was given.
3163if test "${enable_libquadmath_support+set}" = set; then :
3164 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3165else
3166 ENABLE_LIBQUADMATH_SUPPORT=yes
3167fi
3168
3169enable_libquadmath_support=
3170if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3171 enable_libquadmath_support=no
3172fi
3173
3174
5213506e
RW
3175# Check whether --enable-libada was given.
3176if test "${enable_libada+set}" = set; then :
3177 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3178else
3179 ENABLE_LIBADA=yes
5213506e
RW
3180fi
3181
d9cdb878 3182if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3183 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3184fi
3185
1eee94d3
GM
3186# Check whether --enable-libgm2 was given.
3187if test "${enable_libgm2+set}" = set; then :
3188 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3189else
3190 ENABLE_LIBGM2=no
3191fi
3192
3193if test "${ENABLE_LIBGM2}" != "yes" ; then
3194 noconfigdirs="$noconfigdirs gm2tools"
3195fi
3196
5213506e
RW
3197# Check whether --enable-libssp was given.
3198if test "${enable_libssp+set}" = set; then :
3199 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3200else
3201 ENABLE_LIBSSP=yes
5213506e
RW
3202fi
3203
ef0087a7 3204
1873ec0c
L
3205# Check whether --enable-libstdcxx was given.
3206if test "${enable_libstdcxx+set}" = set; then :
3207 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3208else
3209 ENABLE_LIBSTDCXX=default
3210fi
3211
3212if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3213 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3214fi
3215
44a7d18d 3216# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3217if test x$enable_libgomp = x ; then
953ff289 3218 case "${target}" in
416ac4d4 3219 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3220 ;;
8c6d158a 3221 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3222 ;;
b24513a1 3223 *-*-solaris2* | *-*-hpux11*)
953ff289 3224 ;;
cac90078 3225 *-*-darwin* | *-*-aix*)
953ff289 3226 ;;
29b1533a 3227 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3228 ;;
953ff289
DN
3229 *)
3230 noconfigdirs="$noconfigdirs target-libgomp"
3231 ;;
3232 esac
27079765 3233fi
953ff289 3234
48310492
RH
3235# Disable libatomic on unsupported systems.
3236if test -d ${srcdir}/libatomic; then
3237 if test x$enable_libatomic = x; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3239$as_echo_n "checking for libatomic support... " >&6; }
3240 if (srcdir=${srcdir}/libatomic; \
3241 . ${srcdir}/configure.tgt; \
3242 test -n "$UNSUPPORTED")
3243 then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246 noconfigdirs="$noconfigdirs target-libatomic"
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3249$as_echo "yes" >&6; }
3250 fi
3251 fi
3252fi
3253
e948157d
RH
3254# Disable libitm on unsupported systems.
3255if test -d ${srcdir}/libitm; then
3256 if test x$enable_libitm = x; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3258$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3259 if (srcdir=${srcdir}/libitm; \
3260 . ${srcdir}/configure.tgt; \
3261 test -n "$UNSUPPORTED")
3262 then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3264$as_echo "no" >&6; }
e948157d
RH
3265 noconfigdirs="$noconfigdirs target-libitm"
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3268$as_echo "yes" >&6; }
e948157d
RH
3269 fi
3270 fi
0a35513e
AH
3271fi
3272
93bf5390
RH
3273# Disable libsanitizer on unsupported systems.
3274if test -d ${srcdir}/libsanitizer; then
3275 if test x$enable_libsanitizer = x; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3277$as_echo_n "checking for libsanitizer support... " >&6; }
3278 if (srcdir=${srcdir}/libsanitizer; \
3279 . ${srcdir}/configure.tgt; \
3280 test -n "$UNSUPPORTED")
3281 then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3284 noconfigdirs="$noconfigdirs target-libsanitizer"
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288 fi
3289 fi
3290fi
3291
2077db1b
CT
3292# Disable libvtv on unsupported systems.
3293if test -d ${srcdir}/libvtv; then
3294 if test x$enable_libvtv = x; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3296$as_echo_n "checking for libvtv support... " >&6; }
3297 if (srcdir=${srcdir}/libvtv; \
3298 . ${srcdir}/configure.tgt; \
1e74b850 3299 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3300 then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303 noconfigdirs="$noconfigdirs target-libvtv"
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306$as_echo "yes" >&6; }
3307 fi
3308 fi
3309fi
3310
d91491e5
SE
3311# Disable libquadmath for some systems.
3312case "${target}" in
e7fae550
DE
3313 avr-*-*)
3314 noconfigdirs="$noconfigdirs target-libquadmath"
3315 ;;
d91491e5
SE
3316 # libquadmath is unused on AIX and libquadmath build process use of
3317 # LD_LIBRARY_PATH can break AIX bootstrap.
3318 powerpc-*-aix* | rs6000-*-aix*)
3319 noconfigdirs="$noconfigdirs target-libquadmath"
3320 ;;
3321esac
3322
1e9e0e23
JM
3323# Disable libssp for some systems.
3324case "${target}" in
3325 avr-*-*)
b318fb4b 3326 # No hosted I/O support.
1e9e0e23
JM
3327 noconfigdirs="$noconfigdirs target-libssp"
3328 ;;
91dfef96
JM
3329 bpf-*-*)
3330 noconfigdirs="$noconfigdirs target-libssp"
3331 ;;
1e9e0e23
JM
3332 powerpc-*-aix* | rs6000-*-aix*)
3333 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3334 ;;
8d2af3a2
DD
3335 pru-*-*)
3336 # No hosted I/O support.
3337 noconfigdirs="$noconfigdirs target-libssp"
3338 ;;
85b8555e 3339 rl78-*-*)
7cb62ef1
EB
3340 # libssp uses a misaligned load to trigger a fault, but the RL78
3341 # doesn't fault for those - instead, it gives a build-time error
3342 # for explicit misaligned loads.
85b8555e 3343 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3344 ;;
0969ec7d
EB
3345 visium-*-*)
3346 # No hosted I/O support.
3347 noconfigdirs="$noconfigdirs target-libssp"
3348 ;;
1e9e0e23
JM
3349esac
3350
1e9e0e23 3351# Disable libstdc++-v3 for some systems.
67a1cb2a 3352# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3353if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3354 case "${target}" in
3355 *-*-vxworks*)
3356 # VxWorks uses the Dinkumware C++ library.
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358 ;;
afa3d80e
TS
3359 amdgcn*-*-*)
3360 # Not ported/fails to build when using newlib.
3361 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3362 ;;
1873ec0c
L
3363 arm*-wince-pe*)
3364 # the C++ libraries don't build on top of CE's C libraries
3365 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3366 ;;
3367 avr-*-*)
3368 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3369 ;;
91dfef96
JM
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3372 ;;
fef939d6
JB
3373 ft32-*-*)
3374 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3375 ;;
1873ec0c
L
3376 esac
3377fi
1e9e0e23 3378
91dfef96
JM
3379# Disable C++ on systems where it is known to not work.
3380# For testing, you can override this with --enable-languages=c++.
3381case ,${enable_languages}, in
3382 *,c++,*)
3383 ;;
3384 *)
3385 case "${target}" in
3386 bpf-*-*)
3387 unsupported_languages="$unsupported_languages c++"
3388 ;;
3389 esac
3390 ;;
3391esac
3392
3393# Disable Objc on systems where it is known to not work.
3394# For testing, you can override this with --enable-languages=objc.
3395case ,${enable_languages}, in
3396 *,objc,*)
3397 ;;
3398 *)
3399 case "${target}" in
3400 bpf-*-*)
3401 unsupported_languages="$unsupported_languages objc"
3402 ;;
3403 esac
3404 ;;
3405esac
3406
260eedb9
IB
3407# Disable D on systems where it is known to not work.
3408# For testing, you can override this with --enable-languages=d.
3409case ,${enable_languages}, in
3410 *,d,*)
3411 ;;
3412 *)
3413 case "${target}" in
91dfef96 3414 bpf-*-*)
260eedb9
IB
3415 unsupported_languages="$unsupported_languages d"
3416 ;;
3417 esac
3418 ;;
3419esac
3420
3421# Disable libphobos on unsupported systems.
3422# For testing, you can override this with --enable-libphobos.
3423if test -d ${srcdir}/libphobos; then
3424 if test x$enable_libphobos = x; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3426$as_echo_n "checking for libphobos support... " >&6; }
3427 if (srcdir=${srcdir}/libphobos; \
3428 . ${srcdir}/configure.tgt; \
7d31d331 3429 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3430 then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433 noconfigdirs="$noconfigdirs target-libphobos"
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3436$as_echo "yes" >&6; }
3437 fi
3438 fi
3439fi
3440
1e9e0e23
JM
3441# Disable Fortran for some systems.
3442case "${target}" in
3443 mmix-*-*)
3444 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3445 unsupported_languages="$unsupported_languages fortran"
3446 ;;
91dfef96
JM
3447 bpf-*-*)
3448 unsupported_languages="$unsupported_languages fortran"
3449 ;;
1e9e0e23
JM
3450esac
3451
012447ea
JJ
3452# Disable libffi for some systems.
3453case "${target}" in
3454 powerpc-*-darwin*)
3455 ;;
3456 i[3456789]86-*-darwin*)
3457 ;;
3458 x86_64-*-darwin[912]*)
3459 ;;
3460 *-*-darwin*)
3461 noconfigdirs="$noconfigdirs target-libffi"
3462 ;;
3463 *-*-netware*)
3464 noconfigdirs="$noconfigdirs target-libffi"
3465 ;;
3466 *-*-phoenix*)
3467 noconfigdirs="$noconfigdirs target-libffi"
3468 ;;
3469 *-*-rtems*)
3470 noconfigdirs="$noconfigdirs target-libffi"
3471 ;;
3472 *-*-tpf*)
3473 noconfigdirs="$noconfigdirs target-libffi"
3474 ;;
3475 *-*-uclinux*)
3476 noconfigdirs="$noconfigdirs target-libffi"
3477 ;;
3478 *-*-vxworks*)
3479 noconfigdirs="$noconfigdirs target-libffi"
3480 ;;
b20e7532
AT
3481 aarch64*-*-freebsd*)
3482 noconfigdirs="$noconfigdirs target-libffi"
3483 ;;
012447ea
JJ
3484 alpha*-*-*vms*)
3485 noconfigdirs="$noconfigdirs target-libffi"
3486 ;;
3487 arm*-*-freebsd*)
3488 noconfigdirs="$noconfigdirs target-libffi"
3489 ;;
3490 arm-wince-pe)
3491 noconfigdirs="$noconfigdirs target-libffi"
3492 ;;
3493 arm*-*-symbianelf*)
3494 noconfigdirs="$noconfigdirs target-libffi"
3495 ;;
91dfef96
JM
3496 bpf-*-*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
012447ea
JJ
3499 cris-*-* | crisv32-*-*)
3500 case "${target}" in
3501 *-*-linux*)
3502 ;;
3503 *) # See PR46792 regarding target-libffi.
3504 noconfigdirs="$noconfigdirs target-libffi";;
3505 esac
3506 ;;
3507 hppa*64*-*-hpux*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
012447ea
JJ
3510 ia64*-*-*vms*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 i[3456789]86-w64-mingw*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 i[3456789]86-*-mingw*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 x86_64-*-mingw*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
3522 mmix-*-*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
3525 powerpc-*-aix*)
012447ea
JJ
3526 ;;
3527 rs6000-*-aix*)
012447ea
JJ
3528 ;;
3529 ft32-*-*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
3532 *-*-lynxos*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
3535esac
3536
3537# Disable the go frontend on systems where it is known to not work. Please keep
3538# this in sync with contrib/config-list.mk.
3539case "${target}" in
91dfef96 3540*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3541 unsupported_languages="$unsupported_languages go"
3542 ;;
3543esac
3544
f9d09df0
TT
3545# Only allow gdbserver on some systems.
3546if test -d ${srcdir}/gdbserver; then
3547 if test x$enable_gdbserver = x; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3549$as_echo_n "checking for gdbserver support... " >&6; }
3550 if (srcdir=${srcdir}/gdbserver; \
3551 . ${srcdir}/configure.srv; \
3552 test -n "$UNSUPPORTED")
3553 then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555$as_echo "no" >&6; }
3556 noconfigdirs="$noconfigdirs gdbserver"
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3559$as_echo "yes" >&6; }
3560 fi
3561 fi
3562fi
3563
cdbc9e92
ILT
3564# Disable libgo for some systems where it is known to not work.
3565# For testing, you can easily override this with --enable-libgo.
3566if test x$enable_libgo = x; then
3567 case "${target}" in
3568 *-*-darwin*)
3569 # PR 46986
3570 noconfigdirs="$noconfigdirs target-libgo"
3571 ;;
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3574 ;;
91dfef96
JM
3575 bpf-*-*)
3576 noconfigdirs="$noconfigdirs target-libgo"
3577 ;;
cdbc9e92
ILT
3578 esac
3579fi
3580
c03353e2
RIL
3581# Default libgloss CPU subdirectory.
3582libgloss_dir="$target_cpu"
6de9cd9a 3583
fbcf0dca
JM
3584case "${target}" in
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586 libgloss_dir=wince
3587 ;;
4dddfc74
YZ
3588 aarch64*-*-* )
3589 libgloss_dir=aarch64
3590 ;;
fbcf0dca
JM
3591 arm*-*-*)
3592 libgloss_dir=arm
3593 ;;
3594 cris-*-* | crisv32-*-*)
3595 libgloss_dir=cris
3596 ;;
3597 hppa*-*-*)
3598 libgloss_dir=pa
3599 ;;
3600 i[3456789]86-*-*)
3601 libgloss_dir=i386
3602 ;;
c6c0594e 3603 loongarch*-*-*)
3604 libgloss_dir=loongarch
3605 ;;
fbcf0dca
JM
3606 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3607 libgloss_dir=m68hc11
3608 ;;
3609 m68*-*-* | fido-*-*)
3610 libgloss_dir=m68k
3611 ;;
3612 mips*-*-*)
3613 libgloss_dir=mips
3614 ;;
3615 powerpc*-*-*)
3616 libgloss_dir=rs6000
3617 ;;
8d2af3a2
DD
3618 pru-*-*)
3619 libgloss_dir=pru
3620 ;;
fbcf0dca
JM
3621 sparc*-*-*)
3622 libgloss_dir=sparc
3623 ;;
3624esac
3625
6a789d5e 3626# Disable newlib and libgloss for various target OSes.
671aa708 3627case "${target}" in
6a789d5e
JM
3628 alpha*-dec-osf*)
3629 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3630 ;;
3631 i[3456789]86-*-linux*)
3632 # This section makes it possible to build newlib natively on linux.
3633 # If we are using a cross compiler then don't configure newlib.
3634 if test x${is_cross_compiler} != xno ; then
3635 noconfigdirs="$noconfigdirs target-newlib"
3636 fi
3637 noconfigdirs="$noconfigdirs target-libgloss"
3638 # If we are not using a cross compiler, do configure newlib.
3639 # Note however, that newlib will only be configured in this situation
3640 # if the --with-newlib option has been given, because otherwise
3641 # 'target-newlib' will appear in skipdirs.
3642 ;;
3643 i[3456789]86-*-rdos*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 sparc-*-sunos4*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
91dfef96
JM
3652 bpf-*-*)
3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3654 ;;
6a789d5e
JM
3655 *-*-aix*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-beos*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
671aa708 3661 *-*-chorusos)
0036370f 3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3663 ;;
6a789d5e
JM
3664 *-*-dragonfly*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-freebsd*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-lynxos*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-mingw*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 *-*-netbsd*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 *-*-netware*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685 *-*-tpf*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 *-*-uclinux*)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 *-*-vxworks*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
3694esac
3695
3696case "${target}" in
3697 *-*-chorusos)
3698 ;;
3be96231
TG
3699 aarch64-*-darwin*)
3700 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3701 noconfigdirs="$noconfigdirs sim target-rda"
3702 ;;
7431c1a1
AS
3703 amdgcn*-*-*)
3704 ;;
3be96231
TG
3705 arm-*-darwin*)
3706 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3707 noconfigdirs="$noconfigdirs sim target-rda"
3708 ;;
75eeae1a 3709 powerpc-*-darwin*)
e1514c3f 3710 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3711 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3712 ;;
354ebf88
RW
3713 i[3456789]86-*-darwin*)
3714 noconfigdirs="$noconfigdirs ld gprof"
3715 noconfigdirs="$noconfigdirs sim target-rda"
3716 ;;
3717 x86_64-*-darwin[912]*)
0db3a858
TG
3718 noconfigdirs="$noconfigdirs ld gas gprof"
3719 noconfigdirs="$noconfigdirs sim target-rda"
3720 ;;
42c1cd8a
AT
3721 *-*-darwin*)
3722 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3723 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3724 ;;
8c6d158a 3725 *-*-dragonfly*)
8c6d158a 3726 ;;
c3f84f61 3727 *-*-freebsd*)
88252529 3728 if test "x$with_gmp" = x \
c0d0a722 3729 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3730 && test -f /usr/local/include/gmp.h; then
3731 with_gmp=/usr/local
3732 fi
6de9cd9a 3733 ;;
ef4e7569
US
3734 *-*-kaos*)
3735 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3736 noconfigdirs="$noconfigdirs target-libgloss"
3737 ;;
671aa708 3738 *-*-netbsd*)
671aa708 3739 ;;
61fec9ff 3740 *-*-netware*)
671aa708 3741 ;;
fd6487af
JS
3742 *-*-phoenix*)
3743 noconfigdirs="$noconfigdirs target-libgloss"
3744 ;;
671aa708 3745 *-*-rtems*)
2909494b 3746 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3747 ;;
a8ba31f2
EC
3748 # The tpf target doesn't support gdb yet.
3749 *-*-tpf*)
6a789d5e 3750 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3751 ;;
5785c0ed 3752 *-*-uclinux*)
6a789d5e 3753 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3754 ;;
671aa708 3755 *-*-vxworks*)
671aa708
NN
3756 ;;
3757 alpha*-dec-osf*)
3758 # ld works, but does not support shared libraries.
671aa708 3759 # gas doesn't generate exception information.
6a789d5e 3760 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3761 ;;
3762 alpha*-*-*vms*)
2909494b 3763 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3764 ;;
671aa708
NN
3765 alpha*-*-*)
3766 # newlib is not 64 bit ready
2909494b 3767 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3768 ;;
91dfef96
JM
3769 bpf-*-*)
3770 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3771 ;;
671aa708 3772 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3773 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3774 ;;
2fd88f4f
AK
3775 arc*-*-*)
3776 noconfigdirs="$noconfigdirs sim"
3777 ;;
671aa708 3778 arm-*-pe*)
2909494b 3779 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3780 ;;
671aa708 3781 arm-*-riscix*)
0036370f 3782 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3783 ;;
b588ae30
GJL
3784 avr-*-*)
3785 if test x${with_avrlibc} != xno; then
3786 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3787 fi
3788 ;;
671aa708 3789 c4x-*-* | tic4x-*-*)
0036370f 3790 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3791 ;;
0036370f
JM
3792 tic54x-*-*)
3793 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3794 ;;
671aa708 3795 d10v-*-*)
0036370f 3796 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3797 ;;
3798 d30v-*-*)
0036370f 3799 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3800 ;;
3801 fr30-*-elf*)
2909494b 3802 noconfigdirs="$noconfigdirs gdb"
671aa708 3803 ;;
a05c2c75
L
3804 ft32-*-*)
3805 noconfigdirs="$noconfigdirs target-rda gprof"
3806 ;;
55f2d967 3807 moxie-*-*)
a05c2c75 3808 noconfigdirs="$noconfigdirs"
55f2d967 3809 ;;
671aa708 3810 h8300*-*-*)
2909494b 3811 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3812 ;;
3813 h8500-*-*)
0036370f 3814 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3815 ;;
a05c2c75
L
3816 hppa*64*-*-hpux*)
3817 noconfigdirs="$noconfigdirs gdb"
3818 ;;
4569f85e 3819 hppa*64*-*-linux*)
671aa708 3820 ;;
56f8587a 3821 hppa*-*-linux*)
3e732ba0 3822 ;;
671aa708 3823 hppa*-*-*elf* | \
671aa708
NN
3824 hppa*-*-lites* | \
3825 hppa*-*-openbsd* | \
3826 hppa*64*-*-*)
671aa708 3827 ;;
c03353e2 3828 hppa*-*-pro*)
c03353e2 3829 ;;
671aa708 3830 hppa*-*-*)
2909494b 3831 noconfigdirs="$noconfigdirs ld"
671aa708 3832 ;;
fb87ad5d 3833 i960-*-*)
0036370f 3834 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3835 ;;
671aa708
NN
3836 ia64*-*-elf*)
3837 # No gdb support yet.
1bcce263 3838 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3839 ;;
3840 ia64*-**-hpux*)
5a2931d1 3841 # No ld support yet.
a05c2c75 3842 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3843 ;;
52535a64 3844 ia64*-*-*vms*)
091fe9ca
TG
3845 # No ld support yet.
3846 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3847 ;;
ef4c4300 3848 i[3456789]86-w64-mingw*)
ef4c4300
KT
3849 ;;
3850 i[3456789]86-*-mingw*)
b91f0a41 3851 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3852 ;;
671aa708
NN
3853 *-*-cygwin*)
3854 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3855 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3856 # always build newlib if winsup directory is present.
b91f0a41 3857 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3858 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3859 elif test -d "$srcdir/newlib"; then
b91f0a41 3860 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3861 fi
1c710c3c 3862 ;;
f2a0e225 3863 i[3456789]86-*-pe)
ebb9f8b0 3864 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3865 ;;
f2a0e225 3866 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3867 # The linker does not yet know about weak symbols in COFF,
3868 # and is not configured to handle mixed ELF and COFF.
0036370f 3869 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3870 ;;
f2a0e225 3871 i[3456789]86-*-sco*)
0036370f 3872 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3873 ;;
fbdd5d87 3874 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3875 noconfigdirs="$noconfigdirs target-libgloss"
3876 ;;
f2a0e225 3877 i[3456789]86-*-sysv4*)
0036370f 3878 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3879 ;;
f2a0e225 3880 i[3456789]86-*-beos*)
6a789d5e 3881 noconfigdirs="$noconfigdirs gdb"
3aa83176 3882 ;;
d1f8db0c 3883 i[3456789]86-*-rdos*)
6a789d5e 3884 noconfigdirs="$noconfigdirs gdb"
c03353e2 3885 ;;
671aa708 3886 mmix-*-*)
2909494b 3887 noconfigdirs="$noconfigdirs gdb"
671aa708 3888 ;;
ab34901f 3889 mt-*-*)
79dd769c
AH
3890 noconfigdirs="$noconfigdirs sim"
3891 ;;
58b40a67
FT
3892 nfp-*-*)
3893 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3894 noconfigdirs="$noconfigdirs $target_libraries"
3895 ;;
e6cbe965
SC
3896 pdp11-*-*)
3897 noconfigdirs="$noconfigdirs gdb gprof"
3898 ;;
671aa708
NN
3899 powerpc-*-aix*)
3900 # copied from rs6000-*-* entry
6a789d5e 3901 noconfigdirs="$noconfigdirs gprof"
671aa708 3902 ;;
4569f85e 3903 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3904 target_configdirs="$target_configdirs target-winsup"
0036370f 3905 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3906 # always build newlib.
3907 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3908 ;;
3909 # This is temporary until we can link against shared libraries
3910 powerpcle-*-solaris*)
0036370f 3911 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3912 ;;
3913 powerpc-*-beos*)
6a789d5e 3914 noconfigdirs="$noconfigdirs gdb"
671aa708 3915 ;;
671aa708 3916 rs6000-*-lynxos*)
6a789d5e 3917 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3918 ;;
3919 rs6000-*-aix*)
6a789d5e 3920 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3921 ;;
3922 rs6000-*-*)
2909494b 3923 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3924 ;;
3925 m68k-apollo-*)
0036370f 3926 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3927 ;;
ca9fe997 3928 microblaze*)
2909494b 3929 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3930 ;;
d896cc4d 3931 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3932 if test x$with_newlib = xyes; then
3933 noconfigdirs="$noconfigdirs gprof"
3934 fi
d9dced13 3935 ;;
671aa708 3936 mips*-*-irix5*)
0036370f 3937 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3938 ;;
3939 mips*-*-irix6*)
2909494b 3940 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3941 ;;
671aa708 3942 mips*-*-bsd*)
bc98bcc4 3943 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3944 ;;
671aa708 3945 mips*-*-linux*)
671aa708 3946 ;;
bc98bcc4
JBG
3947 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3948 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3949 noconfigdirs="$noconfigdirs ld gas gprof"
3950 ;;
671aa708 3951 mips*-*-*)
2909494b 3952 noconfigdirs="$noconfigdirs gprof"
671aa708 3953 ;;
738f2522 3954 nvptx*-*-*)
738f2522
BS
3955 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3956 ;;
bc6d9014 3957 sh-*-*)
ea2002ba
CB
3958 case "${target}" in
3959 sh*-*-elf)
2909494b 3960 ;;
ea2002ba 3961 *)
2909494b 3962 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3963 esac
671aa708 3964 ;;
671aa708 3965 sparc-*-sunos4*)
6a789d5e 3966 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3967 use_gnu_ld=no
3968 fi
3969 ;;
b42f0d7e 3970 tic6x-*-*)
0d557ff8 3971 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3972 ;;
671aa708 3973 v810-*-*)
0036370f 3974 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3975 ;;
3976 vax-*-*)
2909494b 3977 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3978 ;;
1fc1d82e
MR
3979 wasm32-*-*)
3980 noconfigdirs="$noconfigdirs ld"
3981 ;;
c6c0594e 3982 loongarch*-*-linux*)
3983 ;;
3984 loongarch*-*-*)
3985 noconfigdirs="$noconfigdirs gprof"
3986 ;;
671aa708 3987esac
79c06341 3988
671aa708
NN
3989# If we aren't building newlib, then don't build libgloss, since libgloss
3990# depends upon some newlib header files.
3991case "${noconfigdirs}" in
3992 *target-libgloss*) ;;
3993 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3994esac
3995
671aa708 3996# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3997host_makefile_frag=/dev/null
3998if test -d ${srcdir}/config ; then
3999case "${host}" in
f2a0e225 4000 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4001 host_makefile_frag="config/mh-djgpp"
4002 ;;
4003 *-cygwin*)
2a79c47f 4004
5213506e
RW
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4006$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4007echo a >cygwin-cat-check
e25a8c82 4008if test `cat cygwin-cat-check` = a ; then
2a79c47f 4009 rm cygwin-cat-check
5213506e
RW
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4011$as_echo "yes" >&6; }
2a79c47f
NC
4012else
4013 rm cygwin-cat-check
5213506e
RW
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015$as_echo "no" >&6; }
22e05272 4016 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4017 Please either mount the build directory in binary mode or run the following
4018 commands before running any configure script:
4019set -o igncr
4020export SHELLOPTS
5213506e 4021 " "$LINENO" 5
2a79c47f
NC
4022fi
4023
671aa708
NN
4024 host_makefile_frag="config/mh-cygwin"
4025 ;;
c53a18d3 4026 *-mingw*)
1f5a6b84 4027 host_makefile_frag="config/mh-mingw"
95af8923 4028 ;;
cabb9d59 4029 alpha*-linux*)
13be44ed
UB
4030 host_makefile_frag="config/mh-alpha-linux"
4031 ;;
111eeb6e 4032 hppa*-hp-hpux*)
efd41714
PB
4033 host_makefile_frag="config/mh-pa"
4034 ;;
4035 hppa*-*)
4036 host_makefile_frag="config/mh-pa"
4037 ;;
54258e22 4038 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4039 host_makefile_frag="config/mh-darwin"
be8fff81 4040 ;;
d19bca38
PB
4041 powerpc-*-aix*)
4042 host_makefile_frag="config/mh-ppc-aix"
4043 ;;
4044 rs6000-*-aix*)
4045 host_makefile_frag="config/mh-ppc-aix"
4046 ;;
671aa708
NN
4047esac
4048fi
4049
55ffb5ed 4050if test "${build}" != "${host}" ; then
0999159b
PB
4051 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4052 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4053 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4054 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4055 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4056 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4057 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4058 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4059 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4060 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4061 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4062 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4063 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4064 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4065 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4066else
4067 AR_FOR_BUILD="\$(AR)"
4068 AS_FOR_BUILD="\$(AS)"
fb0103e5 4069 CC_FOR_BUILD="\$(CC)"
0999159b 4070 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4071 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4072 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4073 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4074 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4075 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4076 LD_FOR_BUILD="\$(LD)"
4077 NM_FOR_BUILD="\$(NM)"
4078 RANLIB_FOR_BUILD="\$(RANLIB)"
4079 WINDRES_FOR_BUILD="\$(WINDRES)"
4080 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4081fi
4082
4083ac_ext=c
1c710c3c
DJ
4084ac_cpp='$CPP $CPPFLAGS'
4085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087ac_compiler_gnu=$ac_cv_c_compiler_gnu
4088if test -n "$ac_tool_prefix"; then
4089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4090set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4093if ${ac_cv_prog_CC+:} false; then :
5213506e 4094 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4095else
4096 if test -n "$CC"; then
4097 ac_cv_prog_CC="$CC" # Let the user override the test.
4098else
4099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100for as_dir in $PATH
4101do
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
5213506e 4104 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4106 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4108 break 2
4109 fi
4110done
5213506e
RW
4111 done
4112IFS=$as_save_IFS
1c710c3c
DJ
4113
4114fi
4115fi
4116CC=$ac_cv_prog_CC
4117if test -n "$CC"; then
5213506e
RW
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4119$as_echo "$CC" >&6; }
1c710c3c 4120else
5213506e
RW
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
1c710c3c
DJ
4123fi
4124
5213506e 4125
1c710c3c
DJ
4126fi
4127if test -z "$ac_cv_prog_CC"; then
4128 ac_ct_CC=$CC
fb0103e5
RG
4129 # Extract the first word of "gcc", so it can be a program name with args.
4130set dummy gcc; ac_word=$2
5213506e
RW
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4133if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4134 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4135else
4136 if test -n "$ac_ct_CC"; then
4137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
5213506e 4144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4146 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4148 break 2
4149 fi
4150done
5213506e
RW
4151 done
4152IFS=$as_save_IFS
1c710c3c
DJ
4153
4154fi
4155fi
4156ac_ct_CC=$ac_cv_prog_ac_ct_CC
4157if test -n "$ac_ct_CC"; then
5213506e
RW
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4159$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4160else
5213506e
RW
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
1c710c3c
DJ
4163fi
4164
5213506e
RW
4165 if test "x$ac_ct_CC" = x; then
4166 CC=""
4167 else
4168 case $cross_compiling:$ac_tool_warned in
4169yes:)
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4172ac_tool_warned=yes ;;
4173esac
4174 CC=$ac_ct_CC
4175 fi
1c710c3c
DJ
4176else
4177 CC="$ac_cv_prog_CC"
4178fi
4179
4180if test -z "$CC"; then
5213506e
RW
4181 if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4183set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4186if ${ac_cv_prog_CC+:} false; then :
5213506e 4187 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4188else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191else
1c710c3c
DJ
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
5213506e 4197 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4199 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4201 break 2
4202 fi
4203done
5213506e
RW
4204 done
4205IFS=$as_save_IFS
1c710c3c 4206
0b0dc272 4207fi
0b0dc272 4208fi
1c710c3c 4209CC=$ac_cv_prog_CC
af71363e 4210if test -n "$CC"; then
5213506e
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212$as_echo "$CC" >&6; }
2aeb72e9 4213else
5213506e
RW
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
2aeb72e9
DD
4216fi
4217
2aeb72e9 4218
5213506e 4219 fi
1c710c3c 4220fi
55ffb5ed
NN
4221if test -z "$CC"; then
4222 # Extract the first word of "cc", so it can be a program name with args.
4223set dummy cc; ac_word=$2
5213506e
RW
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4225$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4226if ${ac_cv_prog_CC+:} false; then :
5213506e 4227 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4228else
4229 if test -n "$CC"; then
4230 ac_cv_prog_CC="$CC" # Let the user override the test.
4231else
0b0dc272 4232 ac_prog_rejected=no
1c710c3c
DJ
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
5213506e 4238 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4240 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4241 ac_prog_rejected=yes
4242 continue
4243 fi
4244 ac_cv_prog_CC="cc"
5213506e 4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4246 break 2
4247 fi
4248done
5213506e
RW
4249 done
4250IFS=$as_save_IFS
1c710c3c 4251
55ffb5ed
NN
4252if test $ac_prog_rejected = yes; then
4253 # We found a bogon in the path, so make sure we never use it.
4254 set dummy $ac_cv_prog_CC
4255 shift
1c710c3c 4256 if test $# != 0; then
55ffb5ed
NN
4257 # We chose a different compiler from the bogus one.
4258 # However, it has the same basename, so the bogon will be chosen
4259 # first if we set CC to just the basename; use the full file name.
4260 shift
1c710c3c 4261 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4262 fi
4263fi
4264fi
4265fi
1c710c3c 4266CC=$ac_cv_prog_CC
55ffb5ed 4267if test -n "$CC"; then
5213506e
RW
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4269$as_echo "$CC" >&6; }
55ffb5ed 4270else
5213506e
RW
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272$as_echo "no" >&6; }
55ffb5ed
NN
4273fi
4274
5213506e 4275
1c710c3c
DJ
4276fi
4277if test -z "$CC"; then
4278 if test -n "$ac_tool_prefix"; then
5213506e 4279 for ac_prog in cl.exe
1c710c3c
DJ
4280 do
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4285if ${ac_cv_prog_CC+:} false; then :
5213506e 4286 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4287else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290else
1c710c3c
DJ
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
5213506e 4296 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4300 break 2
4301 fi
4302done
5213506e
RW
4303 done
4304IFS=$as_save_IFS
1c710c3c 4305
55ffb5ed
NN
4306fi
4307fi
1c710c3c 4308CC=$ac_cv_prog_CC
55ffb5ed 4309if test -n "$CC"; then
5213506e
RW
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311$as_echo "$CC" >&6; }
a4b9e93e 4312else
5213506e
RW
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
fb0103e5 4315fi
af71363e 4316
5213506e 4317
1c710c3c
DJ
4318 test -n "$CC" && break
4319 done
af71363e 4320fi
1c710c3c
DJ
4321if test -z "$CC"; then
4322 ac_ct_CC=$CC
5213506e 4323 for ac_prog in cl.exe
1c710c3c
DJ
4324do
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326set dummy $ac_prog; ac_word=$2
5213506e
RW
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4329if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4330 $as_echo_n "(cached) " >&6
0b0dc272 4331else
1c710c3c
DJ
4332 if test -n "$ac_ct_CC"; then
4333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4334else
1c710c3c
DJ
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
5213506e 4340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4342 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4344 break 2
4345 fi
4346done
5213506e
RW
4347 done
4348IFS=$as_save_IFS
1c710c3c 4349
af71363e
AS
4350fi
4351fi
1c710c3c
DJ
4352ac_ct_CC=$ac_cv_prog_ac_ct_CC
4353if test -n "$ac_ct_CC"; then
5213506e
RW
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4355$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4356else
5213506e
RW
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
af71363e 4359fi
0b0dc272 4360
5213506e 4361
1c710c3c
DJ
4362 test -n "$ac_ct_CC" && break
4363done
4364
5213506e
RW
4365 if test "x$ac_ct_CC" = x; then
4366 CC=""
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369yes:)
4370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4372ac_tool_warned=yes ;;
4373esac
4374 CC=$ac_ct_CC
4375 fi
1c710c3c
DJ
4376fi
4377
4378fi
4379
4380
5213506e
RW
4381test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4383as_fn_error $? "no acceptable C compiler found in \$PATH
4384See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4385
4386# Provide some information about the compiler.
5213506e
RW
4387$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4388set X $ac_compile
4389ac_compiler=$2
4390for ac_option in --version -v -V -qversion; do
4391 { { ac_try="$ac_compiler $ac_option >&5"
4392case "(($ac_try" in
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4395esac
4396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4397$as_echo "$ac_try_echo"; } >&5
4398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4399 ac_status=$?
5213506e
RW
4400 if test -s conftest.err; then
4401 sed '10a\
4402... rest of stderr output deleted ...
4403 10q' conftest.err >conftest.er1
4404 cat conftest.er1 >&5
5213506e 4405 fi
22e05272 4406 rm -f conftest.er1 conftest.err
5213506e
RW
4407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4408 test $ac_status = 0; }
4409done
1c710c3c 4410
5213506e 4411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4412/* end confdefs.h. */
4413
4414int
4415main ()
4416{
4417
4418 ;
4419 return 0;
4420}
4421_ACEOF
4422ac_clean_files_save=$ac_clean_files
22e05272 4423ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4424# Try to create an executable without -o first, disregard a.out.
4425# It will help us diagnose broken compilers, and finding out an intuition
4426# of exeext.
22e05272
JM
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4428$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4429ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4430
4431# The possible output files:
4432ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4433
4434ac_rmfiles=
4435for ac_file in $ac_files
4436do
4437 case $ac_file in
4438 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4439 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4440 esac
4441done
4442rm -f $ac_rmfiles
4443
4444if { { ac_try="$ac_link_default"
4445case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448esac
4449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450$as_echo "$ac_try_echo"; } >&5
4451 (eval "$ac_link_default") 2>&5
1c710c3c 4452 ac_status=$?
5213506e
RW
4453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454 test $ac_status = 0; }; then :
4455 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4456# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4457# in a Makefile. We should not override ac_cv_exeext if it was cached,
4458# so that the user can short-circuit this test for compilers unknown to
4459# Autoconf.
4460for ac_file in $ac_files ''
1c710c3c
DJ
4461do
4462 test -f "$ac_file" || continue
4463 case $ac_file in
5213506e 4464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4465 ;;
4466 [ab].out )
4467 # We found the default executable, but exeext='' is most
4468 # certainly right.
4469 break;;
4470 *.* )
5213506e
RW
4471 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4472 then :; else
4473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4474 fi
4475 # We set ac_cv_exeext here because the later test for it is not
4476 # safe: cross compilers may not add the suffix if given an `-o'
4477 # argument, so we may need to know it at that point already.
4478 # Even if this section looks crufty: it has the advantage of
4479 # actually working.
1c710c3c
DJ
4480 break;;
4481 * )
4482 break;;
4483 esac
4484done
5213506e
RW
4485test "$ac_cv_exeext" = no && ac_cv_exeext=
4486
1c710c3c 4487else
5213506e
RW
4488 ac_file=''
4489fi
5213506e 4490if test -z "$ac_file"; then :
22e05272
JM
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492$as_echo "no" >&6; }
4493$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4494sed 's/^/| /' conftest.$ac_ext >&5
4495
5213506e
RW
4496{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4498as_fn_error 77 "C compiler cannot create executables
4499See \`config.log' for more details" "$LINENO" 5; }
4500else
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502$as_echo "yes" >&6; }
1c710c3c 4503fi
22e05272
JM
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4505$as_echo_n "checking for C compiler default output file name... " >&6; }
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4507$as_echo "$ac_file" >&6; }
1c710c3c 4508ac_exeext=$ac_cv_exeext
1c710c3c 4509
22e05272 4510rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4511ac_clean_files=$ac_clean_files_save
5213506e
RW
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4513$as_echo_n "checking for suffix of executables... " >&6; }
4514if { { ac_try="$ac_link"
4515case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
4519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4520$as_echo "$ac_try_echo"; } >&5
4521 (eval "$ac_link") 2>&5
1c710c3c 4522 ac_status=$?
5213506e
RW
4523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }; then :
1c710c3c
DJ
4525 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4526# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4527# work properly (i.e., refer to `conftest.exe'), while it won't with
4528# `rm'.
4529for ac_file in conftest.exe conftest conftest.*; do
4530 test -f "$ac_file" || continue
4531 case $ac_file in
5213506e 4532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4534 break;;
4535 * ) break;;
4536 esac
4537done
af71363e 4538else
5213506e
RW
4539 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4541as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4542See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4543fi
22e05272 4544rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4546$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4547
4548rm -f conftest.$ac_ext
4549EXEEXT=$ac_cv_exeext
4550ac_exeext=$EXEEXT
22e05272
JM
4551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552/* end confdefs.h. */
4553#include <stdio.h>
4554int
4555main ()
4556{
4557FILE *f = fopen ("conftest.out", "w");
4558 return ferror (f) || fclose (f) != 0;
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
4564ac_clean_files="$ac_clean_files conftest.out"
4565# Check that the compiler produces executables we can run. If not, either
4566# the compiler is broken, or we cross compile.
4567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4568$as_echo_n "checking whether we are cross compiling... " >&6; }
4569if test "$cross_compiling" != yes; then
4570 { { ac_try="$ac_link"
4571case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576$as_echo "$ac_try_echo"; } >&5
4577 (eval "$ac_link") 2>&5
4578 ac_status=$?
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4581 if { ac_try='./conftest$ac_cv_exeext'
4582 { { case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585esac
4586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4587$as_echo "$ac_try_echo"; } >&5
4588 (eval "$ac_try") 2>&5
4589 ac_status=$?
4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4591 test $ac_status = 0; }; }; then
4592 cross_compiling=no
4593 else
4594 if test "$cross_compiling" = maybe; then
4595 cross_compiling=yes
4596 else
4597 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4599as_fn_error $? "cannot run C compiled programs.
4600If you meant to cross compile, use \`--host'.
4601See \`config.log' for more details" "$LINENO" 5; }
4602 fi
4603 fi
4604fi
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4606$as_echo "$cross_compiling" >&6; }
4607
4608rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4609ac_clean_files=$ac_clean_files_save
5213506e
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4611$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4612if ${ac_cv_objext+:} false; then :
5213506e 4613 $as_echo_n "(cached) " >&6
1c710c3c 4614else
5213506e 4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4616/* end confdefs.h. */
4617
4618int
4619main ()
4620{
4621
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626rm -f conftest.o conftest.obj
5213506e
RW
4627if { { ac_try="$ac_compile"
4628case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631esac
4632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633$as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_compile") 2>&5
1c710c3c 4635 ac_status=$?
5213506e
RW
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 for ac_file in conftest.o conftest.obj conftest.*; do
4639 test -f "$ac_file" || continue;
1c710c3c 4640 case $ac_file in
5213506e 4641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4642 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4643 break;;
4644 esac
4645done
4646else
5213506e 4647 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4648sed 's/^/| /' conftest.$ac_ext >&5
4649
5213506e
RW
4650{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4652as_fn_error $? "cannot compute suffix of object files: cannot compile
4653See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4654fi
1c710c3c
DJ
4655rm -f conftest.$ac_cv_objext conftest.$ac_ext
4656fi
5213506e
RW
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4658$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4659OBJEXT=$ac_cv_objext
4660ac_objext=$OBJEXT
5213506e
RW
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4662$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4663if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4664 $as_echo_n "(cached) " >&6
1c710c3c 4665else
5213506e 4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4667/* end confdefs.h. */
4668
4669int
4670main ()
4671{
4672#ifndef __GNUC__
4673 choke me
4674#endif
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
5213506e 4680if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4681 ac_compiler_gnu=yes
4682else
5213506e 4683 ac_compiler_gnu=no
1c710c3c 4684fi
5213506e 4685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4686ac_cv_c_compiler_gnu=$ac_compiler_gnu
4687
4688fi
5213506e
RW
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4690$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4691if test $ac_compiler_gnu = yes; then
4692 GCC=yes
4693else
4694 GCC=
4695fi
1c710c3c
DJ
4696ac_test_CFLAGS=${CFLAGS+set}
4697ac_save_CFLAGS=$CFLAGS
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4700if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4701 $as_echo_n "(cached) " >&6
4702else
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 ac_cv_prog_cc_g=no
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4708/* end confdefs.h. */
4709
4710int
4711main ()
4712{
4713
4714 ;
4715 return 0;
4716}
4717_ACEOF
5213506e 4718if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4719 ac_cv_prog_cc_g=yes
4720else
5213506e
RW
4721 CFLAGS=""
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723/* end confdefs.h. */
4724
4725int
4726main ()
4727{
4728
4729 ;
4730 return 0;
4731}
4732_ACEOF
4733if ac_fn_c_try_compile "$LINENO"; then :
4734
4735else
4736 ac_c_werror_flag=$ac_save_c_werror_flag
4737 CFLAGS="-g"
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h. */
af71363e 4740
5213506e
RW
4741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_prog_cc_g=yes
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4753fi
5213506e 4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4755fi
5213506e
RW
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 ac_c_werror_flag=$ac_save_c_werror_flag
4758fi
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4760$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4761if test "$ac_test_CFLAGS" = set; then
1c710c3c 4762 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4763elif test $ac_cv_prog_cc_g = yes; then
4764 if test "$GCC" = yes; then
4765 CFLAGS="-g -O2"
4766 else
4767 CFLAGS="-g"
4768 fi
4769else
4770 if test "$GCC" = yes; then
4771 CFLAGS="-O2"
4772 else
4773 CFLAGS=
4774 fi
4775fi
5213506e
RW
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4777$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4778if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4779 $as_echo_n "(cached) " >&6
1c710c3c 4780else
5213506e 4781 ac_cv_prog_cc_c89=no
1c710c3c 4782ac_save_CC=$CC
5213506e 4783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4784/* end confdefs.h. */
4785#include <stdarg.h>
4786#include <stdio.h>
22e05272 4787struct stat;
1c710c3c
DJ
4788/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4789struct buf { int x; };
4790FILE * (*rcsopen) (struct buf *, struct stat *, int);
4791static char *e (p, i)
4792 char **p;
4793 int i;
4794{
4795 return p[i];
4796}
4797static char *f (char * (*g) (char **, int), char **p, ...)
4798{
4799 char *s;
4800 va_list v;
4801 va_start (v,p);
4802 s = g (p, va_arg (v,int));
4803 va_end (v);
4804 return s;
4805}
4806
4807/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4808 function prototypes and stuff, but not '\xHH' hex character constants.
4809 These don't provoke an error unfortunately, instead are silently treated
5213506e 4810 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4811 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4812 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4813 that's true only with -std. */
1c710c3c
DJ
4814int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4815
5213506e
RW
4816/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4817 inside strings and character constants. */
4818#define FOO(x) 'x'
4819int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4820
1c710c3c
DJ
4821int test (int i, double x);
4822struct s1 {int (*f) (int a);};
4823struct s2 {int (*f) (double a);};
4824int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4825int argc;
4826char **argv;
4827int
4828main ()
4829{
4830return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4831 ;
4832 return 0;
4833}
4834_ACEOF
5213506e
RW
4835for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4836 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4837do
4838 CC="$ac_save_CC $ac_arg"
5213506e
RW
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4841fi
5213506e
RW
4842rm -f core conftest.err conftest.$ac_objext
4843 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4844done
5213506e 4845rm -f conftest.$ac_ext
1c710c3c
DJ
4846CC=$ac_save_CC
4847
4848fi
5213506e
RW
4849# AC_CACHE_VAL
4850case "x$ac_cv_prog_cc_c89" in
4851 x)
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4853$as_echo "none needed" >&6; } ;;
4854 xno)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4856$as_echo "unsupported" >&6; } ;;
1c710c3c 4857 *)
5213506e
RW
4858 CC="$CC $ac_cv_prog_cc_c89"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4860$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4861esac
5213506e 4862if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4863
2aeb72e9
DD
4864fi
4865
2aeb72e9
DD
4866ac_ext=c
4867ac_cpp='$CPP $CPPFLAGS'
4868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4870ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871
91743432
NC
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4873$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4874if ${ac_cv_prog_cc_c99+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876else
4877 ac_cv_prog_cc_c99=no
4878ac_save_CC=$CC
4879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880/* end confdefs.h. */
4881#include <stdarg.h>
4882#include <stdbool.h>
4883#include <stdlib.h>
4884#include <wchar.h>
4885#include <stdio.h>
4886
4887// Check varargs macros. These examples are taken from C99 6.10.3.5.
4888#define debug(...) fprintf (stderr, __VA_ARGS__)
4889#define showlist(...) puts (#__VA_ARGS__)
4890#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4891static void
4892test_varargs_macros (void)
4893{
4894 int x = 1234;
4895 int y = 5678;
4896 debug ("Flag");
4897 debug ("X = %d\n", x);
4898 showlist (The first, second, and third items.);
4899 report (x>y, "x is %d but y is %d", x, y);
4900}
4901
4902// Check long long types.
4903#define BIG64 18446744073709551615ull
4904#define BIG32 4294967295ul
4905#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4906#if !BIG_OK
4907 your preprocessor is broken;
4908#endif
4909#if BIG_OK
4910#else
4911 your preprocessor is broken;
4912#endif
4913static long long int bignum = -9223372036854775807LL;
4914static unsigned long long int ubignum = BIG64;
4915
4916struct incomplete_array
4917{
4918 int datasize;
4919 double data[];
4920};
4921
4922struct named_init {
4923 int number;
4924 const wchar_t *name;
4925 double average;
4926};
4927
4928typedef const char *ccp;
4929
4930static inline int
4931test_restrict (ccp restrict text)
4932{
4933 // See if C++-style comments work.
4934 // Iterate through items via the restricted pointer.
4935 // Also check for declarations in for loops.
4936 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4937 continue;
4938 return 0;
4939}
4940
4941// Check varargs and va_copy.
4942static void
4943test_varargs (const char *format, ...)
4944{
4945 va_list args;
4946 va_start (args, format);
4947 va_list args_copy;
4948 va_copy (args_copy, args);
4949
4950 const char *str;
4951 int number;
4952 float fnumber;
4953
4954 while (*format)
4955 {
4956 switch (*format++)
4957 {
4958 case 's': // string
4959 str = va_arg (args_copy, const char *);
4960 break;
4961 case 'd': // int
4962 number = va_arg (args_copy, int);
4963 break;
4964 case 'f': // float
4965 fnumber = va_arg (args_copy, double);
4966 break;
4967 default:
4968 break;
4969 }
4970 }
4971 va_end (args_copy);
4972 va_end (args);
4973}
4974
4975int
4976main ()
4977{
4978
4979 // Check bool.
4980 _Bool success = false;
4981
4982 // Check restrict.
4983 if (test_restrict ("String literal") == 0)
4984 success = true;
4985 char *restrict newvar = "Another string";
4986
4987 // Check varargs.
4988 test_varargs ("s, d' f .", "string", 65, 34.234);
4989 test_varargs_macros ();
4990
4991 // Check flexible array members.
4992 struct incomplete_array *ia =
4993 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4994 ia->datasize = 10;
4995 for (int i = 0; i < ia->datasize; ++i)
4996 ia->data[i] = i * 1.234;
4997
4998 // Check named initializers.
4999 struct named_init ni = {
5000 .number = 34,
5001 .name = L"Test wide string",
5002 .average = 543.34343,
5003 };
5004
5005 ni.number = 58;
5006
5007 int dynamic_array[ni.number];
5008 dynamic_array[ni.number - 1] = 543;
5009
5010 // work around unused variable warnings
5011 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5012 || dynamic_array[ni.number - 1] != 543);
5013
5014 ;
5015 return 0;
5016}
5017_ACEOF
5018for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5019do
5020 CC="$ac_save_CC $ac_arg"
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_cv_prog_cc_c99=$ac_arg
5023fi
5024rm -f core conftest.err conftest.$ac_objext
5025 test "x$ac_cv_prog_cc_c99" != "xno" && break
5026done
5027rm -f conftest.$ac_ext
5028CC=$ac_save_CC
5029
5030fi
5031# AC_CACHE_VAL
5032case "x$ac_cv_prog_cc_c99" in
5033 x)
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5035$as_echo "none needed" >&6; } ;;
5036 xno)
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5038$as_echo "unsupported" >&6; } ;;
5039 *)
5040 CC="$CC $ac_cv_prog_cc_c99"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5042$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5043esac
5044if test "x$ac_cv_prog_cc_c99" != xno; then :
5045
5046fi
5047
5048
5213506e 5049ac_ext=cpp
2aeb72e9
DD
5050ac_cpp='$CXXCPP $CPPFLAGS'
5051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5054if test -z "$CXX"; then
5055 if test -n "$CCC"; then
5056 CXX=$CCC
5057 else
5058 if test -n "$ac_tool_prefix"; then
5059 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5060 do
5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5065if ${ac_cv_prog_CXX+:} false; then :
5213506e 5066 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5067else
5068 if test -n "$CXX"; then
5069 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5213506e 5076 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5078 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5080 break 2
5081 fi
5082done
5213506e
RW
5083 done
5084IFS=$as_save_IFS
55ffb5ed 5085
c3a86da9
DJ
5086fi
5087fi
5088CXX=$ac_cv_prog_CXX
5089if test -n "$CXX"; then
5213506e
RW
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5091$as_echo "$CXX" >&6; }
c3a86da9 5092else
5213506e
RW
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094$as_echo "no" >&6; }
c3a86da9
DJ
5095fi
5096
5213506e 5097
c3a86da9
DJ
5098 test -n "$CXX" && break
5099 done
5100fi
5101if test -z "$CXX"; then
5102 ac_ct_CXX=$CXX
5213506e 5103 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5104do
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106set dummy $ac_prog; ac_word=$2
5213506e
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5109if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5110 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5111else
5112 if test -n "$ac_ct_CXX"; then
5113 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5213506e 5120 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5122 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5124 break 2
5125 fi
5126done
5213506e
RW
5127 done
5128IFS=$as_save_IFS
c3a86da9
DJ
5129
5130fi
5131fi
5132ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5133if test -n "$ac_ct_CXX"; then
5213506e
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5135$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5136else
5213506e
RW
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138$as_echo "no" >&6; }
c3a86da9
DJ
5139fi
5140
5213506e 5141
c3a86da9
DJ
5142 test -n "$ac_ct_CXX" && break
5143done
c3a86da9 5144
5213506e
RW
5145 if test "x$ac_ct_CXX" = x; then
5146 CXX="g++"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149yes:)
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152ac_tool_warned=yes ;;
5153esac
5154 CXX=$ac_ct_CXX
5155 fi
c3a86da9
DJ
5156fi
5157
5213506e
RW
5158 fi
5159fi
c3a86da9 5160# Provide some information about the compiler.
5213506e
RW
5161$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5162set X $ac_compile
5163ac_compiler=$2
5164for ac_option in --version -v -V -qversion; do
5165 { { ac_try="$ac_compiler $ac_option >&5"
5166case "(($ac_try" in
5167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168 *) ac_try_echo=$ac_try;;
5169esac
5170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5171$as_echo "$ac_try_echo"; } >&5
5172 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5173 ac_status=$?
5213506e
RW
5174 if test -s conftest.err; then
5175 sed '10a\
5176... rest of stderr output deleted ...
5177 10q' conftest.err >conftest.er1
5178 cat conftest.er1 >&5
5213506e 5179 fi
22e05272 5180 rm -f conftest.er1 conftest.err
5213506e
RW
5181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5182 test $ac_status = 0; }
5183done
c3a86da9 5184
5213506e
RW
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5186$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5187if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5188 $as_echo_n "(cached) " >&6
c3a86da9 5189else
5213506e 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5191/* end confdefs.h. */
5192
5193int
5194main ()
5195{
5196#ifndef __GNUC__
5197 choke me
5198#endif
5199
5200 ;
5201 return 0;
5202}
5203_ACEOF
5213506e 5204if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5205 ac_compiler_gnu=yes
5206else
5213506e 5207 ac_compiler_gnu=no
c3a86da9 5208fi
5213506e 5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5210ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5211
5212fi
5213506e
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5214$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5215if test $ac_compiler_gnu = yes; then
5216 GXX=yes
5217else
5218 GXX=
5219fi
c3a86da9
DJ
5220ac_test_CXXFLAGS=${CXXFLAGS+set}
5221ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5223$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5224if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5225 $as_echo_n "(cached) " >&6
5226else
5227 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5228 ac_cxx_werror_flag=yes
5229 ac_cv_prog_cxx_g=no
5230 CXXFLAGS="-g"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5232/* end confdefs.h. */
5233
5234int
5235main ()
5236{
5237
5238 ;
5239 return 0;
5240}
5241_ACEOF
5213506e 5242if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5243 ac_cv_prog_cxx_g=yes
5244else
5213506e
RW
5245 CXXFLAGS=""
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5247/* end confdefs.h. */
5213506e 5248
c3a86da9
DJ
5249int
5250main ()
5251{
5213506e 5252
c3a86da9
DJ
5253 ;
5254 return 0;
5255}
5256_ACEOF
5213506e 5257if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5258
5213506e
RW
5259else
5260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5261 CXXFLAGS="-g"
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5263/* end confdefs.h. */
5213506e 5264
c3a86da9
DJ
5265int
5266main ()
5267{
5213506e 5268
c3a86da9
DJ
5269 ;
5270 return 0;
5271}
5272_ACEOF
5213506e
RW
5273if ac_fn_cxx_try_compile "$LINENO"; then :
5274 ac_cv_prog_cxx_g=yes
11a67599 5275fi
5213506e
RW
5276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277fi
5278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5284$as_echo "$ac_cv_prog_cxx_g" >&6; }
5285if test "$ac_test_CXXFLAGS" = set; then
5286 CXXFLAGS=$ac_save_CXXFLAGS
5287elif test $ac_cv_prog_cxx_g = yes; then
5288 if test "$GXX" = yes; then
5289 CXXFLAGS="-g -O2"
5290 else
5291 CXXFLAGS="-g"
5292 fi
5293else
5294 if test "$GXX" = yes; then
5295 CXXFLAGS="-O2"
5296 else
5297 CXXFLAGS=
5298 fi
c3a86da9 5299fi
c3a86da9
DJ
5300ac_ext=c
5301ac_cpp='$CPP $CPPFLAGS'
5302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305
5306
5307# We must set the default linker to the linker used by gcc for the correct
5308# operation of libtool. If LD is not defined and we are using gcc, try to
5309# set the LD default to the ld used by gcc.
5310if test -z "$LD"; then
5311 if test "$GCC" = yes; then
5312 case $build in
5313 *-*-mingw*)
5314 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5315 *)
5316 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5317 esac
5318 case $gcc_prog_ld in
5319 # Accept absolute paths.
5320 [\\/]* | [A-Za-z]:[\\/]*)
5321 LD="$gcc_prog_ld" ;;
5322 esac
5323 fi
23f6b2f9
PB
5324fi
5325
0b21f5d3
EB
5326# Check whether -static-libstdc++ -static-libgcc is supported.
5327have_static_libs=no
5328if test "$GCC" = yes; then
5329 saved_LDFLAGS="$LDFLAGS"
5330
5331 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5333$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5334 ac_ext=cpp
5335ac_cpp='$CXXCPP $CPPFLAGS'
5336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5339
5340
5341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h. */
0d6414b2
EB
5343
5344#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5345#error -static-libstdc++ not implemented
5346#endif
0b21f5d3
EB
5347int main() {}
5348_ACEOF
5349if ac_fn_cxx_try_link "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }; have_static_libs=yes
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354$as_echo "no" >&6; }
5355fi
5356rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 ac_ext=c
5359ac_cpp='$CPP $CPPFLAGS'
5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364
5365 LDFLAGS="$saved_LDFLAGS"
5366fi
5367
23f6b2f9
PB
5368
5369
55ffb5ed 5370
1c710c3c
DJ
5371if test -n "$ac_tool_prefix"; then
5372 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5373set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5376if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5377 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5378else
5379 if test -n "$GNATBIND"; then
5380 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5381else
1c710c3c
DJ
5382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383for as_dir in $PATH
5384do
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5213506e 5387 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5389 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5391 break 2
5392 fi
5393done
5213506e
RW
5394 done
5395IFS=$as_save_IFS
1c710c3c 5396
55ffb5ed
NN
5397fi
5398fi
1c710c3c 5399GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5400if test -n "$GNATBIND"; then
5213506e
RW
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5402$as_echo "$GNATBIND" >&6; }
55ffb5ed 5403else
5213506e
RW
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405$as_echo "no" >&6; }
55ffb5ed
NN
5406fi
5407
5213506e 5408
1c710c3c 5409fi
55ffb5ed 5410if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5411 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5412 # Extract the first word of "gnatbind", so it can be a program name with args.
5413set dummy gnatbind; ac_word=$2
5213506e
RW
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5416if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5417 $as_echo_n "(cached) " >&6
55ffb5ed 5418else
1c710c3c
DJ
5419 if test -n "$ac_ct_GNATBIND"; then
5420 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5421else
1c710c3c
DJ
5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5213506e 5427 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5429 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5431 break 2
5432 fi
5433done
5213506e
RW
5434 done
5435IFS=$as_save_IFS
1c710c3c 5436
55ffb5ed
NN
5437fi
5438fi
1c710c3c
DJ
5439ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5440if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5442$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5443else
5213506e
RW
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
55ffb5ed
NN
5446fi
5447
5213506e
RW
5448 if test "x$ac_ct_GNATBIND" = x; then
5449 GNATBIND="no"
5450 else
5451 case $cross_compiling:$ac_tool_warned in
5452yes:)
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5455ac_tool_warned=yes ;;
5456esac
5457 GNATBIND=$ac_ct_GNATBIND
5458 fi
55ffb5ed 5459else
1c710c3c 5460 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5461fi
5462
1c710c3c
DJ
5463if test -n "$ac_tool_prefix"; then
5464 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5465set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5468if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5469 $as_echo_n "(cached) " >&6
5305be7e
RG
5470else
5471 if test -n "$GNATMAKE"; then
5472 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5473else
1c710c3c
DJ
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5213506e 5479 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5481 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5483 break 2
5484 fi
5485done
5213506e
RW
5486 done
5487IFS=$as_save_IFS
1c710c3c 5488
5305be7e
RG
5489fi
5490fi
1c710c3c 5491GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5492if test -n "$GNATMAKE"; then
5213506e
RW
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5494$as_echo "$GNATMAKE" >&6; }
5305be7e 5495else
5213506e
RW
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
5305be7e
RG
5498fi
5499
5213506e 5500
1c710c3c 5501fi
5305be7e 5502if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5503 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5504 # Extract the first word of "gnatmake", so it can be a program name with args.
5505set dummy gnatmake; ac_word=$2
5213506e
RW
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5508if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5509 $as_echo_n "(cached) " >&6
5305be7e 5510else
1c710c3c
DJ
5511 if test -n "$ac_ct_GNATMAKE"; then
5512 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5513else
1c710c3c
DJ
5514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515for as_dir in $PATH
5516do
5517 IFS=$as_save_IFS
5518 test -z "$as_dir" && as_dir=.
5213506e 5519 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5521 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5523 break 2
5524 fi
5525done
5213506e
RW
5526 done
5527IFS=$as_save_IFS
1c710c3c 5528
5305be7e
RG
5529fi
5530fi
1c710c3c
DJ
5531ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5532if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5534$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5535else
5213506e
RW
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }
5305be7e
RG
5538fi
5539
5213506e
RW
5540 if test "x$ac_ct_GNATMAKE" = x; then
5541 GNATMAKE="no"
5542 else
5543 case $cross_compiling:$ac_tool_warned in
5544yes:)
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5547ac_tool_warned=yes ;;
5548esac
5549 GNATMAKE=$ac_ct_GNATMAKE
5550 fi
5305be7e 5551else
1c710c3c 5552 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5553fi
5554
71f068a9
RS
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5556$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5557if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5558 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5559else
5560 cat >conftest.adb <<EOF
71f068a9
RS
5561pragma Warnings (Off);
5562with System.CRTL;
5563pragma Warnings (On);
5564use type System.CRTL.int64;
55ffb5ed
NN
5565procedure conftest is begin null; end conftest;
5566EOF
5567acx_cv_cc_gcc_supports_ada=no
5568# There is a bug in old released versions of GCC which causes the
5569# driver to exit successfully when the appropriate language module
5570# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5571# Therefore we must check for the error message as well as an
5572# unsuccessful exit.
1db673ca
RO
5573# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5574# given a .adb file, but produce no object file. So we must check
5575# if an object file was really produced to guard against this.
55ffb5ed 5576errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5577if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5578 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5579fi
5580rm -f conftest.*
5581fi
5213506e
RW
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5583$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5584
7cb62ef1 5585if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5586 have_gnat=yes
5587else
5588 have_gnat=no
5589fi
5590
5fee5ec3
IB
5591
5592
5593if test -n "$ac_tool_prefix"; then
5594 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5595set dummy ${ac_tool_prefix}gdc; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if ${ac_cv_prog_GDC+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601 if test -n "$GDC"; then
5602 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615done
5616 done
5617IFS=$as_save_IFS
5618
5619fi
5620fi
5621GDC=$ac_cv_prog_GDC
5622if test -n "$GDC"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5624$as_echo "$GDC" >&6; }
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628fi
5629
5630
5631fi
5632if test -z "$ac_cv_prog_GDC"; then
5633 ac_ct_GDC=$GDC
5634 # Extract the first word of "gdc", so it can be a program name with args.
5635set dummy gdc; ac_word=$2
5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5637$as_echo_n "checking for $ac_word... " >&6; }
5638if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640else
5641 if test -n "$ac_ct_GDC"; then
5642 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5643else
5644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645for as_dir in $PATH
5646do
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_prog_ac_ct_GDC="gdc"
5652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5654 fi
5655done
5656 done
5657IFS=$as_save_IFS
5658
5659fi
5660fi
5661ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5662if test -n "$ac_ct_GDC"; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5664$as_echo "$ac_ct_GDC" >&6; }
5665else
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }
5668fi
5669
5670 if test "x$ac_ct_GDC" = x; then
5671 GDC="no"
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674yes:)
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677ac_tool_warned=yes ;;
5678esac
5679 GDC=$ac_ct_GDC
5680 fi
5681else
5682 GDC="$ac_cv_prog_GDC"
5683fi
5684
7c6ae994
IB
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5686$as_echo_n "checking whether the D compiler works... " >&6; }
5687if ${acx_cv_d_compiler_works+:} false; then :
5688 $as_echo_n "(cached) " >&6
5689else
5690 cat >conftest.d <<EOF
5691module conftest; int main() { return 0; }
5692EOF
5693acx_cv_d_compiler_works=no
5fee5ec3 5694if test "x$GDC" != xno; then
7c6ae994
IB
5695 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5696 if test x"$errors" = x && test -f conftest.$ac_objext; then
5697 acx_cv_d_compiler_works=yes
5698 fi
5699 rm -f conftest.*
5700fi
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5703$as_echo "$acx_cv_d_compiler_works" >&6; }
5704if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5705 have_gdc=yes
5706else
5707 have_gdc=no
5708fi
5709
5213506e
RW
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5711$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5712if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5713 $as_echo_n "(cached) " >&6
a76494aa
PB
5714else
5715 echo abfoo >t1
5716 echo cdfoo >t2
b55e6680 5717 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5718 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5719 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5720 :
5721 else
5722 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5723 fi
5724 fi
a76494aa
PB
5725 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5726 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5727 :
a76494aa
PB
5728 else
5729 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5730 fi
5731 fi
5732 rm t1 t2
5733
5734fi
5213506e
RW
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5736$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5737do_compare="$gcc_cv_prog_cmp_skip"
5738
5739
55ffb5ed 5740
ff3ac0f4
ILT
5741# Check whether --enable-bootstrap was given.
5742if test "${enable_bootstrap+set}" = set; then :
5743 enableval=$enable_bootstrap;
5744else
5745 enable_bootstrap=default
5746fi
5747
5748
5749# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5750if test -r $srcdir/gcc/configure; then
5751 have_compiler=yes
5752else
5753 have_compiler=no
5754fi
ff3ac0f4
ILT
5755
5756case "$have_compiler:$host:$target:$enable_bootstrap" in
5757 *:*:*:no) ;;
5758
5759 # Default behavior. Enable bootstrap if we have a compiler
5760 # and we are in a native configuration.
5761 yes:$build:$build:default)
5762 enable_bootstrap=yes ;;
5763
5764 *:*:*:default)
5765 enable_bootstrap=no ;;
5766
5767 # We have a compiler and we are in a native configuration, bootstrap is ok
5768 yes:$build:$build:yes)
5769 ;;
5770
5771 # Other configurations, but we have a compiler. Assume the user knows
5772 # what he's doing.
5773 yes:*:*:yes)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5775$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5776 ;;
5777
5778 # No compiler: if they passed --enable-bootstrap explicitly, fail
5779 no:*:*:yes)
22e05272 5780 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5781
5782 # Fail if wrong command line
5783 *)
22e05272 5784 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5785 ;;
5786esac
5787
5329b59a 5788# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5789# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5790# require C++11 (or higher).
46070488 5791if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5792 CXX="$CXX -std=c++11"
ffac9597
JM
5793elif test "$have_compiler" = yes; then
5794 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5795 ac_ext=cpp
5796ac_cpp='$CXXCPP $CPPFLAGS'
5797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5800 ac_success=no
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5803$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5804if ${ax_cv_cxx_compile_cxx11+:} false; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808/* end confdefs.h. */
5809
5810
5811// If the compiler admits that it is not ready for C++11, why torture it?
5812// Hopefully, this will speed up the test.
5813
5814#ifndef __cplusplus
5815
5816#error "This is not a C++ compiler"
5817
5818#elif __cplusplus < 201103L
5819
5820#error "This is not a C++11 compiler"
5821
5822#else
5823
5824namespace cxx11
5825{
5826
5827 namespace test_static_assert
5828 {
5829
5830 template <typename T>
5831 struct check
5832 {
5833 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5834 };
5835
5836 }
5837
5838 namespace test_final_override
5839 {
5840
5841 struct Base
5842 {
5843 virtual ~Base() {}
5844 virtual void f() {}
5845 };
5846
5847 struct Derived : public Base
5848 {
5849 virtual ~Derived() override {}
5850 virtual void f() override {}
5851 };
5852
5853 }
5854
5855 namespace test_double_right_angle_brackets
5856 {
5857
5858 template < typename T >
5859 struct check {};
5860
5861 typedef check<void> single_type;
5862 typedef check<check<void>> double_type;
5863 typedef check<check<check<void>>> triple_type;
5864 typedef check<check<check<check<void>>>> quadruple_type;
5865
5866 }
5867
5868 namespace test_decltype
5869 {
5870
5871 int
5872 f()
5873 {
5874 int a = 1;
5875 decltype(a) b = 2;
5876 return a + b;
5877 }
5878
5879 }
5880
5881 namespace test_type_deduction
5882 {
5883
5884 template < typename T1, typename T2 >
5885 struct is_same
5886 {
5887 static const bool value = false;
5888 };
5889
5890 template < typename T >
5891 struct is_same<T, T>
5892 {
5893 static const bool value = true;
5894 };
5895
5896 template < typename T1, typename T2 >
5897 auto
5898 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5899 {
5900 return a1 + a2;
5901 }
5902
5903 int
5904 test(const int c, volatile int v)
5905 {
5906 static_assert(is_same<int, decltype(0)>::value == true, "");
5907 static_assert(is_same<int, decltype(c)>::value == false, "");
5908 static_assert(is_same<int, decltype(v)>::value == false, "");
5909 auto ac = c;
5910 auto av = v;
5911 auto sumi = ac + av + 'x';
5912 auto sumf = ac + av + 1.0;
5913 static_assert(is_same<int, decltype(ac)>::value == true, "");
5914 static_assert(is_same<int, decltype(av)>::value == true, "");
5915 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5916 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5917 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5918 return (sumf > 0.0) ? sumi : add(c, v);
5919 }
5920
5921 }
5922
5923 namespace test_noexcept
5924 {
5925
5926 int f() { return 0; }
5927 int g() noexcept { return 0; }
5928
5929 static_assert(noexcept(f()) == false, "");
5930 static_assert(noexcept(g()) == true, "");
5931
5932 }
5933
5934 namespace test_constexpr
5935 {
5936
5937 template < typename CharT >
5938 unsigned long constexpr
5939 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5940 {
5941 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5942 }
5943
5944 template < typename CharT >
5945 unsigned long constexpr
5946 strlen_c(const CharT *const s) noexcept
5947 {
5948 return strlen_c_r(s, 0UL);
5949 }
5950
5951 static_assert(strlen_c("") == 0UL, "");
5952 static_assert(strlen_c("1") == 1UL, "");
5953 static_assert(strlen_c("example") == 7UL, "");
5954 static_assert(strlen_c("another\0example") == 7UL, "");
5955
5956 }
5957
5958 namespace test_rvalue_references
5959 {
5960
5961 template < int N >
5962 struct answer
5963 {
5964 static constexpr int value = N;
5965 };
5966
5967 answer<1> f(int&) { return answer<1>(); }
5968 answer<2> f(const int&) { return answer<2>(); }
5969 answer<3> f(int&&) { return answer<3>(); }
5970
5971 void
5972 test()
5973 {
5974 int i = 0;
5975 const int c = 0;
5976 static_assert(decltype(f(i))::value == 1, "");
5977 static_assert(decltype(f(c))::value == 2, "");
5978 static_assert(decltype(f(0))::value == 3, "");
5979 }
5980
5981 }
5982
5983 namespace test_uniform_initialization
5984 {
5985
5986 struct test
5987 {
5988 static const int zero {};
5989 static const int one {1};
5990 };
5991
5992 static_assert(test::zero == 0, "");
5993 static_assert(test::one == 1, "");
5994
5995 }
5996
5997 namespace test_lambdas
5998 {
5999
6000 void
6001 test1()
6002 {
6003 auto lambda1 = [](){};
6004 auto lambda2 = lambda1;
6005 lambda1();
6006 lambda2();
6007 }
6008
6009 int
6010 test2()
6011 {
6012 auto a = [](int i, int j){ return i + j; }(1, 2);
6013 auto b = []() -> int { return '0'; }();
6014 auto c = [=](){ return a + b; }();
6015 auto d = [&](){ return c; }();
6016 auto e = [a, &b](int x) mutable {
6017 const auto identity = [](int y){ return y; };
6018 for (auto i = 0; i < a; ++i)
6019 a += b--;
6020 return x + identity(a + b);
6021 }(0);
6022 return a + b + c + d + e;
6023 }
6024
6025 int
6026 test3()
6027 {
6028 const auto nullary = [](){ return 0; };
6029 const auto unary = [](int x){ return x; };
6030 using nullary_t = decltype(nullary);
6031 using unary_t = decltype(unary);
6032 const auto higher1st = [](nullary_t f){ return f(); };
6033 const auto higher2nd = [unary](nullary_t f1){
6034 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6035 };
6036 return higher1st(nullary) + higher2nd(nullary)(unary);
6037 }
6038
6039 }
6040
6041 namespace test_variadic_templates
6042 {
6043
6044 template <int...>
6045 struct sum;
6046
6047 template <int N0, int... N1toN>
6048 struct sum<N0, N1toN...>
6049 {
6050 static constexpr auto value = N0 + sum<N1toN...>::value;
6051 };
6052
6053 template <>
6054 struct sum<>
6055 {
6056 static constexpr auto value = 0;
6057 };
6058
6059 static_assert(sum<>::value == 0, "");
6060 static_assert(sum<1>::value == 1, "");
6061 static_assert(sum<23>::value == 23, "");
6062 static_assert(sum<1, 2>::value == 3, "");
6063 static_assert(sum<5, 5, 11>::value == 21, "");
6064 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6065
6066 }
6067
6068 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6069 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6070 // because of this.
6071 namespace test_template_alias_sfinae
6072 {
6073
6074 struct foo {};
6075
6076 template<typename T>
6077 using member = typename T::member_type;
6078
6079 template<typename T>
6080 void func(...) {}
6081
6082 template<typename T>
6083 void func(member<T>*) {}
6084
6085 void test();
6086
6087 void test() { func<foo>(0); }
6088
6089 }
6090
6091} // namespace cxx11
6092
6093#endif // __cplusplus >= 201103L
6094
6095
6096
6097_ACEOF
6098if ac_fn_cxx_try_compile "$LINENO"; then :
6099 ax_cv_cxx_compile_cxx11=yes
6100else
6101 ax_cv_cxx_compile_cxx11=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6106$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6107 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6108 ac_success=yes
6109 fi
6110
6111 if test x$ac_success = xno; then
6112 for alternative in ${ax_cxx_compile_alternatives}; do
6113 switch="-std=gnu++${alternative}"
6114 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6116$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6117if eval \${$cachevar+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119else
6120 ac_save_CXX="$CXX"
6121 CXX="$CXX $switch"
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h. */
6124
6125
6126// If the compiler admits that it is not ready for C++11, why torture it?
6127// Hopefully, this will speed up the test.
6128
6129#ifndef __cplusplus
6130
6131#error "This is not a C++ compiler"
6132
6133#elif __cplusplus < 201103L
6134
6135#error "This is not a C++11 compiler"
6136
6137#else
6138
6139namespace cxx11
6140{
6141
6142 namespace test_static_assert
6143 {
6144
6145 template <typename T>
6146 struct check
6147 {
6148 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6149 };
6150
6151 }
6152
6153 namespace test_final_override
6154 {
6155
6156 struct Base
6157 {
6158 virtual ~Base() {}
6159 virtual void f() {}
6160 };
6161
6162 struct Derived : public Base
6163 {
6164 virtual ~Derived() override {}
6165 virtual void f() override {}
6166 };
6167
6168 }
6169
6170 namespace test_double_right_angle_brackets
6171 {
6172
6173 template < typename T >
6174 struct check {};
6175
6176 typedef check<void> single_type;
6177 typedef check<check<void>> double_type;
6178 typedef check<check<check<void>>> triple_type;
6179 typedef check<check<check<check<void>>>> quadruple_type;
6180
6181 }
6182
6183 namespace test_decltype
6184 {
6185
6186 int
6187 f()
6188 {
6189 int a = 1;
6190 decltype(a) b = 2;
6191 return a + b;
6192 }
6193
6194 }
6195
6196 namespace test_type_deduction
6197 {
6198
6199 template < typename T1, typename T2 >
6200 struct is_same
6201 {
6202 static const bool value = false;
6203 };
6204
6205 template < typename T >
6206 struct is_same<T, T>
6207 {
6208 static const bool value = true;
6209 };
6210
6211 template < typename T1, typename T2 >
6212 auto
6213 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6214 {
6215 return a1 + a2;
6216 }
6217
6218 int
6219 test(const int c, volatile int v)
6220 {
6221 static_assert(is_same<int, decltype(0)>::value == true, "");
6222 static_assert(is_same<int, decltype(c)>::value == false, "");
6223 static_assert(is_same<int, decltype(v)>::value == false, "");
6224 auto ac = c;
6225 auto av = v;
6226 auto sumi = ac + av + 'x';
6227 auto sumf = ac + av + 1.0;
6228 static_assert(is_same<int, decltype(ac)>::value == true, "");
6229 static_assert(is_same<int, decltype(av)>::value == true, "");
6230 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6231 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6232 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6233 return (sumf > 0.0) ? sumi : add(c, v);
6234 }
6235
6236 }
6237
6238 namespace test_noexcept
6239 {
6240
6241 int f() { return 0; }
6242 int g() noexcept { return 0; }
6243
6244 static_assert(noexcept(f()) == false, "");
6245 static_assert(noexcept(g()) == true, "");
6246
6247 }
6248
6249 namespace test_constexpr
6250 {
6251
6252 template < typename CharT >
6253 unsigned long constexpr
6254 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6255 {
6256 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6257 }
6258
6259 template < typename CharT >
6260 unsigned long constexpr
6261 strlen_c(const CharT *const s) noexcept
6262 {
6263 return strlen_c_r(s, 0UL);
6264 }
6265
6266 static_assert(strlen_c("") == 0UL, "");
6267 static_assert(strlen_c("1") == 1UL, "");
6268 static_assert(strlen_c("example") == 7UL, "");
6269 static_assert(strlen_c("another\0example") == 7UL, "");
6270
6271 }
6272
6273 namespace test_rvalue_references
6274 {
6275
6276 template < int N >
6277 struct answer
6278 {
6279 static constexpr int value = N;
6280 };
6281
6282 answer<1> f(int&) { return answer<1>(); }
6283 answer<2> f(const int&) { return answer<2>(); }
6284 answer<3> f(int&&) { return answer<3>(); }
6285
6286 void
6287 test()
6288 {
6289 int i = 0;
6290 const int c = 0;
6291 static_assert(decltype(f(i))::value == 1, "");
6292 static_assert(decltype(f(c))::value == 2, "");
6293 static_assert(decltype(f(0))::value == 3, "");
6294 }
6295
6296 }
6297
6298 namespace test_uniform_initialization
6299 {
6300
6301 struct test
6302 {
6303 static const int zero {};
6304 static const int one {1};
6305 };
6306
6307 static_assert(test::zero == 0, "");
6308 static_assert(test::one == 1, "");
6309
6310 }
6311
6312 namespace test_lambdas
6313 {
6314
6315 void
6316 test1()
6317 {
6318 auto lambda1 = [](){};
6319 auto lambda2 = lambda1;
6320 lambda1();
6321 lambda2();
6322 }
6323
6324 int
6325 test2()
6326 {
6327 auto a = [](int i, int j){ return i + j; }(1, 2);
6328 auto b = []() -> int { return '0'; }();
6329 auto c = [=](){ return a + b; }();
6330 auto d = [&](){ return c; }();
6331 auto e = [a, &b](int x) mutable {
6332 const auto identity = [](int y){ return y; };
6333 for (auto i = 0; i < a; ++i)
6334 a += b--;
6335 return x + identity(a + b);
6336 }(0);
6337 return a + b + c + d + e;
6338 }
6339
6340 int
6341 test3()
6342 {
6343 const auto nullary = [](){ return 0; };
6344 const auto unary = [](int x){ return x; };
6345 using nullary_t = decltype(nullary);
6346 using unary_t = decltype(unary);
6347 const auto higher1st = [](nullary_t f){ return f(); };
6348 const auto higher2nd = [unary](nullary_t f1){
6349 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6350 };
6351 return higher1st(nullary) + higher2nd(nullary)(unary);
6352 }
6353
6354 }
6355
6356 namespace test_variadic_templates
6357 {
6358
6359 template <int...>
6360 struct sum;
6361
6362 template <int N0, int... N1toN>
6363 struct sum<N0, N1toN...>
6364 {
6365 static constexpr auto value = N0 + sum<N1toN...>::value;
6366 };
6367
6368 template <>
6369 struct sum<>
6370 {
6371 static constexpr auto value = 0;
6372 };
6373
6374 static_assert(sum<>::value == 0, "");
6375 static_assert(sum<1>::value == 1, "");
6376 static_assert(sum<23>::value == 23, "");
6377 static_assert(sum<1, 2>::value == 3, "");
6378 static_assert(sum<5, 5, 11>::value == 21, "");
6379 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6380
6381 }
6382
6383 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6384 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6385 // because of this.
6386 namespace test_template_alias_sfinae
6387 {
6388
6389 struct foo {};
6390
6391 template<typename T>
6392 using member = typename T::member_type;
6393
6394 template<typename T>
6395 void func(...) {}
6396
6397 template<typename T>
6398 void func(member<T>*) {}
6399
6400 void test();
6401
6402 void test() { func<foo>(0); }
6403
6404 }
6405
6406} // namespace cxx11
6407
6408#endif // __cplusplus >= 201103L
6409
6410
6411
6412_ACEOF
6413if ac_fn_cxx_try_compile "$LINENO"; then :
6414 eval $cachevar=yes
6415else
6416 eval $cachevar=no
6417fi
6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 CXX="$ac_save_CXX"
6420fi
6421eval ac_res=\$$cachevar
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6423$as_echo "$ac_res" >&6; }
6424 if eval test x\$$cachevar = xyes; then
6425 CXX="$CXX $switch"
6426 if test -n "$CXXCPP" ; then
6427 CXXCPP="$CXXCPP $switch"
6428 fi
6429 ac_success=yes
6430 break
6431 fi
6432 done
6433 fi
6434
6435 if test x$ac_success = xno; then
6436 for alternative in ${ax_cxx_compile_alternatives}; do
6437 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6438 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6440$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6441if eval \${$cachevar+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443else
6444 ac_save_CXX="$CXX"
6445 CXX="$CXX $switch"
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448
6449
6450// If the compiler admits that it is not ready for C++11, why torture it?
6451// Hopefully, this will speed up the test.
6452
6453#ifndef __cplusplus
6454
6455#error "This is not a C++ compiler"
6456
6457#elif __cplusplus < 201103L
6458
6459#error "This is not a C++11 compiler"
6460
6461#else
6462
6463namespace cxx11
6464{
6465
6466 namespace test_static_assert
6467 {
6468
6469 template <typename T>
6470 struct check
6471 {
6472 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6473 };
6474
6475 }
6476
6477 namespace test_final_override
6478 {
6479
6480 struct Base
6481 {
6482 virtual ~Base() {}
6483 virtual void f() {}
6484 };
6485
6486 struct Derived : public Base
6487 {
6488 virtual ~Derived() override {}
6489 virtual void f() override {}
6490 };
6491
6492 }
6493
6494 namespace test_double_right_angle_brackets
6495 {
6496
6497 template < typename T >
6498 struct check {};
6499
6500 typedef check<void> single_type;
6501 typedef check<check<void>> double_type;
6502 typedef check<check<check<void>>> triple_type;
6503 typedef check<check<check<check<void>>>> quadruple_type;
6504
6505 }
6506
6507 namespace test_decltype
6508 {
6509
6510 int
6511 f()
6512 {
6513 int a = 1;
6514 decltype(a) b = 2;
6515 return a + b;
6516 }
6517
6518 }
6519
6520 namespace test_type_deduction
6521 {
6522
6523 template < typename T1, typename T2 >
6524 struct is_same
6525 {
6526 static const bool value = false;
6527 };
6528
6529 template < typename T >
6530 struct is_same<T, T>
6531 {
6532 static const bool value = true;
6533 };
6534
6535 template < typename T1, typename T2 >
6536 auto
6537 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6538 {
6539 return a1 + a2;
6540 }
6541
6542 int
6543 test(const int c, volatile int v)
6544 {
6545 static_assert(is_same<int, decltype(0)>::value == true, "");
6546 static_assert(is_same<int, decltype(c)>::value == false, "");
6547 static_assert(is_same<int, decltype(v)>::value == false, "");
6548 auto ac = c;
6549 auto av = v;
6550 auto sumi = ac + av + 'x';
6551 auto sumf = ac + av + 1.0;
6552 static_assert(is_same<int, decltype(ac)>::value == true, "");
6553 static_assert(is_same<int, decltype(av)>::value == true, "");
6554 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6555 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6556 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6557 return (sumf > 0.0) ? sumi : add(c, v);
6558 }
6559
6560 }
6561
6562 namespace test_noexcept
6563 {
6564
6565 int f() { return 0; }
6566 int g() noexcept { return 0; }
6567
6568 static_assert(noexcept(f()) == false, "");
6569 static_assert(noexcept(g()) == true, "");
6570
6571 }
6572
6573 namespace test_constexpr
6574 {
6575
6576 template < typename CharT >
6577 unsigned long constexpr
6578 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6579 {
6580 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6581 }
6582
6583 template < typename CharT >
6584 unsigned long constexpr
6585 strlen_c(const CharT *const s) noexcept
6586 {
6587 return strlen_c_r(s, 0UL);
6588 }
6589
6590 static_assert(strlen_c("") == 0UL, "");
6591 static_assert(strlen_c("1") == 1UL, "");
6592 static_assert(strlen_c("example") == 7UL, "");
6593 static_assert(strlen_c("another\0example") == 7UL, "");
6594
6595 }
6596
6597 namespace test_rvalue_references
6598 {
6599
6600 template < int N >
6601 struct answer
6602 {
6603 static constexpr int value = N;
6604 };
6605
6606 answer<1> f(int&) { return answer<1>(); }
6607 answer<2> f(const int&) { return answer<2>(); }
6608 answer<3> f(int&&) { return answer<3>(); }
6609
6610 void
6611 test()
6612 {
6613 int i = 0;
6614 const int c = 0;
6615 static_assert(decltype(f(i))::value == 1, "");
6616 static_assert(decltype(f(c))::value == 2, "");
6617 static_assert(decltype(f(0))::value == 3, "");
6618 }
6619
6620 }
6621
6622 namespace test_uniform_initialization
6623 {
6624
6625 struct test
6626 {
6627 static const int zero {};
6628 static const int one {1};
6629 };
6630
6631 static_assert(test::zero == 0, "");
6632 static_assert(test::one == 1, "");
6633
6634 }
6635
6636 namespace test_lambdas
6637 {
6638
6639 void
6640 test1()
6641 {
6642 auto lambda1 = [](){};
6643 auto lambda2 = lambda1;
6644 lambda1();
6645 lambda2();
6646 }
6647
6648 int
6649 test2()
6650 {
6651 auto a = [](int i, int j){ return i + j; }(1, 2);
6652 auto b = []() -> int { return '0'; }();
6653 auto c = [=](){ return a + b; }();
6654 auto d = [&](){ return c; }();
6655 auto e = [a, &b](int x) mutable {
6656 const auto identity = [](int y){ return y; };
6657 for (auto i = 0; i < a; ++i)
6658 a += b--;
6659 return x + identity(a + b);
6660 }(0);
6661 return a + b + c + d + e;
6662 }
6663
6664 int
6665 test3()
6666 {
6667 const auto nullary = [](){ return 0; };
6668 const auto unary = [](int x){ return x; };
6669 using nullary_t = decltype(nullary);
6670 using unary_t = decltype(unary);
6671 const auto higher1st = [](nullary_t f){ return f(); };
6672 const auto higher2nd = [unary](nullary_t f1){
6673 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6674 };
6675 return higher1st(nullary) + higher2nd(nullary)(unary);
6676 }
6677
6678 }
6679
6680 namespace test_variadic_templates
6681 {
6682
6683 template <int...>
6684 struct sum;
6685
6686 template <int N0, int... N1toN>
6687 struct sum<N0, N1toN...>
6688 {
6689 static constexpr auto value = N0 + sum<N1toN...>::value;
6690 };
6691
6692 template <>
6693 struct sum<>
6694 {
6695 static constexpr auto value = 0;
6696 };
6697
6698 static_assert(sum<>::value == 0, "");
6699 static_assert(sum<1>::value == 1, "");
6700 static_assert(sum<23>::value == 23, "");
6701 static_assert(sum<1, 2>::value == 3, "");
6702 static_assert(sum<5, 5, 11>::value == 21, "");
6703 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6704
6705 }
6706
6707 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6708 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6709 // because of this.
6710 namespace test_template_alias_sfinae
6711 {
6712
6713 struct foo {};
6714
6715 template<typename T>
6716 using member = typename T::member_type;
6717
6718 template<typename T>
6719 void func(...) {}
6720
6721 template<typename T>
6722 void func(member<T>*) {}
6723
6724 void test();
6725
6726 void test() { func<foo>(0); }
6727
6728 }
6729
6730} // namespace cxx11
6731
6732#endif // __cplusplus >= 201103L
6733
6734
6735
6736_ACEOF
6737if ac_fn_cxx_try_compile "$LINENO"; then :
6738 eval $cachevar=yes
6739else
6740 eval $cachevar=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 CXX="$ac_save_CXX"
6744fi
6745eval ac_res=\$$cachevar
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6747$as_echo "$ac_res" >&6; }
6748 if eval test x\$$cachevar = xyes; then
6749 CXX="$CXX $switch"
6750 if test -n "$CXXCPP" ; then
6751 CXXCPP="$CXXCPP $switch"
6752 fi
6753 ac_success=yes
6754 break
6755 fi
6756 done
6757 if test x$ac_success = xyes; then
6758 break
6759 fi
6760 done
6761 fi
7ffcf5d6 6762
ffac9597
JM
6763 ac_ext=c
6764ac_cpp='$CPP $CPPFLAGS'
6765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6770 if test x$ac_success = xno; then
6771 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6772 fi
6773 fi
6774 if test x$ac_success = xno; then
6775 HAVE_CXX11=0
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6777$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6778 else
6779 HAVE_CXX11=1
6780
6781$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6782
6783 fi
6784
6785
7ffcf5d6
TB
6786
6787 if test "${build}" != "${host}"; then
6788 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6789 ac_ext=cpp
6790ac_cpp='$CXXCPP $CPPFLAGS'
6791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6794 ac_success=no
6795 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6796 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6797 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6798 CXX="$CXX_FOR_BUILD"
6799 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6800 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6802$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6803if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6804 $as_echo_n "(cached) " >&6
6805else
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807/* end confdefs.h. */
6808
6809
6810// If the compiler admits that it is not ready for C++11, why torture it?
6811// Hopefully, this will speed up the test.
6812
6813#ifndef __cplusplus
6814
6815#error "This is not a C++ compiler"
6816
6817#elif __cplusplus < 201103L
6818
6819#error "This is not a C++11 compiler"
6820
6821#else
6822
6823namespace cxx11
6824{
6825
6826 namespace test_static_assert
6827 {
6828
6829 template <typename T>
6830 struct check
6831 {
6832 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6833 };
6834
6835 }
6836
6837 namespace test_final_override
6838 {
6839
6840 struct Base
6841 {
6842 virtual ~Base() {}
6843 virtual void f() {}
6844 };
6845
6846 struct Derived : public Base
6847 {
6848 virtual ~Derived() override {}
6849 virtual void f() override {}
6850 };
6851
6852 }
6853
6854 namespace test_double_right_angle_brackets
6855 {
6856
6857 template < typename T >
6858 struct check {};
6859
6860 typedef check<void> single_type;
6861 typedef check<check<void>> double_type;
6862 typedef check<check<check<void>>> triple_type;
6863 typedef check<check<check<check<void>>>> quadruple_type;
6864
6865 }
6866
6867 namespace test_decltype
6868 {
6869
6870 int
6871 f()
6872 {
6873 int a = 1;
6874 decltype(a) b = 2;
6875 return a + b;
6876 }
6877
6878 }
6879
6880 namespace test_type_deduction
6881 {
6882
6883 template < typename T1, typename T2 >
6884 struct is_same
6885 {
6886 static const bool value = false;
6887 };
6888
6889 template < typename T >
6890 struct is_same<T, T>
6891 {
6892 static const bool value = true;
6893 };
6894
6895 template < typename T1, typename T2 >
6896 auto
6897 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6898 {
6899 return a1 + a2;
6900 }
6901
6902 int
6903 test(const int c, volatile int v)
6904 {
6905 static_assert(is_same<int, decltype(0)>::value == true, "");
6906 static_assert(is_same<int, decltype(c)>::value == false, "");
6907 static_assert(is_same<int, decltype(v)>::value == false, "");
6908 auto ac = c;
6909 auto av = v;
6910 auto sumi = ac + av + 'x';
6911 auto sumf = ac + av + 1.0;
6912 static_assert(is_same<int, decltype(ac)>::value == true, "");
6913 static_assert(is_same<int, decltype(av)>::value == true, "");
6914 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6915 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6916 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6917 return (sumf > 0.0) ? sumi : add(c, v);
6918 }
6919
6920 }
6921
6922 namespace test_noexcept
6923 {
6924
6925 int f() { return 0; }
6926 int g() noexcept { return 0; }
6927
6928 static_assert(noexcept(f()) == false, "");
6929 static_assert(noexcept(g()) == true, "");
6930
6931 }
6932
6933 namespace test_constexpr
6934 {
6935
6936 template < typename CharT >
6937 unsigned long constexpr
6938 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6939 {
6940 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6941 }
6942
6943 template < typename CharT >
6944 unsigned long constexpr
6945 strlen_c(const CharT *const s) noexcept
6946 {
6947 return strlen_c_r(s, 0UL);
6948 }
6949
6950 static_assert(strlen_c("") == 0UL, "");
6951 static_assert(strlen_c("1") == 1UL, "");
6952 static_assert(strlen_c("example") == 7UL, "");
6953 static_assert(strlen_c("another\0example") == 7UL, "");
6954
6955 }
6956
6957 namespace test_rvalue_references
6958 {
6959
6960 template < int N >
6961 struct answer
6962 {
6963 static constexpr int value = N;
6964 };
6965
6966 answer<1> f(int&) { return answer<1>(); }
6967 answer<2> f(const int&) { return answer<2>(); }
6968 answer<3> f(int&&) { return answer<3>(); }
6969
6970 void
6971 test()
6972 {
6973 int i = 0;
6974 const int c = 0;
6975 static_assert(decltype(f(i))::value == 1, "");
6976 static_assert(decltype(f(c))::value == 2, "");
6977 static_assert(decltype(f(0))::value == 3, "");
6978 }
6979
6980 }
6981
6982 namespace test_uniform_initialization
6983 {
6984
6985 struct test
6986 {
6987 static const int zero {};
6988 static const int one {1};
6989 };
6990
6991 static_assert(test::zero == 0, "");
6992 static_assert(test::one == 1, "");
6993
6994 }
6995
6996 namespace test_lambdas
6997 {
6998
6999 void
7000 test1()
7001 {
7002 auto lambda1 = [](){};
7003 auto lambda2 = lambda1;
7004 lambda1();
7005 lambda2();
7006 }
7007
7008 int
7009 test2()
7010 {
7011 auto a = [](int i, int j){ return i + j; }(1, 2);
7012 auto b = []() -> int { return '0'; }();
7013 auto c = [=](){ return a + b; }();
7014 auto d = [&](){ return c; }();
7015 auto e = [a, &b](int x) mutable {
7016 const auto identity = [](int y){ return y; };
7017 for (auto i = 0; i < a; ++i)
7018 a += b--;
7019 return x + identity(a + b);
7020 }(0);
7021 return a + b + c + d + e;
7022 }
7023
7024 int
7025 test3()
7026 {
7027 const auto nullary = [](){ return 0; };
7028 const auto unary = [](int x){ return x; };
7029 using nullary_t = decltype(nullary);
7030 using unary_t = decltype(unary);
7031 const auto higher1st = [](nullary_t f){ return f(); };
7032 const auto higher2nd = [unary](nullary_t f1){
7033 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7034 };
7035 return higher1st(nullary) + higher2nd(nullary)(unary);
7036 }
7037
7038 }
7039
7040 namespace test_variadic_templates
7041 {
7042
7043 template <int...>
7044 struct sum;
7045
7046 template <int N0, int... N1toN>
7047 struct sum<N0, N1toN...>
7048 {
7049 static constexpr auto value = N0 + sum<N1toN...>::value;
7050 };
7051
7052 template <>
7053 struct sum<>
7054 {
7055 static constexpr auto value = 0;
7056 };
7057
7058 static_assert(sum<>::value == 0, "");
7059 static_assert(sum<1>::value == 1, "");
7060 static_assert(sum<23>::value == 23, "");
7061 static_assert(sum<1, 2>::value == 3, "");
7062 static_assert(sum<5, 5, 11>::value == 21, "");
7063 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7064
7065 }
7066
7067 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7068 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7069 // because of this.
7070 namespace test_template_alias_sfinae
7071 {
7072
7073 struct foo {};
7074
7075 template<typename T>
7076 using member = typename T::member_type;
7077
7078 template<typename T>
7079 void func(...) {}
7080
7081 template<typename T>
7082 void func(member<T>*) {}
7083
7084 void test();
7085
7086 void test() { func<foo>(0); }
7087
7088 }
7089
7090} // namespace cxx11
7091
7092#endif // __cplusplus >= 201103L
7093
7094
7095
7096_ACEOF
7097if ac_fn_cxx_try_compile "$LINENO"; then :
7098 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7099else
7100 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7101fi
7102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7105$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7106 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7107 ac_success=yes
7108 fi
7109
7110 if test x$ac_success = xno; then
7111 for alternative in ${ax_cxx_compile_alternatives}; do
7112 switch="-std=gnu++${alternative}"
7113 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7115$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7116if eval \${$cachevar+:} false; then :
7117 $as_echo_n "(cached) " >&6
7118else
7119 ac_save_CXX="$CXX"
7120 CXX="$CXX $switch"
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h. */
7123
7124
7125// If the compiler admits that it is not ready for C++11, why torture it?
7126// Hopefully, this will speed up the test.
7127
7128#ifndef __cplusplus
7129
7130#error "This is not a C++ compiler"
7131
7132#elif __cplusplus < 201103L
7133
7134#error "This is not a C++11 compiler"
7135
7136#else
7137
7138namespace cxx11
7139{
7140
7141 namespace test_static_assert
7142 {
7143
7144 template <typename T>
7145 struct check
7146 {
7147 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7148 };
7149
7150 }
7151
7152 namespace test_final_override
7153 {
7154
7155 struct Base
7156 {
7157 virtual ~Base() {}
7158 virtual void f() {}
7159 };
7160
7161 struct Derived : public Base
7162 {
7163 virtual ~Derived() override {}
7164 virtual void f() override {}
7165 };
7166
7167 }
7168
7169 namespace test_double_right_angle_brackets
7170 {
7171
7172 template < typename T >
7173 struct check {};
7174
7175 typedef check<void> single_type;
7176 typedef check<check<void>> double_type;
7177 typedef check<check<check<void>>> triple_type;
7178 typedef check<check<check<check<void>>>> quadruple_type;
7179
7180 }
7181
7182 namespace test_decltype
7183 {
7184
7185 int
7186 f()
7187 {
7188 int a = 1;
7189 decltype(a) b = 2;
7190 return a + b;
7191 }
7192
7193 }
7194
7195 namespace test_type_deduction
7196 {
7197
7198 template < typename T1, typename T2 >
7199 struct is_same
7200 {
7201 static const bool value = false;
7202 };
7203
7204 template < typename T >
7205 struct is_same<T, T>
7206 {
7207 static const bool value = true;
7208 };
7209
7210 template < typename T1, typename T2 >
7211 auto
7212 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7213 {
7214 return a1 + a2;
7215 }
7216
7217 int
7218 test(const int c, volatile int v)
7219 {
7220 static_assert(is_same<int, decltype(0)>::value == true, "");
7221 static_assert(is_same<int, decltype(c)>::value == false, "");
7222 static_assert(is_same<int, decltype(v)>::value == false, "");
7223 auto ac = c;
7224 auto av = v;
7225 auto sumi = ac + av + 'x';
7226 auto sumf = ac + av + 1.0;
7227 static_assert(is_same<int, decltype(ac)>::value == true, "");
7228 static_assert(is_same<int, decltype(av)>::value == true, "");
7229 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7230 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7231 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7232 return (sumf > 0.0) ? sumi : add(c, v);
7233 }
7234
7235 }
7236
7237 namespace test_noexcept
7238 {
7239
7240 int f() { return 0; }
7241 int g() noexcept { return 0; }
7242
7243 static_assert(noexcept(f()) == false, "");
7244 static_assert(noexcept(g()) == true, "");
7245
7246 }
7247
7248 namespace test_constexpr
7249 {
7250
7251 template < typename CharT >
7252 unsigned long constexpr
7253 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7254 {
7255 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7256 }
7257
7258 template < typename CharT >
7259 unsigned long constexpr
7260 strlen_c(const CharT *const s) noexcept
7261 {
7262 return strlen_c_r(s, 0UL);
7263 }
7264
7265 static_assert(strlen_c("") == 0UL, "");
7266 static_assert(strlen_c("1") == 1UL, "");
7267 static_assert(strlen_c("example") == 7UL, "");
7268 static_assert(strlen_c("another\0example") == 7UL, "");
7269
7270 }
7271
7272 namespace test_rvalue_references
7273 {
7274
7275 template < int N >
7276 struct answer
7277 {
7278 static constexpr int value = N;
7279 };
7280
7281 answer<1> f(int&) { return answer<1>(); }
7282 answer<2> f(const int&) { return answer<2>(); }
7283 answer<3> f(int&&) { return answer<3>(); }
7284
7285 void
7286 test()
7287 {
7288 int i = 0;
7289 const int c = 0;
7290 static_assert(decltype(f(i))::value == 1, "");
7291 static_assert(decltype(f(c))::value == 2, "");
7292 static_assert(decltype(f(0))::value == 3, "");
7293 }
7294
7295 }
7296
7297 namespace test_uniform_initialization
7298 {
7299
7300 struct test
7301 {
7302 static const int zero {};
7303 static const int one {1};
7304 };
7305
7306 static_assert(test::zero == 0, "");
7307 static_assert(test::one == 1, "");
7308
7309 }
7310
7311 namespace test_lambdas
7312 {
7313
7314 void
7315 test1()
7316 {
7317 auto lambda1 = [](){};
7318 auto lambda2 = lambda1;
7319 lambda1();
7320 lambda2();
7321 }
7322
7323 int
7324 test2()
7325 {
7326 auto a = [](int i, int j){ return i + j; }(1, 2);
7327 auto b = []() -> int { return '0'; }();
7328 auto c = [=](){ return a + b; }();
7329 auto d = [&](){ return c; }();
7330 auto e = [a, &b](int x) mutable {
7331 const auto identity = [](int y){ return y; };
7332 for (auto i = 0; i < a; ++i)
7333 a += b--;
7334 return x + identity(a + b);
7335 }(0);
7336 return a + b + c + d + e;
7337 }
7338
7339 int
7340 test3()
7341 {
7342 const auto nullary = [](){ return 0; };
7343 const auto unary = [](int x){ return x; };
7344 using nullary_t = decltype(nullary);
7345 using unary_t = decltype(unary);
7346 const auto higher1st = [](nullary_t f){ return f(); };
7347 const auto higher2nd = [unary](nullary_t f1){
7348 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7349 };
7350 return higher1st(nullary) + higher2nd(nullary)(unary);
7351 }
7352
7353 }
7354
7355 namespace test_variadic_templates
7356 {
7357
7358 template <int...>
7359 struct sum;
7360
7361 template <int N0, int... N1toN>
7362 struct sum<N0, N1toN...>
7363 {
7364 static constexpr auto value = N0 + sum<N1toN...>::value;
7365 };
7366
7367 template <>
7368 struct sum<>
7369 {
7370 static constexpr auto value = 0;
7371 };
7372
7373 static_assert(sum<>::value == 0, "");
7374 static_assert(sum<1>::value == 1, "");
7375 static_assert(sum<23>::value == 23, "");
7376 static_assert(sum<1, 2>::value == 3, "");
7377 static_assert(sum<5, 5, 11>::value == 21, "");
7378 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7379
7380 }
7381
7382 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7383 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7384 // because of this.
7385 namespace test_template_alias_sfinae
7386 {
7387
7388 struct foo {};
7389
7390 template<typename T>
7391 using member = typename T::member_type;
7392
7393 template<typename T>
7394 void func(...) {}
7395
7396 template<typename T>
7397 void func(member<T>*) {}
7398
7399 void test();
7400
7401 void test() { func<foo>(0); }
7402
7403 }
7404
7405} // namespace cxx11
7406
7407#endif // __cplusplus >= 201103L
7408
7409
7410
7411_ACEOF
7412if ac_fn_cxx_try_compile "$LINENO"; then :
7413 eval $cachevar=yes
7414else
7415 eval $cachevar=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 CXX="$ac_save_CXX"
7419fi
7420eval ac_res=\$$cachevar
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7422$as_echo "$ac_res" >&6; }
7423 if eval test x\$$cachevar = xyes; then
7424 CXX="$CXX $switch"
7425 if test -n "$CXXCPP" ; then
7426 CXXCPP="$CXXCPP $switch"
7427 fi
7428 ac_success=yes
7429 break
7430 fi
7431 done
7432 fi
7433
7434 if test x$ac_success = xno; then
7435 for alternative in ${ax_cxx_compile_alternatives}; do
7436 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7437 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7439$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7440if eval \${$cachevar+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442else
7443 ac_save_CXX="$CXX"
7444 CXX="$CXX $switch"
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446/* end confdefs.h. */
7447
7448
7449// If the compiler admits that it is not ready for C++11, why torture it?
7450// Hopefully, this will speed up the test.
7451
7452#ifndef __cplusplus
7453
7454#error "This is not a C++ compiler"
7455
7456#elif __cplusplus < 201103L
7457
7458#error "This is not a C++11 compiler"
7459
7460#else
7461
7462namespace cxx11
7463{
7464
7465 namespace test_static_assert
7466 {
7467
7468 template <typename T>
7469 struct check
7470 {
7471 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7472 };
7473
7474 }
7475
7476 namespace test_final_override
7477 {
7478
7479 struct Base
7480 {
7481 virtual ~Base() {}
7482 virtual void f() {}
7483 };
7484
7485 struct Derived : public Base
7486 {
7487 virtual ~Derived() override {}
7488 virtual void f() override {}
7489 };
7490
7491 }
7492
7493 namespace test_double_right_angle_brackets
7494 {
7495
7496 template < typename T >
7497 struct check {};
7498
7499 typedef check<void> single_type;
7500 typedef check<check<void>> double_type;
7501 typedef check<check<check<void>>> triple_type;
7502 typedef check<check<check<check<void>>>> quadruple_type;
7503
7504 }
7505
7506 namespace test_decltype
7507 {
7508
7509 int
7510 f()
7511 {
7512 int a = 1;
7513 decltype(a) b = 2;
7514 return a + b;
7515 }
7516
7517 }
7518
7519 namespace test_type_deduction
7520 {
7521
7522 template < typename T1, typename T2 >
7523 struct is_same
7524 {
7525 static const bool value = false;
7526 };
7527
7528 template < typename T >
7529 struct is_same<T, T>
7530 {
7531 static const bool value = true;
7532 };
7533
7534 template < typename T1, typename T2 >
7535 auto
7536 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7537 {
7538 return a1 + a2;
7539 }
7540
7541 int
7542 test(const int c, volatile int v)
7543 {
7544 static_assert(is_same<int, decltype(0)>::value == true, "");
7545 static_assert(is_same<int, decltype(c)>::value == false, "");
7546 static_assert(is_same<int, decltype(v)>::value == false, "");
7547 auto ac = c;
7548 auto av = v;
7549 auto sumi = ac + av + 'x';
7550 auto sumf = ac + av + 1.0;
7551 static_assert(is_same<int, decltype(ac)>::value == true, "");
7552 static_assert(is_same<int, decltype(av)>::value == true, "");
7553 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7554 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7555 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7556 return (sumf > 0.0) ? sumi : add(c, v);
7557 }
7558
7559 }
7560
7561 namespace test_noexcept
7562 {
7563
7564 int f() { return 0; }
7565 int g() noexcept { return 0; }
7566
7567 static_assert(noexcept(f()) == false, "");
7568 static_assert(noexcept(g()) == true, "");
7569
7570 }
7571
7572 namespace test_constexpr
7573 {
7574
7575 template < typename CharT >
7576 unsigned long constexpr
7577 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7578 {
7579 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7580 }
7581
7582 template < typename CharT >
7583 unsigned long constexpr
7584 strlen_c(const CharT *const s) noexcept
7585 {
7586 return strlen_c_r(s, 0UL);
7587 }
7588
7589 static_assert(strlen_c("") == 0UL, "");
7590 static_assert(strlen_c("1") == 1UL, "");
7591 static_assert(strlen_c("example") == 7UL, "");
7592 static_assert(strlen_c("another\0example") == 7UL, "");
7593
7594 }
7595
7596 namespace test_rvalue_references
7597 {
7598
7599 template < int N >
7600 struct answer
7601 {
7602 static constexpr int value = N;
7603 };
7604
7605 answer<1> f(int&) { return answer<1>(); }
7606 answer<2> f(const int&) { return answer<2>(); }
7607 answer<3> f(int&&) { return answer<3>(); }
7608
7609 void
7610 test()
7611 {
7612 int i = 0;
7613 const int c = 0;
7614 static_assert(decltype(f(i))::value == 1, "");
7615 static_assert(decltype(f(c))::value == 2, "");
7616 static_assert(decltype(f(0))::value == 3, "");
7617 }
7618
7619 }
7620
7621 namespace test_uniform_initialization
7622 {
7623
7624 struct test
7625 {
7626 static const int zero {};
7627 static const int one {1};
7628 };
7629
7630 static_assert(test::zero == 0, "");
7631 static_assert(test::one == 1, "");
7632
7633 }
7634
7635 namespace test_lambdas
7636 {
7637
7638 void
7639 test1()
7640 {
7641 auto lambda1 = [](){};
7642 auto lambda2 = lambda1;
7643 lambda1();
7644 lambda2();
7645 }
7646
7647 int
7648 test2()
7649 {
7650 auto a = [](int i, int j){ return i + j; }(1, 2);
7651 auto b = []() -> int { return '0'; }();
7652 auto c = [=](){ return a + b; }();
7653 auto d = [&](){ return c; }();
7654 auto e = [a, &b](int x) mutable {
7655 const auto identity = [](int y){ return y; };
7656 for (auto i = 0; i < a; ++i)
7657 a += b--;
7658 return x + identity(a + b);
7659 }(0);
7660 return a + b + c + d + e;
7661 }
7662
7663 int
7664 test3()
7665 {
7666 const auto nullary = [](){ return 0; };
7667 const auto unary = [](int x){ return x; };
7668 using nullary_t = decltype(nullary);
7669 using unary_t = decltype(unary);
7670 const auto higher1st = [](nullary_t f){ return f(); };
7671 const auto higher2nd = [unary](nullary_t f1){
7672 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7673 };
7674 return higher1st(nullary) + higher2nd(nullary)(unary);
7675 }
7676
7677 }
7678
7679 namespace test_variadic_templates
7680 {
7681
7682 template <int...>
7683 struct sum;
7684
7685 template <int N0, int... N1toN>
7686 struct sum<N0, N1toN...>
7687 {
7688 static constexpr auto value = N0 + sum<N1toN...>::value;
7689 };
7690
7691 template <>
7692 struct sum<>
7693 {
7694 static constexpr auto value = 0;
7695 };
7696
7697 static_assert(sum<>::value == 0, "");
7698 static_assert(sum<1>::value == 1, "");
7699 static_assert(sum<23>::value == 23, "");
7700 static_assert(sum<1, 2>::value == 3, "");
7701 static_assert(sum<5, 5, 11>::value == 21, "");
7702 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7703
7704 }
7705
7706 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7707 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7708 // because of this.
7709 namespace test_template_alias_sfinae
7710 {
7711
7712 struct foo {};
7713
7714 template<typename T>
7715 using member = typename T::member_type;
7716
7717 template<typename T>
7718 void func(...) {}
7719
7720 template<typename T>
7721 void func(member<T>*) {}
7722
7723 void test();
7724
7725 void test() { func<foo>(0); }
7726
7727 }
7728
7729} // namespace cxx11
7730
7731#endif // __cplusplus >= 201103L
7732
7733
7734
7735_ACEOF
7736if ac_fn_cxx_try_compile "$LINENO"; then :
7737 eval $cachevar=yes
7738else
7739 eval $cachevar=no
7740fi
7741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 CXX="$ac_save_CXX"
7743fi
7744eval ac_res=\$$cachevar
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7746$as_echo "$ac_res" >&6; }
7747 if eval test x\$$cachevar = xyes; then
7748 CXX="$CXX $switch"
7749 if test -n "$CXXCPP" ; then
7750 CXXCPP="$CXXCPP $switch"
7751 fi
7752 ac_success=yes
7753 break
7754 fi
7755 done
7756 if test x$ac_success = xyes; then
7757 break
7758 fi
7759 done
7760 fi
7761 CXX_FOR_BUILD="$CXX"
7762 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7763 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7764 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7765 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7766 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7767 ac_ext=c
7768ac_cpp='$CPP $CPPFLAGS'
7769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7771ac_compiler_gnu=$ac_cv_c_compiler_gnu
7772
7773 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7774 if test x$ac_success = xno; then
7775 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7776 fi
7777 fi
7778 if test x$ac_success = xno; then
7779 HAVE_CXX11_FOR_BUILD=0
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7781$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7782 else
7783 HAVE_CXX11_FOR_BUILD=1
7784
7785$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7786
7787 fi
7788
7789
7790 fi
46070488
JM
7791fi
7792
4a5e71f2
L
7793# Check whether --enable-pgo-build was given.
7794if test "${enable_pgo_build+set}" = set; then :
7795 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7796else
7797 enable_pgo_build=no
7798fi
7799
7800
7801# Issue errors and warnings for invalid/strange PGO build combinations.
7802case "$have_compiler:$host:$target:$enable_pgo_build" in
7803 *:*:*:no) ;;
7804
7805 # Allow the PGO build only if we aren't building a compiler and
7806 # we are in a native configuration.
7807 no:$build:$build:yes | no:$build:$build:lto) ;;
7808
7809 # Disallow the PGO bootstrap if we are building a compiler.
7810 yes:*:*:yes | yes:*:*:lto)
7811 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7812
7813 *)
7814 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7815 ;;
7816esac
7817
7818if test "$enable_pgo_build" != "no"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7820$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7821 old_CFLAGS="$CFLAGS"
7822 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7823 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7824
7825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826/* end confdefs.h. */
7827int foo;
7828_ACEOF
7829if ac_fn_c_try_compile "$LINENO"; then :
7830
7831else
7832 PGO_BUILD_GEN_CFLAGS=
7833fi
7834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 CFLAGS="$old_CFLAGS"
7836 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838$as_echo "yes" >&6; }
7839 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7840 else
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7844 fi
7845
7846 if test "$enable_pgo_build" = "lto"; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7848$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7849 old_CFLAGS="$CFLAGS"
7850 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7851 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853/* end confdefs.h. */
7854int foo;
7855_ACEOF
7856if ac_fn_c_try_compile "$LINENO"; then :
7857
7858else
7859 PGO_BUILD_LTO_CFLAGS=
7860fi
7861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 CFLAGS="$old_CFLAGS"
7863 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865$as_echo "yes" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7870$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7871 fi
7872 fi
7873fi
7874
7875
7876
7877
592c90ff
KG
7878# Used for setting $lt_cv_objdir
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7880$as_echo_n "checking for objdir... " >&6; }
22e05272 7881if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7882 $as_echo_n "(cached) " >&6
7883else
7884 rm -f .libs 2>/dev/null
7885mkdir .libs 2>/dev/null
7886if test -d .libs; then
7887 lt_cv_objdir=.libs
7888else
7889 # MS-DOS does not allow filenames that begin with a dot.
7890 lt_cv_objdir=_libs
7891fi
7892rmdir .libs 2>/dev/null
7893fi
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7895$as_echo "$lt_cv_objdir" >&6; }
7896objdir=$lt_cv_objdir
7897
7898
7899
7900
7901
7902cat >>confdefs.h <<_ACEOF
7903#define LT_OBJDIR "$lt_cv_objdir/"
7904_ACEOF
7905
7906
7907
acd26225 7908# Check for GMP, MPFR and MPC
3a5729ea 7909gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7910gmpinc=
e69bf64b 7911have_gmp=no
acd26225
KG
7912
7913# Specify a location for mpc
7914# check for this first so it ends up on the link line before mpfr.
7915
5213506e
RW
7916# Check whether --with-mpc was given.
7917if test "${with_mpc+set}" = set; then :
7918 withval=$with_mpc;
7919fi
acd26225 7920
acd26225 7921
9965e3cd 7922# Check whether --with-mpc-include was given.
5213506e
RW
7923if test "${with_mpc_include+set}" = set; then :
7924 withval=$with_mpc_include;
7925fi
acd26225 7926
acd26225 7927
9965e3cd 7928# Check whether --with-mpc-lib was given.
5213506e
RW
7929if test "${with_mpc_lib+set}" = set; then :
7930 withval=$with_mpc_lib;
7931fi
acd26225 7932
acd26225
KG
7933
7934if test "x$with_mpc" != x; then
3a5729ea
KG
7935 gmplibs="-L$with_mpc/lib $gmplibs"
7936 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7937fi
7938if test "x$with_mpc_include" != x; then
3a5729ea 7939 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7940fi
7941if test "x$with_mpc_lib" != x; then
3a5729ea 7942 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7943fi
7944if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7945 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7946 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7947 # Do not test the mpc version. Assume that it is sufficient, since
7948 # it is in the source tree, and the library has not been built yet
7949 # but it would be included on the link line in the version check below
7950 # hence making the test fail.
3a5729ea 7951 have_gmp=yes
acd26225 7952fi
e69bf64b 7953
bebf829d
PB
7954# Specify a location for mpfr
7955# check for this first so it ends up on the link line before gmp.
1c710c3c 7956
5213506e
RW
7957# Check whether --with-mpfr was given.
7958if test "${with_mpfr+set}" = set; then :
7959 withval=$with_mpfr;
7960fi
1c710c3c 7961
bebf829d 7962
9965e3cd 7963# Check whether --with-mpfr-include was given.
5213506e
RW
7964if test "${with_mpfr_include+set}" = set; then :
7965 withval=$with_mpfr_include;
7966fi
1c710c3c 7967
8a877c9c 7968
9965e3cd 7969# Check whether --with-mpfr-lib was given.
5213506e
RW
7970if test "${with_mpfr_lib+set}" = set; then :
7971 withval=$with_mpfr_lib;
7972fi
8a877c9c 7973
bebf829d
PB
7974
7975if test "x$with_mpfr" != x; then
7976 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7977 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7978fi
8a877c9c 7979if test "x$with_mpfr_include" != x; then
3a5729ea 7980 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7981fi
7982if test "x$with_mpfr_lib" != x; then
7983 gmplibs="-L$with_mpfr_lib $gmplibs"
7984fi
e69bf64b 7985if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7986 # MPFR v3.1.0 moved the sources into a src sub-directory.
7987 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7988 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7989 fi
00f35794
BE
7990 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7991 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7992 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7993 # Do not test the mpfr version. Assume that it is sufficient, since
7994 # it is in the source tree, and the library has not been built yet
7995 # but it would be included on the link line in the version check below
7996 # hence making the test fail.
7997 have_gmp=yes
7998fi
bebf829d 7999
6de9cd9a 8000# Specify a location for gmp
1c710c3c 8001
5213506e
RW
8002# Check whether --with-gmp was given.
8003if test "${with_gmp+set}" = set; then :
8004 withval=$with_gmp;
8005fi
1c710c3c 8006
6de9cd9a 8007
9965e3cd 8008# Check whether --with-gmp-include was given.
5213506e
RW
8009if test "${with_gmp_include+set}" = set; then :
8010 withval=$with_gmp_include;
8011fi
1c710c3c 8012
8a877c9c 8013
9965e3cd 8014# Check whether --with-gmp-lib was given.
5213506e
RW
8015if test "${with_gmp_lib+set}" = set; then :
8016 withval=$with_gmp_lib;
8017fi
8a877c9c
KG
8018
8019
6de9cd9a 8020
bebf829d
PB
8021if test "x$with_gmp" != x; then
8022 gmplibs="-L$with_gmp/lib $gmplibs"
8023 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8024fi
8a877c9c
KG
8025if test "x$with_gmp_include" != x; then
8026 gmpinc="-I$with_gmp_include $gmpinc"
8027fi
8028if test "x$with_gmp_lib" != x; then
8029 gmplibs="-L$with_gmp_lib $gmplibs"
8030fi
e69bf64b 8031if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8032 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8033 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8034 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8035 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8036 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8037 # Do not test the gmp version. Assume that it is sufficient, since
8038 # it is in the source tree, and the library has not been built yet
8039 # but it would be included on the link line in the version check below
8040 # hence making the test fail.
8041 have_gmp=yes
8042fi
6de9cd9a 8043
d943d7c4 8044if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
8045 have_gmp=yes
8046 saved_CFLAGS="$CFLAGS"
8047 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8048 # Check for the recommended and required versions of GMP.
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8050$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8052/* end confdefs.h. */
8053#include "gmp.h"
8054int
8055main ()
8056{
8057
8058 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8059 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8060 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8061 choke me
8062 #endif
8063
8064 ;
8065 return 0;
8066}
8067_ACEOF
8068if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8070/* end confdefs.h. */
362c6d2f 8071#include <gmp.h>
1c710c3c
DJ
8072int
8073main ()
8074{
6de9cd9a 8075
362c6d2f
KG
8076 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8077 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8078 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8079 choke me
8080 #endif
1c710c3c
DJ
8081
8082 ;
8083 return 0;
8084}
8085_ACEOF
5213506e
RW
8086if ac_fn_c_try_compile "$LINENO"; then :
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088$as_echo "yes" >&6; }
362c6d2f
KG
8089else
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8091$as_echo "buggy but acceptable" >&6; }
8092fi
8093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8094else
5213506e
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8097fi
5213506e 8098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8099
acd26225 8100 # If we have GMP, check the MPFR version.
e69bf64b 8101 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8102 # Check for the recommended and required versions of MPFR.
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8104$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8106/* end confdefs.h. */
70ec446f 8107#include <gmp.h>
e69bf64b 8108 #include <mpfr.h>
1c710c3c
DJ
8109int
8110main ()
8111{
e48d66a9 8112
8be34204 8113 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8114 choke me
8115 #endif
1c710c3c
DJ
8116
8117 ;
8118 return 0;
8119}
8120_ACEOF
5213506e
RW
8121if ac_fn_c_try_compile "$LINENO"; then :
8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8123/* end confdefs.h. */
a3993f33 8124#include <gmp.h>
e69bf64b 8125 #include <mpfr.h>
1c710c3c
DJ
8126int
8127main ()
8128{
a3993f33 8129
8be34204 8130 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8131 choke me
8132 #endif
acd26225
KG
8133
8134 ;
8135 return 0;
8136}
8137_ACEOF
5213506e
RW
8138if ac_fn_c_try_compile "$LINENO"; then :
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8140$as_echo "yes" >&6; }
acd26225 8141else
5213506e
RW
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8143$as_echo "buggy but acceptable" >&6; }
acd26225 8144fi
5213506e 8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8146else
5213506e
RW
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }; have_gmp=no
acd26225 8149fi
5213506e 8150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8151 fi
8152
8153 # Check for the MPC header version.
3a5729ea 8154 if test x"$have_gmp" = xyes ; then
362c6d2f 8155 # Check for the recommended and required versions of MPC.
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8157$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8159/* end confdefs.h. */
8160#include <mpc.h>
8161int
8162main ()
8163{
8164
362c6d2f
KG
8165 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8166 choke me
8167 #endif
8168
8169 ;
8170 return 0;
8171}
8172_ACEOF
8173if ac_fn_c_try_compile "$LINENO"; then :
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176#include <mpc.h>
8177int
8178main ()
8179{
8180
8181 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8182 choke me
8183 #endif
8184
8185 ;
8186 return 0;
8187}
8188_ACEOF
5213506e
RW
8189if ac_fn_c_try_compile "$LINENO"; then :
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8191$as_echo "yes" >&6; }
362c6d2f
KG
8192else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8194$as_echo "buggy but acceptable" >&6; }
8195fi
8196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8197else
5213506e 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8199$as_echo "no" >&6; }; have_gmp=no
acd26225 8200fi
5213506e 8201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8202 fi
8203
8204 # Now check the MPFR library.
8205 if test x"$have_gmp" = xyes; then
8206 saved_LIBS="$LIBS"
8207 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8209$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8211/* end confdefs.h. */
3a5729ea 8212#include <mpc.h>
acd26225
KG
8213int
8214main ()
8215{
8216
8217 mpfr_t n;
8218 mpfr_t x;
3a5729ea 8219 mpc_t c;
acd26225
KG
8220 int t;
8221 mpfr_init (n);
8222 mpfr_init (x);
90ca6847
TB
8223 mpfr_atan2 (n, n, x, MPFR_RNDN);
8224 mpfr_erfc (n, x, MPFR_RNDN);
8225 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8226 mpfr_clear(n);
8227 mpfr_clear(x);
8228 mpc_init2 (c, 53);
8229 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8230 mpc_cosh (c, c, MPC_RNDNN);
8231 mpc_pow (c, c, c, MPC_RNDNN);
8232 mpc_acosh (c, c, MPC_RNDNN);
8233 mpc_clear (c);
1c710c3c
DJ
8234
8235 ;
8236 return 0;
8237}
8238_ACEOF
5213506e
RW
8239if ac_fn_c_try_link "$LINENO"; then :
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8241$as_echo "yes" >&6; }
1c710c3c 8242else
5213506e
RW
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8245fi
5213506e
RW
8246rm -f core conftest.err conftest.$ac_objext \
8247 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8248 LIBS="$saved_LIBS"
8249 fi
8250
e69bf64b 8251 CFLAGS="$saved_CFLAGS"
6de9cd9a 8252
362c6d2f
KG
8253# The library versions listed in the error message below should match
8254# the HARD-minimums enforced above.
e69bf64b 8255 if test x$have_gmp != xyes; then
8be34204 8256 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8257Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8258their locations. Source code for these libraries can be found at
8259their respective hosting sites as well as at
aeebd94c 8260https://gcc.gnu.org/pub/gcc/infrastructure/. See also
45ab87d4 8261http://gcc.gnu.org/install/prerequisites.html for additional info. If
3a5729ea
KG
8262you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8263make sure that you have installed both the libraries and the header
8264files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8265 fi
70ec446f
KG
8266fi
8267
acd26225
KG
8268# Flags needed for both GMP, MPFR and/or MPC.
8269
8270
6de9cd9a
DN
8271
8272
8273
9e3eba15 8274
0ff2d841 8275
0b21f5d3 8276# Libraries to use for stage1 or when not bootstrapping.
00020c16 8277
0b21f5d3
EB
8278# Check whether --with-stage1-libs was given.
8279if test "${with_stage1_libs+set}" = set; then :
8280 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8281 stage1_libs=
00020c16 8282 else
0b21f5d3 8283 stage1_libs=$withval
00020c16
ILT
8284 fi
8285else
5dc85f7e 8286 stage1_libs=
5213506e
RW
8287fi
8288
00020c16
ILT
8289
8290
aac9103b
TT
8291# Whether or not to use -static-libstdc++ and -static-libgcc. The
8292# default is yes if gcc is being built; no otherwise. The reason for
8293# this default is that gdb is sometimes linked against GNU Source
8294# Highlight, which is a shared library that uses C++ exceptions. In
8295# this case, -static-libstdc++ will cause crashes.
8296
8297# Check whether --with-static-standard-libraries was given.
8298if test "${with_static_standard_libraries+set}" = set; then :
8299 withval=$with_static_standard_libraries;
8300else
8301 with_static_standard_libraries=auto
8302fi
8303
8304if test "$with_static_standard_libraries" = auto; then
8305 with_static_standard_libraries=$have_compiler
8306fi
8307
0b21f5d3 8308# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8309
0b21f5d3
EB
8310# Check whether --with-stage1-ldflags was given.
8311if test "${with_stage1_ldflags+set}" = set; then :
8312 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8313 stage1_ldflags=
00020c16 8314 else
0b21f5d3 8315 stage1_ldflags=$withval
00020c16
ILT
8316 fi
8317else
0b21f5d3
EB
8318 stage1_ldflags=
8319 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8320 # if supported. But if the user explicitly specified the libraries to use,
8321 # trust that they are doing what they want.
aac9103b
TT
8322 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8323 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8324 stage1_ldflags="-static-libstdc++ -static-libgcc"
8325 fi
5213506e
RW
8326fi
8327
00020c16
ILT
8328
8329
5dc85f7e 8330# Libraries to use for stage2 and later builds.
00020c16 8331
5213506e
RW
8332# Check whether --with-boot-libs was given.
8333if test "${with_boot_libs+set}" = set; then :
8334 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8335 poststage1_libs=
8336 else
8337 poststage1_libs=$withval
8338 fi
8339else
5dc85f7e 8340 poststage1_libs=
5213506e
RW
8341fi
8342
00020c16
ILT
8343
8344
ed2eaa9f
ILT
8345# Linker flags to use for stage2 and later builds.
8346
8347# Check whether --with-boot-ldflags was given.
8348if test "${with_boot_ldflags+set}" = set; then :
8349 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8350 poststage1_ldflags=
8351 else
8352 poststage1_ldflags=$withval
8353 fi
8354else
8355 poststage1_ldflags=
bec93d73
ILT
8356 # In stages 2 and 3, default to linking libstdc++ and libgcc
8357 # statically. But if the user explicitly specified the libraries to
8358 # use, trust that they are doing what they want.
8359 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8360 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8361 fi
8362fi
8363
8364
8365
e357a5e0 8366# GCC GRAPHITE dependency isl.
4a9bb2aa 8367# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8368
8369
33ad93b9
RG
8370# Check whether --with-isl was given.
8371if test "${with_isl+set}" = set; then :
8372 withval=$with_isl;
5213506e 8373fi
f8bf9252 8374
f8bf9252 8375
eae1a5d4 8376# Treat --without-isl as a request to disable
625afa23 8377# GRAPHITE support and skip all following checks.
eae1a5d4 8378if test "x$with_isl" != "xno"; then
e357a5e0 8379 # Check for isl
625afa23
RG
8380
8381
33ad93b9
RG
8382# Check whether --with-isl-include was given.
8383if test "${with_isl_include+set}" = set; then :
8384 withval=$with_isl_include;
5213506e
RW
8385fi
8386
f8bf9252 8387
33ad93b9
RG
8388# Check whether --with-isl-lib was given.
8389if test "${with_isl_lib+set}" = set; then :
8390 withval=$with_isl_lib;
5213506e 8391fi
f8bf9252 8392
f8bf9252 8393
33ad93b9
RG
8394 # Check whether --enable-isl-version-check was given.
8395if test "${enable_isl_version_check+set}" = set; then :
8396 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8397else
8398 ENABLE_ISL_CHECK=yes
7d32a440
SP
8399fi
8400
8401
33ad93b9
RG
8402 # Initialize isllibs and islinc.
8403 case $with_isl in
8404 no)
8405 isllibs=
8406 islinc=
8407 ;;
8408 "" | yes)
8409 ;;
8410 *)
8411 isllibs="-L$with_isl/lib"
8412 islinc="-I$with_isl/include"
8413 ;;
8414 esac
8415 if test "x${with_isl_include}" != x ; then
8416 islinc="-I$with_isl_include"
8417 fi
8418 if test "x${with_isl_lib}" != x; then
8419 isllibs="-L$with_isl_lib"
8420 fi
8421 if test "x${islinc}" = x && test "x${isllibs}" = x \
8422 && test -d ${srcdir}/isl; then
8423 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8424 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8425 ENABLE_ISL_CHECK=no
560d18d3
AK
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8427$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8428 fi
7d32a440 8429
eae1a5d4
RG
8430 isllibs="${isllibs} -lisl"
8431
7d32a440 8432
7d32a440 8433
9847828b
RB
8434 if test "${ENABLE_ISL_CHECK}" = yes ; then
8435 _isl_saved_CFLAGS=$CFLAGS
8436 _isl_saved_LDFLAGS=$LDFLAGS
8437 _isl_saved_LIBS=$LIBS
8438
8439 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8440 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8441 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8442
f877b3ad
RB
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8444$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8446/* end confdefs.h. */
f877b3ad 8447#include <isl/schedule.h>
622dbadf
BC
8448int
8449main ()
8450{
f877b3ad 8451isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8452 ;
8453 return 0;
8454}
8455_ACEOF
8456if ac_fn_c_try_link "$LINENO"; then :
9847828b 8457 gcc_cv_isl=yes
622dbadf
BC
8458else
8459 gcc_cv_isl=no
8460fi
8461rm -f core conftest.err conftest.$ac_objext \
8462 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8464$as_echo "$gcc_cv_isl" >&6; }
8465
560d18d3 8466 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8468$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8469 fi
8470
9847828b
RB
8471 CFLAGS=$_isl_saved_CFLAGS
8472 LDFLAGS=$_isl_saved_LDFLAGS
8473 LIBS=$_isl_saved_LIBS
8474 fi
8475
8476
f8bf9252 8477
f8bf9252 8478
33ad93b9
RG
8479
8480
33ad93b9
RG
8481 if test "x${with_isl}" = xno; then
8482 graphite_requested=no
8483 elif test "x${with_isl}" != x \
8484 || test "x${with_isl_include}" != x \
8485 || test "x${with_isl_lib}" != x ; then
8486 graphite_requested=yes
8487 else
8488 graphite_requested=no
7d32a440 8489 fi
d789184e 8490
d789184e
SP
8491
8492
33ad93b9
RG
8493 if test "${gcc_cv_isl}" = no ; then
8494 isllibs=
8495 islinc=
8496 fi
8497
8498 if test "${graphite_requested}" = yes \
8499 && test "x${isllibs}" = x \
8500 && test "x${islinc}" = x ; then
f8bf9252 8501
22e05272 8502 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8503 fi
f8bf9252 8504
d32ef397 8505
d32ef397
AS
8506fi
8507
e357a5e0 8508# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8509if test "x$with_isl" = xno ||
625afa23 8510 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8511 noconfigdirs="$noconfigdirs isl"
625afa23 8512 islinc=
32d024bf
RG
8513fi
8514
625afa23
RG
8515
8516
8517
d7f09764
DN
8518# Check for LTO support.
8519# Check whether --enable-lto was given.
8520if test "${enable_lto+set}" = set; then :
8521 enableval=$enable_lto; enable_lto=$enableval
8522else
8523 enable_lto=yes; default_enable_lto=yes
8524fi
8525
8526
7413962d 8527
9a02962b
DK
8528
8529
8530target_elf=no
8531case $target in
8532 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8533 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8534 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8535 nvptx-*-none)
9a02962b
DK
8536 target_elf=no
8537 ;;
8538 *)
8539 target_elf=yes
8540 ;;
8541esac
8542
8543if test $target_elf = yes; then :
48215350
DK
8544 # ELF platforms build the lto-plugin always.
8545 build_lto_plugin=yes
9a02962b 8546
9a02962b
DK
8547else
8548 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8549 case $target in
deeba76a 8550 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8551 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8552 *) enable_lto=no ;;
8553 esac
9a02962b 8554 else
db50fe7d
IS
8555 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8556 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8557 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8558 # warn during gcc/ subconfigure; unless you're bootstrapping with
8559 # -flto it won't be needed until after installation anyway.
8560 case $target in
9e530bcd 8561 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8562 *) if test x"$enable_lto" = x"yes"; then
22e05272 8563 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8564 fi
8565 ;;
8566 esac
8567 fi
1cd0b716 8568 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8569 # Build it unless LTO was explicitly disabled.
1cd0b716 8570 case $target in
48215350 8571 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8572 *) ;;
8573 esac
48215350 8574
9a02962b
DK
8575fi
8576
d7f09764 8577
45b3824d
TS
8578# Check whether --enable-linker-plugin-configure-flags was given.
8579if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8580 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8581else
8582 extra_linker_plugin_configure_flags=
8583fi
8584
8585
8586# Check whether --enable-linker-plugin-flags was given.
8587if test "${enable_linker_plugin_flags+set}" = set; then :
8588 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8589else
8590 extra_linker_plugin_flags=
8591fi
8592
8593
8594
cdfee50a
NS
8595# Enable --enable-host-shared.
8596# Checked early to determine whether jit is an 'all' language
8597# Check whether --enable-host-shared was given.
8598if test "${enable_host_shared+set}" = set; then :
8599 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8600 case $host in
a1d2b162
IS
8601 x86_64-*-darwin* | aarch64-*-darwin*)
8602 if test x$host_shared != xyes ; then
8603 # PIC is the default, and actually cannot be switched off.
8604 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8605 host_shared=yes
8606 fi ;;
8607 *) ;;
8608 esac
cdfee50a 8609else
1edfc8f2 8610 case $host in
a1d2b162
IS
8611 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8612 *) host_shared=no ;;
8613 esac
cdfee50a
NS
8614fi
8615
8616
f8bf9252 8617
05048fc2
IS
8618
8619# If we are building PIC/PIE host executables, and we are building dependent
8620# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8621# code.
8622host_libs_picflag=
8623if test "$host_shared" = "yes";then
8624host_libs_picflag='--with-pic'
8625fi
8626
8627
0823efed 8628# By default, C and C++ are the only stage 1 languages.
e1888513 8629stage1_languages=,c,
2805b53a 8630
00020c16 8631# Target libraries that we bootstrap.
ad1e5170 8632bootstrap_target_libs=,target-libgcc,
00020c16 8633
55ffb5ed
NN
8634# Figure out what language subdirectories are present.
8635# Look if the user specified --enable-languages="..."; if not, use
8636# the environment variable $LANGUAGES if defined. $LANGUAGES might
8637# go away some day.
8638# NB: embedded tabs in this IF block -- do not untabify
8639if test -d ${srcdir}/gcc; then
8640 if test x"${enable_languages+set}" != xset; then
8641 if test x"${LANGUAGES+set}" = xset; then
8642 enable_languages="${LANGUAGES}"
6b1786aa 8643 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8644 else
cdfee50a 8645 enable_languages=default
55ffb5ed
NN
8646 fi
8647 else
8648 if test x"${enable_languages}" = x ||
8649 test x"${enable_languages}" = xyes;
8650 then
6b1786aa 8651 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8652 exit 1
8653 fi
8654 fi
8655 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8656
7f26dfa3
FXC
8657 # 'f95' is the old name for the 'fortran' language. We issue a warning
8658 # and make the substitution.
8659 case ,${enable_languages}, in
8660 *,f95,*)
6b1786aa 8661 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8662 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8663 ;;
8664 esac
8665
0823efed
DN
8666 # If bootstrapping, C++ must be enabled.
8667 case ",$enable_languages,:$enable_bootstrap" in
8668 *,c++,*:*) ;;
8669 *:yes)
ff3ac0f4
ILT
8670 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8671 enable_languages="${enable_languages},c++"
8672 else
22e05272 8673 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8674 fi
8675 ;;
8676 esac
8677
55ffb5ed
NN
8678 # First scan to see if an enabled language requires some other language.
8679 # We assume that a given config-lang.in will list all the language
8680 # front ends it requires, even if some are required indirectly.
8681 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8682 case ${lang_frag} in
8683 ..) ;;
8684 # The odd quoting in the next line works around
8685 # an apparent bug in bash 1.12 on linux.
8686 ${srcdir}/gcc/[*]/config-lang.in) ;;
8687 *)
69ecd18f
ILT
8688 # From the config-lang.in, get $language, $lang_requires, and
8689 # $lang_requires_boot_languages.
55ffb5ed
NN
8690 language=
8691 lang_requires=
69ecd18f 8692 lang_requires_boot_languages=
d4360477
NS
8693 # set srcdir during sourcing lang_frag to the gcc dir.
8694 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8695 # polutes this shell
8696 saved_srcdir=${srcdir}
8697 srcdir=${srcdir}/gcc . ${lang_frag}
8698 srcdir=${saved_srcdir}
69ecd18f 8699 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8700 case ,${enable_languages}, in
8701 *,$other,*) ;;
cdfee50a 8702 *,default,*) ;;
55ffb5ed
NN
8703 *,all,*) ;;
8704 *,$language,*)
8705 echo " \`$other' language required by \`$language'; enabling" 1>&2
8706 enable_languages="${enable_languages},${other}"
8707 ;;
8708 esac
8709 done
69ecd18f
ILT
8710 for other in ${lang_requires_boot_languages} ; do
8711 if test "$other" != "c"; then
8712 case ,${enable_stage1_languages}, in
8713 *,$other,*) ;;
cdfee50a 8714 *,default,*) ;;
69ecd18f
ILT
8715 *,all,*) ;;
8716 *)
8717 case ,${enable_languages}, in
8718 *,$language,*)
8719 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8720 enable_stage1_languages="$enable_stage1_languages,${other}"
8721 ;;
8722 esac
8723 ;;
8724 esac
8725 fi
8726 done
55ffb5ed
NN
8727 ;;
8728 esac
8729 done
8730
e1888513 8731 new_enable_languages=,c,
d7f09764
DN
8732
8733 # If LTO is enabled, add the LTO front end.
d7f09764 8734 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8735 case ,${enable_languages}, in
8736 *,lto,*) ;;
8737 *) enable_languages="${enable_languages},lto" ;;
8738 esac
1cd0b716 8739 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8740 configdirs="$configdirs lto-plugin"
d7f09764
DN
8741 fi
8742 fi
8743
426c1eb0
TS
8744 # If we're building an offloading compiler, add the LTO front end.
8745 if test x"$enable_as_accelerator_for" != x ; then
8746 case ,${enable_languages}, in
8747 *,lto,*) ;;
8748 *) enable_languages="${enable_languages},lto" ;;
8749 esac
8750 fi
8751
cdfee50a 8752 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8753 potential_languages=,c,
55ffb5ed 8754
4da3b0f8
ILT
8755 enabled_target_libs=
8756 disabled_target_libs=
8757
55ffb5ed
NN
8758 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8759 case ${lang_frag} in
8760 ..) ;;
8761 # The odd quoting in the next line works around
8762 # an apparent bug in bash 1.12 on linux.
8763 ${srcdir}/gcc/[*]/config-lang.in) ;;
8764 *)
1c710c3c 8765 # From the config-lang.in, get $language, $target_libs,
2805b53a 8766 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8767 language=
8768 target_libs=
8769 lang_dirs=
1546bb64 8770 subdir_requires=
e1888513
PB
8771 boot_language=no
8772 build_by_default=yes
d4360477
NS
8773 # set srcdir during sourcing. See above about save & restore
8774 saved_srcdir=${srcdir}
8775 srcdir=${srcdir}/gcc . ${lang_frag}
8776 srcdir=${saved_srcdir}
e1888513
PB
8777 if test x${language} = x; then
8778 echo "${lang_frag} doesn't set \$language." 1>&2
8779 exit 1
8780 fi
8781
78767fd9 8782 if test "$language" = "c++"; then
0823efed 8783 boot_language=yes
00020c16
ILT
8784 fi
8785
178f875a 8786 add_this_lang=no
cdfee50a
NS
8787 # C is always enabled, so no need to add it again
8788 if test "$language" != "c"; then
8789 case ,${enable_languages}, in
8790 *,${language},*)
8791 # Language was explicitly selected; include it
d4a10d0a 8792 add_this_lang=yes
cdfee50a
NS
8793 ;;
8794 *,all,*)
8795 # All languages are enabled
8796 add_this_lang=all
8797 ;;
8798 *,default,*)
8799 # 'default' was selected, select it if it is a default language
178f875a 8800 add_this_lang=${build_by_default}
cdfee50a
NS
8801 ;;
8802 esac
8803 fi
6de9cd9a 8804
1546bb64 8805 # Disable languages that need other directories if these aren't available.
95695ad3 8806 for i in $subdir_requires; do
b6348cb3 8807 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8808 case ${add_this_lang} in
8809 yes)
1546bb64 8810 # Specifically requested language; tell them.
22e05272 8811 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8812 ;;
cdfee50a
NS
8813 all)
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8815$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8816 add_this_lang=unsupported
8817 ;;
1546bb64
PB
8818 *)
8819 # Silently disable.
e1888513 8820 add_this_lang=unsupported
1546bb64
PB
8821 ;;
8822 esac
8823 done
8824
e1888513 8825 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8826 case ${add_this_lang}:${language}:${have_gnat} in
8827 yes:ada:no)
e1888513 8828 # Specifically requested language; tell them.
22e05272 8829 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8830 ;;
cdfee50a
NS
8831 all:ada:no)
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8833$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8834 add_this_lang=unsupported
8835 ;;
e1888513
PB
8836 *:ada:no)
8837 # Silently disable.
8838 add_this_lang=unsupported
8839 ;;
8840 esac
8841
5fee5ec3
IB
8842 # Disable D if no preexisting GDC is available.
8843 case ${add_this_lang}:${language}:${have_gdc} in
8844 yes:d:no)
8845 # Specifically requested language; tell them.
8846 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8847 ;;
8848 all:d:no)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8850$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8851 add_this_lang=unsupported
8852 ;;
8853 *:d:no)
8854 # Silently disable.
8855 add_this_lang=unsupported
8856 ;;
8857 esac
8858
cdfee50a 8859 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8860 # but not if building for Mingw. All code in Windows
8861 # is position independent code (PIC).
c83027f3
NB
8862 case $target in
8863 *mingw*) ;;
8864 *)
8865 case ${add_this_lang}:${language}:${host_shared} in
8866 yes:jit:no)
8867 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8868 as_fn_error $? "
cdfee50a
NS
8869Enabling language \"jit\" requires --enable-host-shared.
8870
8871--enable-host-shared typically slows the rest of the compiler down by
8872a few %, so you must explicitly enable it.
8873
8874If you want to build both the jit and the regular compiler, it is often
8875best to do this via two separate configure/builds, in separate
8876directories, to avoid imposing the performance cost of
8877--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8878 ;;
8879 all:jit:no)
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8881$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8882 add_this_lang=unsupported
8883 ;;
8884 *:jit:no)
8885 # Silently disable.
8886 add_this_lang=unsupported
8887 ;;
8888 esac
8889 ;;
8890 esac
cdfee50a
NS
8891
8892 # Disable a language that is unsupported by the target.
8893 case "${add_this_lang}: $unsupported_languages " in
8894 no:*) ;;
8895 unsupported:*) ;;
8896 *:*" $language "*)
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8898$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8899 add_this_lang=unsupported
4fab7234
HPN
8900 ;;
8901 esac
8902
6de9cd9a 8903 case $add_this_lang in
e1888513 8904 unsupported)
55ffb5ed 8905 # Remove language-dependent dirs.
4da3b0f8
ILT
8906 disabled_target_libs="$disabled_target_libs $target_libs"
8907 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8908 ;;
e1888513
PB
8909 no)
8910 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8911 disabled_target_libs="$disabled_target_libs $target_libs"
8912 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8913 potential_languages="${potential_languages}${language},"
8914 ;;
cdfee50a 8915 all|yes)
e1888513
PB
8916 new_enable_languages="${new_enable_languages}${language},"
8917 potential_languages="${potential_languages}${language},"
2805b53a 8918 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8919 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8920 case "${boot_language}:,$enable_stage1_languages," in
8921 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8922 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8923 case ",$stage1_languages," in
8924 *,$language,* | ,yes, | ,all,) ;;
8925 *) stage1_languages="${stage1_languages}${language}," ;;
8926 esac
00020c16 8927 # We need to bootstrap any supporting libraries.
5fee5ec3 8928 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
8929 ;;
8930 esac
8931 ;;
55ffb5ed
NN
8932 esac
8933 ;;
8934 esac
8935 done
8936
4da3b0f8
ILT
8937 # Add target libraries which are only needed for disabled languages
8938 # to noconfigdirs.
8939 if test -n "$disabled_target_libs"; then
8940 for dir in $disabled_target_libs; do
8941 case " $enabled_target_libs " in
8942 *" ${dir} "*) ;;
8943 *) noconfigdirs="$noconfigdirs $dir" ;;
8944 esac
8945 done
8946 fi
8947
5213506e
RW
8948 # Check whether --enable-stage1-languages was given.
8949if test "${enable_stage1_languages+set}" = set; then :
8950 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8951 ,no,|,,)
8952 # Set it to something that will have no effect in the loop below
8953 enable_stage1_languages=c ;;
8954 ,yes,)
8955 enable_stage1_languages=`echo $new_enable_languages | \
8956 sed -e "s/^,//" -e "s/,$//" ` ;;
8957 *,all,*)
8958 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8959 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8960 esac
8961
8962 # Add "good" languages from enable_stage1_languages to stage1_languages,
8963 # while "bad" languages go in missing_languages. Leave no duplicates.
8964 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8965 case $potential_languages in
8966 *,$i,*)
8967 case $stage1_languages in
8968 *,$i,*) ;;
8969 *) stage1_languages="$stage1_languages$i," ;;
8970 esac ;;
8971 *)
8972 case $missing_languages in
8973 *,$i,*) ;;
8974 *) missing_languages="$missing_languages$i," ;;
8975 esac ;;
8976 esac
8977 done
5213506e
RW
8978fi
8979
e1888513
PB
8980
8981 # Remove leading/trailing commas that were added for simplicity
8982 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8983 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8984 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8985 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8986
55ffb5ed 8987 if test "x$missing_languages" != x; then
22e05272 8988 as_fn_error $? "
0cf085e4 8989The following requested languages could not be built: ${missing_languages}
5213506e 8990Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8991 fi
55ffb5ed
NN
8992 if test "x$new_enable_languages" != "x$enable_languages"; then
8993 echo The following languages will be built: ${new_enable_languages}
e1888513 8994 enable_languages="$new_enable_languages"
55ffb5ed 8995 fi
e1888513 8996
1c710c3c 8997
b2eaac4a 8998 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8999fi
9000
27079765
AH
9001# Handle --disable-<component> generically.
9002for dir in $configdirs $build_configdirs $target_configdirs ; do
9003 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9004 varname=`echo $dirname | sed -e s/+/_/g`
9005 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9006 noconfigdirs="$noconfigdirs $dir"
9007 fi
9008done
9009
43c40f3e
RO
9010# Check for Boehm's garbage collector
9011# Check whether --enable-objc-gc was given.
9012if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9013 enableval=$enable_objc_gc;
9014fi
9015
9016
9017# Check whether --with-target-bdw-gc was given.
9018if test "${with_target_bdw_gc+set}" = set; then :
9019 withval=$with_target_bdw_gc;
9020fi
9021
9022
9023# Check whether --with-target-bdw-gc-include was given.
9024if test "${with_target_bdw_gc_include+set}" = set; then :
9025 withval=$with_target_bdw_gc_include;
9026fi
9027
9028
9029# Check whether --with-target-bdw-gc-lib was given.
9030if test "${with_target_bdw_gc_lib+set}" = set; then :
9031 withval=$with_target_bdw_gc_lib;
9032fi
9033
9034
9035case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9037$as_echo_n "checking for bdw garbage collector... " >&6; }
9038 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9040$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9041 else
9042 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9043 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9044 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9045 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9046 else
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9048$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9049 fi
9050 fi
43c40f3e
RO
9051esac
9052
e4cba494 9053# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 9054case ,${enable_languages}, in
1007a55c 9055 *,c++,*)
5e9d6aa4 9056 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9057 case "${noconfigdirs}" in
9058 *target-libstdc++-v3*)
5e9d6aa4 9059 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9060 ;;
9061 *) ;;
9062 esac
9063 ;;
99776ebd 9064 *)
e4cba494 9065 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9066 ;;
9067esac
9068
dc614a83
AB
9069# If gcc/ is not in the source tree then we'll not be building a
9070# target compiler, assume in that case we don't want to build any
9071# target libraries or tools.
9072#
9073# This was added primarily for the benefit for binutils-gdb who reuse
9074# this configure script, but don't always have target tools available.
9075if test ! -d ${srcdir}/gcc; then
9076 skipdirs="${skipdirs} ${target_configdirs}"
9077fi
9078
ee6a22df
L
9079# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9080# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9081# If we have the source for $noconfigdirs entries, add them to $notsupp.
9082
9083notsupp=""
9084for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9085 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9086 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9087 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9088 if test -r $srcdir/$dirname/configure ; then
9089 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9090 true
9091 else
9092 notsupp="$notsupp $dir"
9093 fi
9094 fi
9095 fi
ee6a22df
L
9096 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9097 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9098 if test -r $srcdir/$dirname/configure ; then
9099 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9100 true
9101 else
9102 notsupp="$notsupp $dir"
9103 fi
9104 fi
9105 fi
55ffb5ed
NN
9106 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9107 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9108 if test -r $srcdir/$dirname/configure ; then
9109 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9110 true
9111 else
9112 notsupp="$notsupp $dir"
9113 fi
9114 fi
9115 fi
9116done
9117
55ffb5ed
NN
9118# Quietly strip out all directories which aren't configurable in this tree.
9119# This relies on all configurable subdirectories being autoconfiscated, which
9120# is now the case.
23f6b2f9
PB
9121build_configdirs_all="$build_configdirs"
9122build_configdirs=
9123for i in ${build_configdirs_all} ; do
1c710c3c 9124 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9125 if test -f ${srcdir}/$j/configure ; then
9126 build_configdirs="${build_configdirs} $i"
9127 fi
9128done
9129
55ffb5ed
NN
9130configdirs_all="$configdirs"
9131configdirs=
9132for i in ${configdirs_all} ; do
9133 if test -f ${srcdir}/$i/configure ; then
9134 configdirs="${configdirs} $i"
9135 fi
9136done
23f6b2f9 9137
55ffb5ed
NN
9138target_configdirs_all="$target_configdirs"
9139target_configdirs=
9140for i in ${target_configdirs_all} ; do
1c710c3c 9141 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9142 if test -f ${srcdir}/$j/configure ; then
9143 target_configdirs="${target_configdirs} $i"
9144 fi
9145done
9146
45b3824d
TS
9147# libiberty-linker-plugin is special: it doesn't have its own source directory,
9148# so we have to add it after the preceding checks.
9149if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9150then
9151 case " $configdirs " in
9152 *" libiberty "*)
9153 # If we can build libiberty, we can also build libiberty-linker-plugin.
9154 configdirs="$configdirs libiberty-linker-plugin"
9155 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9156 --with-libiberty=../libiberty-linker-plugin";;
9157 *)
22e05272 9158 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9159 esac
9160fi
9161
fca38047
TS
9162# Sometimes we have special requirements for the host libiberty.
9163extra_host_libiberty_configure_flags=
9164case " $configdirs " in
15368960 9165 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9166 # When these are to be built as shared libraries, the same applies to
9167 # libiberty.
9168 extra_host_libiberty_configure_flags=--enable-shared
9169 ;;
04bb15e4
TV
9170esac
9171
9172
9173# Sometimes we have special requirements for the host zlib.
9174extra_host_zlib_configure_flags=
9175case " $configdirs " in
1c01ebf6
L
9176 *" bfd "*)
9177 # When bfd is to be built as a shared library, the same applies to
9178 # zlib.
9179 if test "$enable_shared" = "yes"; then
9180 extra_host_zlib_configure_flags=--enable-host-shared
9181 fi
9182 ;;
fca38047
TS
9183esac
9184
9185
55ffb5ed
NN
9186# Produce a warning message for the subdirs we can't configure.
9187# This isn't especially interesting in the Cygnus tree, but in the individual
9188# FSF releases, it's important to let people know when their machine isn't
9189# supported by the one or two programs in a package.
9190
9191if test -n "${notsupp}" && test -z "${norecursion}" ; then
9192 # If $appdirs is non-empty, at least one of those directories must still
9193 # be configured, or we error out. (E.g., if the gas release supports a
9194 # specified target in some subdirs but not the gas subdir, we shouldn't
9195 # pretend that all is well.)
9196 if test -n "$appdirs" ; then
9197 for dir in $appdirs ; do
9198 if test -r $dir/Makefile.in ; then
9199 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9200 appdirs=""
9201 break
9202 fi
23f6b2f9 9203 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9204 appdirs=""
9205 break
9206 fi
9207 fi
9208 done
9209 if test -n "$appdirs" ; then
9210 echo "*** This configuration is not supported by this package." 1>&2
9211 exit 1
9212 fi
9213 fi
9214 # Okay, some application will build, or we don't care to check. Still
9215 # notify of subdirs not getting built.
9216 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9217 echo " ${notsupp}" 1>&2
9218 echo " (Any other directories should still work fine.)" 1>&2
9219fi
9220
9221case "$host" in
9222 *msdosdjgpp*)
9223 enable_gdbtk=no ;;
9224esac
9225
c3a86da9
DJ
9226# To find our prefix, in gcc_cv_tool_prefix.
9227
9228# The user is always right.
9229if test "${PATH_SEPARATOR+set}" != set; then
9230 echo "#! /bin/sh" >conf$$.sh
9231 echo "exit 0" >>conf$$.sh
9232 chmod +x conf$$.sh
9233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9234 PATH_SEPARATOR=';'
9235 else
9236 PATH_SEPARATOR=:
9237 fi
9238 rm -f conf$$.sh
9239fi
9240
9241
3c36aa6b
JJ
9242 get_gcc_base_ver="cat"
9243
9244# Check whether --with-gcc-major-version-only was given.
9245if test "${with_gcc_major_version_only+set}" = set; then :
9246 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9247 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9248 fi
9249
9250fi
9251
9252
9253
9254
9255
c3a86da9
DJ
9256
9257if test "x$exec_prefix" = xNONE; then
9258 if test "x$prefix" = xNONE; then
9259 gcc_cv_tool_prefix=$ac_default_prefix
9260 else
9261 gcc_cv_tool_prefix=$prefix
9262 fi
9263else
9264 gcc_cv_tool_prefix=$exec_prefix
9265fi
9266
9267# If there is no compiler in the tree, use the PATH only. In any
9268# case, if there is no compiler in the tree nobody should use
9269# AS_FOR_TARGET and LD_FOR_TARGET.
9270if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9271 if test x$with_gcc_major_version_only = xyes ; then
9272 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9273 else
9274 gcc_version=`cat $srcdir/gcc/BASE-VER`
9275 fi
c3a86da9
DJ
9276 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9277 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9278 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9279 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9280 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9281 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9282else
9283 gcc_cv_tool_dirs=
9284fi
9285
9286if test x$build = x$target && test -n "$md_exec_prefix"; then
9287 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9288fi
9289
9290
9291
55ffb5ed
NN
9292copy_dirs=
9293
1c710c3c 9294
5213506e
RW
9295# Check whether --with-build-sysroot was given.
9296if test "${with_build_sysroot+set}" = set; then :
9297 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9298 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9299 fi
9300else
9301 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9302fi
526635cb
MM
9303
9304
c8aea42c 9305
5213506e
RW
9306
9307# Check whether --with-debug-prefix-map was given.
9308if test "${with_debug_prefix_map+set}" = set; then :
9309 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9310 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9311 for debug_map in $withval; do
9312 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9313 done
9314 fi
9315else
9316 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9317fi
9318
c8aea42c
PB
9319
9320
1c8bd6a3
PB
9321# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9322# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9323# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9324# We want to ensure that TARGET libraries (which we know are built with
9325# gcc) are built with "-O2 -g", so include those options when setting
9326# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9327if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9328 if test "x${is_cross_compiler}" = xyes; then
9329 CFLAGS_FOR_TARGET="-g -O2"
9330 else
9331 CFLAGS_FOR_TARGET=$CFLAGS
9332 case " $CFLAGS " in
9333 *" -O2 "*) ;;
9334 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9335 esac
9336 case " $CFLAGS " in
9337 *" -g "* | *" -g3 "*) ;;
9338 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9339 esac
9340 fi
1c8bd6a3
PB
9341fi
9342
9343
9344if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9345 if test "x${is_cross_compiler}" = xyes; then
9346 CXXFLAGS_FOR_TARGET="-g -O2"
9347 else
9348 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9349 case " $CXXFLAGS " in
9350 *" -O2 "*) ;;
9351 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9352 esac
9353 case " $CXXFLAGS " in
9354 *" -g "* | *" -g3 "*) ;;
9355 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9356 esac
9357 fi
1c8bd6a3
PB
9358fi
9359
9360
6f57bdf6
DK
9361
9362
55ffb5ed
NN
9363# Handle --with-headers=XXX. If the value is not "yes", the contents of
9364# the named directory are copied to $(tooldir)/sys-include.
9365if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9366 if test x${is_cross_compiler} = xno ; then
9367 echo 1>&2 '***' --with-headers is only supported when cross compiling
9368 exit 1
9369 fi
9370 if test x"${with_headers}" != xyes ; then
c3a86da9 9371 x=${gcc_cv_tool_prefix}
1c710c3c 9372 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9373 fi
9374fi
9375
9376# Handle --with-libs=XXX. If the value is not "yes", the contents of
9377# the name directories are copied to $(tooldir)/lib. Multiple directories
9378# are permitted.
9379if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9380 if test x${is_cross_compiler} = xno ; then
9381 echo 1>&2 '***' --with-libs is only supported when cross compiling
9382 exit 1
9383 fi
9384 if test x"${with_libs}" != xyes ; then
9385 # Copy the libraries in reverse order, so that files in the first named
9386 # library override files in subsequent libraries.
c3a86da9 9387 x=${gcc_cv_tool_prefix}
55ffb5ed 9388 for l in ${with_libs}; do
1c710c3c 9389 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9390 done
9391 fi
9392fi
9393
d7f09764 9394# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9395#
9396# This is done by determining whether or not the appropriate directory
9397# is available, and by checking whether or not specific configurations
9398# have requested that this magic not happen.
1c710c3c
DJ
9399#
9400# The command line options always override the explicit settings in
6b1786aa 9401# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9402#
1c710c3c 9403# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9404# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9405# --without-gnu-ld options for the configure script. Similarly, if
9406# the default is to use the included zlib and you don't want to do that,
9407# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9408
9409if test x${use_gnu_as} = x &&
9410 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9411 with_gnu_as=yes
9412 extra_host_args="$extra_host_args --with-gnu-as"
9413fi
9414
9415if test x${use_gnu_ld} = x &&
5afab7ad 9416 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9417 with_gnu_ld=yes
9418 extra_host_args="$extra_host_args --with-gnu-ld"
9419fi
9420
d7f09764
DN
9421if test x${use_included_zlib} = x &&
9422 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9423 :
9424else
9425 with_system_zlib=yes
9426 extra_host_args="$extra_host_args --with-system-zlib"
9427fi
9428
e8b05380
PB
9429# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9430# can detect this case.
9431
9432if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9433 with_newlib=yes
9434 extra_host_args="$extra_host_args --with-newlib"
9435fi
9436
55ffb5ed
NN
9437# Handle ${copy_dirs}
9438set fnord ${copy_dirs}
9439shift
9440while test $# != 0 ; do
9441 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9442 :
9443 else
9444 echo Copying $1 to $2
9445
9446 # Use the install script to create the directory and all required
9447 # parent directories.
9448 if test -d $2 ; then
9449 :
9450 else
9451 echo >config.temp
9452 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9453 fi
9454
9455 # Copy the directory, assuming we have tar.
9456 # FIXME: Should we use B in the second tar? Not all systems support it.
9457 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9458
9459 # It is the responsibility of the user to correctly adjust all
9460 # symlinks. If somebody can figure out how to handle them correctly
9461 # here, feel free to add the code.
9462
9463 echo $1 > $2/COPIED
9464 fi
9465 shift; shift
9466done
9467
e8b05380
PB
9468# Determine a target-dependent exec_prefix that the installed
9469# gcc will search in. Keep this list sorted by triplet, with
9470# the *-*-osname triplets last.
9471md_exec_prefix=
9472case "${target}" in
30b74385 9473 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9474 md_exec_prefix=/dev/env/DJDIR/bin
9475 ;;
e8b05380 9476 *-*-hpux* | \
e8b05380 9477 *-*-nto-qnx* | \
6de66370 9478 *-*-solaris2*)
e8b05380
PB
9479 md_exec_prefix=/usr/ccs/bin
9480 ;;
9481esac
9482
671aa708
NN
9483extra_arflags_for_target=
9484extra_nmflags_for_target=
9485extra_ranlibflags_for_target=
9486target_makefile_frag=/dev/null
9487case "${target}" in
58e24147
AM
9488 spu-*-*)
9489 target_makefile_frag="config/mt-spu"
9490 ;;
d896cc4d 9491 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9492 target_makefile_frag="config/mt-sde"
9493 ;;
1ec3b87b
RS
9494 mipsisa*-*-elfoabi*)
9495 target_makefile_frag="config/mt-mips-elfoabi"
9496 ;;
08d0963a
RS
9497 mips*-*-*linux* | mips*-*-gnu*)
9498 target_makefile_frag="config/mt-mips-gnu"
9499 ;;
707f1839
SL
9500 nios2-*-elf*)
9501 target_makefile_frag="config/mt-nios2-elf"
9502 ;;
76052545
EB
9503 *-*-linux-android*)
9504 target_makefile_frag="config/mt-android"
9505 ;;
416ac4d4 9506 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9507 target_makefile_frag="config/mt-gnu"
671aa708
NN
9508 ;;
9509 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9510 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9511 # commands to handle both 32-bit and 64-bit objects. These flags are
9512 # harmless if we're using GNU nm or ar.
9513 extra_arflags_for_target=" -X32_64"
9514 extra_nmflags_for_target=" -B -X32_64"
9515 ;;
671aa708
NN
9516esac
9517
9518alphaieee_frag=/dev/null
9519case $target in
9520 alpha*-*-*)
9521 # This just makes sure to use the -mieee option to build target libs.
9522 # This should probably be set individually by each library.
9523 alphaieee_frag="config/mt-alphaieee"
9524 ;;
9525esac
9526
9527# If --enable-target-optspace always use -Os instead of -O2 to build
9528# the target libraries, similarly if it is not specified, use -Os
9529# on selected platforms.
9530ospace_frag=/dev/null
9531case "${enable_target_optspace}:${target}" in
9532 yes:*)
9533 ospace_frag="config/mt-ospace"
9534 ;;
9535 :d30v-*)
9536 ospace_frag="config/mt-d30v"
9537 ;;
d9063947 9538 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9539 ospace_frag="config/mt-ospace"
9540 ;;
9541 no:* | :*)
9542 ;;
9543 *)
9544 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9545 ;;
9546esac
9547
671aa708
NN
9548# Some systems (e.g., one of the i386-aix systems the gas testers are
9549# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9550tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9551build_tooldir=${tooldir}
9552
671aa708
NN
9553# Create a .gdbinit file which runs the one in srcdir
9554# and tells GDB to look there for source files.
9555
9556if test -r ${srcdir}/.gdbinit ; then
9557 case ${srcdir} in
9558 .) ;;
9559 *) cat > ./.gdbinit <<EOF
9560# ${NO_EDIT}
9561dir ${srcdir}
9562dir .
9563source ${srcdir}/.gdbinit
9564EOF
9565 ;;
9566 esac
9567fi
9568
671aa708
NN
9569# Make sure that the compiler is able to generate an executable. If it
9570# can't, we are probably in trouble. We don't care whether we can run the
9571# executable--we might be using a cross compiler--we only care whether it
9572# can be created. At this point the main configure script has set CC.
9573we_are_ok=no
9574echo "int main () { return 0; }" > conftest.c
9575${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9576if test $? = 0 ; then
9577 if test -s conftest || test -s conftest.exe ; then
9578 we_are_ok=yes
9579 fi
1c710c3c 9580fi
671aa708
NN
9581case $we_are_ok in
9582 no)
9583 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9584 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9585 rm -f conftest*
9586 exit 1
9587 ;;
9588esac
9589rm -f conftest*
9590
d89f0ad6 9591# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9592case "${host}" in
9593 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9594 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9595 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9596 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9597esac
9598
d89f0ad6
AL
9599# On systems where the dynamic library environment variable is PATH,
9600# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9601# built executables to PATH.
9602if test "$RPATH_ENVVAR" = PATH; then
9603 GCC_SHLIB_SUBDIR=/shlib
9604else
9605 GCC_SHLIB_SUBDIR=
9606fi
9607
beeda1d9
JJ
9608# Adjust the toplevel makefile according to whether bootstrap was selected.
9609case $enable_bootstrap in
9610 yes)
9611 bootstrap_suffix=bootstrap
9612 BUILD_CONFIG=bootstrap-debug
9613 ;;
9614 no)
9615 bootstrap_suffix=no-bootstrap
9616 BUILD_CONFIG=
9617 ;;
9618esac
9619
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9621$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9622
9623
9624# Check whether --with-build-config was given.
9625if test "${with_build_config+set}" = set; then :
9626 withval=$with_build_config; case $with_build_config in
9627 yes) with_build_config= ;;
9628 no) with_build_config= BUILD_CONFIG= ;;
9629 esac
9630fi
9631
9632
9633if test "x${with_build_config}" != x; then
9634 BUILD_CONFIG=$with_build_config
9635else
9636 case $BUILD_CONFIG in
9637 bootstrap-debug)
9638 if echo "int f (void) { return 0; }" > conftest.c &&
9639 ${CC} -c conftest.c &&
9640 mv conftest.o conftest.o.g0 &&
9641 ${CC} -c -g conftest.c &&
9642 mv conftest.o conftest.o.g &&
9643 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9644 :
9645 else
9646 BUILD_CONFIG=
9647 fi
9648 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9649 ;;
9650 esac
9651fi
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9653$as_echo "$BUILD_CONFIG" >&6; }
9654
9655
9656# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9658$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9659# Check whether --enable-vtable-verify was given.
9660if test "${enable_vtable_verify+set}" = set; then :
9661 enableval=$enable_vtable_verify; case "$enableval" in
9662 yes) enable_vtable_verify=yes ;;
9663 no) enable_vtable_verify=no ;;
9664 *) enable_vtable_verify=no;;
9665 esac
9666else
9667 enable_vtable_verify=no
9668fi
9669
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9671$as_echo "$enable_vtable_verify" >&6; }
9672
671aa708
NN
9673# Record target_configdirs and the configure arguments for target and
9674# build configuration in Makefile.
9675target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9676build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9677bootstrap_fixincludes=no
671aa708 9678
ad1e5170
JR
9679# If we are building libgomp, bootstrap it.
9680if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9681 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9682fi
9683
beeda1d9
JJ
9684# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9685# or bootstrap-ubsan, bootstrap it.
9686if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9687 case "$BUILD_CONFIG" in
170e618e 9688 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9689 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9690 bootstrap_fixincludes=yes
beeda1d9
JJ
9691 ;;
9692 esac
ac8701fe
L
9693fi
9694
beeda1d9
JJ
9695# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9696if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9697 test "$enable_vtable_verify" != no; then
2077db1b
CT
9698 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9699fi
9700
5fee5ec3
IB
9701# If we are building libatomic and the list of enabled languages includes the
9702# D frontend, bootstrap it.
9703if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9704 case ,${enable_languages}, in
9705 *,d,*)
9706 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9707 ;;
9708 esac
9709fi
9710
671aa708
NN
9711# Determine whether gdb needs tk/tcl or not.
9712# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9713# and in that case we want gdb to be built without tk. Ugh!
9714# In fact I believe gdb is the *only* package directly dependent on tk,
9715# so we should be able to put the 'maybe's in unconditionally and
9716# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9717# 100% sure that that's safe though.
e914a571 9718
b4f96efe 9719gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9720case "$enable_gdbtk" in
9721 no)
9722 GDB_TK="" ;;
e914a571
AC
9723 yes)
9724 GDB_TK="${gdb_tk}" ;;
671aa708 9725 *)
e914a571
AC
9726 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9727 # distro. Eventually someone will fix this and move Insight, nee
9728 # gdbtk to a separate directory.
9729 if test -d ${srcdir}/gdb/gdbtk ; then
9730 GDB_TK="${gdb_tk}"
9731 else
9732 GDB_TK=""
9733 fi
9734 ;;
671aa708 9735esac
ef9db8d5
DJ
9736CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9737INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9738
f9d09df0
TT
9739# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9740# else does, only include them if one of these is built. The Makefile
9741# provides the ordering, so it's enough here to add to the list.
9742case " ${configdirs} " in
9743 *\ gdb\ *)
9744 configdirs="${configdirs} gnulib gdbsupport"
9745 ;;
9746 *\ gdbserver\ *)
9747 configdirs="${configdirs} gnulib gdbsupport"
9748 ;;
f14c9bd4
MF
9749 *\ sim\ *)
9750 configdirs="${configdirs} gnulib"
9751 ;;
f9d09df0 9752esac
98e5be21 9753
60975492 9754# Strip out unwanted targets.
8b87bb96
NN
9755
9756# While at that, we remove Makefiles if we were started for recursive
9757# configuration, so that the top-level Makefile reconfigures them,
9758# like we used to do when configure itself was recursive.
8b87bb96 9759
3e54529c
RW
9760# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9761# but now we're fixing up the Makefile ourselves with the additional
9762# commands passed to AC_CONFIG_FILES. Use separate variables
9763# extrasub-{build,host,target} not because there is any reason to split
9764# the substitutions up that way, but only to remain below the limit of
9765# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9766
9767# Do not nest @if/@endif or @unless/@endunless pairs, because
9768# configure will not warn you at all.
8b87bb96 9769
79cd2b23
RW
9770case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9771 yes:yes:*\ gold\ *:*,c++,*) ;;
9772 yes:yes:*\ gold\ *:*)
22e05272 9773 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9774 ;;
9775esac
9776
3e54529c 9777extrasub_build=
23f6b2f9 9778for module in ${build_configdirs} ; do
5607edfd
PB
9779 if test -z "${no_recursion}" \
9780 && test -f ${build_subdir}/${module}/Makefile; then
9781 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9782 rm -f ${build_subdir}/${module}/Makefile
9783 fi
3e54529c 9784 extrasub_build="$extrasub_build
5607edfd
PB
9785/^@if build-$module\$/d
9786/^@endif build-$module\$/d
da34ca3f 9787/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9788/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9789/^@endif build-$module-$bootstrap_suffix\$/d
9790/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9791done
3e54529c 9792extrasub_host=
5607edfd 9793for module in ${configdirs} ; do
a6fbc1e2 9794 if test -z "${no_recursion}"; then
f063a9ed 9795 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9796 if test -f ${file}; then
9797 echo 1>&2 "*** removing ${file} to force reconfigure"
9798 rm -f ${file}
9799 fi
9800 done
5607edfd 9801 fi
9e1c8fc1
JJ
9802 case ${module},${bootstrap_fixincludes} in
9803 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9804 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9805 esac
3e54529c 9806 extrasub_host="$extrasub_host
5607edfd
PB
9807/^@if $module\$/d
9808/^@endif $module\$/d
da34ca3f 9809/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9810/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9811/^@endif $module-$host_bootstrap_suffix\$/d
9812/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9813done
3e54529c 9814extrasub_target=
5607edfd
PB
9815for module in ${target_configdirs} ; do
9816 if test -z "${no_recursion}" \
9817 && test -f ${target_subdir}/${module}/Makefile; then
9818 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9819 rm -f ${target_subdir}/${module}/Makefile
9820 fi
00020c16
ILT
9821
9822 # We only bootstrap target libraries listed in bootstrap_target_libs.
9823 case $bootstrap_target_libs in
9824 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9825 *) target_bootstrap_suffix=no-bootstrap ;;
9826 esac
9827
3e54529c 9828 extrasub_target="$extrasub_target
5607edfd
PB
9829/^@if target-$module\$/d
9830/^@endif target-$module\$/d
da34ca3f 9831/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9832/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9833/^@endif target-$module-$target_bootstrap_suffix\$/d
9834/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9835done
9836
3e54529c
RW
9837# Do the final fixup along with target modules.
9838extrasub_target="$extrasub_target
da34ca3f
AO
9839/^@if /,/^@endif /d
9840/^@unless /d
9841/^@endunless /d"
671aa708 9842
4a5e71f2
L
9843if test "$enable_pgo_build" != "no"; then
9844 extrasub_build="$extrasub_build
9845/^@if pgo-build\$/d
9846/^@endif pgo-build\$/d"
9847fi
9848
671aa708
NN
9849# Create the serialization dependencies. This uses a temporary file.
9850
5213506e
RW
9851# Check whether --enable-serial-configure was given.
9852if test "${enable_serial_configure+set}" = set; then :
9853 enableval=$enable_serial_configure;
9854fi
ade82b16
AO
9855
9856
bf1d3e81
NN
9857case ${enable_serial_configure} in
9858 yes)
9859 enable_serial_build_configure=yes
9860 enable_serial_host_configure=yes
9861 enable_serial_target_configure=yes
9862 ;;
9863esac
9864
671aa708
NN
9865# These force 'configure's to be done one at a time, to avoid problems
9866# with contention over a shared config.cache.
9867rm -f serdep.tmp
ade82b16 9868echo '# serdep.tmp' > serdep.tmp
671aa708 9869olditem=
bf1d3e81 9870test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9871for item in ${build_configdirs} ; do
9872 case ${olditem} in
9873 "") ;;
ade82b16 9874 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9875 esac
9876 olditem=${item}
9877done
9878olditem=
bf1d3e81 9879test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9880for item in ${configdirs} ; do
9881 case ${olditem} in
9882 "") ;;
ade82b16 9883 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9884 esac
9885 olditem=${item}
9886done
9887olditem=
bf1d3e81 9888test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9889for item in ${target_configdirs} ; do
9890 case ${olditem} in
9891 "") ;;
ade82b16 9892 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9893 esac
9894 olditem=${item}
9895done
9896serialization_dependencies=serdep.tmp
9897
9898
ade82b16 9899# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9900# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9901# might not want to pass down to subconfigures. The exception being
9902# --cache-file=/dev/null, which is used to turn off the use of cache
9903# files altogether, and which should be passed on to subconfigures.
9904# Also strip program-prefix, program-suffix, and program-transform-name,
9905# so that we can pass down a consistent program-transform-name.
1c710c3c 9906baseargs=
29a63921 9907tbaseargs=
1c710c3c
DJ
9908keep_next=no
9909skip_next=no
9910eval "set -- $ac_configure_args"
44bfc3ac
DJ
9911for ac_arg
9912do
1c710c3c
DJ
9913 if test X"$skip_next" = X"yes"; then
9914 skip_next=no
9915 continue
9916 fi
9917 if test X"$keep_next" = X"yes"; then
9918 case $ac_arg in
9919 *\'*)
9920 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9921 esac
9922 baseargs="$baseargs '$ac_arg'"
29a63921 9923 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9924 keep_next=no
9925 continue
9926 fi
9927
9928 # Handle separated arguments. Based on the logic generated by
9929 # autoconf 2.59.
9930 case $ac_arg in
9931 *=* | --config-cache | -C | -disable-* | --disable-* \
9932 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9933 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9934 | -with-* | --with-* | -without-* | --without-* | --x)
9935 separate_arg=no
9936 ;;
9937 -*)
9938 separate_arg=yes
9939 ;;
9940 *)
9941 separate_arg=no
9942 ;;
9943 esac
9944
29a63921
AO
9945 skip_targ=no
9946 case $ac_arg in
9947
9948 --with-* | --without-*)
9949 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9950
9951 case $libopt in
9952 *[-_]include)
9953 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9954 ;;
9955 *[-_]lib)
9956 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9957 ;;
9958 *)
9959 lib=$libopt
9960 ;;
9961 esac
9962
9963
9964 case $lib in
4a9bb2aa 9965 mpc | mpfr | gmp | isl)
29a63921
AO
9966 # If we're processing --with-$lib, --with-$lib-include or
9967 # --with-$lib-lib, for one of the libs above, and target is
9968 # different from host, don't pass the current argument to any
9969 # target library's configure.
9970 if test x$is_cross_compiler = xyes; then
9971 skip_targ=yes
9972 fi
9973 ;;
9974 esac
9975 ;;
9976 esac
9977
1c710c3c 9978 case "$ac_arg" in
f1a036e4
NC
9979 --cache-file=/dev/null | \
9980 -cache-file=/dev/null )
9981 # Handled here to avoid the test to skip args below.
9982 baseargs="$baseargs '$ac_arg'"
29a63921 9983 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9984 # Assert: $separate_arg should always be no.
9985 keep_next=$separate_arg
9986 ;;
1c710c3c
DJ
9987 --no*)
9988 continue
9989 ;;
9990 --c* | \
9991 --sr* | \
9992 --ho* | \
9993 --bu* | \
9994 --t* | \
9995 --program-* | \
9996 -cache_file* | \
9997 -srcdir* | \
9998 -host* | \
9999 -build* | \
10000 -target* | \
10001 -program-prefix* | \
10002 -program-suffix* | \
10003 -program-transform-name* )
10004 skip_next=$separate_arg
10005 continue
10006 ;;
10007 -*)
10008 # An option. Add it.
10009 case $ac_arg in
10010 *\'*)
10011 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10012 esac
10013 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10014 if test X"$skip_targ" = Xno; then
10015 tbaseargs="$tbaseargs '$ac_arg'"
10016 fi
1c710c3c
DJ
10017 keep_next=$separate_arg
10018 ;;
10019 *)
10020 # Either a variable assignment, or a nonopt (triplet). Don't
10021 # pass it down; let the Makefile handle this.
10022 continue
10023 ;;
10024 esac
10025done
10026# Remove the initial space we just introduced and, as these will be
10027# expanded by make, quote '$'.
10028baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10029
43bb47c2
DJ
10030# Add in --program-transform-name, after --program-prefix and
10031# --program-suffix have been applied to it. Autoconf has already
10032# doubled dollar signs and backslashes in program_transform_name; we want
10033# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10034# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10035# Also, because we want to override the logic in subdir configure scripts to
10036# choose program_transform_name, replace any s,x,x, with s,y,y,.
10037sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10038${program_transform_name}
10039EOF_SED
10040gcc_transform_name=`cat conftestsed.out`
10041rm -f conftestsed.out
10042baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10043tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10044if test "$silent" = yes; then
10045 baseargs="$baseargs --silent"
29a63921 10046 tbaseargs="$tbaseargs --silent"
d9acb717 10047fi
0115d4a3 10048baseargs="$baseargs --disable-option-checking"
29a63921 10049tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10050
ffedf511
RW
10051# Record and document user additions to sub configure arguments.
10052
10053
10054
10055
671aa708
NN
10056# For the build-side libraries, we just need to pretend we're native,
10057# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10058# desired. We can't even use the same cache file for all build-side
10059# libraries, as they're compiled differently; some with C, some with
10060# C++ or with different feature-enabling options.
10061build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10062
10063# For host modules, accept cache file option, or specification as blank.
10064case "${cache_file}" in
10065"") # empty
10066 cache_file_option="" ;;
10067/* | [A-Za-z]:[\\/]* ) # absolute path
10068 cache_file_option="--cache-file=${cache_file}" ;;
10069*) # relative path
10070 cache_file_option="--cache-file=../${cache_file}" ;;
10071esac
10072
09438bde
NN
10073# Host dirs don't like to share a cache file either, horribly enough.
10074# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10075host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10076
29a63921 10077target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10078
10079# Passing a --with-cross-host argument lets the target libraries know
10080# whether they are being built with a cross-compiler or being built
10081# native. However, it would be better to use other mechanisms to make the
10082# sorts of decisions they want to make on this basis. Please consider
10083# this option to be deprecated. FIXME.
10084if test x${is_cross_compiler} = xyes ; then
1c710c3c 10085 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10086fi
10087
79e0604d
FXC
10088# Special user-friendly check for native x86_64-linux build, if
10089# multilib is not explicitly enabled.
10090case "$target:$have_compiler:$host:$target:$enable_multilib" in
10091 x86_64-*linux*:yes:$build:$build:)
e640447c 10092 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10093 dev64=no
10094 echo "int main () { return 0; }" > conftest.c
10095 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10096 if test $? = 0 ; then
10097 if test -s conftest || test -s conftest.exe ; then
10098 dev64=yes
10099 fi
10100 fi
10101 rm -f conftest*
10102 if test x${dev64} != xyes ; then
22e05272 10103 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
10104 fi
10105 ;;
10106esac
10107
dc683a3f
RW
10108# Default to --enable-multilib.
10109if test x${enable_multilib} = x ; then
671aa708 10110 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10111fi
671aa708
NN
10112
10113# Pass --with-newlib if appropriate. Note that target_configdirs has
10114# changed from the earlier setting of with_newlib.
10115if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10116 target_configargs="--with-newlib ${target_configargs}"
10117fi
10118
6b9eb62c
NN
10119# Different target subdirs use different values of certain variables
10120# (notably CXX). Worse, multilibs use *lots* of different values.
10121# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10122# it doesn't automatically accept command-line overrides of them.
10123# This means it's not safe for target subdirs to share a cache file,
10124# which is disgusting, but there you have it. Hopefully this can be
10125# fixed in future. It's still worthwhile to use a cache file for each
10126# directory. I think.
10127
bebcd931
MS
10128# Pass the appropriate --build, --host, --target and --cache-file arguments.
10129# We need to pass --target, as newer autoconf's requires consistency
10130# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10131target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10132
671aa708
NN
10133FLAGS_FOR_TARGET=
10134case " $target_configdirs " in
10135 *" newlib "*)
10136 case " $target_configargs " in
10137 *" --with-newlib "*)
10138 case "$target" in
5d571eaa 10139 *-cygwin*)
443e6238 10140 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10141 ;;
671aa708
NN
10142 esac
10143
10144 # If we're not building GCC, don't discard standard headers.
10145 if test -d ${srcdir}/gcc; then
10146 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10147
10148 if test "${build}" != "${host}"; then
10149 # On Canadian crosses, CC_FOR_TARGET will have already been set
10150 # by `configure', so we won't have an opportunity to add -Bgcc/
10151 # to it. This is right: we don't want to search that directory
10152 # for binaries, but we want the header files in there, so add
10153 # them explicitly.
0463992b 10154 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10155
10156 # Someone might think of using the pre-installed headers on
10157 # Canadian crosses, in case the installed compiler is not fully
10158 # compatible with the compiler being built. In this case, it
10159 # would be better to flag an error than risking having
10160 # incompatible object files being constructed. We can't
10161 # guarantee that an error will be flagged, but let's hope the
10162 # compiler will do it, when presented with incompatible header
10163 # files.
10164 fi
10165 fi
10166
10167 case "${target}-${is_cross_compiler}" in
f2a0e225 10168 i[3456789]86-*-linux*-no)
671aa708
NN
10169 # Here host == target, so we don't need to build gcc,
10170 # so we don't want to discard standard headers.
10171 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10172 ;;
10173 *)
10174 # If we're building newlib, use its generic headers last, but search
10175 # for any libc-related directories first (so make it the last -B
10176 # switch).
10177 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
10178
10179 # If we're building libgloss, find the startup file, simulator library
10180 # and linker script.
10181 case " $target_configdirs " in
10182 *" libgloss "*)
10183 # Look for startup file, simulator library and maybe linker script.
10184 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10185 # Look for libnosys.a in case the target needs it.
10186 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10187 # Most targets have the linker script in the source directory.
10188 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10189 ;;
10190 esac
671aa708
NN
10191 ;;
10192 esac
10193 ;;
10194 esac
10195 ;;
10196esac
5d571eaa 10197
b91f0a41 10198case "$target" in
5d571eaa
OS
10199 x86_64-*mingw* | *-w64-mingw*)
10200 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10201 # however, use a symlink named 'mingw' in ${prefix} .
10202 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10203 ;;
10204 *-mingw*)
10205 # MinGW can't be handled as Cygwin above since it does not use newlib.
10206 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'
10207 ;;
b91f0a41 10208esac
671aa708 10209
6691a79e
ME
10210# Allow the user to override the flags for
10211# our build compiler if desired.
f019adc1
MF
10212if test x"${build}" = x"${host}" ; then
10213 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10214 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10215 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10216 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10217fi
6691a79e 10218
671aa708
NN
10219# On Canadian crosses, we'll be searching the right directories for
10220# the previously-installed cross compiler, so don't bother to add
10221# flags for directories within the install tree of the compiler
10222# being built; programs in there won't even run.
10223if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10224 # Search for pre-installed headers if nothing else fits.
9124bc53 10225 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
10226fi
10227
10228if test "x${use_gnu_ld}" = x &&
10229 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10230 # Arrange for us to find uninstalled linker scripts.
215c351a 10231 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10232fi
10233
e88a2c09
DD
10234# Search for other target-specific linker scripts and such.
10235case "${target}" in
3e19841a
PB
10236 mep*)
10237 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10238 ;;
9b8ffbb8
OH
10239 # The VxWorks support for shared libraries is getting in
10240 # incrementally. Make sure it doesn't get activated implicitly:
10241 *vxworks*)
10242 if test "${enable_shared-unset}" = unset ; then
10243 enable_shared=no
10244 # So the build of libraries knows ...
10245 target_configargs="${target_configargs} --disable-shared"
10246 # So gcc knows ...
10247 host_configargs="${host_configargs} --disable-shared"
10248 fi
10249 ;;
e88a2c09
DD
10250esac
10251
671aa708 10252# Makefile fragments.
7b61653a
PE
10253for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10254do
10255 eval fragval=\$$frag
10256 if test $fragval != /dev/null; then
10257 eval $frag=${srcdir}/$fragval
10258 fi
10259done
671aa708
NN
10260
10261
10262
10263
10264
10265# Miscellanea: directories, flags, etc.
10266
10267
10268
10269
10270
10271
10272
d89f0ad6 10273
23f6b2f9 10274# Build module lists & subconfigure args.
671aa708
NN
10275
10276
10277
2abefe3d
PB
10278# Host module lists & subconfigure args.
10279
10280
10281
aae29963 10282
2abefe3d
PB
10283# Target module lists & subconfigure args.
10284
10285
10286
10287# Build tools.
10288
10289
10290
0999159b
PB
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
b4c522fa 10304
3b5e8ee4 10305
a1d2b162
IS
10306
10307
2abefe3d
PB
10308# Generate default definitions for YACC, M4, LEX and other programs that run
10309# on the build machine. These are used if the Makefile can't locate these
10310# programs in objdir.
10311MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10312
10313for ac_prog in 'bison -y' byacc yacc
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_YACC+:} false; then :
5213506e 10320 $as_echo_n "(cached) " >&6
2abefe3d
PB
10321else
10322 if test -n "$YACC"; then
10323 ac_cv_prog_YACC="$YACC" # 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_YACC="$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 10342YACC=$ac_cv_prog_YACC
2abefe3d 10343if test -n "$YACC"; then
5213506e
RW
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10345$as_echo "$YACC" >&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 "$YACC" && break
2abefe3d
PB
10353done
10354test -n "$YACC" || YACC="$MISSING bison -y"
10355
10356case " $build_configdirs " in
10357 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10358esac
10359
10360for ac_prog in bison
10361do
1c710c3c 10362 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10363set dummy $ac_prog; ac_word=$2
5213506e
RW
10364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10366if ${ac_cv_prog_BISON+:} false; then :
5213506e 10367 $as_echo_n "(cached) " >&6
2abefe3d
PB
10368else
10369 if test -n "$BISON"; then
10370 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10371else
1c710c3c
DJ
10372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373for as_dir in $PATH
10374do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
5213506e 10377 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10379 ac_cv_prog_BISON="$ac_prog"
5213506e 10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10381 break 2
10382 fi
10383done
5213506e
RW
10384 done
10385IFS=$as_save_IFS
1c710c3c 10386
2abefe3d
PB
10387fi
10388fi
1c710c3c 10389BISON=$ac_cv_prog_BISON
2abefe3d 10390if test -n "$BISON"; then
5213506e
RW
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10392$as_echo "$BISON" >&6; }
2abefe3d 10393else
5213506e
RW
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395$as_echo "no" >&6; }
2abefe3d
PB
10396fi
10397
5213506e 10398
1c710c3c 10399 test -n "$BISON" && break
2abefe3d
PB
10400done
10401test -n "$BISON" || BISON="$MISSING bison"
10402
10403case " $build_configdirs " in
10404 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10405esac
10406
10407for ac_prog in gm4 gnum4 m4
10408do
1c710c3c 10409 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10410set dummy $ac_prog; ac_word=$2
5213506e
RW
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10413if ${ac_cv_prog_M4+:} false; then :
5213506e 10414 $as_echo_n "(cached) " >&6
2abefe3d
PB
10415else
10416 if test -n "$M4"; then
10417 ac_cv_prog_M4="$M4" # Let the user override the test.
10418else
1c710c3c
DJ
10419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
5213506e 10424 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10426 ac_cv_prog_M4="$ac_prog"
5213506e 10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10428 break 2
10429 fi
10430done
5213506e
RW
10431 done
10432IFS=$as_save_IFS
1c710c3c 10433
2abefe3d
PB
10434fi
10435fi
1c710c3c 10436M4=$ac_cv_prog_M4
2abefe3d 10437if test -n "$M4"; then
5213506e
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10439$as_echo "$M4" >&6; }
2abefe3d 10440else
5213506e
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
2abefe3d
PB
10443fi
10444
5213506e 10445
1c710c3c 10446 test -n "$M4" && break
2abefe3d
PB
10447done
10448test -n "$M4" || M4="$MISSING m4"
10449
10450case " $build_configdirs " in
10451 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10452esac
10453
10454for ac_prog in flex lex
10455do
1c710c3c 10456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10457set dummy $ac_prog; ac_word=$2
5213506e
RW
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10460if ${ac_cv_prog_LEX+:} false; then :
5213506e 10461 $as_echo_n "(cached) " >&6
2abefe3d
PB
10462else
10463 if test -n "$LEX"; then
10464 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10465else
1c710c3c
DJ
10466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467for as_dir in $PATH
10468do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
5213506e 10471 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10473 ac_cv_prog_LEX="$ac_prog"
5213506e 10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10475 break 2
10476 fi
10477done
5213506e
RW
10478 done
10479IFS=$as_save_IFS
1c710c3c 10480
2abefe3d
PB
10481fi
10482fi
1c710c3c 10483LEX=$ac_cv_prog_LEX
2abefe3d 10484if test -n "$LEX"; then
5213506e
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10486$as_echo "$LEX" >&6; }
2abefe3d 10487else
5213506e
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
2abefe3d
PB
10490fi
10491
5213506e 10492
1c710c3c 10493 test -n "$LEX" && break
2abefe3d
PB
10494done
10495test -n "$LEX" || LEX="$MISSING flex"
10496
10497case " $build_configdirs " in
10498 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10499 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10500esac
10501
10502for ac_prog in flex
10503do
1c710c3c 10504 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10505set dummy $ac_prog; ac_word=$2
5213506e
RW
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10507$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10508if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10509 $as_echo_n "(cached) " >&6
2abefe3d
PB
10510else
10511 if test -n "$FLEX"; then
10512 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10513else
1c710c3c
DJ
10514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515for as_dir in $PATH
10516do
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
5213506e 10519 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10521 ac_cv_prog_FLEX="$ac_prog"
5213506e 10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10523 break 2
10524 fi
10525done
5213506e
RW
10526 done
10527IFS=$as_save_IFS
1c710c3c 10528
2abefe3d
PB
10529fi
10530fi
1c710c3c 10531FLEX=$ac_cv_prog_FLEX
2abefe3d 10532if test -n "$FLEX"; then
5213506e
RW
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10534$as_echo "$FLEX" >&6; }
2abefe3d 10535else
5213506e
RW
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537$as_echo "no" >&6; }
2abefe3d
PB
10538fi
10539
5213506e 10540
1c710c3c 10541 test -n "$FLEX" && break
2abefe3d
PB
10542done
10543test -n "$FLEX" || FLEX="$MISSING flex"
10544
10545case " $build_configdirs " in
10546 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10547esac
10548
10549for ac_prog in makeinfo
10550do
1c710c3c 10551 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10552set dummy $ac_prog; ac_word=$2
5213506e
RW
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10555if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10556 $as_echo_n "(cached) " >&6
2abefe3d
PB
10557else
10558 if test -n "$MAKEINFO"; then
10559 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10560else
1c710c3c
DJ
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
5213506e 10566 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10568 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10570 break 2
10571 fi
10572done
5213506e
RW
10573 done
10574IFS=$as_save_IFS
1c710c3c 10575
2abefe3d
PB
10576fi
10577fi
1c710c3c 10578MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10579if test -n "$MAKEINFO"; then
5213506e
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10581$as_echo "$MAKEINFO" >&6; }
2abefe3d 10582else
5213506e
RW
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
2abefe3d
PB
10585fi
10586
5213506e 10587
1c710c3c 10588 test -n "$MAKEINFO" && break
2abefe3d
PB
10589done
10590test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10591
10592case " $build_configdirs " in
10593 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10594 *)
10595
d18ff35a 10596 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10597 # higher, else we use the "missing" dummy.
10598 if ${MAKEINFO} --version \
d18ff35a 10599 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10600 :
10601 else
10602 MAKEINFO="$MISSING makeinfo"
10603 fi
10604 ;;
10605
10606esac
671aa708 10607
2abefe3d 10608# FIXME: expect and dejagnu may become build tools?
671aa708 10609
2abefe3d
PB
10610for ac_prog in expect
10611do
1c710c3c 10612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10613set dummy $ac_prog; ac_word=$2
5213506e
RW
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10616if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10617 $as_echo_n "(cached) " >&6
2abefe3d
PB
10618else
10619 if test -n "$EXPECT"; then
10620 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10621else
1c710c3c
DJ
10622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623for as_dir in $PATH
10624do
10625 IFS=$as_save_IFS
10626 test -z "$as_dir" && as_dir=.
5213506e 10627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10629 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10631 break 2
10632 fi
10633done
5213506e
RW
10634 done
10635IFS=$as_save_IFS
1c710c3c 10636
2abefe3d
PB
10637fi
10638fi
1c710c3c 10639EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10640if test -n "$EXPECT"; then
5213506e
RW
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10642$as_echo "$EXPECT" >&6; }
2abefe3d 10643else
5213506e
RW
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
2abefe3d 10646fi
671aa708 10647
5213506e 10648
1c710c3c 10649 test -n "$EXPECT" && break
2abefe3d
PB
10650done
10651test -n "$EXPECT" || EXPECT="expect"
671aa708 10652
2abefe3d
PB
10653case " $configdirs " in
10654 *" expect "*)
10655 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10656 ;;
10657esac
671aa708 10658
2abefe3d
PB
10659for ac_prog in runtest
10660do
1c710c3c 10661 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10662set dummy $ac_prog; ac_word=$2
5213506e
RW
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10665if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10666 $as_echo_n "(cached) " >&6
2abefe3d
PB
10667else
10668 if test -n "$RUNTEST"; then
10669 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10670else
1c710c3c
DJ
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
5213506e 10676 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10678 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10680 break 2
10681 fi
10682done
5213506e
RW
10683 done
10684IFS=$as_save_IFS
1c710c3c 10685
2abefe3d
PB
10686fi
10687fi
1c710c3c 10688RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10689if test -n "$RUNTEST"; then
5213506e
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10691$as_echo "$RUNTEST" >&6; }
2abefe3d 10692else
5213506e
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
2abefe3d 10695fi
671aa708 10696
5213506e 10697
1c710c3c 10698 test -n "$RUNTEST" && break
2abefe3d
PB
10699done
10700test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10701
2abefe3d
PB
10702case " $configdirs " in
10703 *" dejagnu "*)
c394e891 10704 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10705 ;;
10706esac
671aa708 10707
4e3dcf20 10708
671aa708 10709# Host tools.
ca9f4b81
AO
10710ncn_tool_prefix=
10711test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10712ncn_target_tool_prefix=
10713test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10714
278a7a38
AO
10715
10716
10717if test -n "$AR"; then
10718 ac_cv_prog_AR=$AR
10719elif test -n "$ac_cv_prog_AR"; then
10720 AR=$ac_cv_prog_AR
10721fi
10722
10723if test -n "$ac_cv_prog_AR"; then
10724 for ncn_progname in ar; do
10725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10726set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10729if ${ac_cv_prog_AR+:} false; then :
5213506e 10730 $as_echo_n "(cached) " >&6
278a7a38
AO
10731else
10732 if test -n "$AR"; then
10733 ac_cv_prog_AR="$AR" # Let the user override the test.
10734else
10735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736for as_dir in $PATH
10737do
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
5213506e 10740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10742 ac_cv_prog_AR="${ncn_progname}"
5213506e 10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10744 break 2
10745 fi
10746done
5213506e
RW
10747 done
10748IFS=$as_save_IFS
278a7a38
AO
10749
10750fi
10751fi
10752AR=$ac_cv_prog_AR
10753if test -n "$AR"; then
5213506e
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10755$as_echo "$AR" >&6; }
278a7a38 10756else
5213506e
RW
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10758$as_echo "no" >&6; }
278a7a38
AO
10759fi
10760
5213506e 10761
278a7a38
AO
10762 done
10763fi
10764
10765for ncn_progname in ar; do
2693c0b0
PB
10766 if test -n "$ncn_tool_prefix"; then
10767 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10768set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10771if ${ac_cv_prog_AR+:} false; then :
5213506e 10772 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10773else
10774 if test -n "$AR"; then
10775 ac_cv_prog_AR="$AR" # Let the user override the test.
10776else
1c710c3c
DJ
10777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10778for as_dir in $PATH
10779do
10780 IFS=$as_save_IFS
10781 test -z "$as_dir" && as_dir=.
5213506e 10782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10784 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10786 break 2
10787 fi
10788done
5213506e
RW
10789 done
10790IFS=$as_save_IFS
1c710c3c 10791
ca9f4b81
AO
10792fi
10793fi
1c710c3c 10794AR=$ac_cv_prog_AR
ca9f4b81 10795if test -n "$AR"; then
5213506e
RW
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10797$as_echo "$AR" >&6; }
ca9f4b81 10798else
5213506e
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10800$as_echo "no" >&6; }
ca9f4b81
AO
10801fi
10802
5213506e 10803
2693c0b0
PB
10804 fi
10805 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10807set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10810if ${ac_cv_prog_AR+:} false; then :
5213506e 10811 $as_echo_n "(cached) " >&6
ca9f4b81 10812else
2693c0b0 10813 if test -n "$AR"; then
af71363e
AS
10814 ac_cv_prog_AR="$AR" # Let the user override the test.
10815else
1c710c3c
DJ
10816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
10820 test -z "$as_dir" && as_dir=.
5213506e 10821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10823 ac_cv_prog_AR="${ncn_progname}"
5213506e 10824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10825 break 2
10826 fi
10827done
5213506e
RW
10828 done
10829IFS=$as_save_IFS
1c710c3c 10830
ca9f4b81
AO
10831fi
10832fi
1c710c3c 10833AR=$ac_cv_prog_AR
2693c0b0 10834if test -n "$AR"; then
5213506e
RW
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10836$as_echo "$AR" >&6; }
ca9f4b81 10837else
5213506e
RW
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10839$as_echo "no" >&6; }
ca9f4b81 10840fi
1c710c3c 10841
5213506e 10842
2693c0b0
PB
10843 fi
10844 test -n "$ac_cv_prog_AR" && break
10845done
10846
10847if test -z "$ac_cv_prog_AR" ; then
10848 set dummy ar
10849 if test $build = $host ; then
10850 AR="$2"
ca9f4b81 10851 else
2693c0b0 10852 AR="${ncn_tool_prefix}$2"
ca9f4b81 10853 fi
ca9f4b81
AO
10854fi
10855
278a7a38
AO
10856
10857
10858if test -n "$AS"; then
10859 ac_cv_prog_AS=$AS
10860elif test -n "$ac_cv_prog_AS"; then
10861 AS=$ac_cv_prog_AS
10862fi
10863
10864if test -n "$ac_cv_prog_AS"; then
10865 for ncn_progname in as; do
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10870if ${ac_cv_prog_AS+:} false; then :
5213506e 10871 $as_echo_n "(cached) " >&6
278a7a38
AO
10872else
10873 if test -n "$AS"; then
10874 ac_cv_prog_AS="$AS" # Let the user override the test.
10875else
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
5213506e 10881 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10883 ac_cv_prog_AS="${ncn_progname}"
5213506e 10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10885 break 2
10886 fi
10887done
5213506e
RW
10888 done
10889IFS=$as_save_IFS
278a7a38
AO
10890
10891fi
10892fi
10893AS=$ac_cv_prog_AS
10894if test -n "$AS"; then
5213506e
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10896$as_echo "$AS" >&6; }
278a7a38 10897else
5213506e
RW
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
278a7a38
AO
10900fi
10901
5213506e 10902
278a7a38
AO
10903 done
10904fi
10905
10906for ncn_progname in as; do
2693c0b0
PB
10907 if test -n "$ncn_tool_prefix"; then
10908 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10909set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10912if ${ac_cv_prog_AS+:} false; then :
5213506e 10913 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10914else
10915 if test -n "$AS"; then
10916 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10917else
1c710c3c
DJ
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
5213506e 10923 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10925 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10927 break 2
10928 fi
10929done
5213506e
RW
10930 done
10931IFS=$as_save_IFS
1c710c3c 10932
ca9f4b81
AO
10933fi
10934fi
1c710c3c 10935AS=$ac_cv_prog_AS
ca9f4b81 10936if test -n "$AS"; then
5213506e
RW
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10938$as_echo "$AS" >&6; }
ca9f4b81 10939else
5213506e
RW
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
ca9f4b81
AO
10942fi
10943
5213506e 10944
2693c0b0
PB
10945 fi
10946 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10948set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10950$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10951if ${ac_cv_prog_AS+:} false; then :
5213506e 10952 $as_echo_n "(cached) " >&6
ca9f4b81 10953else
2693c0b0
PB
10954 if test -n "$AS"; then
10955 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10956else
1c710c3c
DJ
10957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958for as_dir in $PATH
10959do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
5213506e 10962 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10964 ac_cv_prog_AS="${ncn_progname}"
5213506e 10965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10966 break 2
10967 fi
10968done
5213506e
RW
10969 done
10970IFS=$as_save_IFS
1c710c3c 10971
ca9f4b81
AO
10972fi
10973fi
1c710c3c 10974AS=$ac_cv_prog_AS
2693c0b0 10975if test -n "$AS"; then
5213506e
RW
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10977$as_echo "$AS" >&6; }
ca9f4b81 10978else
5213506e
RW
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980$as_echo "no" >&6; }
ca9f4b81 10981fi
1c710c3c 10982
5213506e 10983
2693c0b0
PB
10984 fi
10985 test -n "$ac_cv_prog_AS" && break
10986done
10987
10988if test -z "$ac_cv_prog_AS" ; then
10989 set dummy as
10990 if test $build = $host ; then
10991 AS="$2"
ca9f4b81 10992 else
2693c0b0 10993 AS="${ncn_tool_prefix}$2"
ca9f4b81 10994 fi
ca9f4b81
AO
10995fi
10996
278a7a38
AO
10997
10998
10999if test -n "$DLLTOOL"; then
11000 ac_cv_prog_DLLTOOL=$DLLTOOL
11001elif test -n "$ac_cv_prog_DLLTOOL"; then
11002 DLLTOOL=$ac_cv_prog_DLLTOOL
11003fi
11004
11005if test -n "$ac_cv_prog_DLLTOOL"; then
11006 for ncn_progname in dlltool; do
11007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11008set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11011if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11012 $as_echo_n "(cached) " >&6
278a7a38
AO
11013else
11014 if test -n "$DLLTOOL"; then
11015 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11016else
11017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020 IFS=$as_save_IFS
11021 test -z "$as_dir" && as_dir=.
5213506e 11022 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11024 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11026 break 2
11027 fi
11028done
5213506e
RW
11029 done
11030IFS=$as_save_IFS
278a7a38
AO
11031
11032fi
11033fi
11034DLLTOOL=$ac_cv_prog_DLLTOOL
11035if test -n "$DLLTOOL"; then
5213506e
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11037$as_echo "$DLLTOOL" >&6; }
278a7a38 11038else
5213506e
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040$as_echo "no" >&6; }
278a7a38
AO
11041fi
11042
5213506e 11043
278a7a38
AO
11044 done
11045fi
11046
11047for ncn_progname in dlltool; do
2693c0b0
PB
11048 if test -n "$ncn_tool_prefix"; then
11049 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11050set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11053if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11054 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11055else
11056 if test -n "$DLLTOOL"; then
11057 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11058else
1c710c3c
DJ
11059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060for as_dir in $PATH
11061do
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
5213506e 11064 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11066 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11068 break 2
11069 fi
11070done
5213506e
RW
11071 done
11072IFS=$as_save_IFS
1c710c3c 11073
ca9f4b81
AO
11074fi
11075fi
1c710c3c 11076DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11077if test -n "$DLLTOOL"; then
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11079$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11080else
5213506e
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082$as_echo "no" >&6; }
ca9f4b81
AO
11083fi
11084
5213506e 11085
2693c0b0
PB
11086 fi
11087 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11089set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11092if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11093 $as_echo_n "(cached) " >&6
ca9f4b81 11094else
2693c0b0
PB
11095 if test -n "$DLLTOOL"; then
11096 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11097else
1c710c3c
DJ
11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
5213506e 11103 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11105 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11107 break 2
11108 fi
11109done
5213506e
RW
11110 done
11111IFS=$as_save_IFS
1c710c3c 11112
ca9f4b81
AO
11113fi
11114fi
1c710c3c 11115DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11116if test -n "$DLLTOOL"; then
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11118$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11119else
5213506e
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121$as_echo "no" >&6; }
ca9f4b81 11122fi
1c710c3c 11123
5213506e 11124
2693c0b0
PB
11125 fi
11126 test -n "$ac_cv_prog_DLLTOOL" && break
11127done
11128
11129if test -z "$ac_cv_prog_DLLTOOL" ; then
11130 set dummy dlltool
11131 if test $build = $host ; then
11132 DLLTOOL="$2"
ca9f4b81 11133 else
2693c0b0 11134 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11135 fi
ca9f4b81
AO
11136fi
11137
278a7a38
AO
11138
11139
3b5e8ee4
IS
11140if test -n "$DSYMUTIL"; then
11141 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11142elif test -n "$ac_cv_prog_DSYMUTIL"; then
11143 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11144fi
11145
11146if test -n "$ac_cv_prog_DSYMUTIL"; then
11147 for ncn_progname in dsymutil; do
11148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11149set dummy ${ncn_progname}; ac_word=$2
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151$as_echo_n "checking for $ac_word... " >&6; }
11152if ${ac_cv_prog_DSYMUTIL+:} false; then :
11153 $as_echo_n "(cached) " >&6
11154else
11155 if test -n "$DSYMUTIL"; then
11156 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11157else
11158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159for as_dir in $PATH
11160do
11161 IFS=$as_save_IFS
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11165 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167 break 2
11168 fi
11169done
11170 done
11171IFS=$as_save_IFS
11172
11173fi
11174fi
11175DSYMUTIL=$ac_cv_prog_DSYMUTIL
11176if test -n "$DSYMUTIL"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11178$as_echo "$DSYMUTIL" >&6; }
11179else
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
11182fi
11183
11184
11185 done
11186fi
11187
11188for ncn_progname in dsymutil; do
11189 if test -n "$ncn_tool_prefix"; then
11190 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11191set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193$as_echo_n "checking for $ac_word... " >&6; }
11194if ${ac_cv_prog_DSYMUTIL+:} false; then :
11195 $as_echo_n "(cached) " >&6
11196else
11197 if test -n "$DSYMUTIL"; then
11198 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11199else
11200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11201for as_dir in $PATH
11202do
11203 IFS=$as_save_IFS
11204 test -z "$as_dir" && as_dir=.
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11207 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 break 2
11210 fi
11211done
11212 done
11213IFS=$as_save_IFS
11214
11215fi
11216fi
11217DSYMUTIL=$ac_cv_prog_DSYMUTIL
11218if test -n "$DSYMUTIL"; then
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11220$as_echo "$DSYMUTIL" >&6; }
11221else
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
11224fi
11225
11226
11227 fi
11228 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11230set dummy ${ncn_progname}; ac_word=$2
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232$as_echo_n "checking for $ac_word... " >&6; }
11233if ${ac_cv_prog_DSYMUTIL+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235else
11236 if test -n "$DSYMUTIL"; then
11237 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11238else
11239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240for as_dir in $PATH
11241do
11242 IFS=$as_save_IFS
11243 test -z "$as_dir" && as_dir=.
11244 for ac_exec_ext in '' $ac_executable_extensions; do
11245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11246 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 break 2
11249 fi
11250done
11251 done
11252IFS=$as_save_IFS
11253
11254fi
11255fi
11256DSYMUTIL=$ac_cv_prog_DSYMUTIL
11257if test -n "$DSYMUTIL"; then
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11259$as_echo "$DSYMUTIL" >&6; }
11260else
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262$as_echo "no" >&6; }
11263fi
11264
11265
11266 fi
11267 test -n "$ac_cv_prog_DSYMUTIL" && break
11268done
11269
11270if test -z "$ac_cv_prog_DSYMUTIL" ; then
11271 set dummy dsymutil
11272 if test $build = $host ; then
11273 DSYMUTIL="$2"
11274 else
11275 DSYMUTIL="${ncn_tool_prefix}$2"
11276 fi
11277fi
11278
11279
11280
278a7a38
AO
11281if test -n "$LD"; then
11282 ac_cv_prog_LD=$LD
11283elif test -n "$ac_cv_prog_LD"; then
11284 LD=$ac_cv_prog_LD
11285fi
11286
11287if test -n "$ac_cv_prog_LD"; then
11288 for ncn_progname in ld; do
11289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11292$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11293if ${ac_cv_prog_LD+:} false; then :
5213506e 11294 $as_echo_n "(cached) " >&6
278a7a38
AO
11295else
11296 if test -n "$LD"; then
11297 ac_cv_prog_LD="$LD" # Let the user override the test.
11298else
11299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300for as_dir in $PATH
11301do
11302 IFS=$as_save_IFS
11303 test -z "$as_dir" && as_dir=.
5213506e 11304 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11306 ac_cv_prog_LD="${ncn_progname}"
5213506e 11307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11308 break 2
11309 fi
11310done
5213506e
RW
11311 done
11312IFS=$as_save_IFS
278a7a38
AO
11313
11314fi
11315fi
11316LD=$ac_cv_prog_LD
11317if test -n "$LD"; then
5213506e
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11319$as_echo "$LD" >&6; }
278a7a38 11320else
5213506e
RW
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322$as_echo "no" >&6; }
278a7a38
AO
11323fi
11324
5213506e 11325
278a7a38
AO
11326 done
11327fi
11328
11329for ncn_progname in ld; do
2693c0b0
PB
11330 if test -n "$ncn_tool_prefix"; then
11331 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11332set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11334$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11335if ${ac_cv_prog_LD+:} false; then :
5213506e 11336 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11337else
11338 if test -n "$LD"; then
11339 ac_cv_prog_LD="$LD" # Let the user override the test.
11340else
1c710c3c
DJ
11341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $PATH
11343do
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
5213506e 11346 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11348 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11350 break 2
11351 fi
11352done
5213506e
RW
11353 done
11354IFS=$as_save_IFS
1c710c3c 11355
ca9f4b81
AO
11356fi
11357fi
1c710c3c 11358LD=$ac_cv_prog_LD
ca9f4b81 11359if test -n "$LD"; then
5213506e
RW
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11361$as_echo "$LD" >&6; }
ca9f4b81 11362else
5213506e
RW
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
ca9f4b81
AO
11365fi
11366
5213506e 11367
2693c0b0
PB
11368 fi
11369 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11371set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11374if ${ac_cv_prog_LD+:} false; then :
5213506e 11375 $as_echo_n "(cached) " >&6
ca9f4b81 11376else
2693c0b0
PB
11377 if test -n "$LD"; then
11378 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11379else
1c710c3c
DJ
11380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11381for as_dir in $PATH
11382do
11383 IFS=$as_save_IFS
11384 test -z "$as_dir" && as_dir=.
5213506e 11385 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11387 ac_cv_prog_LD="${ncn_progname}"
5213506e 11388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11389 break 2
11390 fi
11391done
5213506e
RW
11392 done
11393IFS=$as_save_IFS
1c710c3c 11394
ca9f4b81
AO
11395fi
11396fi
1c710c3c 11397LD=$ac_cv_prog_LD
2693c0b0 11398if test -n "$LD"; then
5213506e
RW
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11400$as_echo "$LD" >&6; }
ca9f4b81 11401else
5213506e
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
ca9f4b81 11404fi
1c710c3c 11405
5213506e 11406
2693c0b0
PB
11407 fi
11408 test -n "$ac_cv_prog_LD" && break
11409done
11410
11411if test -z "$ac_cv_prog_LD" ; then
11412 set dummy ld
11413 if test $build = $host ; then
11414 LD="$2"
ca9f4b81 11415 else
2693c0b0 11416 LD="${ncn_tool_prefix}$2"
ca9f4b81 11417 fi
ca9f4b81
AO
11418fi
11419
278a7a38
AO
11420
11421
11422if test -n "$LIPO"; then
11423 ac_cv_prog_LIPO=$LIPO
11424elif test -n "$ac_cv_prog_LIPO"; then
11425 LIPO=$ac_cv_prog_LIPO
11426fi
11427
11428if test -n "$ac_cv_prog_LIPO"; then
11429 for ncn_progname in lipo; do
11430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11431set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11434if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11435 $as_echo_n "(cached) " >&6
278a7a38
AO
11436else
11437 if test -n "$LIPO"; then
11438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11439else
11440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $PATH
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
5213506e 11445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11447 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11449 break 2
11450 fi
11451done
5213506e
RW
11452 done
11453IFS=$as_save_IFS
278a7a38
AO
11454
11455fi
11456fi
11457LIPO=$ac_cv_prog_LIPO
11458if test -n "$LIPO"; then
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11460$as_echo "$LIPO" >&6; }
278a7a38 11461else
5213506e
RW
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463$as_echo "no" >&6; }
278a7a38
AO
11464fi
11465
5213506e 11466
278a7a38
AO
11467 done
11468fi
11469
11470for ncn_progname in lipo; do
2abefe3d
PB
11471 if test -n "$ncn_tool_prefix"; then
11472 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11473set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11476if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11477 $as_echo_n "(cached) " >&6
2abefe3d
PB
11478else
11479 if test -n "$LIPO"; then
11480 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11481else
1c710c3c
DJ
11482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
5213506e 11487 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11489 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11491 break 2
11492 fi
11493done
5213506e
RW
11494 done
11495IFS=$as_save_IFS
1c710c3c 11496
2abefe3d
PB
11497fi
11498fi
1c710c3c 11499LIPO=$ac_cv_prog_LIPO
2abefe3d 11500if test -n "$LIPO"; then
5213506e
RW
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11502$as_echo "$LIPO" >&6; }
2abefe3d 11503else
5213506e
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
2abefe3d
PB
11506fi
11507
5213506e 11508
2abefe3d
PB
11509 fi
11510 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11512set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11515if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11516 $as_echo_n "(cached) " >&6
2abefe3d
PB
11517else
11518 if test -n "$LIPO"; then
11519 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11520else
1c710c3c
DJ
11521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522for as_dir in $PATH
11523do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
5213506e 11526 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11528 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11530 break 2
11531 fi
11532done
5213506e
RW
11533 done
11534IFS=$as_save_IFS
1c710c3c 11535
2abefe3d
PB
11536fi
11537fi
1c710c3c 11538LIPO=$ac_cv_prog_LIPO
2abefe3d 11539if test -n "$LIPO"; then
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11541$as_echo "$LIPO" >&6; }
2abefe3d 11542else
5213506e
RW
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
2abefe3d 11545fi
1c710c3c 11546
5213506e 11547
2abefe3d
PB
11548 fi
11549 test -n "$ac_cv_prog_LIPO" && break
11550done
11551
11552if test -z "$ac_cv_prog_LIPO" ; then
11553 set dummy lipo
11554 if test $build = $host ; then
11555 LIPO="$2"
11556 else
11557 LIPO="${ncn_tool_prefix}$2"
11558 fi
11559fi
11560
278a7a38
AO
11561
11562
11563if test -n "$NM"; then
11564 ac_cv_prog_NM=$NM
11565elif test -n "$ac_cv_prog_NM"; then
11566 NM=$ac_cv_prog_NM
11567fi
11568
11569if test -n "$ac_cv_prog_NM"; then
11570 for ncn_progname in nm; do
11571 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11572set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11575if ${ac_cv_prog_NM+:} false; then :
5213506e 11576 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11577else
11578 if test -n "$NM"; then
11579 ac_cv_prog_NM="$NM" # Let the user override the test.
11580else
1c710c3c
DJ
11581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $PATH
11583do
11584 IFS=$as_save_IFS
11585 test -z "$as_dir" && as_dir=.
5213506e 11586 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11588 ac_cv_prog_NM="${ncn_progname}"
5213506e 11589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11590 break 2
11591 fi
11592done
5213506e
RW
11593 done
11594IFS=$as_save_IFS
1c710c3c 11595
ca9f4b81
AO
11596fi
11597fi
1c710c3c 11598NM=$ac_cv_prog_NM
ca9f4b81 11599if test -n "$NM"; then
5213506e
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11601$as_echo "$NM" >&6; }
ca9f4b81 11602else
5213506e
RW
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604$as_echo "no" >&6; }
ca9f4b81
AO
11605fi
11606
5213506e 11607
278a7a38
AO
11608 done
11609fi
11610
11611for ncn_progname in nm; do
11612 if test -n "$ncn_tool_prefix"; then
11613 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11614set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11617if ${ac_cv_prog_NM+:} false; then :
5213506e 11618 $as_echo_n "(cached) " >&6
ca9f4b81 11619else
2693c0b0
PB
11620 if test -n "$NM"; then
11621 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11622else
1c710c3c
DJ
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
5213506e 11628 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11630 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11632 break 2
11633 fi
11634done
5213506e
RW
11635 done
11636IFS=$as_save_IFS
1c710c3c 11637
ca9f4b81
AO
11638fi
11639fi
1c710c3c 11640NM=$ac_cv_prog_NM
2693c0b0 11641if test -n "$NM"; then
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11643$as_echo "$NM" >&6; }
ca9f4b81 11644else
5213506e
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
ca9f4b81 11647fi
1c710c3c 11648
5213506e 11649
2693c0b0 11650 fi
278a7a38
AO
11651 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11656if ${ac_cv_prog_NM+:} false; then :
5213506e 11657 $as_echo_n "(cached) " >&6
278a7a38
AO
11658else
11659 if test -n "$NM"; then
11660 ac_cv_prog_NM="$NM" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
5213506e 11667 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11669 ac_cv_prog_NM="${ncn_progname}"
5213506e 11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11671 break 2
11672 fi
11673done
5213506e
RW
11674 done
11675IFS=$as_save_IFS
278a7a38
AO
11676
11677fi
11678fi
11679NM=$ac_cv_prog_NM
11680if test -n "$NM"; then
5213506e
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11682$as_echo "$NM" >&6; }
278a7a38 11683else
5213506e
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
278a7a38
AO
11686fi
11687
5213506e 11688
278a7a38
AO
11689 fi
11690 test -n "$ac_cv_prog_NM" && break
11691done
11692
11693if test -z "$ac_cv_prog_NM" ; then
11694 set dummy nm
11695 if test $build = $host ; then
11696 NM="$2"
11697 else
11698 NM="${ncn_tool_prefix}$2"
11699 fi
11700fi
11701
11702
11703
11704if test -n "$RANLIB"; then
11705 ac_cv_prog_RANLIB=$RANLIB
11706elif test -n "$ac_cv_prog_RANLIB"; then
11707 RANLIB=$ac_cv_prog_RANLIB
11708fi
11709
11710if test -n "$ac_cv_prog_RANLIB"; then
11711 for ncn_progname in ranlib; do
11712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11713set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11716if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11717 $as_echo_n "(cached) " >&6
278a7a38
AO
11718else
11719 if test -n "$RANLIB"; then
11720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11721else
11722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11723for as_dir in $PATH
11724do
11725 IFS=$as_save_IFS
11726 test -z "$as_dir" && as_dir=.
5213506e 11727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11729 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11731 break 2
11732 fi
11733done
5213506e
RW
11734 done
11735IFS=$as_save_IFS
278a7a38
AO
11736
11737fi
11738fi
11739RANLIB=$ac_cv_prog_RANLIB
11740if test -n "$RANLIB"; then
5213506e
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11742$as_echo "$RANLIB" >&6; }
278a7a38 11743else
5213506e
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11745$as_echo "no" >&6; }
278a7a38
AO
11746fi
11747
5213506e 11748
278a7a38
AO
11749 done
11750fi
ca9f4b81 11751
278a7a38 11752for ncn_progname in ranlib; do
2693c0b0
PB
11753 if test -n "$ncn_tool_prefix"; then
11754 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11755set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11757$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11758if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11759 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11760else
11761 if test -n "$RANLIB"; then
11762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11763else
1c710c3c
DJ
11764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765for as_dir in $PATH
11766do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
5213506e 11769 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11771 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11773 break 2
11774 fi
11775done
5213506e
RW
11776 done
11777IFS=$as_save_IFS
1c710c3c 11778
ca9f4b81
AO
11779fi
11780fi
1c710c3c 11781RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11782if test -n "$RANLIB"; then
5213506e
RW
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11784$as_echo "$RANLIB" >&6; }
ca9f4b81 11785else
5213506e
RW
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11787$as_echo "no" >&6; }
ca9f4b81
AO
11788fi
11789
5213506e 11790
2693c0b0
PB
11791 fi
11792 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11794set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11797if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11798 $as_echo_n "(cached) " >&6
ca9f4b81 11799else
2693c0b0
PB
11800 if test -n "$RANLIB"; then
11801 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11802else
1c710c3c
DJ
11803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11804for as_dir in $PATH
11805do
11806 IFS=$as_save_IFS
11807 test -z "$as_dir" && as_dir=.
5213506e 11808 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11810 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11812 break 2
11813 fi
11814done
5213506e
RW
11815 done
11816IFS=$as_save_IFS
1c710c3c 11817
ca9f4b81
AO
11818fi
11819fi
1c710c3c 11820RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11821if test -n "$RANLIB"; then
5213506e
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11823$as_echo "$RANLIB" >&6; }
ca9f4b81 11824else
5213506e
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826$as_echo "no" >&6; }
ca9f4b81 11827fi
1c710c3c 11828
5213506e 11829
ca9f4b81 11830 fi
2693c0b0
PB
11831 test -n "$ac_cv_prog_RANLIB" && break
11832done
11833
11834if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11835 RANLIB="true"
ca9f4b81
AO
11836fi
11837
278a7a38
AO
11838
11839
11840if test -n "$STRIP"; then
11841 ac_cv_prog_STRIP=$STRIP
11842elif test -n "$ac_cv_prog_STRIP"; then
11843 STRIP=$ac_cv_prog_STRIP
11844fi
11845
11846if test -n "$ac_cv_prog_STRIP"; then
11847 for ncn_progname in strip; do
11848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11849set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11852if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11853 $as_echo_n "(cached) " >&6
278a7a38
AO
11854else
11855 if test -n "$STRIP"; then
11856 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11857else
11858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859for as_dir in $PATH
11860do
11861 IFS=$as_save_IFS
11862 test -z "$as_dir" && as_dir=.
5213506e 11863 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11865 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11867 break 2
11868 fi
11869done
5213506e
RW
11870 done
11871IFS=$as_save_IFS
278a7a38
AO
11872
11873fi
11874fi
11875STRIP=$ac_cv_prog_STRIP
11876if test -n "$STRIP"; then
5213506e
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11878$as_echo "$STRIP" >&6; }
278a7a38 11879else
5213506e
RW
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881$as_echo "no" >&6; }
278a7a38
AO
11882fi
11883
5213506e 11884
278a7a38
AO
11885 done
11886fi
11887
11888for ncn_progname in strip; do
2abefe3d
PB
11889 if test -n "$ncn_tool_prefix"; then
11890 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11891set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11893$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11894if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11895 $as_echo_n "(cached) " >&6
2abefe3d
PB
11896else
11897 if test -n "$STRIP"; then
11898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11899else
1c710c3c
DJ
11900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901for as_dir in $PATH
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
5213506e 11905 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11907 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11909 break 2
11910 fi
11911done
5213506e
RW
11912 done
11913IFS=$as_save_IFS
1c710c3c 11914
2abefe3d
PB
11915fi
11916fi
1c710c3c 11917STRIP=$ac_cv_prog_STRIP
2abefe3d 11918if test -n "$STRIP"; then
5213506e
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11920$as_echo "$STRIP" >&6; }
2abefe3d 11921else
5213506e
RW
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923$as_echo "no" >&6; }
2abefe3d
PB
11924fi
11925
5213506e 11926
2abefe3d
PB
11927 fi
11928 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11930set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11933if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11934 $as_echo_n "(cached) " >&6
2abefe3d
PB
11935else
11936 if test -n "$STRIP"; then
11937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11938else
1c710c3c
DJ
11939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940for as_dir in $PATH
11941do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
5213506e 11944 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11946 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11948 break 2
11949 fi
11950done
5213506e
RW
11951 done
11952IFS=$as_save_IFS
1c710c3c 11953
2abefe3d
PB
11954fi
11955fi
1c710c3c 11956STRIP=$ac_cv_prog_STRIP
2abefe3d 11957if test -n "$STRIP"; then
5213506e
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11959$as_echo "$STRIP" >&6; }
2abefe3d 11960else
5213506e
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962$as_echo "no" >&6; }
2abefe3d 11963fi
1c710c3c 11964
5213506e 11965
2abefe3d
PB
11966 fi
11967 test -n "$ac_cv_prog_STRIP" && break
11968done
11969
11970if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11971 STRIP="true"
2abefe3d
PB
11972fi
11973
278a7a38
AO
11974
11975
11976if test -n "$WINDRES"; then
11977 ac_cv_prog_WINDRES=$WINDRES
11978elif test -n "$ac_cv_prog_WINDRES"; then
11979 WINDRES=$ac_cv_prog_WINDRES
11980fi
11981
11982if test -n "$ac_cv_prog_WINDRES"; then
11983 for ncn_progname in windres; do
11984 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11985set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11988if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11989 $as_echo_n "(cached) " >&6
278a7a38
AO
11990else
11991 if test -n "$WINDRES"; then
11992 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11993else
11994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
5213506e 11999 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12001 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12003 break 2
12004 fi
12005done
5213506e
RW
12006 done
12007IFS=$as_save_IFS
278a7a38
AO
12008
12009fi
12010fi
12011WINDRES=$ac_cv_prog_WINDRES
12012if test -n "$WINDRES"; then
5213506e
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12014$as_echo "$WINDRES" >&6; }
278a7a38 12015else
5213506e
RW
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
278a7a38
AO
12018fi
12019
5213506e 12020
278a7a38
AO
12021 done
12022fi
12023
12024for ncn_progname in windres; do
2693c0b0
PB
12025 if test -n "$ncn_tool_prefix"; then
12026 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12027set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12030if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12031 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12032else
12033 if test -n "$WINDRES"; then
12034 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12035else
1c710c3c
DJ
12036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
5213506e 12041 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12043 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12045 break 2
12046 fi
12047done
5213506e
RW
12048 done
12049IFS=$as_save_IFS
1c710c3c 12050
ca9f4b81
AO
12051fi
12052fi
1c710c3c 12053WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12054if test -n "$WINDRES"; then
5213506e
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12056$as_echo "$WINDRES" >&6; }
ca9f4b81 12057else
5213506e
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
ca9f4b81
AO
12060fi
12061
5213506e 12062
2693c0b0
PB
12063 fi
12064 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12066set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12068$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12069if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12070 $as_echo_n "(cached) " >&6
ca9f4b81 12071else
2693c0b0
PB
12072 if test -n "$WINDRES"; then
12073 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12074else
1c710c3c
DJ
12075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12076for as_dir in $PATH
12077do
12078 IFS=$as_save_IFS
12079 test -z "$as_dir" && as_dir=.
5213506e 12080 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12082 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12084 break 2
12085 fi
12086done
5213506e
RW
12087 done
12088IFS=$as_save_IFS
1c710c3c 12089
ca9f4b81
AO
12090fi
12091fi
1c710c3c 12092WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12093if test -n "$WINDRES"; then
5213506e
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12095$as_echo "$WINDRES" >&6; }
ca9f4b81 12096else
5213506e
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098$as_echo "no" >&6; }
ca9f4b81 12099fi
1c710c3c 12100
5213506e 12101
2693c0b0
PB
12102 fi
12103 test -n "$ac_cv_prog_WINDRES" && break
12104done
12105
12106if test -z "$ac_cv_prog_WINDRES" ; then
12107 set dummy windres
12108 if test $build = $host ; then
12109 WINDRES="$2"
ca9f4b81 12110 else
2693c0b0 12111 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12112 fi
ca9f4b81
AO
12113fi
12114
278a7a38
AO
12115
12116
901119ae
KT
12117if test -n "$WINDMC"; then
12118 ac_cv_prog_WINDMC=$WINDMC
12119elif test -n "$ac_cv_prog_WINDMC"; then
12120 WINDMC=$ac_cv_prog_WINDMC
12121fi
12122
12123if test -n "$ac_cv_prog_WINDMC"; then
12124 for ncn_progname in windmc; do
12125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12126set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12128$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12129if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12130 $as_echo_n "(cached) " >&6
901119ae
KT
12131else
12132 if test -n "$WINDMC"; then
12133 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12134else
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
5213506e 12140 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12142 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12144 break 2
12145 fi
12146done
5213506e
RW
12147 done
12148IFS=$as_save_IFS
901119ae
KT
12149
12150fi
12151fi
12152WINDMC=$ac_cv_prog_WINDMC
12153if test -n "$WINDMC"; then
5213506e
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12155$as_echo "$WINDMC" >&6; }
901119ae 12156else
5213506e
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
901119ae
KT
12159fi
12160
5213506e 12161
901119ae
KT
12162 done
12163fi
12164
12165for ncn_progname in windmc; do
12166 if test -n "$ncn_tool_prefix"; then
12167 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12168set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12171if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12172 $as_echo_n "(cached) " >&6
901119ae
KT
12173else
12174 if test -n "$WINDMC"; then
12175 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12176else
12177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178for as_dir in $PATH
12179do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
5213506e 12182 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12184 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12186 break 2
12187 fi
12188done
5213506e
RW
12189 done
12190IFS=$as_save_IFS
901119ae
KT
12191
12192fi
12193fi
12194WINDMC=$ac_cv_prog_WINDMC
12195if test -n "$WINDMC"; then
5213506e
RW
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12197$as_echo "$WINDMC" >&6; }
901119ae 12198else
5213506e
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200$as_echo "no" >&6; }
901119ae
KT
12201fi
12202
5213506e 12203
901119ae
KT
12204 fi
12205 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12207set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12209$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12210if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12211 $as_echo_n "(cached) " >&6
901119ae
KT
12212else
12213 if test -n "$WINDMC"; then
12214 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12215else
12216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $PATH
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
5213506e 12221 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12223 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12225 break 2
12226 fi
12227done
5213506e
RW
12228 done
12229IFS=$as_save_IFS
901119ae
KT
12230
12231fi
12232fi
12233WINDMC=$ac_cv_prog_WINDMC
12234if test -n "$WINDMC"; then
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12236$as_echo "$WINDMC" >&6; }
901119ae 12237else
5213506e
RW
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239$as_echo "no" >&6; }
901119ae
KT
12240fi
12241
5213506e 12242
901119ae
KT
12243 fi
12244 test -n "$ac_cv_prog_WINDMC" && break
12245done
12246
12247if test -z "$ac_cv_prog_WINDMC" ; then
12248 set dummy windmc
12249 if test $build = $host ; then
12250 WINDMC="$2"
12251 else
12252 WINDMC="${ncn_tool_prefix}$2"
12253 fi
12254fi
12255
12256
12257
278a7a38
AO
12258if test -n "$OBJCOPY"; then
12259 ac_cv_prog_OBJCOPY=$OBJCOPY
12260elif test -n "$ac_cv_prog_OBJCOPY"; then
12261 OBJCOPY=$ac_cv_prog_OBJCOPY
12262fi
12263
12264if test -n "$ac_cv_prog_OBJCOPY"; then
12265 for ncn_progname in objcopy; do
12266 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12267set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12270if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12271 $as_echo_n "(cached) " >&6
278a7a38
AO
12272else
12273 if test -n "$OBJCOPY"; then
12274 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12275else
12276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
5213506e 12281 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12283 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12285 break 2
12286 fi
12287done
5213506e
RW
12288 done
12289IFS=$as_save_IFS
278a7a38
AO
12290
12291fi
12292fi
12293OBJCOPY=$ac_cv_prog_OBJCOPY
12294if test -n "$OBJCOPY"; then
5213506e
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12296$as_echo "$OBJCOPY" >&6; }
278a7a38 12297else
5213506e
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299$as_echo "no" >&6; }
278a7a38
AO
12300fi
12301
5213506e 12302
278a7a38
AO
12303 done
12304fi
12305
12306for ncn_progname in objcopy; do
2693c0b0
PB
12307 if test -n "$ncn_tool_prefix"; then
12308 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12309set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12311$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12312if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12313 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12314else
12315 if test -n "$OBJCOPY"; then
12316 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12317else
1c710c3c
DJ
12318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319for as_dir in $PATH
12320do
12321 IFS=$as_save_IFS
12322 test -z "$as_dir" && as_dir=.
5213506e 12323 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12325 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12327 break 2
12328 fi
12329done
5213506e
RW
12330 done
12331IFS=$as_save_IFS
1c710c3c 12332
ca9f4b81
AO
12333fi
12334fi
1c710c3c 12335OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12336if test -n "$OBJCOPY"; then
5213506e
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12338$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12339else
5213506e
RW
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341$as_echo "no" >&6; }
ca9f4b81
AO
12342fi
12343
5213506e 12344
2693c0b0
PB
12345 fi
12346 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12347 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12348set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12351if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12352 $as_echo_n "(cached) " >&6
ca9f4b81 12353else
2693c0b0
PB
12354 if test -n "$OBJCOPY"; then
12355 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12356else
1c710c3c
DJ
12357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $PATH
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
5213506e 12362 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12364 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12366 break 2
12367 fi
12368done
5213506e
RW
12369 done
12370IFS=$as_save_IFS
1c710c3c 12371
ca9f4b81
AO
12372fi
12373fi
1c710c3c 12374OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12375if test -n "$OBJCOPY"; then
5213506e
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12377$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12378else
5213506e
RW
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
ca9f4b81 12381fi
1c710c3c 12382
5213506e 12383
2693c0b0
PB
12384 fi
12385 test -n "$ac_cv_prog_OBJCOPY" && break
12386done
12387
12388if test -z "$ac_cv_prog_OBJCOPY" ; then
12389 set dummy objcopy
12390 if test $build = $host ; then
12391 OBJCOPY="$2"
ca9f4b81 12392 else
2693c0b0 12393 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12394 fi
ca9f4b81
AO
12395fi
12396
278a7a38
AO
12397
12398
12399if test -n "$OBJDUMP"; then
12400 ac_cv_prog_OBJDUMP=$OBJDUMP
12401elif test -n "$ac_cv_prog_OBJDUMP"; then
12402 OBJDUMP=$ac_cv_prog_OBJDUMP
12403fi
12404
12405if test -n "$ac_cv_prog_OBJDUMP"; then
12406 for ncn_progname in objdump; do
12407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12408set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12410$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12411if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12412 $as_echo_n "(cached) " >&6
278a7a38
AO
12413else
12414 if test -n "$OBJDUMP"; then
12415 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12416else
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
5213506e 12422 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12424 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12426 break 2
12427 fi
12428done
5213506e
RW
12429 done
12430IFS=$as_save_IFS
278a7a38
AO
12431
12432fi
12433fi
12434OBJDUMP=$ac_cv_prog_OBJDUMP
12435if test -n "$OBJDUMP"; then
5213506e
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12437$as_echo "$OBJDUMP" >&6; }
278a7a38 12438else
5213506e
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
278a7a38
AO
12441fi
12442
5213506e 12443
278a7a38
AO
12444 done
12445fi
12446
12447for ncn_progname in objdump; do
2693c0b0
PB
12448 if test -n "$ncn_tool_prefix"; then
12449 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12450set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12453if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12454 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12455else
12456 if test -n "$OBJDUMP"; then
12457 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12458else
1c710c3c
DJ
12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460for as_dir in $PATH
12461do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
5213506e 12464 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12466 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12468 break 2
12469 fi
12470done
5213506e
RW
12471 done
12472IFS=$as_save_IFS
1c710c3c 12473
ca9f4b81
AO
12474fi
12475fi
1c710c3c 12476OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12477if test -n "$OBJDUMP"; then
5213506e
RW
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12479$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12480else
5213506e
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482$as_echo "no" >&6; }
ca9f4b81
AO
12483fi
12484
5213506e 12485
2693c0b0
PB
12486 fi
12487 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12489set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12492if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12493 $as_echo_n "(cached) " >&6
ca9f4b81 12494else
2693c0b0
PB
12495 if test -n "$OBJDUMP"; then
12496 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12497else
1c710c3c
DJ
12498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499for as_dir in $PATH
12500do
12501 IFS=$as_save_IFS
12502 test -z "$as_dir" && as_dir=.
5213506e 12503 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12505 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12507 break 2
12508 fi
12509done
5213506e
RW
12510 done
12511IFS=$as_save_IFS
1c710c3c 12512
ca9f4b81
AO
12513fi
12514fi
1c710c3c 12515OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12516if test -n "$OBJDUMP"; then
5213506e
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12518$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12519else
5213506e
RW
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521$as_echo "no" >&6; }
ca9f4b81 12522fi
1c710c3c 12523
5213506e 12524
2693c0b0
PB
12525 fi
12526 test -n "$ac_cv_prog_OBJDUMP" && break
12527done
12528
12529if test -z "$ac_cv_prog_OBJDUMP" ; then
12530 set dummy objdump
12531 if test $build = $host ; then
12532 OBJDUMP="$2"
ca9f4b81 12533 else
2693c0b0 12534 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12535 fi
ca9f4b81
AO
12536fi
12537
671aa708
NN
12538
12539
e4a9a572
IS
12540if test -n "$OTOOL"; then
12541 ac_cv_prog_OTOOL=$OTOOL
12542elif test -n "$ac_cv_prog_OTOOL"; then
12543 OTOOL=$ac_cv_prog_OTOOL
12544fi
12545
12546if test -n "$ac_cv_prog_OTOOL"; then
12547 for ncn_progname in otool; do
12548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12549set dummy ${ncn_progname}; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
12552if ${ac_cv_prog_OTOOL+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554else
12555 if test -n "$OTOOL"; then
12556 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_prog_OTOOL="${ncn_progname}"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570 done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575OTOOL=$ac_cv_prog_OTOOL
12576if test -n "$OTOOL"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12578$as_echo "$OTOOL" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585 done
12586fi
12587
12588for ncn_progname in otool; do
12589 if test -n "$ncn_tool_prefix"; then
12590 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12591set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
12594if ${ac_cv_prog_OTOOL+:} false; then :
12595 $as_echo_n "(cached) " >&6
12596else
12597 if test -n "$OTOOL"; then
12598 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12610 fi
12611done
12612 done
12613IFS=$as_save_IFS
12614
12615fi
12616fi
12617OTOOL=$ac_cv_prog_OTOOL
12618if test -n "$OTOOL"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12620$as_echo "$OTOOL" >&6; }
12621else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626
12627 fi
12628 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12630set dummy ${ncn_progname}; ac_word=$2
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632$as_echo_n "checking for $ac_word... " >&6; }
12633if ${ac_cv_prog_OTOOL+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635else
12636 if test -n "$OTOOL"; then
12637 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12638else
12639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $PATH
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12646 ac_cv_prog_OTOOL="${ncn_progname}"
12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 break 2
12649 fi
12650done
12651 done
12652IFS=$as_save_IFS
12653
12654fi
12655fi
12656OTOOL=$ac_cv_prog_OTOOL
12657if test -n "$OTOOL"; then
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12659$as_echo "$OTOOL" >&6; }
12660else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
12663fi
12664
12665
12666 fi
12667 test -n "$ac_cv_prog_OTOOL" && break
12668done
12669
12670if test -z "$ac_cv_prog_OTOOL" ; then
12671 set dummy otool
12672 if test $build = $host ; then
12673 OTOOL="$2"
12674 else
12675 OTOOL="${ncn_tool_prefix}$2"
12676 fi
12677fi
12678
12679
12680
e7a82751
RM
12681if test -n "$READELF"; then
12682 ac_cv_prog_READELF=$READELF
12683elif test -n "$ac_cv_prog_READELF"; then
12684 READELF=$ac_cv_prog_READELF
12685fi
12686
12687if test -n "$ac_cv_prog_READELF"; then
12688 for ncn_progname in readelf; do
12689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12690set dummy ${ncn_progname}; ac_word=$2
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12693if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12694 $as_echo_n "(cached) " >&6
12695else
12696 if test -n "$READELF"; then
12697 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12698else
12699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700for as_dir in $PATH
12701do
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
12704 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12706 ac_cv_prog_READELF="${ncn_progname}"
12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12708 break 2
12709 fi
12710done
12711 done
12712IFS=$as_save_IFS
12713
12714fi
12715fi
12716READELF=$ac_cv_prog_READELF
12717if test -n "$READELF"; then
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12719$as_echo "$READELF" >&6; }
12720else
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
12723fi
12724
12725
12726 done
12727fi
12728
12729for ncn_progname in readelf; do
12730 if test -n "$ncn_tool_prefix"; then
12731 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12732set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12735if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12736 $as_echo_n "(cached) " >&6
12737else
12738 if test -n "$READELF"; then
12739 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12740else
12741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742for as_dir in $PATH
12743do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12748 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12751 fi
12752done
12753 done
12754IFS=$as_save_IFS
12755
12756fi
12757fi
12758READELF=$ac_cv_prog_READELF
12759if test -n "$READELF"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12761$as_echo "$READELF" >&6; }
12762else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
12765fi
12766
12767
12768 fi
12769 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12770 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12771set dummy ${ncn_progname}; ac_word=$2
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12774if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12775 $as_echo_n "(cached) " >&6
12776else
12777 if test -n "$READELF"; then
12778 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12779else
12780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781for as_dir in $PATH
12782do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12787 ac_cv_prog_READELF="${ncn_progname}"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791done
12792 done
12793IFS=$as_save_IFS
12794
12795fi
12796fi
12797READELF=$ac_cv_prog_READELF
12798if test -n "$READELF"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12800$as_echo "$READELF" >&6; }
12801else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804fi
12805
12806
12807 fi
12808 test -n "$ac_cv_prog_READELF" && break
12809done
12810
12811if test -z "$ac_cv_prog_READELF" ; then
12812 set dummy readelf
12813 if test $build = $host ; then
12814 READELF="$2"
12815 else
12816 READELF="${ncn_tool_prefix}$2"
12817 fi
12818fi
12819
12820
12821
671aa708
NN
12822
12823
12824
5fee5ec3
IB
12825
12826
2abefe3d 12827# Target tools.
1c710c3c 12828
5213506e
RW
12829# Check whether --with-build-time-tools was given.
12830if test "${with_build_time_tools+set}" = set; then :
12831 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12832 x/*) ;;
12833 *)
12834 with_build_time_tools=
5213506e
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12836$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12837 ;;
12838 esac
ca9f4b81 12839else
e8b05380 12840 with_build_time_tools=
5213506e
RW
12841fi
12842
ca9f4b81 12843
278a7a38
AO
12844
12845
12846if test -n "$CC_FOR_TARGET"; then
12847 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12848elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12849 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12850fi
12851
12852if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12853 for ncn_progname in cc gcc; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12858if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12859 $as_echo_n "(cached) " >&6
278a7a38
AO
12860else
12861 if test -n "$CC_FOR_TARGET"; then
12862 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12863else
12864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865for as_dir in $PATH
12866do
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
5213506e 12869 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12871 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12873 break 2
12874 fi
12875done
5213506e
RW
12876 done
12877IFS=$as_save_IFS
278a7a38
AO
12878
12879fi
12880fi
12881CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12882if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12884$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12885else
5213506e
RW
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887$as_echo "no" >&6; }
278a7a38
AO
12888fi
12889
5213506e 12890
278a7a38
AO
12891 done
12892fi
12893
12894if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12895 for ncn_progname in cc gcc; do
5213506e
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12897$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12898 if test -x $with_build_time_tools/${ncn_progname}; then
12899 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901$as_echo "yes" >&6; }
72a7ab82 12902 break
e8b05380 12903 else
5213506e
RW
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
72a7ab82
AP
12906 fi
12907 done
4de997d1
PB
12908fi
12909
e8b05380
PB
12910if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12911 for ncn_progname in cc gcc; do
12912 if test -n "$ncn_target_tool_prefix"; then
12913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12914set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12917if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12918 $as_echo_n "(cached) " >&6
4de997d1
PB
12919else
12920 if test -n "$CC_FOR_TARGET"; then
12921 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12922else
1c710c3c
DJ
12923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924for as_dir in $PATH
12925do
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
5213506e 12928 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12930 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12932 break 2
12933 fi
12934done
5213506e
RW
12935 done
12936IFS=$as_save_IFS
1c710c3c 12937
4de997d1
PB
12938fi
12939fi
1c710c3c 12940CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12941if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12943$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12944else
5213506e
RW
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
4de997d1
PB
12947fi
12948
5213506e 12949
e8b05380
PB
12950 fi
12951 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12953set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12956if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12957 $as_echo_n "(cached) " >&6
4de997d1 12958else
2693c0b0
PB
12959 if test -n "$CC_FOR_TARGET"; then
12960 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12961else
1c710c3c
DJ
12962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $PATH
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
5213506e 12967 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12969 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12971 break 2
12972 fi
12973done
5213506e
RW
12974 done
12975IFS=$as_save_IFS
1c710c3c 12976
4de997d1
PB
12977fi
12978fi
1c710c3c 12979CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12980if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12982$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12983else
5213506e
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
4de997d1 12986fi
1c710c3c 12987
5213506e 12988
e8b05380
PB
12989 fi
12990 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12991 done
12992fi
1c710c3c 12993
2693c0b0
PB
12994if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12995 set dummy cc gcc
12996 if test $build = $target ; then
12997 CC_FOR_TARGET="$2"
4de997d1 12998 else
2693c0b0 12999 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13000 fi
1c00b503
PB
13001else
13002 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13003fi
13004
278a7a38
AO
13005
13006
13007if test -n "$CXX_FOR_TARGET"; then
13008 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13009elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13010 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13011fi
13012
13013if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13014 for ncn_progname in c++ g++ cxx gxx; do
13015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13016set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13018$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13019if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13020 $as_echo_n "(cached) " >&6
278a7a38
AO
13021else
13022 if test -n "$CXX_FOR_TARGET"; then
13023 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13024else
13025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
5213506e 13030 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13032 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13034 break 2
13035 fi
13036done
5213506e
RW
13037 done
13038IFS=$as_save_IFS
278a7a38
AO
13039
13040fi
13041fi
13042CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13043if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13045$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13046else
5213506e
RW
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13048$as_echo "no" >&6; }
278a7a38
AO
13049fi
13050
5213506e 13051
278a7a38
AO
13052 done
13053fi
13054
13055if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13056 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13058$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13059 if test -x $with_build_time_tools/${ncn_progname}; then
13060 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062$as_echo "yes" >&6; }
e8b05380
PB
13063 break
13064 else
5213506e
RW
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
e8b05380
PB
13067 fi
13068 done
13069fi
13070
13071if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13072 for ncn_progname in c++ g++ cxx gxx; do
13073 if test -n "$ncn_target_tool_prefix"; then
13074 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13075set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13078if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13079 $as_echo_n "(cached) " >&6
4de997d1
PB
13080else
13081 if test -n "$CXX_FOR_TARGET"; then
13082 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13083else
1c710c3c
DJ
13084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13085for as_dir in $PATH
13086do
13087 IFS=$as_save_IFS
13088 test -z "$as_dir" && as_dir=.
5213506e 13089 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13091 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13093 break 2
13094 fi
13095done
5213506e
RW
13096 done
13097IFS=$as_save_IFS
1c710c3c 13098
4de997d1
PB
13099fi
13100fi
1c710c3c 13101CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13102if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13104$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13105else
5213506e
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107$as_echo "no" >&6; }
4de997d1
PB
13108fi
13109
5213506e 13110
e8b05380
PB
13111 fi
13112 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13114set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13116$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13117if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13118 $as_echo_n "(cached) " >&6
4de997d1 13119else
2693c0b0
PB
13120 if test -n "$CXX_FOR_TARGET"; then
13121 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13122else
1c710c3c
DJ
13123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13124for as_dir in $PATH
13125do
13126 IFS=$as_save_IFS
13127 test -z "$as_dir" && as_dir=.
5213506e 13128 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13130 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13132 break 2
13133 fi
13134done
5213506e
RW
13135 done
13136IFS=$as_save_IFS
1c710c3c 13137
4de997d1
PB
13138fi
13139fi
1c710c3c 13140CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13141if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13143$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13144else
5213506e
RW
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
4de997d1 13147fi
1c710c3c 13148
5213506e 13149
e8b05380
PB
13150 fi
13151 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13152 done
13153fi
1c710c3c 13154
2693c0b0
PB
13155if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13156 set dummy c++ g++ cxx gxx
13157 if test $build = $target ; then
13158 CXX_FOR_TARGET="$2"
4de997d1 13159 else
2693c0b0 13160 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13161 fi
1c00b503
PB
13162else
13163 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13164fi
13165
278a7a38
AO
13166
13167
13168if test -n "$GCC_FOR_TARGET"; then
13169 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13170elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13171 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13172fi
13173
13174if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13175 for ncn_progname in gcc; do
13176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13177set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13180if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13181 $as_echo_n "(cached) " >&6
278a7a38
AO
13182else
13183 if test -n "$GCC_FOR_TARGET"; then
13184 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13185else
13186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $PATH
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
5213506e 13191 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13193 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13195 break 2
13196 fi
13197done
5213506e
RW
13198 done
13199IFS=$as_save_IFS
278a7a38
AO
13200
13201fi
13202fi
13203GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13204if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13206$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13207else
5213506e
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
278a7a38
AO
13210fi
13211
5213506e 13212
278a7a38
AO
13213 done
13214fi
13215
13216if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13217 for ncn_progname in gcc; do
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13220 if test -x $with_build_time_tools/${ncn_progname}; then
13221 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13223$as_echo "yes" >&6; }
e8b05380
PB
13224 break
13225 else
5213506e
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
e8b05380
PB
13228 fi
13229 done
13230fi
13231
13232if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13233 for ncn_progname in gcc; do
13234 if test -n "$ncn_target_tool_prefix"; then
13235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13239if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13240 $as_echo_n "(cached) " >&6
ca9f4b81 13241else
e8b05380
PB
13242 if test -n "$GCC_FOR_TARGET"; then
13243 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13244else
1c710c3c
DJ
13245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
5213506e 13250 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13252 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13254 break 2
13255 fi
13256done
5213506e
RW
13257 done
13258IFS=$as_save_IFS
1c710c3c 13259
ca9f4b81
AO
13260fi
13261fi
1c710c3c 13262GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13263if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13265$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13266else
5213506e
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
ca9f4b81
AO
13269fi
13270
5213506e 13271
e8b05380
PB
13272 fi
13273 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13275set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13278if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13279 $as_echo_n "(cached) " >&6
ca9f4b81 13280else
e8b05380
PB
13281 if test -n "$GCC_FOR_TARGET"; then
13282 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13283else
1c710c3c
DJ
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
5213506e 13289 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13291 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13293 break 2
13294 fi
13295done
5213506e
RW
13296 done
13297IFS=$as_save_IFS
1c710c3c 13298
ca9f4b81
AO
13299fi
13300fi
1c710c3c 13301GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13302if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13304$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13305else
5213506e
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
ca9f4b81 13308fi
1c710c3c 13309
5213506e 13310
e8b05380
PB
13311 fi
13312 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13313 done
13314fi
1c710c3c 13315
e8b05380
PB
13316if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13317 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13318else
13319 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13320fi
13321
278a7a38
AO
13322
13323
278a7a38
AO
13324if test -n "$GFORTRAN_FOR_TARGET"; then
13325 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13326elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13327 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13328fi
13329
278a7a38
AO
13330if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13331 for ncn_progname in gfortran; do
13332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13333set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13336if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13337 $as_echo_n "(cached) " >&6
e8b05380 13338else
278a7a38
AO
13339 if test -n "$GFORTRAN_FOR_TARGET"; then
13340 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13341else
1c710c3c
DJ
13342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343for as_dir in $PATH
13344do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
5213506e 13347 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13349 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13351 break 2
13352 fi
13353done
5213506e
RW
13354 done
13355IFS=$as_save_IFS
1c710c3c 13356
e8b05380
PB
13357fi
13358fi
278a7a38
AO
13359GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13360if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13362$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13363else
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
e8b05380 13366fi
1c710c3c 13367
5213506e 13368
e8b05380
PB
13369 done
13370fi
1c710c3c 13371
278a7a38 13372if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13373 for ncn_progname in gfortran; do
5213506e
RW
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13375$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13376 if test -x $with_build_time_tools/${ncn_progname}; then
13377 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13379$as_echo "yes" >&6; }
e8b05380
PB
13380 break
13381 else
5213506e
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383$as_echo "no" >&6; }
e8b05380
PB
13384 fi
13385 done
13386fi
13387
13388if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13389 for ncn_progname in gfortran; do
13390 if test -n "$ncn_target_tool_prefix"; then
13391 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13392set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13395if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13396 $as_echo_n "(cached) " >&6
e8b05380
PB
13397else
13398 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13399 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13400else
13401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13402for as_dir in $PATH
13403do
13404 IFS=$as_save_IFS
13405 test -z "$as_dir" && as_dir=.
5213506e 13406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13408 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13410 break 2
13411 fi
13412done
5213506e
RW
13413 done
13414IFS=$as_save_IFS
1c710c3c 13415
e8b05380
PB
13416fi
13417fi
1c710c3c 13418GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13419if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13421$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13422else
5213506e
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424$as_echo "no" >&6; }
e8b05380
PB
13425fi
13426
5213506e 13427
e8b05380
PB
13428 fi
13429 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13430 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13431set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13433$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13434if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13435 $as_echo_n "(cached) " >&6
e8b05380
PB
13436else
13437 if test -n "$GFORTRAN_FOR_TARGET"; then
13438 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13439else
1c710c3c
DJ
13440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13441for as_dir in $PATH
13442do
13443 IFS=$as_save_IFS
13444 test -z "$as_dir" && as_dir=.
5213506e 13445 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13447 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13449 break 2
13450 fi
13451done
5213506e
RW
13452 done
13453IFS=$as_save_IFS
1c710c3c 13454
e8b05380
PB
13455fi
13456fi
1c710c3c 13457GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13458if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13460$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13461else
5213506e
RW
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13463$as_echo "no" >&6; }
e8b05380 13464fi
1c710c3c 13465
5213506e 13466
e8b05380
PB
13467 fi
13468 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13469 done
13470fi
1c710c3c 13471
e8b05380
PB
13472if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13473 set dummy gfortran
2693c0b0 13474 if test $build = $target ; then
e8b05380 13475 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13476 else
e8b05380
PB
13477 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13478 fi
1c00b503
PB
13479else
13480 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13481fi
13482
13483
13484
632e2a07
ILT
13485if test -n "$GOC_FOR_TARGET"; then
13486 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13487elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13488 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13489fi
13490
13491if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13492 for ncn_progname in gccgo; do
13493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13494set dummy ${ncn_progname}; ac_word=$2
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13496$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13497if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13498 $as_echo_n "(cached) " >&6
13499else
13500 if test -n "$GOC_FOR_TARGET"; then
13501 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13502else
13503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13504for as_dir in $PATH
13505do
13506 IFS=$as_save_IFS
13507 test -z "$as_dir" && as_dir=.
13508 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13510 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13512 break 2
13513 fi
13514done
13515 done
13516IFS=$as_save_IFS
13517
13518fi
13519fi
13520GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13521if test -n "$GOC_FOR_TARGET"; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13523$as_echo "$GOC_FOR_TARGET" >&6; }
13524else
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
13527fi
13528
13529
13530 done
13531fi
13532
13533if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13534 for ncn_progname in gccgo; do
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13536$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13537 if test -x $with_build_time_tools/${ncn_progname}; then
13538 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13540$as_echo "yes" >&6; }
13541 break
13542 else
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13544$as_echo "no" >&6; }
13545 fi
13546 done
13547fi
13548
13549if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13550 for ncn_progname in gccgo; do
13551 if test -n "$ncn_target_tool_prefix"; then
13552 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13553set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13556if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13557 $as_echo_n "(cached) " >&6
13558else
13559 if test -n "$GOC_FOR_TARGET"; then
13560 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13561else
13562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563for as_dir in $PATH
13564do
13565 IFS=$as_save_IFS
13566 test -z "$as_dir" && as_dir=.
13567 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13569 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13571 break 2
13572 fi
13573done
13574 done
13575IFS=$as_save_IFS
13576
13577fi
13578fi
13579GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13580if test -n "$GOC_FOR_TARGET"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13582$as_echo "$GOC_FOR_TARGET" >&6; }
13583else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585$as_echo "no" >&6; }
13586fi
13587
13588
13589 fi
13590 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13592set dummy ${ncn_progname}; ac_word=$2
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13594$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13595if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13596 $as_echo_n "(cached) " >&6
13597else
13598 if test -n "$GOC_FOR_TARGET"; then
13599 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13600else
13601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602for as_dir in $PATH
13603do
13604 IFS=$as_save_IFS
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13608 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13610 break 2
13611 fi
13612done
13613 done
13614IFS=$as_save_IFS
13615
13616fi
13617fi
13618GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13619if test -n "$GOC_FOR_TARGET"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13621$as_echo "$GOC_FOR_TARGET" >&6; }
13622else
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13624$as_echo "no" >&6; }
13625fi
13626
13627
13628 fi
13629 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13630 done
13631fi
13632
13633if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13634 set dummy gccgo
13635 if test $build = $target ; then
13636 GOC_FOR_TARGET="$2"
13637 else
13638 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13639 fi
13640else
13641 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13642fi
13643
13644
13645
b4c522fa
IB
13646if test -n "$GDC_FOR_TARGET"; then
13647 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13648elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13649 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13650fi
13651
13652if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13653 for ncn_progname in gdc; do
13654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13655set dummy ${ncn_progname}; ac_word=$2
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13657$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13658if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13659 $as_echo_n "(cached) " >&6
13660else
13661 if test -n "$GDC_FOR_TARGET"; then
13662 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13663else
13664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665for as_dir in $PATH
13666do
13667 IFS=$as_save_IFS
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13671 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13673 break 2
13674 fi
13675done
13676 done
13677IFS=$as_save_IFS
13678
13679fi
13680fi
13681GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13682if test -n "$GDC_FOR_TARGET"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13684$as_echo "$GDC_FOR_TARGET" >&6; }
13685else
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13687$as_echo "no" >&6; }
13688fi
13689
13690
13691 done
13692fi
13693
13694if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13695 for ncn_progname in gdc; do
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13697$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13698 if test -x $with_build_time_tools/${ncn_progname}; then
13699 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13701$as_echo "yes" >&6; }
13702 break
13703 else
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705$as_echo "no" >&6; }
13706 fi
13707 done
13708fi
13709
13710if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13711 for ncn_progname in gdc; do
13712 if test -n "$ncn_target_tool_prefix"; then
13713 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13714set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13717if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13718 $as_echo_n "(cached) " >&6
13719else
13720 if test -n "$GDC_FOR_TARGET"; then
13721 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13722else
13723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724for as_dir in $PATH
13725do
13726 IFS=$as_save_IFS
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13730 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732 break 2
13733 fi
13734done
13735 done
13736IFS=$as_save_IFS
13737
13738fi
13739fi
13740GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13741if test -n "$GDC_FOR_TARGET"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13743$as_echo "$GDC_FOR_TARGET" >&6; }
13744else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
13747fi
13748
13749
13750 fi
13751 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13753set dummy ${ncn_progname}; ac_word=$2
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13755$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13756if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13757 $as_echo_n "(cached) " >&6
13758else
13759 if test -n "$GDC_FOR_TARGET"; then
13760 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13761else
13762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13763for as_dir in $PATH
13764do
13765 IFS=$as_save_IFS
13766 test -z "$as_dir" && as_dir=.
13767 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13769 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 break 2
13772 fi
13773done
13774 done
13775IFS=$as_save_IFS
13776
13777fi
13778fi
13779GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13780if test -n "$GDC_FOR_TARGET"; then
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13782$as_echo "$GDC_FOR_TARGET" >&6; }
13783else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13785$as_echo "no" >&6; }
13786fi
13787
13788
13789 fi
13790 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13791 done
13792fi
13793
13794if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13795 set dummy gdc
13796 if test $build = $target ; then
13797 GDC_FOR_TARGET="$2"
13798 else
13799 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13800 fi
13801else
13802 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13803fi
13804
13805
13806
1eee94d3
GM
13807if test -n "$GM2_FOR_TARGET"; then
13808 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13809elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13810 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13811fi
13812
13813if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13814 for ncn_progname in gm2; do
13815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13816set dummy ${ncn_progname}; ac_word=$2
13817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818$as_echo_n "checking for $ac_word... " >&6; }
13819if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13820 $as_echo_n "(cached) " >&6
13821else
13822 if test -n "$GM2_FOR_TARGET"; then
13823 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13824else
13825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826for as_dir in $PATH
13827do
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13834 break 2
13835 fi
13836done
13837 done
13838IFS=$as_save_IFS
13839
13840fi
13841fi
13842GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13843if test -n "$GM2_FOR_TARGET"; then
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13845$as_echo "$GM2_FOR_TARGET" >&6; }
13846else
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13848$as_echo "no" >&6; }
13849fi
13850
13851
13852 done
13853fi
13854
13855if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13856 for ncn_progname in gm2; do
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13858$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13859 if test -x $with_build_time_tools/${ncn_progname}; then
13860 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13862$as_echo "yes" >&6; }
13863 break
13864 else
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866$as_echo "no" >&6; }
13867 fi
13868 done
13869fi
13870
13871if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13872 for ncn_progname in gm2; do
13873 if test -n "$ncn_target_tool_prefix"; then
13874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13875set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877$as_echo_n "checking for $ac_word... " >&6; }
13878if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880else
13881 if test -n "$GM2_FOR_TARGET"; then
13882 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13883else
13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $PATH
13886do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13891 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13893 break 2
13894 fi
13895done
13896 done
13897IFS=$as_save_IFS
13898
13899fi
13900fi
13901GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13902if test -n "$GM2_FOR_TARGET"; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13904$as_echo "$GM2_FOR_TARGET" >&6; }
13905else
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907$as_echo "no" >&6; }
13908fi
13909
13910
13911 fi
13912 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13914set dummy ${ncn_progname}; ac_word=$2
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916$as_echo_n "checking for $ac_word... " >&6; }
13917if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13918 $as_echo_n "(cached) " >&6
13919else
13920 if test -n "$GM2_FOR_TARGET"; then
13921 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13922else
13923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924for as_dir in $PATH
13925do
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
13929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13930 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13933 fi
13934done
13935 done
13936IFS=$as_save_IFS
13937
13938fi
13939fi
13940GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13941if test -n "$GM2_FOR_TARGET"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
13943$as_echo "$GM2_FOR_TARGET" >&6; }
13944else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946$as_echo "no" >&6; }
13947fi
13948
13949
13950 fi
13951 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
13952 done
13953fi
13954
13955if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
13956 set dummy gm2
13957 if test $build = $target ; then
13958 GM2_FOR_TARGET="$2"
13959 else
13960 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
13961 fi
13962else
13963 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
13964fi
13965
13966
13967
e8b05380
PB
13968cat > conftest.c << \EOF
13969#ifdef __GNUC__
13970 gcc_yay;
13971#endif
13972EOF
13973if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13974 have_gcc_for_target=yes
13975else
13976 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13977 have_gcc_for_target=no
13978fi
13979rm conftest.c
13980
13981
13982
13983
13984if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13985 if test -n "$with_build_time_tools"; then
5213506e
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13987$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13988 if test -x $with_build_time_tools/ar; then
13989 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13990 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13992$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13993 else
5213506e
RW
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995$as_echo "no" >&6; }
d1f8db0c 13996 fi
e8b05380
PB
13997 elif test $build != $host && test $have_gcc_for_target = yes; then
13998 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13999 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14000 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
14001 fi
14002fi
3e19841a 14003if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14004 # Extract the first word of "ar", so it can be a program name with args.
14005set dummy ar; ac_word=$2
5213506e
RW
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14007$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14008if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 14009 $as_echo_n "(cached) " >&6
e8b05380 14010else
1c710c3c
DJ
14011 case $AR_FOR_TARGET in
14012 [\\/]* | ?:[\\/]*)
e8b05380
PB
14013 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14014 ;;
e8b05380 14015 *)
1c710c3c
DJ
14016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14017for as_dir in $gcc_cv_tool_dirs
14018do
14019 IFS=$as_save_IFS
14020 test -z "$as_dir" && as_dir=.
5213506e 14021 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14023 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14025 break 2
14026 fi
14027done
5213506e
RW
14028 done
14029IFS=$as_save_IFS
1c710c3c 14030
e8b05380
PB
14031 ;;
14032esac
14033fi
1c710c3c 14034AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 14035if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14037$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14038else
5213506e
RW
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040$as_echo "no" >&6; }
4de997d1
PB
14041fi
14042
5213506e 14043
e8b05380
PB
14044fi
14045if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
14046
14047
14048if test -n "$AR_FOR_TARGET"; then
14049 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14050elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14051 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14052fi
14053
14054if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14055 for ncn_progname in ar; do
14056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14057set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14059$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14060if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14061 $as_echo_n "(cached) " >&6
278a7a38
AO
14062else
14063 if test -n "$AR_FOR_TARGET"; then
14064 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14065else
14066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14067for as_dir in $PATH
14068do
14069 IFS=$as_save_IFS
14070 test -z "$as_dir" && as_dir=.
5213506e 14071 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14073 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14075 break 2
14076 fi
14077done
5213506e
RW
14078 done
14079IFS=$as_save_IFS
278a7a38
AO
14080
14081fi
14082fi
14083AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14084if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14086$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 14087else
5213506e
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089$as_echo "no" >&6; }
278a7a38
AO
14090fi
14091
5213506e 14092
278a7a38
AO
14093 done
14094fi
14095
14096if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14097 for ncn_progname in ar; do
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14099$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14100 if test -x $with_build_time_tools/${ncn_progname}; then
14101 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14103$as_echo "yes" >&6; }
e8b05380
PB
14104 break
14105 else
5213506e
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14107$as_echo "no" >&6; }
e8b05380
PB
14108 fi
14109 done
14110fi
14111
14112if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14113 for ncn_progname in ar; do
14114 if test -n "$ncn_target_tool_prefix"; then
14115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14116set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14118$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14119if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14120 $as_echo_n "(cached) " >&6
4de997d1 14121else
e8b05380
PB
14122 if test -n "$AR_FOR_TARGET"; then
14123 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 14124else
1c710c3c
DJ
14125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14126for as_dir in $PATH
14127do
14128 IFS=$as_save_IFS
14129 test -z "$as_dir" && as_dir=.
5213506e 14130 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14132 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14134 break 2
14135 fi
14136done
5213506e
RW
14137 done
14138IFS=$as_save_IFS
1c710c3c 14139
4de997d1
PB
14140fi
14141fi
1c710c3c 14142AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14143if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14145$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14146else
5213506e
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148$as_echo "no" >&6; }
4de997d1
PB
14149fi
14150
5213506e 14151
e8b05380
PB
14152 fi
14153 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14155set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14157$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14158if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14159 $as_echo_n "(cached) " >&6
e8b05380
PB
14160else
14161 if test -n "$AR_FOR_TARGET"; then
14162 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14163else
1c710c3c
DJ
14164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14165for as_dir in $PATH
14166do
14167 IFS=$as_save_IFS
14168 test -z "$as_dir" && as_dir=.
5213506e 14169 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14171 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14173 break 2
14174 fi
14175done
5213506e
RW
14176 done
14177IFS=$as_save_IFS
1c710c3c 14178
e8b05380
PB
14179fi
14180fi
1c710c3c 14181AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14182if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14184$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14185else
5213506e
RW
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14187$as_echo "no" >&6; }
e8b05380 14188fi
1c710c3c 14189
5213506e 14190
e8b05380
PB
14191 fi
14192 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14193 done
14194fi
1c710c3c 14195
e8b05380
PB
14196if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14197 set dummy ar
14198 if test $build = $target ; then
14199 AR_FOR_TARGET="$2"
14200 else
14201 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14202 fi
1c00b503
PB
14203else
14204 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14205fi
14206
d1f8db0c
PB
14207else
14208 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14209fi
14210
14211
14212
14213
14214if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14215 if test -n "$with_build_time_tools"; then
5213506e
RW
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14217$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14218 if test -x $with_build_time_tools/as; then
14219 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14220 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14222$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14223 else
5213506e
RW
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225$as_echo "no" >&6; }
d1f8db0c 14226 fi
e8b05380
PB
14227 elif test $build != $host && test $have_gcc_for_target = yes; then
14228 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14229 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14230 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14231 fi
14232fi
3e19841a 14233if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14234 # Extract the first word of "as", so it can be a program name with args.
14235set dummy as; ac_word=$2
5213506e
RW
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14237$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14238if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14239 $as_echo_n "(cached) " >&6
e8b05380 14240else
1c710c3c
DJ
14241 case $AS_FOR_TARGET in
14242 [\\/]* | ?:[\\/]*)
e8b05380
PB
14243 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14244 ;;
e8b05380 14245 *)
1c710c3c
DJ
14246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14247for as_dir in $gcc_cv_tool_dirs
14248do
14249 IFS=$as_save_IFS
14250 test -z "$as_dir" && as_dir=.
5213506e 14251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14253 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14255 break 2
14256 fi
14257done
5213506e
RW
14258 done
14259IFS=$as_save_IFS
1c710c3c 14260
e8b05380
PB
14261 ;;
14262esac
14263fi
1c710c3c 14264AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14265if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14267$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14268else
5213506e
RW
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14270$as_echo "no" >&6; }
e8b05380
PB
14271fi
14272
5213506e 14273
e8b05380
PB
14274fi
14275if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14276
14277
14278if test -n "$AS_FOR_TARGET"; then
14279 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14280elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14281 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14282fi
14283
14284if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14285 for ncn_progname in as; do
14286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14287set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14289$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14290if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14291 $as_echo_n "(cached) " >&6
278a7a38
AO
14292else
14293 if test -n "$AS_FOR_TARGET"; then
14294 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14295else
14296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297for as_dir in $PATH
14298do
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
5213506e 14301 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14303 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14305 break 2
14306 fi
14307done
5213506e
RW
14308 done
14309IFS=$as_save_IFS
278a7a38
AO
14310
14311fi
14312fi
14313AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14314if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14316$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14317else
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319$as_echo "no" >&6; }
278a7a38
AO
14320fi
14321
5213506e 14322
278a7a38
AO
14323 done
14324fi
14325
14326if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14327 for ncn_progname in as; do
5213506e
RW
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14329$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14330 if test -x $with_build_time_tools/${ncn_progname}; then
14331 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14333$as_echo "yes" >&6; }
e8b05380
PB
14334 break
14335 else
5213506e
RW
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337$as_echo "no" >&6; }
e8b05380
PB
14338 fi
14339 done
14340fi
14341
14342if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14343 for ncn_progname in as; do
14344 if test -n "$ncn_target_tool_prefix"; then
14345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14346set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14348$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14349if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14350 $as_echo_n "(cached) " >&6
e8b05380
PB
14351else
14352 if test -n "$AS_FOR_TARGET"; then
14353 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14354else
1c710c3c
DJ
14355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14356for as_dir in $PATH
14357do
14358 IFS=$as_save_IFS
14359 test -z "$as_dir" && as_dir=.
5213506e 14360 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14362 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14364 break 2
14365 fi
14366done
5213506e
RW
14367 done
14368IFS=$as_save_IFS
1c710c3c 14369
e8b05380
PB
14370fi
14371fi
1c710c3c 14372AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14373if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14375$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14376else
5213506e
RW
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378$as_echo "no" >&6; }
e8b05380
PB
14379fi
14380
5213506e 14381
e8b05380
PB
14382 fi
14383 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14385set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14388if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14389 $as_echo_n "(cached) " >&6
4de997d1 14390else
e8b05380
PB
14391 if test -n "$AS_FOR_TARGET"; then
14392 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14393else
1c710c3c
DJ
14394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395for as_dir in $PATH
14396do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
5213506e 14399 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14401 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14403 break 2
14404 fi
14405done
5213506e
RW
14406 done
14407IFS=$as_save_IFS
1c710c3c 14408
4de997d1
PB
14409fi
14410fi
1c710c3c 14411AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14412if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14414$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14415else
5213506e
RW
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14417$as_echo "no" >&6; }
4de997d1 14418fi
1c710c3c 14419
5213506e 14420
e8b05380
PB
14421 fi
14422 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14423 done
14424fi
1c710c3c 14425
e8b05380
PB
14426if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14427 set dummy as
14428 if test $build = $target ; then
14429 AS_FOR_TARGET="$2"
14430 else
14431 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14432 fi
1c00b503
PB
14433else
14434 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14435fi
2693c0b0 14436
d1f8db0c
PB
14437else
14438 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14439fi
14440
e8b05380
PB
14441
14442
14443
14444if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14445 if test -n "$with_build_time_tools"; then
5213506e
RW
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14447$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14448 if test -x $with_build_time_tools/dlltool; then
14449 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14450 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14452$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14453 else
5213506e
RW
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455$as_echo "no" >&6; }
d1f8db0c 14456 fi
e8b05380
PB
14457 elif test $build != $host && test $have_gcc_for_target = yes; then
14458 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14459 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14460 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14461 fi
14462fi
3e19841a 14463if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14464 # Extract the first word of "dlltool", so it can be a program name with args.
14465set dummy dlltool; ac_word=$2
5213506e
RW
14466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14467$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14468if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14469 $as_echo_n "(cached) " >&6
4de997d1 14470else
1c710c3c
DJ
14471 case $DLLTOOL_FOR_TARGET in
14472 [\\/]* | ?:[\\/]*)
e8b05380
PB
14473 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14474 ;;
e8b05380 14475 *)
1c710c3c
DJ
14476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14477for as_dir in $gcc_cv_tool_dirs
14478do
14479 IFS=$as_save_IFS
14480 test -z "$as_dir" && as_dir=.
5213506e 14481 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14483 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14485 break 2
14486 fi
14487done
5213506e
RW
14488 done
14489IFS=$as_save_IFS
1c710c3c 14490
e8b05380
PB
14491 ;;
14492esac
4de997d1 14493fi
1c710c3c 14494DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14495if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14497$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14498else
5213506e
RW
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500$as_echo "no" >&6; }
4de997d1
PB
14501fi
14502
5213506e 14503
e8b05380
PB
14504fi
14505if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14506
14507
14508if test -n "$DLLTOOL_FOR_TARGET"; then
14509 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14510elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14511 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14512fi
14513
14514if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14515 for ncn_progname in dlltool; do
14516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14517set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14520if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14521 $as_echo_n "(cached) " >&6
278a7a38
AO
14522else
14523 if test -n "$DLLTOOL_FOR_TARGET"; then
14524 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14525else
14526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527for as_dir in $PATH
14528do
14529 IFS=$as_save_IFS
14530 test -z "$as_dir" && as_dir=.
5213506e 14531 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14533 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14535 break 2
14536 fi
14537done
5213506e
RW
14538 done
14539IFS=$as_save_IFS
278a7a38
AO
14540
14541fi
14542fi
14543DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14544if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14546$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14547else
5213506e
RW
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549$as_echo "no" >&6; }
278a7a38
AO
14550fi
14551
5213506e 14552
278a7a38
AO
14553 done
14554fi
14555
14556if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14557 for ncn_progname in dlltool; do
5213506e
RW
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14559$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14560 if test -x $with_build_time_tools/${ncn_progname}; then
14561 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14563$as_echo "yes" >&6; }
e8b05380
PB
14564 break
14565 else
5213506e
RW
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567$as_echo "no" >&6; }
e8b05380
PB
14568 fi
14569 done
14570fi
14571
14572if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14573 for ncn_progname in dlltool; do
14574 if test -n "$ncn_target_tool_prefix"; then
14575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14578$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14579if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14580 $as_echo_n "(cached) " >&6
4de997d1 14581else
e8b05380
PB
14582 if test -n "$DLLTOOL_FOR_TARGET"; then
14583 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14584else
1c710c3c
DJ
14585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586for as_dir in $PATH
14587do
14588 IFS=$as_save_IFS
14589 test -z "$as_dir" && as_dir=.
5213506e 14590 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14592 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14594 break 2
14595 fi
14596done
5213506e
RW
14597 done
14598IFS=$as_save_IFS
1c710c3c 14599
4de997d1
PB
14600fi
14601fi
1c710c3c 14602DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14603if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14605$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14606else
5213506e
RW
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14608$as_echo "no" >&6; }
4de997d1 14609fi
4de997d1 14610
5213506e 14611
e8b05380
PB
14612 fi
14613 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14615set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14617$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14618if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14619 $as_echo_n "(cached) " >&6
4de997d1 14620else
e8b05380
PB
14621 if test -n "$DLLTOOL_FOR_TARGET"; then
14622 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14623else
1c710c3c
DJ
14624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
5213506e 14629 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14631 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14633 break 2
14634 fi
14635done
5213506e
RW
14636 done
14637IFS=$as_save_IFS
1c710c3c 14638
4de997d1
PB
14639fi
14640fi
1c710c3c 14641DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14642if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14644$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14645else
5213506e
RW
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647$as_echo "no" >&6; }
4de997d1 14648fi
1c710c3c 14649
5213506e 14650
e8b05380
PB
14651 fi
14652 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14653 done
14654fi
1c710c3c 14655
e8b05380
PB
14656if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14657 set dummy dlltool
14658 if test $build = $target ; then
14659 DLLTOOL_FOR_TARGET="$2"
14660 else
14661 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14662 fi
1c00b503
PB
14663else
14664 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14665fi
14666
d1f8db0c
PB
14667else
14668 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14669fi
14670
4de997d1 14671
e8b05380
PB
14672
14673
3b5e8ee4
IS
14674if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14675 if test -n "$with_build_time_tools"; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14677$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14678 if test -x $with_build_time_tools/dsymutil; then
14679 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14680 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14682$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14683 else
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14685$as_echo "no" >&6; }
14686 fi
14687 elif test $build != $host && test $have_gcc_for_target = yes; then
14688 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14689 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14690 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14691 fi
14692fi
14693if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14694 # Extract the first word of "dsymutil", so it can be a program name with args.
14695set dummy dsymutil; ac_word=$2
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14697$as_echo_n "checking for $ac_word... " >&6; }
14698if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700else
14701 case $DSYMUTIL_FOR_TARGET in
14702 [\\/]* | ?:[\\/]*)
14703 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14704 ;;
14705 *)
14706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14707for as_dir in $gcc_cv_tool_dirs
14708do
14709 IFS=$as_save_IFS
14710 test -z "$as_dir" && as_dir=.
14711 for ac_exec_ext in '' $ac_executable_extensions; do
14712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14713 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14715 break 2
14716 fi
14717done
14718 done
14719IFS=$as_save_IFS
14720
14721 ;;
14722esac
14723fi
14724DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14725if test -n "$DSYMUTIL_FOR_TARGET"; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14727$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14728else
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730$as_echo "no" >&6; }
14731fi
14732
14733
14734fi
14735if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14736
14737
14738if test -n "$DSYMUTIL_FOR_TARGET"; then
14739 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14740elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14741 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14742fi
14743
14744if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14745 for ncn_progname in dsymutil; do
14746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14747set dummy ${ncn_progname}; ac_word=$2
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14749$as_echo_n "checking for $ac_word... " >&6; }
14750if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752else
14753 if test -n "$DSYMUTIL_FOR_TARGET"; then
14754 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14755else
14756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757for as_dir in $PATH
14758do
14759 IFS=$as_save_IFS
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14763 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765 break 2
14766 fi
14767done
14768 done
14769IFS=$as_save_IFS
14770
14771fi
14772fi
14773DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14774if test -n "$DSYMUTIL_FOR_TARGET"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14776$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14777else
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779$as_echo "no" >&6; }
14780fi
14781
14782
14783 done
14784fi
14785
14786if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14787 for ncn_progname in dsymutil; do
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14789$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14790 if test -x $with_build_time_tools/${ncn_progname}; then
14791 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14793$as_echo "yes" >&6; }
14794 break
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14797$as_echo "no" >&6; }
14798 fi
14799 done
14800fi
14801
14802if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14803 for ncn_progname in dsymutil; do
14804 if test -n "$ncn_target_tool_prefix"; then
14805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14806set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14808$as_echo_n "checking for $ac_word... " >&6; }
14809if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811else
14812 if test -n "$DSYMUTIL_FOR_TARGET"; then
14813 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14814else
14815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816for as_dir in $PATH
14817do
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for ac_exec_ext in '' $ac_executable_extensions; do
14821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14822 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14824 break 2
14825 fi
14826done
14827 done
14828IFS=$as_save_IFS
14829
14830fi
14831fi
14832DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14833if test -n "$DSYMUTIL_FOR_TARGET"; then
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14835$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14836else
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14838$as_echo "no" >&6; }
14839fi
14840
14841
14842 fi
14843 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14845set dummy ${ncn_progname}; ac_word=$2
14846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14847$as_echo_n "checking for $ac_word... " >&6; }
14848if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850else
14851 if test -n "$DSYMUTIL_FOR_TARGET"; then
14852 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14853else
14854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14855for as_dir in $PATH
14856do
14857 IFS=$as_save_IFS
14858 test -z "$as_dir" && as_dir=.
14859 for ac_exec_ext in '' $ac_executable_extensions; do
14860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14861 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14863 break 2
14864 fi
14865done
14866 done
14867IFS=$as_save_IFS
14868
14869fi
14870fi
14871DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14872if test -n "$DSYMUTIL_FOR_TARGET"; then
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14874$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14875else
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14877$as_echo "no" >&6; }
14878fi
14879
14880
14881 fi
14882 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14883 done
14884fi
14885
14886if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14887 set dummy dsymutil
14888 if test $build = $target ; then
14889 DSYMUTIL_FOR_TARGET="$2"
14890 else
14891 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14892 fi
14893else
14894 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14895fi
14896
14897else
14898 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14899fi
14900
14901
14902
14903
e8b05380
PB
14904if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14905 if test -n "$with_build_time_tools"; then
5213506e
RW
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14907$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14908 if test -x $with_build_time_tools/ld; then
14909 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14910 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14912$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14913 else
5213506e
RW
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915$as_echo "no" >&6; }
d1f8db0c 14916 fi
e8b05380
PB
14917 elif test $build != $host && test $have_gcc_for_target = yes; then
14918 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14919 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14920 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14921 fi
e8b05380 14922fi
3e19841a 14923if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14924 # Extract the first word of "ld", so it can be a program name with args.
14925set dummy ld; ac_word=$2
5213506e
RW
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14927$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14928if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14929 $as_echo_n "(cached) " >&6
4de997d1 14930else
1c710c3c
DJ
14931 case $LD_FOR_TARGET in
14932 [\\/]* | ?:[\\/]*)
e8b05380
PB
14933 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14934 ;;
e8b05380 14935 *)
1c710c3c
DJ
14936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14937for as_dir in $gcc_cv_tool_dirs
14938do
14939 IFS=$as_save_IFS
14940 test -z "$as_dir" && as_dir=.
5213506e 14941 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14943 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14945 break 2
14946 fi
14947done
5213506e
RW
14948 done
14949IFS=$as_save_IFS
1c710c3c 14950
e8b05380
PB
14951 ;;
14952esac
4de997d1 14953fi
1c710c3c 14954LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14955if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14957$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14958else
5213506e
RW
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14960$as_echo "no" >&6; }
4de997d1 14961fi
2693c0b0 14962
5213506e 14963
e8b05380
PB
14964fi
14965if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14966
14967
14968if test -n "$LD_FOR_TARGET"; then
14969 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14970elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14971 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14972fi
14973
14974if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14975 for ncn_progname in ld; do
14976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14977set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14979$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14980if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14981 $as_echo_n "(cached) " >&6
278a7a38
AO
14982else
14983 if test -n "$LD_FOR_TARGET"; then
14984 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14985else
14986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14987for as_dir in $PATH
14988do
14989 IFS=$as_save_IFS
14990 test -z "$as_dir" && as_dir=.
5213506e 14991 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14993 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14995 break 2
14996 fi
14997done
5213506e
RW
14998 done
14999IFS=$as_save_IFS
278a7a38
AO
15000
15001fi
15002fi
15003LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15004if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15006$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 15007else
5213506e
RW
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009$as_echo "no" >&6; }
278a7a38
AO
15010fi
15011
5213506e 15012
278a7a38
AO
15013 done
15014fi
15015
15016if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15017 for ncn_progname in ld; do
5213506e
RW
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15019$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15020 if test -x $with_build_time_tools/${ncn_progname}; then
15021 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15023$as_echo "yes" >&6; }
e8b05380
PB
15024 break
15025 else
5213506e
RW
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027$as_echo "no" >&6; }
e8b05380
PB
15028 fi
15029 done
ca9f4b81
AO
15030fi
15031
e8b05380
PB
15032if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15033 for ncn_progname in ld; do
15034 if test -n "$ncn_target_tool_prefix"; then
15035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15036set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15038$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15039if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15040 $as_echo_n "(cached) " >&6
ca9f4b81 15041else
4de997d1
PB
15042 if test -n "$LD_FOR_TARGET"; then
15043 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15044else
1c710c3c
DJ
15045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15046for as_dir in $PATH
15047do
15048 IFS=$as_save_IFS
15049 test -z "$as_dir" && as_dir=.
5213506e 15050 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15052 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15054 break 2
15055 fi
15056done
5213506e
RW
15057 done
15058IFS=$as_save_IFS
1c710c3c 15059
ca9f4b81
AO
15060fi
15061fi
1c710c3c 15062LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 15063if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15065$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15066else
5213506e
RW
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15068$as_echo "no" >&6; }
ca9f4b81
AO
15069fi
15070
5213506e 15071
e8b05380
PB
15072 fi
15073 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15075set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15078if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 15079 $as_echo_n "(cached) " >&6
ca9f4b81 15080else
2693c0b0
PB
15081 if test -n "$LD_FOR_TARGET"; then
15082 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 15083else
1c710c3c
DJ
15084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15085for as_dir in $PATH
15086do
15087 IFS=$as_save_IFS
15088 test -z "$as_dir" && as_dir=.
5213506e 15089 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15091 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 15092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15093 break 2
15094 fi
15095done
5213506e
RW
15096 done
15097IFS=$as_save_IFS
1c710c3c 15098
ca9f4b81
AO
15099fi
15100fi
1c710c3c 15101LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 15102if test -n "$LD_FOR_TARGET"; then
5213506e
RW
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15104$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 15105else
5213506e
RW
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107$as_echo "no" >&6; }
ca9f4b81 15108fi
1c710c3c 15109
5213506e 15110
e8b05380
PB
15111 fi
15112 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15113 done
15114fi
1c710c3c 15115
2693c0b0
PB
15116if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15117 set dummy ld
15118 if test $build = $target ; then
15119 LD_FOR_TARGET="$2"
ca9f4b81 15120 else
2693c0b0 15121 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15122 fi
1c00b503
PB
15123else
15124 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15125fi
15126
d1f8db0c
PB
15127else
15128 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15129fi
15130
15131
15132
15133
15134if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15135 if test -n "$with_build_time_tools"; then
5213506e
RW
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15137$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15138 if test -x $with_build_time_tools/lipo; then
15139 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15140 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15142$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15143 else
5213506e
RW
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15145$as_echo "no" >&6; }
d1f8db0c 15146 fi
e8b05380
PB
15147 elif test $build != $host && test $have_gcc_for_target = yes; then
15148 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15149 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15150 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15151 fi
15152fi
278a7a38
AO
15153if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15154 # Extract the first word of "lipo", so it can be a program name with args.
15155set dummy lipo; ac_word=$2
5213506e
RW
15156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15157$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15158if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15159 $as_echo_n "(cached) " >&6
278a7a38
AO
15160else
15161 case $LIPO_FOR_TARGET in
15162 [\\/]* | ?:[\\/]*)
15163 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15164 ;;
15165 *)
15166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167for as_dir in $gcc_cv_tool_dirs
15168do
15169 IFS=$as_save_IFS
15170 test -z "$as_dir" && as_dir=.
5213506e 15171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15173 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15175 break 2
15176 fi
15177done
5213506e
RW
15178 done
15179IFS=$as_save_IFS
278a7a38
AO
15180
15181 ;;
15182esac
15183fi
15184LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15185if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15187$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15188else
5213506e
RW
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190$as_echo "no" >&6; }
278a7a38
AO
15191fi
15192
5213506e 15193
278a7a38
AO
15194fi
15195if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15196
15197
15198if test -n "$LIPO_FOR_TARGET"; then
15199 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15200elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15201 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15202fi
15203
15204if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15205 for ncn_progname in lipo; do
15206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15207set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15209$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15210if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15211 $as_echo_n "(cached) " >&6
e8b05380 15212else
278a7a38
AO
15213 if test -n "$LIPO_FOR_TARGET"; then
15214 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15215else
15216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15217for as_dir in $PATH
1c710c3c
DJ
15218do
15219 IFS=$as_save_IFS
15220 test -z "$as_dir" && as_dir=.
5213506e 15221 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15223 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15225 break 2
15226 fi
15227done
5213506e
RW
15228 done
15229IFS=$as_save_IFS
1c710c3c 15230
e8b05380 15231fi
278a7a38
AO
15232fi
15233LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15234if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15236$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15237else
5213506e
RW
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239$as_echo "no" >&6; }
e8b05380
PB
15240fi
15241
5213506e 15242
278a7a38 15243 done
e8b05380 15244fi
278a7a38
AO
15245
15246if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15247 for ncn_progname in lipo; do
5213506e
RW
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15249$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15250 if test -x $with_build_time_tools/${ncn_progname}; then
15251 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15253$as_echo "yes" >&6; }
e8b05380
PB
15254 break
15255 else
5213506e
RW
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257$as_echo "no" >&6; }
e8b05380
PB
15258 fi
15259 done
15260fi
15261
15262if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15263 for ncn_progname in lipo; do
15264 if test -n "$ncn_target_tool_prefix"; then
15265 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15266set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15268$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15269if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15270 $as_echo_n "(cached) " >&6
040b1c5a
GK
15271else
15272 if test -n "$LIPO_FOR_TARGET"; then
15273 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15274else
1c710c3c
DJ
15275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15276for as_dir in $PATH
15277do
15278 IFS=$as_save_IFS
15279 test -z "$as_dir" && as_dir=.
5213506e 15280 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15282 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15284 break 2
15285 fi
15286done
5213506e
RW
15287 done
15288IFS=$as_save_IFS
1c710c3c 15289
040b1c5a
GK
15290fi
15291fi
1c710c3c 15292LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15293if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15295$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15296else
5213506e
RW
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15298$as_echo "no" >&6; }
040b1c5a
GK
15299fi
15300
5213506e 15301
e8b05380
PB
15302 fi
15303 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15305set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15307$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15308if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15309 $as_echo_n "(cached) " >&6
040b1c5a
GK
15310else
15311 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15312 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15313else
1c710c3c
DJ
15314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15315for as_dir in $PATH
15316do
15317 IFS=$as_save_IFS
15318 test -z "$as_dir" && as_dir=.
5213506e 15319 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15321 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15323 break 2
15324 fi
15325done
5213506e
RW
15326 done
15327IFS=$as_save_IFS
1c710c3c 15328
040b1c5a
GK
15329fi
15330fi
1c710c3c 15331LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15332if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15334$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15335else
5213506e
RW
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337$as_echo "no" >&6; }
040b1c5a 15338fi
1c710c3c 15339
5213506e 15340
e8b05380
PB
15341 fi
15342 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15343 done
15344fi
1c710c3c 15345
040b1c5a
GK
15346if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15347 set dummy lipo
15348 if test $build = $target ; then
15349 LIPO_FOR_TARGET="$2"
15350 else
15351 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15352 fi
1c00b503
PB
15353else
15354 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15355fi
15356
d1f8db0c
PB
15357else
15358 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15359fi
15360
15361
15362
15363
15364if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15365 if test -n "$with_build_time_tools"; then
5213506e
RW
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15367$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15368 if test -x $with_build_time_tools/nm; then
15369 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15370 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15372$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15373 else
5213506e
RW
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15375$as_echo "no" >&6; }
d1f8db0c 15376 fi
e8b05380
PB
15377 elif test $build != $host && test $have_gcc_for_target = yes; then
15378 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15379 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15380 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15381 fi
15382fi
3e19841a 15383if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15384 # Extract the first word of "nm", so it can be a program name with args.
15385set dummy nm; ac_word=$2
5213506e
RW
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15387$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15388if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15389 $as_echo_n "(cached) " >&6
e8b05380 15390else
1c710c3c
DJ
15391 case $NM_FOR_TARGET in
15392 [\\/]* | ?:[\\/]*)
e8b05380
PB
15393 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15394 ;;
e8b05380 15395 *)
1c710c3c
DJ
15396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15397for as_dir in $gcc_cv_tool_dirs
15398do
15399 IFS=$as_save_IFS
15400 test -z "$as_dir" && as_dir=.
5213506e 15401 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15403 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15405 break 2
15406 fi
15407done
5213506e
RW
15408 done
15409IFS=$as_save_IFS
1c710c3c 15410
e8b05380
PB
15411 ;;
15412esac
15413fi
1c710c3c 15414NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15415if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15417$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15418else
5213506e
RW
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15420$as_echo "no" >&6; }
e8b05380
PB
15421fi
15422
5213506e 15423
e8b05380
PB
15424fi
15425if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15426
15427
15428if test -n "$NM_FOR_TARGET"; then
15429 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15430elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15431 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15432fi
15433
15434if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15435 for ncn_progname in nm; do
15436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15437set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15439$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15440if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15441 $as_echo_n "(cached) " >&6
278a7a38
AO
15442else
15443 if test -n "$NM_FOR_TARGET"; then
15444 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15445else
15446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15447for as_dir in $PATH
15448do
15449 IFS=$as_save_IFS
15450 test -z "$as_dir" && as_dir=.
5213506e 15451 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15453 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15455 break 2
15456 fi
15457done
5213506e
RW
15458 done
15459IFS=$as_save_IFS
278a7a38
AO
15460
15461fi
15462fi
15463NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15464if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15466$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15467else
5213506e
RW
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
278a7a38
AO
15470fi
15471
5213506e 15472
278a7a38
AO
15473 done
15474fi
15475
15476if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15477 for ncn_progname in nm; do
5213506e
RW
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15479$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15480 if test -x $with_build_time_tools/${ncn_progname}; then
15481 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15483$as_echo "yes" >&6; }
e8b05380
PB
15484 break
15485 else
5213506e
RW
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487$as_echo "no" >&6; }
e8b05380
PB
15488 fi
15489 done
15490fi
15491
15492if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15493 for ncn_progname in nm; do
15494 if test -n "$ncn_target_tool_prefix"; then
15495 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15496set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15498$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15499if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15500 $as_echo_n "(cached) " >&6
ca9f4b81 15501else
4de997d1
PB
15502 if test -n "$NM_FOR_TARGET"; then
15503 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15504else
1c710c3c
DJ
15505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15506for as_dir in $PATH
15507do
15508 IFS=$as_save_IFS
15509 test -z "$as_dir" && as_dir=.
5213506e 15510 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15512 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15514 break 2
15515 fi
15516done
5213506e
RW
15517 done
15518IFS=$as_save_IFS
1c710c3c 15519
ca9f4b81
AO
15520fi
15521fi
1c710c3c 15522NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15523if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15525$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15526else
5213506e
RW
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15528$as_echo "no" >&6; }
ca9f4b81
AO
15529fi
15530
5213506e 15531
e8b05380
PB
15532 fi
15533 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15535set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15538if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15539 $as_echo_n "(cached) " >&6
ca9f4b81 15540else
2693c0b0
PB
15541 if test -n "$NM_FOR_TARGET"; then
15542 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15543else
1c710c3c
DJ
15544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545for as_dir in $PATH
15546do
15547 IFS=$as_save_IFS
15548 test -z "$as_dir" && as_dir=.
5213506e 15549 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15551 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15553 break 2
15554 fi
15555done
5213506e
RW
15556 done
15557IFS=$as_save_IFS
1c710c3c 15558
ca9f4b81
AO
15559fi
15560fi
1c710c3c 15561NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15562if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15564$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15565else
5213506e
RW
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15567$as_echo "no" >&6; }
ca9f4b81 15568fi
1c710c3c 15569
5213506e 15570
e8b05380
PB
15571 fi
15572 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15573 done
15574fi
1c710c3c 15575
2693c0b0
PB
15576if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15577 set dummy nm
15578 if test $build = $target ; then
15579 NM_FOR_TARGET="$2"
ca9f4b81 15580 else
2693c0b0 15581 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15582 fi
1c00b503
PB
15583else
15584 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15585fi
15586
d1f8db0c
PB
15587else
15588 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15589fi
15590
15591
15592
15593
9bccfdf5
AP
15594if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15595 if test -n "$with_build_time_tools"; then
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15597$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15598 if test -x $with_build_time_tools/objcopy; then
15599 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15600 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15602$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15603 else
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15605$as_echo "no" >&6; }
15606 fi
15607 elif test $build != $host && test $have_gcc_for_target = yes; then
15608 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15609 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15610 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15611 fi
15612fi
15613if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15614 # Extract the first word of "objcopy", so it can be a program name with args.
15615set dummy objcopy; ac_word=$2
15616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15617$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15618if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15619 $as_echo_n "(cached) " >&6
15620else
15621 case $OBJCOPY_FOR_TARGET in
15622 [\\/]* | ?:[\\/]*)
15623 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15624 ;;
15625 *)
15626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15627for as_dir in $gcc_cv_tool_dirs
15628do
15629 IFS=$as_save_IFS
15630 test -z "$as_dir" && as_dir=.
15631 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15633 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15635 break 2
15636 fi
15637done
15638 done
15639IFS=$as_save_IFS
15640
15641 ;;
15642esac
15643fi
15644OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15645if test -n "$OBJCOPY_FOR_TARGET"; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15647$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15648else
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650$as_echo "no" >&6; }
15651fi
15652
15653
15654fi
15655if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15656
15657
15658if test -n "$OBJCOPY_FOR_TARGET"; then
15659 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15660elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15661 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15662fi
15663
15664if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15665 for ncn_progname in objcopy; do
15666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15667set dummy ${ncn_progname}; ac_word=$2
15668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15669$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15670if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15671 $as_echo_n "(cached) " >&6
15672else
15673 if test -n "$OBJCOPY_FOR_TARGET"; then
15674 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15675else
15676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15677for as_dir in $PATH
15678do
15679 IFS=$as_save_IFS
15680 test -z "$as_dir" && as_dir=.
15681 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15683 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15685 break 2
15686 fi
15687done
15688 done
15689IFS=$as_save_IFS
15690
15691fi
15692fi
15693OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15694if test -n "$OBJCOPY_FOR_TARGET"; then
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15696$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15697else
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699$as_echo "no" >&6; }
15700fi
15701
15702
15703 done
15704fi
15705
15706if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15707 for ncn_progname in objcopy; do
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15709$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15710 if test -x $with_build_time_tools/${ncn_progname}; then
15711 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15713$as_echo "yes" >&6; }
15714 break
15715 else
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15717$as_echo "no" >&6; }
15718 fi
15719 done
15720fi
15721
15722if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15723 for ncn_progname in objcopy; do
15724 if test -n "$ncn_target_tool_prefix"; then
15725 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15726set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15729if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15730 $as_echo_n "(cached) " >&6
15731else
15732 if test -n "$OBJCOPY_FOR_TARGET"; then
15733 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15734else
15735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15736for as_dir in $PATH
15737do
15738 IFS=$as_save_IFS
15739 test -z "$as_dir" && as_dir=.
15740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15742 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15744 break 2
15745 fi
15746done
15747 done
15748IFS=$as_save_IFS
15749
15750fi
15751fi
15752OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15753if test -n "$OBJCOPY_FOR_TARGET"; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15755$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15756else
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758$as_echo "no" >&6; }
15759fi
15760
15761
15762 fi
15763 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15765set dummy ${ncn_progname}; ac_word=$2
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15768if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15769 $as_echo_n "(cached) " >&6
15770else
15771 if test -n "$OBJCOPY_FOR_TARGET"; then
15772 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15773else
15774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15775for as_dir in $PATH
15776do
15777 IFS=$as_save_IFS
15778 test -z "$as_dir" && as_dir=.
15779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15781 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15783 break 2
15784 fi
15785done
15786 done
15787IFS=$as_save_IFS
15788
15789fi
15790fi
15791OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15792if test -n "$OBJCOPY_FOR_TARGET"; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15794$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15795else
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15797$as_echo "no" >&6; }
15798fi
15799
15800
15801 fi
15802 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15803 done
15804fi
15805
15806if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15807 set dummy objcopy
15808 if test $build = $target ; then
15809 OBJCOPY_FOR_TARGET="$2"
15810 else
15811 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15812 fi
15813else
15814 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15815fi
15816
15817else
15818 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15819fi
15820
15821
15822
15823
e8b05380
PB
15824if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15825 if test -n "$with_build_time_tools"; then
5213506e
RW
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15827$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15828 if test -x $with_build_time_tools/objdump; then
15829 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15830 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15832$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15833 else
5213506e
RW
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835$as_echo "no" >&6; }
d1f8db0c 15836 fi
e8b05380
PB
15837 elif test $build != $host && test $have_gcc_for_target = yes; then
15838 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15839 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15840 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15841 fi
15842fi
3e19841a 15843if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15844 # Extract the first word of "objdump", so it can be a program name with args.
15845set dummy objdump; ac_word=$2
5213506e
RW
15846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15847$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15848if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15849 $as_echo_n "(cached) " >&6
e8b05380 15850else
1c710c3c
DJ
15851 case $OBJDUMP_FOR_TARGET in
15852 [\\/]* | ?:[\\/]*)
e8b05380
PB
15853 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15854 ;;
e8b05380 15855 *)
1c710c3c
DJ
15856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857for as_dir in $gcc_cv_tool_dirs
15858do
15859 IFS=$as_save_IFS
15860 test -z "$as_dir" && as_dir=.
5213506e 15861 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15863 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15865 break 2
15866 fi
15867done
5213506e
RW
15868 done
15869IFS=$as_save_IFS
1c710c3c 15870
e8b05380
PB
15871 ;;
15872esac
15873fi
1c710c3c 15874OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15875if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15877$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15878else
5213506e
RW
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880$as_echo "no" >&6; }
e8b05380
PB
15881fi
15882
5213506e 15883
e8b05380
PB
15884fi
15885if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15886
15887
15888if test -n "$OBJDUMP_FOR_TARGET"; then
15889 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15890elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15891 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15892fi
15893
15894if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15895 for ncn_progname in objdump; do
15896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15897set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15899$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15900if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15901 $as_echo_n "(cached) " >&6
278a7a38
AO
15902else
15903 if test -n "$OBJDUMP_FOR_TARGET"; then
15904 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15905else
15906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15907for as_dir in $PATH
15908do
15909 IFS=$as_save_IFS
15910 test -z "$as_dir" && as_dir=.
5213506e 15911 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15913 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15915 break 2
15916 fi
15917done
5213506e
RW
15918 done
15919IFS=$as_save_IFS
278a7a38
AO
15920
15921fi
15922fi
15923OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15924if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15926$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15927else
5213506e
RW
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929$as_echo "no" >&6; }
278a7a38
AO
15930fi
15931
5213506e 15932
278a7a38
AO
15933 done
15934fi
15935
15936if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15937 for ncn_progname in objdump; do
5213506e
RW
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15939$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15940 if test -x $with_build_time_tools/${ncn_progname}; then
15941 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15943$as_echo "yes" >&6; }
e8b05380
PB
15944 break
15945 else
5213506e
RW
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947$as_echo "no" >&6; }
e8b05380
PB
15948 fi
15949 done
15950fi
15951
15952if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15953 for ncn_progname in objdump; do
15954 if test -n "$ncn_target_tool_prefix"; then
15955 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15956set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15958$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15959if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15960 $as_echo_n "(cached) " >&6
d739199a
DJ
15961else
15962 if test -n "$OBJDUMP_FOR_TARGET"; then
15963 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15964else
1c710c3c
DJ
15965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15966for as_dir in $PATH
15967do
15968 IFS=$as_save_IFS
15969 test -z "$as_dir" && as_dir=.
5213506e 15970 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15972 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15974 break 2
15975 fi
15976done
5213506e
RW
15977 done
15978IFS=$as_save_IFS
1c710c3c 15979
d739199a
DJ
15980fi
15981fi
1c710c3c 15982OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15983if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15985$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15986else
5213506e
RW
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988$as_echo "no" >&6; }
d739199a
DJ
15989fi
15990
5213506e 15991
e8b05380
PB
15992 fi
15993 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15995set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15997$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15998if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15999 $as_echo_n "(cached) " >&6
d739199a
DJ
16000else
16001 if test -n "$OBJDUMP_FOR_TARGET"; then
16002 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16003else
1c710c3c
DJ
16004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16005for as_dir in $PATH
16006do
16007 IFS=$as_save_IFS
16008 test -z "$as_dir" && as_dir=.
5213506e 16009 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16011 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 16012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16013 break 2
16014 fi
16015done
5213506e
RW
16016 done
16017IFS=$as_save_IFS
1c710c3c 16018
d739199a
DJ
16019fi
16020fi
1c710c3c 16021OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 16022if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16024$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 16025else
5213506e
RW
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16027$as_echo "no" >&6; }
d739199a 16028fi
1c710c3c 16029
5213506e 16030
e8b05380
PB
16031 fi
16032 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16033 done
16034fi
1c710c3c 16035
d739199a
DJ
16036if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16037 set dummy objdump
16038 if test $build = $target ; then
16039 OBJDUMP_FOR_TARGET="$2"
16040 else
16041 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16042 fi
1c00b503
PB
16043else
16044 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
16045fi
16046
d1f8db0c
PB
16047else
16048 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
16049fi
16050
16051
16052
16053
e4a9a572
IS
16054if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16055 if test -n "$with_build_time_tools"; then
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16057$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16058 if test -x $with_build_time_tools/otool; then
16059 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16060 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16062$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16063 else
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16065$as_echo "no" >&6; }
16066 fi
16067 elif test $build != $host && test $have_gcc_for_target = yes; then
16068 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16069 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16070 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16071 fi
16072fi
16073if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16074 # Extract the first word of "otool", so it can be a program name with args.
16075set dummy otool; ac_word=$2
16076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16077$as_echo_n "checking for $ac_word... " >&6; }
16078if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16079 $as_echo_n "(cached) " >&6
16080else
16081 case $OTOOL_FOR_TARGET in
16082 [\\/]* | ?:[\\/]*)
16083 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16084 ;;
16085 *)
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087for as_dir in $gcc_cv_tool_dirs
16088do
16089 IFS=$as_save_IFS
16090 test -z "$as_dir" && as_dir=.
16091 for ac_exec_ext in '' $ac_executable_extensions; do
16092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16093 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16095 break 2
16096 fi
16097done
16098 done
16099IFS=$as_save_IFS
16100
16101 ;;
16102esac
16103fi
16104OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16105if test -n "$OTOOL_FOR_TARGET"; then
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16107$as_echo "$OTOOL_FOR_TARGET" >&6; }
16108else
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110$as_echo "no" >&6; }
16111fi
16112
16113
16114fi
16115if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16116
16117
16118if test -n "$OTOOL_FOR_TARGET"; then
16119 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16120elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16121 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16122fi
16123
16124if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16125 for ncn_progname in otool; do
16126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16127set dummy ${ncn_progname}; ac_word=$2
16128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16129$as_echo_n "checking for $ac_word... " >&6; }
16130if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16131 $as_echo_n "(cached) " >&6
16132else
16133 if test -n "$OTOOL_FOR_TARGET"; then
16134 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16135else
16136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16137for as_dir in $PATH
16138do
16139 IFS=$as_save_IFS
16140 test -z "$as_dir" && as_dir=.
16141 for ac_exec_ext in '' $ac_executable_extensions; do
16142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16143 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16145 break 2
16146 fi
16147done
16148 done
16149IFS=$as_save_IFS
16150
16151fi
16152fi
16153OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16154if test -n "$OTOOL_FOR_TARGET"; then
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16156$as_echo "$OTOOL_FOR_TARGET" >&6; }
16157else
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159$as_echo "no" >&6; }
16160fi
16161
16162
16163 done
16164fi
16165
16166if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16167 for ncn_progname in otool; do
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16169$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16170 if test -x $with_build_time_tools/${ncn_progname}; then
16171 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16173$as_echo "yes" >&6; }
16174 break
16175 else
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16177$as_echo "no" >&6; }
16178 fi
16179 done
16180fi
16181
16182if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16183 for ncn_progname in otool; do
16184 if test -n "$ncn_target_tool_prefix"; then
16185 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16186set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16188$as_echo_n "checking for $ac_word... " >&6; }
16189if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16190 $as_echo_n "(cached) " >&6
16191else
16192 if test -n "$OTOOL_FOR_TARGET"; then
16193 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16194else
16195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196for as_dir in $PATH
16197do
16198 IFS=$as_save_IFS
16199 test -z "$as_dir" && as_dir=.
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16204 break 2
16205 fi
16206done
16207 done
16208IFS=$as_save_IFS
16209
16210fi
16211fi
16212OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16213if test -n "$OTOOL_FOR_TARGET"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16215$as_echo "$OTOOL_FOR_TARGET" >&6; }
16216else
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16218$as_echo "no" >&6; }
16219fi
16220
16221
16222 fi
16223 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16225set dummy ${ncn_progname}; ac_word=$2
16226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227$as_echo_n "checking for $ac_word... " >&6; }
16228if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16229 $as_echo_n "(cached) " >&6
16230else
16231 if test -n "$OTOOL_FOR_TARGET"; then
16232 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16233else
16234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16235for as_dir in $PATH
16236do
16237 IFS=$as_save_IFS
16238 test -z "$as_dir" && as_dir=.
16239 for ac_exec_ext in '' $ac_executable_extensions; do
16240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16241 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16243 break 2
16244 fi
16245done
16246 done
16247IFS=$as_save_IFS
16248
16249fi
16250fi
16251OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16252if test -n "$OTOOL_FOR_TARGET"; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16254$as_echo "$OTOOL_FOR_TARGET" >&6; }
16255else
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257$as_echo "no" >&6; }
16258fi
16259
16260
16261 fi
16262 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16263 done
16264fi
16265
16266if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16267 set dummy otool
16268 if test $build = $target ; then
16269 OTOOL_FOR_TARGET="$2"
16270 else
16271 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16272 fi
16273else
16274 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16275fi
16276
16277else
16278 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16279fi
16280
16281
16282
16283
e8b05380
PB
16284if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16285 if test -n "$with_build_time_tools"; then
5213506e
RW
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16287$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16288 if test -x $with_build_time_tools/ranlib; then
16289 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16290 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16292$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16293 else
5213506e
RW
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295$as_echo "no" >&6; }
d1f8db0c 16296 fi
e8b05380
PB
16297 elif test $build != $host && test $have_gcc_for_target = yes; then
16298 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16299 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16300 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16301 fi
16302fi
3e19841a 16303if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16304 # Extract the first word of "ranlib", so it can be a program name with args.
16305set dummy ranlib; ac_word=$2
5213506e
RW
16306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16307$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16308if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16309 $as_echo_n "(cached) " >&6
e8b05380 16310else
1c710c3c
DJ
16311 case $RANLIB_FOR_TARGET in
16312 [\\/]* | ?:[\\/]*)
e8b05380
PB
16313 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16314 ;;
e8b05380 16315 *)
1c710c3c
DJ
16316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16317for as_dir in $gcc_cv_tool_dirs
16318do
16319 IFS=$as_save_IFS
16320 test -z "$as_dir" && as_dir=.
5213506e 16321 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16323 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16325 break 2
16326 fi
16327done
5213506e
RW
16328 done
16329IFS=$as_save_IFS
1c710c3c 16330
e8b05380
PB
16331 ;;
16332esac
16333fi
1c710c3c 16334RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16335if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16337$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16338else
5213506e
RW
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16340$as_echo "no" >&6; }
e8b05380
PB
16341fi
16342
5213506e 16343
e8b05380
PB
16344fi
16345if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16346
16347
16348if test -n "$RANLIB_FOR_TARGET"; then
16349 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16350elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16351 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16352fi
16353
16354if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16355 for ncn_progname in ranlib; do
16356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16357set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16360if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16361 $as_echo_n "(cached) " >&6
278a7a38
AO
16362else
16363 if test -n "$RANLIB_FOR_TARGET"; then
16364 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16365else
16366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16367for as_dir in $PATH
16368do
16369 IFS=$as_save_IFS
16370 test -z "$as_dir" && as_dir=.
5213506e 16371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16373 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16375 break 2
16376 fi
16377done
5213506e
RW
16378 done
16379IFS=$as_save_IFS
278a7a38
AO
16380
16381fi
16382fi
16383RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16384if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16386$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16387else
5213506e
RW
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16389$as_echo "no" >&6; }
278a7a38
AO
16390fi
16391
5213506e 16392
278a7a38
AO
16393 done
16394fi
16395
16396if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16397 for ncn_progname in ranlib; do
5213506e
RW
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16399$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16400 if test -x $with_build_time_tools/${ncn_progname}; then
16401 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16403$as_echo "yes" >&6; }
e8b05380
PB
16404 break
16405 else
5213506e
RW
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16407$as_echo "no" >&6; }
e8b05380
PB
16408 fi
16409 done
16410fi
16411
16412if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16413 for ncn_progname in ranlib; do
16414 if test -n "$ncn_target_tool_prefix"; then
16415 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16416set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16418$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16419if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16420 $as_echo_n "(cached) " >&6
ca9f4b81 16421else
4de997d1
PB
16422 if test -n "$RANLIB_FOR_TARGET"; then
16423 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16424else
1c710c3c
DJ
16425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16426for as_dir in $PATH
16427do
16428 IFS=$as_save_IFS
16429 test -z "$as_dir" && as_dir=.
5213506e 16430 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16432 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16434 break 2
16435 fi
16436done
5213506e
RW
16437 done
16438IFS=$as_save_IFS
1c710c3c 16439
ca9f4b81
AO
16440fi
16441fi
1c710c3c 16442RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16443if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16445$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16446else
5213506e
RW
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448$as_echo "no" >&6; }
ca9f4b81
AO
16449fi
16450
5213506e 16451
e8b05380
PB
16452 fi
16453 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16455set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16457$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16458if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16459 $as_echo_n "(cached) " >&6
ca9f4b81 16460else
2693c0b0
PB
16461 if test -n "$RANLIB_FOR_TARGET"; then
16462 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16463else
1c710c3c
DJ
16464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16465for as_dir in $PATH
16466do
16467 IFS=$as_save_IFS
16468 test -z "$as_dir" && as_dir=.
5213506e 16469 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16471 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16473 break 2
16474 fi
16475done
5213506e
RW
16476 done
16477IFS=$as_save_IFS
1c710c3c 16478
ca9f4b81
AO
16479fi
16480fi
1c710c3c 16481RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16482if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16484$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16485else
5213506e
RW
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16487$as_echo "no" >&6; }
ca9f4b81 16488fi
1c710c3c 16489
5213506e 16490
e8b05380
PB
16491 fi
16492 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16493 done
16494fi
1c710c3c 16495
e8b05380
PB
16496if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16497 set dummy ranlib
16498 if test $build = $target ; then
16499 RANLIB_FOR_TARGET="$2"
16500 else
16501 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16502 fi
1c00b503
PB
16503else
16504 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16505fi
2693c0b0 16506
d1f8db0c
PB
16507else
16508 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16509fi
16510
e8b05380
PB
16511
16512
16513
e7a82751
RM
16514if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16515 if test -n "$with_build_time_tools"; then
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16517$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16518 if test -x $with_build_time_tools/readelf; then
16519 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16520 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16522$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16523 else
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16525$as_echo "no" >&6; }
16526 fi
16527 elif test $build != $host && test $have_gcc_for_target = yes; then
16528 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16529 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16530 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16531 fi
16532fi
16533if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16534 # Extract the first word of "readelf", so it can be a program name with args.
16535set dummy readelf; ac_word=$2
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16537$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16538if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16539 $as_echo_n "(cached) " >&6
16540else
16541 case $READELF_FOR_TARGET in
16542 [\\/]* | ?:[\\/]*)
16543 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16544 ;;
16545 *)
16546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547for as_dir in $gcc_cv_tool_dirs
16548do
16549 IFS=$as_save_IFS
16550 test -z "$as_dir" && as_dir=.
16551 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16553 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16555 break 2
16556 fi
16557done
16558 done
16559IFS=$as_save_IFS
16560
16561 ;;
16562esac
16563fi
16564READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16565if test -n "$READELF_FOR_TARGET"; then
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16567$as_echo "$READELF_FOR_TARGET" >&6; }
16568else
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16570$as_echo "no" >&6; }
16571fi
16572
16573
16574fi
16575if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16576
16577
16578if test -n "$READELF_FOR_TARGET"; then
16579 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16580elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16581 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16582fi
16583
16584if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16585 for ncn_progname in readelf; do
16586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16587set dummy ${ncn_progname}; ac_word=$2
16588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16589$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16590if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16591 $as_echo_n "(cached) " >&6
16592else
16593 if test -n "$READELF_FOR_TARGET"; then
16594 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16595else
16596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16597for as_dir in $PATH
16598do
16599 IFS=$as_save_IFS
16600 test -z "$as_dir" && as_dir=.
16601 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16603 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16605 break 2
16606 fi
16607done
16608 done
16609IFS=$as_save_IFS
16610
16611fi
16612fi
16613READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16614if test -n "$READELF_FOR_TARGET"; then
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16616$as_echo "$READELF_FOR_TARGET" >&6; }
16617else
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16619$as_echo "no" >&6; }
16620fi
16621
16622
16623 done
16624fi
16625
16626if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16627 for ncn_progname in readelf; do
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16629$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16630 if test -x $with_build_time_tools/${ncn_progname}; then
16631 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16633$as_echo "yes" >&6; }
16634 break
16635 else
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16637$as_echo "no" >&6; }
16638 fi
16639 done
16640fi
16641
16642if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16643 for ncn_progname in readelf; do
16644 if test -n "$ncn_target_tool_prefix"; then
16645 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16646set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16648$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16649if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16650 $as_echo_n "(cached) " >&6
16651else
16652 if test -n "$READELF_FOR_TARGET"; then
16653 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16654else
16655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16656for as_dir in $PATH
16657do
16658 IFS=$as_save_IFS
16659 test -z "$as_dir" && as_dir=.
16660 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16662 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16664 break 2
16665 fi
16666done
16667 done
16668IFS=$as_save_IFS
16669
16670fi
16671fi
16672READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16673if test -n "$READELF_FOR_TARGET"; then
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16675$as_echo "$READELF_FOR_TARGET" >&6; }
16676else
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16678$as_echo "no" >&6; }
16679fi
16680
16681
16682 fi
16683 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16684 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16685set dummy ${ncn_progname}; ac_word=$2
16686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16687$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16688if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16689 $as_echo_n "(cached) " >&6
16690else
16691 if test -n "$READELF_FOR_TARGET"; then
16692 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16693else
16694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695for as_dir in $PATH
16696do
16697 IFS=$as_save_IFS
16698 test -z "$as_dir" && as_dir=.
16699 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16701 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16703 break 2
16704 fi
16705done
16706 done
16707IFS=$as_save_IFS
16708
16709fi
16710fi
16711READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16712if test -n "$READELF_FOR_TARGET"; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16714$as_echo "$READELF_FOR_TARGET" >&6; }
16715else
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16717$as_echo "no" >&6; }
16718fi
16719
16720
16721 fi
16722 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16723 done
16724fi
16725
16726if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16727 set dummy readelf
16728 if test $build = $target ; then
16729 READELF_FOR_TARGET="$2"
16730 else
16731 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16732 fi
16733else
16734 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16735fi
16736
16737else
16738 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16739fi
16740
16741
16742
16743
e8b05380
PB
16744if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16745 if test -n "$with_build_time_tools"; then
5213506e
RW
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16747$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16748 if test -x $with_build_time_tools/strip; then
16749 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16750 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16752$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16753 else
5213506e
RW
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16755$as_echo "no" >&6; }
d1f8db0c 16756 fi
e8b05380
PB
16757 elif test $build != $host && test $have_gcc_for_target = yes; then
16758 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16759 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16760 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16761 fi
16762fi
3e19841a 16763if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16764 # Extract the first word of "strip", so it can be a program name with args.
16765set dummy strip; ac_word=$2
5213506e
RW
16766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16768if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16769 $as_echo_n "(cached) " >&6
e8b05380 16770else
1c710c3c
DJ
16771 case $STRIP_FOR_TARGET in
16772 [\\/]* | ?:[\\/]*)
e8b05380
PB
16773 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16774 ;;
e8b05380 16775 *)
1c710c3c
DJ
16776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16777for as_dir in $gcc_cv_tool_dirs
16778do
16779 IFS=$as_save_IFS
16780 test -z "$as_dir" && as_dir=.
5213506e 16781 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16783 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16785 break 2
16786 fi
16787done
5213506e
RW
16788 done
16789IFS=$as_save_IFS
1c710c3c 16790
e8b05380
PB
16791 ;;
16792esac
16793fi
1c710c3c 16794STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16795if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16797$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16798else
5213506e
RW
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800$as_echo "no" >&6; }
e8b05380
PB
16801fi
16802
5213506e 16803
e8b05380
PB
16804fi
16805if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16806
16807
16808if test -n "$STRIP_FOR_TARGET"; then
16809 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16810elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16811 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16812fi
16813
16814if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16815 for ncn_progname in strip; do
16816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16817set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16819$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16820if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16821 $as_echo_n "(cached) " >&6
278a7a38
AO
16822else
16823 if test -n "$STRIP_FOR_TARGET"; then
16824 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16825else
16826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16827for as_dir in $PATH
16828do
16829 IFS=$as_save_IFS
16830 test -z "$as_dir" && as_dir=.
5213506e 16831 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16833 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16835 break 2
16836 fi
16837done
5213506e
RW
16838 done
16839IFS=$as_save_IFS
278a7a38
AO
16840
16841fi
16842fi
16843STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16844if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16846$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16847else
5213506e
RW
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16849$as_echo "no" >&6; }
278a7a38
AO
16850fi
16851
5213506e 16852
278a7a38
AO
16853 done
16854fi
16855
16856if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16857 for ncn_progname in strip; do
5213506e
RW
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16859$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16860 if test -x $with_build_time_tools/${ncn_progname}; then
16861 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16863$as_echo "yes" >&6; }
e8b05380
PB
16864 break
16865 else
5213506e
RW
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16867$as_echo "no" >&6; }
e8b05380
PB
16868 fi
16869 done
16870fi
16871
16872if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16873 for ncn_progname in strip; do
16874 if test -n "$ncn_target_tool_prefix"; then
16875 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16876set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16878$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16879if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16880 $as_echo_n "(cached) " >&6
af71363e
AS
16881else
16882 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16883 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16884else
16885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16886for as_dir in $PATH
16887do
16888 IFS=$as_save_IFS
16889 test -z "$as_dir" && as_dir=.
5213506e 16890 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16892 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16894 break 2
16895 fi
16896done
5213506e
RW
16897 done
16898IFS=$as_save_IFS
1c710c3c 16899
040b1c5a
GK
16900fi
16901fi
1c710c3c 16902STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16903if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16905$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16906else
5213506e
RW
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16908$as_echo "no" >&6; }
040b1c5a
GK
16909fi
16910
5213506e 16911
e8b05380
PB
16912 fi
16913 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16915set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16917$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16918if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16919 $as_echo_n "(cached) " >&6
040b1c5a
GK
16920else
16921 if test -n "$STRIP_FOR_TARGET"; then
16922 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16923else
1c710c3c
DJ
16924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16925for as_dir in $PATH
16926do
16927 IFS=$as_save_IFS
16928 test -z "$as_dir" && as_dir=.
5213506e 16929 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16931 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16933 break 2
16934 fi
16935done
5213506e
RW
16936 done
16937IFS=$as_save_IFS
1c710c3c 16938
040b1c5a
GK
16939fi
16940fi
1c710c3c 16941STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16942if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16944$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16945else
5213506e
RW
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947$as_echo "no" >&6; }
040b1c5a 16948fi
1c710c3c 16949
5213506e 16950
e8b05380
PB
16951 fi
16952 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16953 done
16954fi
1c710c3c 16955
040b1c5a
GK
16956if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16957 set dummy strip
16958 if test $build = $target ; then
16959 STRIP_FOR_TARGET="$2"
16960 else
16961 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16962 fi
1c00b503
PB
16963else
16964 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16965fi
16966
d1f8db0c
PB
16967else
16968 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16969fi
16970
16971
16972
16973
16974if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16975 if test -n "$with_build_time_tools"; then
5213506e
RW
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16977$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16978 if test -x $with_build_time_tools/windres; then
16979 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16980 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16982$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16983 else
5213506e
RW
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16985$as_echo "no" >&6; }
d1f8db0c 16986 fi
e8b05380
PB
16987 elif test $build != $host && test $have_gcc_for_target = yes; then
16988 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16989 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16990 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16991 fi
16992fi
3e19841a 16993if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16994 # Extract the first word of "windres", so it can be a program name with args.
16995set dummy windres; ac_word=$2
5213506e
RW
16996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16997$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16998if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16999 $as_echo_n "(cached) " >&6
e8b05380 17000else
1c710c3c
DJ
17001 case $WINDRES_FOR_TARGET in
17002 [\\/]* | ?:[\\/]*)
e8b05380
PB
17003 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17004 ;;
e8b05380 17005 *)
1c710c3c
DJ
17006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17007for as_dir in $gcc_cv_tool_dirs
17008do
17009 IFS=$as_save_IFS
17010 test -z "$as_dir" && as_dir=.
5213506e 17011 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17013 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17015 break 2
17016 fi
17017done
5213506e
RW
17018 done
17019IFS=$as_save_IFS
1c710c3c 17020
e8b05380
PB
17021 ;;
17022esac
17023fi
1c710c3c 17024WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 17025if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17027$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 17028else
5213506e
RW
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17030$as_echo "no" >&6; }
e8b05380
PB
17031fi
17032
5213506e 17033
e8b05380
PB
17034fi
17035if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
17036
17037
17038if test -n "$WINDRES_FOR_TARGET"; then
17039 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17040elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17041 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17042fi
17043
17044if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17045 for ncn_progname in windres; do
17046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17047set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17050if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17051 $as_echo_n "(cached) " >&6
278a7a38
AO
17052else
17053 if test -n "$WINDRES_FOR_TARGET"; then
17054 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17055else
17056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057for as_dir in $PATH
17058do
17059 IFS=$as_save_IFS
17060 test -z "$as_dir" && as_dir=.
5213506e 17061 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 17063 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
17065 break 2
17066 fi
17067done
5213506e
RW
17068 done
17069IFS=$as_save_IFS
278a7a38
AO
17070
17071fi
17072fi
17073WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17074if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17076$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 17077else
5213506e
RW
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17079$as_echo "no" >&6; }
278a7a38
AO
17080fi
17081
5213506e 17082
278a7a38
AO
17083 done
17084fi
17085
17086if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 17087 for ncn_progname in windres; do
5213506e
RW
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17089$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
17090 if test -x $with_build_time_tools/${ncn_progname}; then
17091 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17093$as_echo "yes" >&6; }
e8b05380
PB
17094 break
17095 else
5213506e
RW
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17097$as_echo "no" >&6; }
e8b05380
PB
17098 fi
17099 done
17100fi
17101
17102if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17103 for ncn_progname in windres; do
17104 if test -n "$ncn_target_tool_prefix"; then
17105 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 17106set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17108$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17109if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17110 $as_echo_n "(cached) " >&6
ca9f4b81 17111else
4de997d1
PB
17112 if test -n "$WINDRES_FOR_TARGET"; then
17113 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17114else
1c710c3c
DJ
17115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17116for as_dir in $PATH
17117do
17118 IFS=$as_save_IFS
17119 test -z "$as_dir" && as_dir=.
5213506e 17120 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17122 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17124 break 2
17125 fi
17126done
5213506e
RW
17127 done
17128IFS=$as_save_IFS
1c710c3c 17129
ca9f4b81
AO
17130fi
17131fi
1c710c3c 17132WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17133if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17135$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17136else
5213506e
RW
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138$as_echo "no" >&6; }
ca9f4b81
AO
17139fi
17140
5213506e 17141
e8b05380
PB
17142 fi
17143 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17145set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17147$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17148if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17149 $as_echo_n "(cached) " >&6
ca9f4b81 17150else
2693c0b0
PB
17151 if test -n "$WINDRES_FOR_TARGET"; then
17152 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17153else
1c710c3c
DJ
17154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17155for as_dir in $PATH
17156do
17157 IFS=$as_save_IFS
17158 test -z "$as_dir" && as_dir=.
5213506e 17159 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17161 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17163 break 2
17164 fi
17165done
5213506e
RW
17166 done
17167IFS=$as_save_IFS
1c710c3c 17168
ca9f4b81
AO
17169fi
17170fi
1c710c3c 17171WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17172if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17174$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17175else
5213506e
RW
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177$as_echo "no" >&6; }
ca9f4b81 17178fi
1c710c3c 17179
5213506e 17180
e8b05380
PB
17181 fi
17182 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17183 done
17184fi
1c710c3c 17185
2693c0b0
PB
17186if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17187 set dummy windres
17188 if test $build = $target ; then
17189 WINDRES_FOR_TARGET="$2"
ca9f4b81 17190 else
2693c0b0 17191 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17192 fi
1c00b503
PB
17193else
17194 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17195fi
17196
d1f8db0c
PB
17197else
17198 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17199fi
17200
4977bab6 17201
901119ae
KT
17202
17203
17204if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17205 if test -n "$with_build_time_tools"; then
5213506e
RW
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17207$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17208 if test -x $with_build_time_tools/windmc; then
17209 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17210 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17212$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17213 else
5213506e
RW
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17215$as_echo "no" >&6; }
901119ae
KT
17216 fi
17217 elif test $build != $host && test $have_gcc_for_target = yes; then
17218 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17219 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17220 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17221 fi
17222fi
17223if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17224 # Extract the first word of "windmc", so it can be a program name with args.
17225set dummy windmc; ac_word=$2
5213506e
RW
17226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17227$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17228if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17229 $as_echo_n "(cached) " >&6
901119ae
KT
17230else
17231 case $WINDMC_FOR_TARGET in
17232 [\\/]* | ?:[\\/]*)
17233 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17234 ;;
17235 *)
17236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17237for as_dir in $gcc_cv_tool_dirs
17238do
17239 IFS=$as_save_IFS
17240 test -z "$as_dir" && as_dir=.
5213506e 17241 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17243 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17245 break 2
17246 fi
17247done
5213506e
RW
17248 done
17249IFS=$as_save_IFS
901119ae
KT
17250
17251 ;;
17252esac
17253fi
17254WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17255if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17257$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17258else
5213506e
RW
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17260$as_echo "no" >&6; }
901119ae
KT
17261fi
17262
5213506e 17263
901119ae
KT
17264fi
17265if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17266
17267
17268if test -n "$WINDMC_FOR_TARGET"; then
17269 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17270elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17271 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17272fi
17273
17274if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17275 for ncn_progname in windmc; do
17276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17277set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17280if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17281 $as_echo_n "(cached) " >&6
901119ae
KT
17282else
17283 if test -n "$WINDMC_FOR_TARGET"; then
17284 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17285else
17286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17287for as_dir in $PATH
17288do
17289 IFS=$as_save_IFS
17290 test -z "$as_dir" && as_dir=.
5213506e 17291 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17293 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17295 break 2
17296 fi
17297done
5213506e
RW
17298 done
17299IFS=$as_save_IFS
901119ae
KT
17300
17301fi
17302fi
17303WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17304if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17306$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17307else
5213506e
RW
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17309$as_echo "no" >&6; }
901119ae
KT
17310fi
17311
5213506e 17312
901119ae
KT
17313 done
17314fi
17315
17316if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17317 for ncn_progname in windmc; do
5213506e
RW
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17319$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17320 if test -x $with_build_time_tools/${ncn_progname}; then
17321 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17323$as_echo "yes" >&6; }
901119ae
KT
17324 break
17325 else
5213506e
RW
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17327$as_echo "no" >&6; }
901119ae
KT
17328 fi
17329 done
17330fi
17331
17332if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17333 for ncn_progname in windmc; do
17334 if test -n "$ncn_target_tool_prefix"; then
17335 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17336set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17339if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17340 $as_echo_n "(cached) " >&6
901119ae
KT
17341else
17342 if test -n "$WINDMC_FOR_TARGET"; then
17343 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17344else
17345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17346for as_dir in $PATH
17347do
17348 IFS=$as_save_IFS
17349 test -z "$as_dir" && as_dir=.
5213506e 17350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17352 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17354 break 2
17355 fi
17356done
5213506e
RW
17357 done
17358IFS=$as_save_IFS
901119ae
KT
17359
17360fi
17361fi
17362WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17363if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17365$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17366else
5213506e
RW
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368$as_echo "no" >&6; }
901119ae
KT
17369fi
17370
5213506e 17371
901119ae
KT
17372 fi
17373 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17375set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17378if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17379 $as_echo_n "(cached) " >&6
901119ae
KT
17380else
17381 if test -n "$WINDMC_FOR_TARGET"; then
17382 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17383else
17384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17385for as_dir in $PATH
17386do
17387 IFS=$as_save_IFS
17388 test -z "$as_dir" && as_dir=.
5213506e 17389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17391 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17393 break 2
17394 fi
17395done
5213506e
RW
17396 done
17397IFS=$as_save_IFS
901119ae
KT
17398
17399fi
17400fi
17401WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17402if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17404$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17405else
5213506e
RW
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17407$as_echo "no" >&6; }
901119ae
KT
17408fi
17409
5213506e 17410
901119ae
KT
17411 fi
17412 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17413 done
17414fi
17415
17416if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17417 set dummy windmc
17418 if test $build = $target ; then
17419 WINDMC_FOR_TARGET="$2"
17420 else
17421 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17422 fi
1c00b503
PB
17423else
17424 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17425fi
17426
17427else
17428 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17429fi
17430
17431
2abefe3d
PB
17432RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17433
5213506e
RW
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17435$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17436if test "x${build}" != "x${host}" ; then
e8b05380
PB
17437 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17438 # We already found the complete path
172e41aa 17439 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17441$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17442 else
17443 # Canadian cross, just use what we found
5213506e
RW
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17445$as_echo "pre-installed" >&6; }
e8b05380 17446 fi
2abefe3d
PB
17447else
17448 ok=yes
17449 case " ${configdirs} " in
17450 *" binutils "*) ;;
17451 *) ok=no ;;
17452 esac
1c710c3c 17453
2abefe3d
PB
17454 if test $ok = yes; then
17455 # An in-tree tool is available and we can use it
17456 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17458$as_echo "just compiled" >&6; }
e8b05380
PB
17459 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17460 # We already found the complete path
172e41aa 17461 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17463$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17464 elif test "x$target" = "x$host"; then
17465 # We can use an host tool
17466 AR_FOR_TARGET='$(AR)'
5213506e
RW
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17468$as_echo "host tool" >&6; }
2abefe3d
PB
17469 else
17470 # We need a cross tool
5213506e
RW
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17472$as_echo "pre-installed" >&6; }
2abefe3d
PB
17473 fi
17474fi
0b0dc272 17475
5213506e
RW
17476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17477$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17478if test "x${build}" != "x${host}" ; then
e8b05380
PB
17479 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17480 # We already found the complete path
172e41aa 17481 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17483$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17484 else
17485 # Canadian cross, just use what we found
5213506e
RW
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17487$as_echo "pre-installed" >&6; }
e8b05380 17488 fi
2abefe3d
PB
17489else
17490 ok=yes
17491 case " ${configdirs} " in
17492 *" gas "*) ;;
17493 *) ok=no ;;
17494 esac
1c710c3c 17495
2abefe3d
PB
17496 if test $ok = yes; then
17497 # An in-tree tool is available and we can use it
17498 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17500$as_echo "just compiled" >&6; }
e8b05380
PB
17501 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17502 # We already found the complete path
172e41aa 17503 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17505$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17506 elif test "x$target" = "x$host"; then
17507 # We can use an host tool
17508 AS_FOR_TARGET='$(AS)'
5213506e
RW
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17510$as_echo "host tool" >&6; }
2abefe3d
PB
17511 else
17512 # We need a cross tool
5213506e
RW
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17514$as_echo "pre-installed" >&6; }
2abefe3d
PB
17515 fi
17516fi
0b0dc272 17517
5213506e
RW
17518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17519$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17520if test "x${build}" != "x${host}" ; then
e8b05380
PB
17521 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17522 # We already found the complete path
172e41aa 17523 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17525$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17526 else
17527 # Canadian cross, just use what we found
5213506e
RW
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17529$as_echo "pre-installed" >&6; }
e8b05380 17530 fi
2abefe3d
PB
17531else
17532 ok=yes
17533 case " ${configdirs} " in
17534 *" gcc "*) ;;
17535 *) ok=no ;;
17536 esac
1c710c3c 17537
2abefe3d
PB
17538 if test $ok = yes; then
17539 # An in-tree tool is available and we can use it
17540 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17542$as_echo "just compiled" >&6; }
e8b05380
PB
17543 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17544 # We already found the complete path
172e41aa 17545 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17547$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17548 elif test "x$target" = "x$host"; then
17549 # We can use an host tool
17550 CC_FOR_TARGET='$(CC)'
5213506e
RW
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17552$as_echo "host tool" >&6; }
2abefe3d
PB
17553 else
17554 # We need a cross tool
5213506e
RW
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17556$as_echo "pre-installed" >&6; }
2abefe3d
PB
17557 fi
17558fi
0b0dc272 17559
5213506e
RW
17560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17561$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17562if test "x${build}" != "x${host}" ; then
e8b05380
PB
17563 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17564 # We already found the complete path
172e41aa 17565 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17567$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17568 else
17569 # Canadian cross, just use what we found
5213506e
RW
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17571$as_echo "pre-installed" >&6; }
e8b05380 17572 fi
2abefe3d
PB
17573else
17574 ok=yes
17575 case " ${configdirs} " in
17576 *" gcc "*) ;;
17577 *) ok=no ;;
17578 esac
17579 case ,${enable_languages}, in
17580 *,c++,*) ;;
17581 *) ok=no ;;
17582 esac
17583 if test $ok = yes; then
17584 # An in-tree tool is available and we can use it
2077db1b 17585 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
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17587$as_echo "just compiled" >&6; }
e8b05380
PB
17588 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17589 # We already found the complete path
172e41aa 17590 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17592$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17593 elif test "x$target" = "x$host"; then
17594 # We can use an host tool
17595 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17597$as_echo "host tool" >&6; }
2abefe3d
PB
17598 else
17599 # We need a cross tool
5213506e
RW
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17601$as_echo "pre-installed" >&6; }
2abefe3d
PB
17602 fi
17603fi
0b0dc272 17604
5213506e
RW
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17606$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17607if test "x${build}" != "x${host}" ; then
e8b05380
PB
17608 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17609 # We already found the complete path
172e41aa 17610 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17612$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17613 else
17614 # Canadian cross, just use what we found
5213506e
RW
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17616$as_echo "pre-installed" >&6; }
e8b05380 17617 fi
2abefe3d
PB
17618else
17619 ok=yes
17620 case " ${configdirs} " in
17621 *" gcc "*) ;;
17622 *) ok=no ;;
17623 esac
17624 case ,${enable_languages}, in
17625 *,c++,*) ;;
17626 *) ok=no ;;
17627 esac
17628 if test $ok = yes; then
17629 # An in-tree tool is available and we can use it
2077db1b 17630 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
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17632$as_echo "just compiled" >&6; }
e8b05380
PB
17633 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17634 # We already found the complete path
172e41aa 17635 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17637$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17638 elif test "x$target" = "x$host"; then
17639 # We can use an host tool
17640 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17642$as_echo "host tool" >&6; }
2abefe3d
PB
17643 else
17644 # We need a cross tool
5213506e
RW
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17646$as_echo "pre-installed" >&6; }
2abefe3d
PB
17647 fi
17648fi
0b0dc272 17649
5213506e
RW
17650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17651$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17652if test "x${build}" != "x${host}" ; then
e8b05380
PB
17653 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17654 # We already found the complete path
172e41aa 17655 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17657$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17658 else
17659 # Canadian cross, just use what we found
5213506e
RW
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17661$as_echo "pre-installed" >&6; }
e8b05380 17662 fi
2abefe3d
PB
17663else
17664 ok=yes
17665 case " ${configdirs} " in
17666 *" binutils "*) ;;
17667 *) ok=no ;;
17668 esac
1c710c3c 17669
2abefe3d
PB
17670 if test $ok = yes; then
17671 # An in-tree tool is available and we can use it
17672 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17674$as_echo "just compiled" >&6; }
e8b05380
PB
17675 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17676 # We already found the complete path
172e41aa 17677 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17679$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17680 elif test "x$target" = "x$host"; then
17681 # We can use an host tool
17682 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17684$as_echo "host tool" >&6; }
2abefe3d
PB
17685 else
17686 # We need a cross tool
5213506e
RW
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17688$as_echo "pre-installed" >&6; }
2abefe3d
PB
17689 fi
17690fi
0b0dc272 17691
3b5e8ee4
IS
17692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17693$as_echo_n "checking where to find the target dsymutil... " >&6; }
17694if test "x${build}" != "x${host}" ; then
17695 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17696 # We already found the complete path
17697 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17699$as_echo "pre-installed in $ac_dir" >&6; }
17700 else
17701 # Canadian cross, just use what we found
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17703$as_echo "pre-installed" >&6; }
17704 fi
17705else
17706 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17707 # We already found the complete path
17708 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17710$as_echo "pre-installed in $ac_dir" >&6; }
17711 elif test "x$target" = "x$host"; then
17712 # We can use an host tool
17713 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17715$as_echo "host tool" >&6; }
17716 else
17717 # We need a cross tool
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17719$as_echo "pre-installed" >&6; }
17720 fi
17721fi
17722
5213506e
RW
17723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17724$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17725if test "x${build}" != "x${host}" ; then
e8b05380
PB
17726 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17727 # We already found the complete path
172e41aa 17728 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17730$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17731 else
17732 # Canadian cross, just use what we found
5213506e
RW
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17734$as_echo "pre-installed" >&6; }
e8b05380 17735 fi
2abefe3d
PB
17736else
17737 ok=yes
17738 case " ${configdirs} " in
17739 *" gcc "*) ;;
17740 *) ok=no ;;
17741 esac
1c710c3c 17742
2abefe3d
PB
17743 if test $ok = yes; then
17744 # An in-tree tool is available and we can use it
17745 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17747$as_echo "just compiled" >&6; }
e8b05380
PB
17748 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17749 # We already found the complete path
172e41aa 17750 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17752$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17753 elif test "x$target" = "x$host"; then
17754 # We can use an host tool
17755 GCC_FOR_TARGET='$()'
5213506e
RW
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17757$as_echo "host tool" >&6; }
2abefe3d
PB
17758 else
17759 # We need a cross tool
5213506e
RW
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17761$as_echo "pre-installed" >&6; }
2abefe3d
PB
17762 fi
17763fi
0b0dc272 17764
5213506e
RW
17765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17766$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17767if test "x${build}" != "x${host}" ; then
e8b05380
PB
17768 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17769 # We already found the complete path
172e41aa 17770 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17772$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17773 else
17774 # Canadian cross, just use what we found
5213506e
RW
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17776$as_echo "pre-installed" >&6; }
e8b05380 17777 fi
2abefe3d
PB
17778else
17779 ok=yes
17780 case " ${configdirs} " in
17781 *" gcc "*) ;;
17782 *) ok=no ;;
17783 esac
17784 case ,${enable_languages}, in
17785 *,fortran,*) ;;
17786 *) ok=no ;;
17787 esac
17788 if test $ok = yes; then
17789 # An in-tree tool is available and we can use it
17790 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17792$as_echo "just compiled" >&6; }
e8b05380
PB
17793 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17794 # We already found the complete path
172e41aa 17795 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17797$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17798 elif test "x$target" = "x$host"; then
17799 # We can use an host tool
17800 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17802$as_echo "host tool" >&6; }
2abefe3d
PB
17803 else
17804 # We need a cross tool
5213506e
RW
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17806$as_echo "pre-installed" >&6; }
2abefe3d
PB
17807 fi
17808fi
0b0dc272 17809
632e2a07
ILT
17810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17811$as_echo_n "checking where to find the target gccgo... " >&6; }
17812if test "x${build}" != "x${host}" ; then
17813 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17814 # We already found the complete path
17815 ac_dir=`dirname $GOC_FOR_TARGET`
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17817$as_echo "pre-installed in $ac_dir" >&6; }
17818 else
17819 # Canadian cross, just use what we found
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17821$as_echo "pre-installed" >&6; }
17822 fi
17823else
17824 ok=yes
17825 case " ${configdirs} " in
17826 *" gcc "*) ;;
17827 *) ok=no ;;
17828 esac
17829 case ,${enable_languages}, in
17830 *,go,*) ;;
17831 *) ok=no ;;
17832 esac
17833 if test $ok = yes; then
17834 # An in-tree tool is available and we can use it
17835 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17837$as_echo "just compiled" >&6; }
17838 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17839 # We already found the complete path
17840 ac_dir=`dirname $GOC_FOR_TARGET`
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17842$as_echo "pre-installed in $ac_dir" >&6; }
17843 elif test "x$target" = "x$host"; then
17844 # We can use an host tool
17845 GOC_FOR_TARGET='$(GOC)'
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17847$as_echo "host tool" >&6; }
17848 else
17849 # We need a cross tool
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17851$as_echo "pre-installed" >&6; }
17852 fi
17853fi
17854
b4c522fa
IB
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17856$as_echo_n "checking where to find the target gdc... " >&6; }
17857if test "x${build}" != "x${host}" ; then
17858 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17859 # We already found the complete path
17860 ac_dir=`dirname $GDC_FOR_TARGET`
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17862$as_echo "pre-installed in $ac_dir" >&6; }
17863 else
17864 # Canadian cross, just use what we found
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17866$as_echo "pre-installed" >&6; }
17867 fi
17868else
17869 ok=yes
17870 case " ${configdirs} " in
17871 *" gcc "*) ;;
17872 *) ok=no ;;
17873 esac
17874 case ,${enable_languages}, in
17875 *,d,*) ;;
17876 *) ok=no ;;
17877 esac
17878 if test $ok = yes; then
17879 # An in-tree tool is available and we can use it
17880 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17882$as_echo "just compiled" >&6; }
17883 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17884 # We already found the complete path
17885 ac_dir=`dirname $GDC_FOR_TARGET`
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17887$as_echo "pre-installed in $ac_dir" >&6; }
17888 elif test "x$target" = "x$host"; then
17889 # We can use an host tool
17890 GDC_FOR_TARGET='$(GDC)'
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17892$as_echo "host tool" >&6; }
17893 else
17894 # We need a cross tool
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17896$as_echo "pre-installed" >&6; }
17897 fi
17898fi
17899
1eee94d3
GM
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
17901$as_echo_n "checking where to find the target gm2... " >&6; }
17902if test "x${build}" != "x${host}" ; then
17903 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17904 # We already found the complete path
17905 ac_dir=`dirname $GM2_FOR_TARGET`
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17907$as_echo "pre-installed in $ac_dir" >&6; }
17908 else
17909 # Canadian cross, just use what we found
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17911$as_echo "pre-installed" >&6; }
17912 fi
17913else
17914 ok=yes
17915 case " ${configdirs} " in
17916 *" gcc "*) ;;
17917 *) ok=no ;;
17918 esac
17919 case ,${enable_languages}, in
17920 *,m2,*) ;;
17921 *) ok=no ;;
17922 esac
17923 if test $ok = yes; then
17924 # An in-tree tool is available and we can use it
17925 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17927$as_echo "just compiled" >&6; }
17928 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
17929 # We already found the complete path
17930 ac_dir=`dirname $GM2_FOR_TARGET`
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17932$as_echo "pre-installed in $ac_dir" >&6; }
17933 elif test "x$target" = "x$host"; then
17934 # We can use an host tool
17935 GM2_FOR_TARGET='$(GM2)'
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17937$as_echo "host tool" >&6; }
17938 else
17939 # We need a cross tool
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17941$as_echo "pre-installed" >&6; }
17942 fi
17943fi
17944
5213506e
RW
17945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17946$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17947if test "x${build}" != "x${host}" ; then
e8b05380
PB
17948 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17949 # We already found the complete path
172e41aa 17950 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17952$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17953 else
17954 # Canadian cross, just use what we found
5213506e
RW
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17956$as_echo "pre-installed" >&6; }
e8b05380 17957 fi
2abefe3d
PB
17958else
17959 ok=yes
17960 case " ${configdirs} " in
17961 *" ld "*) ;;
17962 *) ok=no ;;
17963 esac
1c710c3c 17964
2abefe3d
PB
17965 if test $ok = yes; then
17966 # An in-tree tool is available and we can use it
17967 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17969$as_echo "just compiled" >&6; }
e8b05380
PB
17970 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17971 # We already found the complete path
172e41aa 17972 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17974$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17975 elif test "x$target" = "x$host"; then
17976 # We can use an host tool
17977 LD_FOR_TARGET='$(LD)'
5213506e
RW
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17979$as_echo "host tool" >&6; }
2abefe3d
PB
17980 else
17981 # We need a cross tool
5213506e
RW
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17983$as_echo "pre-installed" >&6; }
2abefe3d
PB
17984 fi
17985fi
0b0dc272 17986
5213506e
RW
17987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17988$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17989if test "x${build}" != "x${host}" ; then
e8b05380
PB
17990 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17991 # We already found the complete path
172e41aa 17992 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17994$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17995 else
17996 # Canadian cross, just use what we found
5213506e
RW
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17998$as_echo "pre-installed" >&6; }
e8b05380 17999 fi
2abefe3d 18000else
e8b05380
PB
18001 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18002 # We already found the complete path
172e41aa 18003 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18005$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 18006 elif test "x$target" = "x$host"; then
2abefe3d
PB
18007 # We can use an host tool
18008 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18010$as_echo "host tool" >&6; }
2abefe3d
PB
18011 else
18012 # We need a cross tool
5213506e
RW
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18014$as_echo "pre-installed" >&6; }
2abefe3d
PB
18015 fi
18016fi
0b0dc272 18017
5213506e
RW
18018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18019$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 18020if test "x${build}" != "x${host}" ; then
e8b05380
PB
18021 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18022 # We already found the complete path
172e41aa 18023 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18025$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18026 else
18027 # Canadian cross, just use what we found
5213506e
RW
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18029$as_echo "pre-installed" >&6; }
e8b05380 18030 fi
2abefe3d
PB
18031else
18032 ok=yes
18033 case " ${configdirs} " in
18034 *" binutils "*) ;;
18035 *) ok=no ;;
18036 esac
1c710c3c 18037
2abefe3d
PB
18038 if test $ok = yes; then
18039 # An in-tree tool is available and we can use it
18040 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18042$as_echo "just compiled" >&6; }
e8b05380
PB
18043 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18044 # We already found the complete path
172e41aa 18045 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18047$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18048 elif test "x$target" = "x$host"; then
18049 # We can use an host tool
18050 NM_FOR_TARGET='$(NM)'
5213506e
RW
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18052$as_echo "host tool" >&6; }
2abefe3d
PB
18053 else
18054 # We need a cross tool
5213506e
RW
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18056$as_echo "pre-installed" >&6; }
2abefe3d
PB
18057 fi
18058fi
0b0dc272 18059
9bccfdf5
AP
18060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18061$as_echo_n "checking where to find the target objcopy... " >&6; }
18062if test "x${build}" != "x${host}" ; then
18063 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18064 # We already found the complete path
18065 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18067$as_echo "pre-installed in $ac_dir" >&6; }
18068 else
18069 # Canadian cross, just use what we found
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18071$as_echo "pre-installed" >&6; }
18072 fi
18073else
18074 ok=yes
18075 case " ${configdirs} " in
18076 *" binutils "*) ;;
18077 *) ok=no ;;
18078 esac
18079
18080 if test $ok = yes; then
18081 # An in-tree tool is available and we can use it
18082 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18084$as_echo "just compiled" >&6; }
18085 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18086 # We already found the complete path
18087 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18089$as_echo "pre-installed in $ac_dir" >&6; }
18090 elif test "x$target" = "x$host"; then
18091 # We can use an host tool
ec8fd1c0 18092 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18094$as_echo "host tool" >&6; }
18095 else
18096 # We need a cross tool
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18098$as_echo "pre-installed" >&6; }
18099 fi
18100fi
18101
5213506e
RW
18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18103$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 18104if test "x${build}" != "x${host}" ; then
e8b05380
PB
18105 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18106 # We already found the complete path
172e41aa 18107 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18109$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18110 else
18111 # Canadian cross, just use what we found
5213506e
RW
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18113$as_echo "pre-installed" >&6; }
e8b05380 18114 fi
2abefe3d
PB
18115else
18116 ok=yes
18117 case " ${configdirs} " in
18118 *" binutils "*) ;;
18119 *) ok=no ;;
18120 esac
1c710c3c 18121
2abefe3d
PB
18122 if test $ok = yes; then
18123 # An in-tree tool is available and we can use it
18124 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18126$as_echo "just compiled" >&6; }
e8b05380
PB
18127 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18128 # We already found the complete path
172e41aa 18129 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18131$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18132 elif test "x$target" = "x$host"; then
18133 # We can use an host tool
18134 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18136$as_echo "host tool" >&6; }
2abefe3d
PB
18137 else
18138 # We need a cross tool
5213506e
RW
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18140$as_echo "pre-installed" >&6; }
2abefe3d
PB
18141 fi
18142fi
0b0dc272 18143
e4a9a572
IS
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18145$as_echo_n "checking where to find the target otool... " >&6; }
18146if test "x${build}" != "x${host}" ; then
18147 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18148 # We already found the complete path
18149 ac_dir=`dirname $OTOOL_FOR_TARGET`
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18151$as_echo "pre-installed in $ac_dir" >&6; }
18152 else
18153 # Canadian cross, just use what we found
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18155$as_echo "pre-installed" >&6; }
18156 fi
18157else
18158 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18159 # We already found the complete path
18160 ac_dir=`dirname $OTOOL_FOR_TARGET`
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18162$as_echo "pre-installed in $ac_dir" >&6; }
18163 elif test "x$target" = "x$host"; then
18164 # We can use an host tool
18165 OTOOL_FOR_TARGET='$(OTOOL)'
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18167$as_echo "host tool" >&6; }
18168 else
18169 # We need a cross tool
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18171$as_echo "pre-installed" >&6; }
18172 fi
18173fi
18174
5213506e
RW
18175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18176$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18177if test "x${build}" != "x${host}" ; then
e8b05380
PB
18178 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18179 # We already found the complete path
172e41aa 18180 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18182$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18183 else
18184 # Canadian cross, just use what we found
5213506e
RW
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18186$as_echo "pre-installed" >&6; }
e8b05380 18187 fi
2abefe3d
PB
18188else
18189 ok=yes
18190 case " ${configdirs} " in
18191 *" binutils "*) ;;
18192 *) ok=no ;;
18193 esac
1c710c3c 18194
2abefe3d
PB
18195 if test $ok = yes; then
18196 # An in-tree tool is available and we can use it
18197 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18199$as_echo "just compiled" >&6; }
e8b05380
PB
18200 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18201 # We already found the complete path
172e41aa 18202 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18204$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18205 elif test "x$target" = "x$host"; then
18206 # We can use an host tool
18207 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18209$as_echo "host tool" >&6; }
2abefe3d
PB
18210 else
18211 # We need a cross tool
5213506e
RW
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18213$as_echo "pre-installed" >&6; }
2abefe3d
PB
18214 fi
18215fi
0b0dc272 18216
e7a82751
RM
18217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18218$as_echo_n "checking where to find the target readelf... " >&6; }
18219if test "x${build}" != "x${host}" ; then
18220 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18221 # We already found the complete path
18222 ac_dir=`dirname $READELF_FOR_TARGET`
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18224$as_echo "pre-installed in $ac_dir" >&6; }
18225 else
18226 # Canadian cross, just use what we found
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18228$as_echo "pre-installed" >&6; }
18229 fi
18230else
18231 ok=yes
18232 case " ${configdirs} " in
18233 *" binutils "*) ;;
18234 *) ok=no ;;
18235 esac
18236
18237 if test $ok = yes; then
18238 # An in-tree tool is available and we can use it
18239 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18241$as_echo "just compiled" >&6; }
18242 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18243 # We already found the complete path
18244 ac_dir=`dirname $READELF_FOR_TARGET`
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18246$as_echo "pre-installed in $ac_dir" >&6; }
18247 elif test "x$target" = "x$host"; then
18248 # We can use an host tool
18249 READELF_FOR_TARGET='$(READELF)'
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18251$as_echo "host tool" >&6; }
18252 else
18253 # We need a cross tool
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18255$as_echo "pre-installed" >&6; }
18256 fi
18257fi
18258
5213506e
RW
18259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18260$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18261if test "x${build}" != "x${host}" ; then
e8b05380
PB
18262 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18263 # We already found the complete path
172e41aa 18264 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18266$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18267 else
18268 # Canadian cross, just use what we found
5213506e
RW
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18270$as_echo "pre-installed" >&6; }
e8b05380 18271 fi
2abefe3d
PB
18272else
18273 ok=yes
18274 case " ${configdirs} " in
18275 *" binutils "*) ;;
18276 *) ok=no ;;
18277 esac
1c710c3c 18278
2abefe3d
PB
18279 if test $ok = yes; then
18280 # An in-tree tool is available and we can use it
455c8f48 18281 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18283$as_echo "just compiled" >&6; }
e8b05380
PB
18284 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18285 # We already found the complete path
172e41aa 18286 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18288$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18289 elif test "x$target" = "x$host"; then
18290 # We can use an host tool
18291 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18293$as_echo "host tool" >&6; }
2abefe3d
PB
18294 else
18295 # We need a cross tool
5213506e
RW
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18297$as_echo "pre-installed" >&6; }
2abefe3d
PB
18298 fi
18299fi
0b0dc272 18300
5213506e
RW
18301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18302$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18303if test "x${build}" != "x${host}" ; then
e8b05380
PB
18304 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18305 # We already found the complete path
172e41aa 18306 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18308$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18309 else
18310 # Canadian cross, just use what we found
5213506e
RW
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18312$as_echo "pre-installed" >&6; }
e8b05380 18313 fi
2abefe3d
PB
18314else
18315 ok=yes
18316 case " ${configdirs} " in
18317 *" binutils "*) ;;
18318 *) ok=no ;;
18319 esac
1c710c3c 18320
2abefe3d
PB
18321 if test $ok = yes; then
18322 # An in-tree tool is available and we can use it
18323 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18325$as_echo "just compiled" >&6; }
e8b05380
PB
18326 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18327 # We already found the complete path
172e41aa 18328 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18330$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18331 elif test "x$target" = "x$host"; then
18332 # We can use an host tool
18333 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18335$as_echo "host tool" >&6; }
2abefe3d
PB
18336 else
18337 # We need a cross tool
5213506e
RW
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18339$as_echo "pre-installed" >&6; }
2abefe3d 18340 fi
671aa708 18341fi
be912515 18342
5213506e
RW
18343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18344$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18345if test "x${build}" != "x${host}" ; then
18346 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18347 # We already found the complete path
18348 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18350$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18351 else
18352 # Canadian cross, just use what we found
5213506e
RW
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18354$as_echo "pre-installed" >&6; }
901119ae
KT
18355 fi
18356else
18357 ok=yes
18358 case " ${configdirs} " in
18359 *" binutils "*) ;;
18360 *) ok=no ;;
18361 esac
18362
18363 if test $ok = yes; then
18364 # An in-tree tool is available and we can use it
18365 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18367$as_echo "just compiled" >&6; }
901119ae
KT
18368 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18369 # We already found the complete path
18370 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18372$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18373 elif test "x$target" = "x$host"; then
18374 # We can use an host tool
18375 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18377$as_echo "host tool" >&6; }
901119ae
KT
18378 else
18379 # We need a cross tool
5213506e
RW
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18381$as_echo "pre-installed" >&6; }
901119ae
KT
18382 fi
18383fi
18384
be912515
NN
18385
18386
2abefe3d 18387
0b0dc272 18388
671aa708
NN
18389# Certain tools may need extra flags.
18390AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18391RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18392NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18393
2abefe3d
PB
18394# When building target libraries, except in a Canadian cross, we use
18395# the same toolchain as the compiler we just built.
18396COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18397COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18398COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18399if test $host = $build; then
18400 case " $configdirs " in
18401 *" gcc "*)
18402 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18403 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18404 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18405 ;;
18406 esac
18407fi
18408
18409
18410
18411
18412
5213506e
RW
18413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18414$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18415# Check whether --enable-maintainer-mode was given.
18416if test "${enable_maintainer_mode+set}" = set; then :
18417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18418else
18419 USE_MAINTAINER_MODE=no
5213506e
RW
18420fi
18421
18422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18423$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18424
18425
18426if test "$USE_MAINTAINER_MODE" = yes; then
18427 MAINTAINER_MODE_TRUE=
18428 MAINTAINER_MODE_FALSE='#'
18429else
18430 MAINTAINER_MODE_TRUE='#'
18431 MAINTAINER_MODE_FALSE=
1c710c3c 18432fi
ee03dc5e
AO
18433MAINT=$MAINTAINER_MODE_TRUE
18434
2805b53a
NN
18435# ---------------------
18436# GCC bootstrap support
18437# ---------------------
18438
18439# Stage specific cflags for build.
18440stage1_cflags="-g"
18441case $build in
18442 vax-*-*)
18443 case ${GCC} in
18444 yes) stage1_cflags="-g -Wa,-J" ;;
18445 *) stage1_cflags="-g -J" ;;
18446 esac ;;
2805b53a
NN
18447esac
18448
0b50988a 18449
2805b53a 18450
8efea775 18451# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18452# Check whether --enable-stage1-checking was given.
18453if test "${enable_stage1_checking+set}" = set; then :
18454 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18455else
e643dc23 18456 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18457 # For --disable-checking or implicit --enable-checking=release, avoid
18458 # setting --enable-checking=gc in the default stage1 checking for LTO
18459 # bootstraps. See PR62077.
c10b5ea0
JJ
18460 case $BUILD_CONFIG in
18461 *lto*)
7db11a5a
JJ
18462 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18463 *)
18464 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18465 esac
7db11a5a
JJ
18466 if test "x$enable_checking" = x && \
18467 test -d ${srcdir}/gcc && \
18468 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18469 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18470 fi
8efea775 18471else
e643dc23 18472 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18473fi
5213506e 18474fi
8efea775
PB
18475
18476
2aeb72e9 18477
5213506e
RW
18478# Enable -Werror in bootstrap stage2 and later.
18479# Check whether --enable-werror was given.
18480if test "${enable_werror+set}" = set; then :
18481 enableval=$enable_werror;
09a9c095
NN
18482case ${enable_werror} in
18483 yes) stage2_werror_flag="--enable-werror-always" ;;
18484 *) stage2_werror_flag="" ;;
2805b53a
NN
18485esac
18486
afd88efc
ML
18487else
18488
01c712cb
ML
18489if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18490 case $BUILD_CONFIG in
18491 bootstrap-debug)
18492 stage2_werror_flag="--enable-werror-always" ;;
18493 "")
18494 stage2_werror_flag="--enable-werror-always" ;;
18495 esac
18496fi
18497
afd88efc
ML
18498fi
18499
18500
01c712cb 18501
2805b53a 18502
f2689b09
SE
18503# Specify what files to not compare during bootstrap.
18504
18505compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
1eee94d3
GM
18506compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18507compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18508compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
f2689b09
SE
18509case "$target" in
18510 hppa*64*-*-hpux*) ;;
4f943869 18511 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18512esac
18513
18514
5213506e
RW
18515ac_config_files="$ac_config_files Makefile"
18516
1c710c3c 18517cat >confcache <<\_ACEOF
671aa708
NN
18518# This file is a shell script that caches the results of configure
18519# tests run on this system so they can be shared between configure
1c710c3c
DJ
18520# scripts and configure runs, see configure's option --config-cache.
18521# It is not useful on other systems. If it contains results you don't
18522# want to keep, you may remove or edit it.
671aa708 18523#
1c710c3c
DJ
18524# config.status only pays attention to the cache file if you give it
18525# the --recheck option to rerun configure.
671aa708 18526#
1c710c3c
DJ
18527# `ac_cv_env_foo' variables (set or unset) will be overridden when
18528# loading this file, other *unset* `ac_cv_foo' will be assigned the
18529# following values.
18530
18531_ACEOF
18532
671aa708
NN
18533# The following way of writing the cache mishandles newlines in values,
18534# but we know of no workaround that is simple, portable, and efficient.
5213506e 18535# So, we kill variables containing newlines.
671aa708
NN
18536# Ultrix sh set writes to stderr and can't be redirected directly,
18537# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18538(
18539 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18540 eval ac_val=\$$ac_var
18541 case $ac_val in #(
18542 *${as_nl}*)
18543 case $ac_var in #(
18544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18546 esac
18547 case $ac_var in #(
18548 _ | IFS | as_nl) ;; #(
18549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18550 *) { eval $ac_var=; unset $ac_var;} ;;
18551 esac ;;
18552 esac
18553 done
18554
1c710c3c 18555 (set) 2>&1 |
5213506e
RW
18556 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18557 *${as_nl}ac_space=\ *)
18558 # `set' does not quote correctly, so add quotes: double-quote
18559 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18560 sed -n \
18561 "s/'/'\\\\''/g;
18562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18563 ;; #(
1c710c3c
DJ
18564 *)
18565 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18567 ;;
5213506e
RW
18568 esac |
18569 sort
18570) |
1c710c3c 18571 sed '
5213506e 18572 /^ac_cv_env_/b end
1c710c3c 18573 t clear
5213506e 18574 :clear
1c710c3c
DJ
18575 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18576 t end
5213506e
RW
18577 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18578 :end' >>confcache
18579if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18580 if test -w "$cache_file"; then
22e05272 18581 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18583$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18584 if test ! -f "$cache_file" || test -h "$cache_file"; then
18585 cat confcache >"$cache_file"
18586 else
18587 case $cache_file in #(
18588 */* | ?:*)
18589 mv -f confcache "$cache_file"$$ &&
18590 mv -f "$cache_file"$$ "$cache_file" ;; #(
18591 *)
18592 mv -f confcache "$cache_file" ;;
18593 esac
18594 fi
18595 fi
671aa708 18596 else
5213506e
RW
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18598$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18599 fi
4977bab6 18600fi
671aa708 18601rm -f confcache
79c06341 18602
671aa708
NN
18603test "x$prefix" = xNONE && prefix=$ac_default_prefix
18604# Let make expand exec_prefix.
18605test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18606
671aa708
NN
18607# Transform confdefs.h into DEFS.
18608# Protect against shell expansion while executing Makefile rules.
18609# Protect against Makefile macro expansion.
1c710c3c
DJ
18610#
18611# If the first sed substitution is executed (which looks for macros that
5213506e 18612# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18613# look for a macro that doesn't take arguments.
5213506e
RW
18614ac_script='
18615:mline
18616/\\$/{
18617 N
18618 s,\\\n,,
18619 b mline
18620}
1c710c3c 18621t clear
5213506e
RW
18622:clear
18623s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18624t quote
5213506e 18625s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18626t quote
5213506e
RW
18627b any
18628:quote
18629s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18630s/\[/\\&/g
18631s/\]/\\&/g
18632s/\$/$$/g
18633H
18634:any
18635${
18636 g
18637 s/^\n//
18638 s/\n/ /g
18639 p
18640}
18641'
18642DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18643
18644
18645ac_libobjs=
18646ac_ltlibobjs=
22e05272 18647U=
1c710c3c
DJ
18648for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18649 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18650 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18651 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18652 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18653 # will be set to the directory where LIBOBJS objects are built.
18654 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18655 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18656done
18657LIBOBJS=$ac_libobjs
fb0103e5 18658
1c710c3c 18659LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18660
af71363e 18661
1c710c3c 18662
22e05272 18663: "${CONFIG_STATUS=./config.status}"
5213506e 18664ac_write_fail=0
1c710c3c
DJ
18665ac_clean_files_save=$ac_clean_files
18666ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18667{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18668$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18669as_write_fail=0
18670cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18671#! $SHELL
18672# Generated by $as_me.
671aa708 18673# Run this file to recreate the current configuration.
671aa708 18674# Compiler output produced by configure, useful for debugging
1c710c3c 18675# configure, is in config.log if it exists.
0b0dc272 18676
1c710c3c
DJ
18677debug=false
18678ac_cs_recheck=false
18679ac_cs_silent=false
1c710c3c 18680
5213506e
RW
18681SHELL=\${CONFIG_SHELL-$SHELL}
18682export SHELL
18683_ASEOF
18684cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18685## -------------------- ##
18686## M4sh Initialization. ##
18687## -------------------- ##
18688
18689# Be more Bourne compatible
18690DUALCASE=1; export DUALCASE # for MKS sh
18691if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18692 emulate sh
18693 NULLCMD=:
5213506e 18694 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18695 # is contrary to our usage. Disable this feature.
18696 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18697 setopt NO_GLOB_SUBST
18698else
18699 case `(set -o) 2>/dev/null` in #(
18700 *posix*) :
18701 set -o posix ;; #(
18702 *) :
18703 ;;
18704esac
1c710c3c 18705fi
1c710c3c 18706
5213506e
RW
18707
18708as_nl='
18709'
18710export as_nl
18711# Printing a long string crashes Solaris 7 /usr/bin/printf.
18712as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18713as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18714as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18715# Prefer a ksh shell builtin over an external printf program on Solaris,
18716# but without wasting forks for bash or zsh.
18717if test -z "$BASH_VERSION$ZSH_VERSION" \
18718 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18719 as_echo='print -r --'
18720 as_echo_n='print -rn --'
18721elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18722 as_echo='printf %s\n'
18723 as_echo_n='printf %s'
18724else
18725 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18726 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18727 as_echo_n='/usr/ucb/echo -n'
18728 else
18729 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18730 as_echo_n_body='eval
18731 arg=$1;
18732 case $arg in #(
18733 *"$as_nl"*)
18734 expr "X$arg" : "X\\(.*\\)$as_nl";
18735 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18736 esac;
18737 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18738 '
18739 export as_echo_n_body
18740 as_echo_n='sh -c $as_echo_n_body as_echo'
18741 fi
18742 export as_echo_body
18743 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18744fi
18745
5213506e
RW
18746# The user is always right.
18747if test "${PATH_SEPARATOR+set}" != set; then
18748 PATH_SEPARATOR=:
18749 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18750 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18751 PATH_SEPARATOR=';'
18752 }
18753fi
18754
18755
18756# IFS
18757# We need space, tab and new line, in precisely that order. Quoting is
18758# there to prevent editors from complaining about space-tab.
18759# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18760# splitting by setting IFS to empty value.)
18761IFS=" "" $as_nl"
18762
18763# Find who we are. Look in the path if we contain no directory separator.
22e05272 18764as_myself=
5213506e
RW
18765case $0 in #((
18766 *[\\/]* ) as_myself=$0 ;;
18767 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18768for as_dir in $PATH
18769do
18770 IFS=$as_save_IFS
18771 test -z "$as_dir" && as_dir=.
18772 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18773 done
18774IFS=$as_save_IFS
18775
18776 ;;
18777esac
18778# We did not find ourselves, most probably we were run as `sh COMMAND'
18779# in which case we are not to be found in the path.
18780if test "x$as_myself" = x; then
18781 as_myself=$0
18782fi
18783if test ! -f "$as_myself"; then
18784 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18785 exit 1
18786fi
1c710c3c 18787
5213506e
RW
18788# Unset variables that we do not need and which cause bugs (e.g. in
18789# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18790# suppresses any "Segmentation fault" message there. '((' could
18791# trigger a bug in pdksh 5.2.14.
18792for as_var in BASH_ENV ENV MAIL MAILPATH
18793do eval test x\${$as_var+set} = xset \
18794 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18795done
1c710c3c
DJ
18796PS1='$ '
18797PS2='> '
18798PS4='+ '
18799
18800# NLS nuisances.
5213506e
RW
18801LC_ALL=C
18802export LC_ALL
18803LANGUAGE=C
18804export LANGUAGE
18805
18806# CDPATH.
18807(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18808
18809
22e05272
JM
18810# as_fn_error STATUS ERROR [LINENO LOG_FD]
18811# ----------------------------------------
5213506e
RW
18812# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18813# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18814# script with STATUS, using 1 if that was 0.
5213506e
RW
18815as_fn_error ()
18816{
22e05272
JM
18817 as_status=$1; test $as_status -eq 0 && as_status=1
18818 if test "$4"; then
18819 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18820 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18821 fi
22e05272 18822 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18823 as_fn_exit $as_status
18824} # as_fn_error
18825
18826
18827# as_fn_set_status STATUS
18828# -----------------------
18829# Set $? to STATUS, without forking.
18830as_fn_set_status ()
18831{
18832 return $1
18833} # as_fn_set_status
18834
18835# as_fn_exit STATUS
18836# -----------------
18837# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18838as_fn_exit ()
18839{
18840 set +e
18841 as_fn_set_status $1
18842 exit $1
18843} # as_fn_exit
18844
18845# as_fn_unset VAR
18846# ---------------
18847# Portably unset VAR.
18848as_fn_unset ()
18849{
18850 { eval $1=; unset $1;}
18851}
18852as_unset=as_fn_unset
18853# as_fn_append VAR VALUE
18854# ----------------------
18855# Append the text in VALUE to the end of the definition contained in VAR. Take
18856# advantage of any shell optimizations that allow amortized linear growth over
18857# repeated appends, instead of the typical quadratic growth present in naive
18858# implementations.
18859if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18860 eval 'as_fn_append ()
18861 {
18862 eval $1+=\$2
18863 }'
18864else
18865 as_fn_append ()
18866 {
18867 eval $1=\$$1\$2
18868 }
18869fi # as_fn_append
18870
18871# as_fn_arith ARG...
18872# ------------------
18873# Perform arithmetic evaluation on the ARGs, and store the result in the
18874# global $as_val. Take advantage of shells that can avoid forks. The arguments
18875# must be portable across $(()) and expr.
18876if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18877 eval 'as_fn_arith ()
18878 {
18879 as_val=$(( $* ))
18880 }'
18881else
18882 as_fn_arith ()
18883 {
18884 as_val=`expr "$@" || test $? -eq 1`
18885 }
18886fi # as_fn_arith
18887
1c710c3c 18888
5213506e
RW
18889if expr a : '\(a\)' >/dev/null 2>&1 &&
18890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18891 as_expr=expr
18892else
18893 as_expr=false
18894fi
18895
5213506e 18896if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18897 as_basename=basename
18898else
18899 as_basename=false
18900fi
18901
5213506e
RW
18902if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18903 as_dirname=dirname
18904else
18905 as_dirname=false
18906fi
1c710c3c 18907
5213506e 18908as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18909$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18910 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18911 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18912$as_echo X/"$0" |
18913 sed '/^.*\/\([^/][^/]*\)\/*$/{
18914 s//\1/
18915 q
18916 }
18917 /^X\/\(\/\/\)$/{
18918 s//\1/
18919 q
18920 }
18921 /^X\/\(\/\).*/{
18922 s//\1/
18923 q
18924 }
18925 s/.*/./; q'`
2aeb72e9 18926
2aeb72e9
DD
18927# Avoid depending upon Character Ranges.
18928as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18929as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18930as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18931as_cr_digits='0123456789'
18932as_cr_alnum=$as_cr_Letters$as_cr_digits
18933
5213506e
RW
18934ECHO_C= ECHO_N= ECHO_T=
18935case `echo -n x` in #(((((
18936-n*)
18937 case `echo 'xy\c'` in
18938 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18939 xy) ECHO_C='\c';;
18940 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18941 ECHO_T=' ';;
18942 esac;;
18943*)
18944 ECHO_N='-n';;
1c710c3c
DJ
18945esac
18946
5213506e
RW
18947rm -f conf$$ conf$$.exe conf$$.file
18948if test -d conf$$.dir; then
18949 rm -f conf$$.dir/conf$$.file
1c710c3c 18950else
5213506e
RW
18951 rm -f conf$$.dir
18952 mkdir conf$$.dir 2>/dev/null
1c710c3c 18953fi
5213506e
RW
18954if (echo >conf$$.file) 2>/dev/null; then
18955 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18956 as_ln_s='ln -s'
5213506e
RW
18957 # ... but there are two gotchas:
18958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18960 # In both cases, we have to default to `cp -pR'.
5213506e 18961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18962 as_ln_s='cp -pR'
5213506e
RW
18963 elif ln conf$$.file conf$$ 2>/dev/null; then
18964 as_ln_s=ln
18965 else
22e05272 18966 as_ln_s='cp -pR'
2aeb72e9 18967 fi
1c710c3c 18968else
22e05272 18969 as_ln_s='cp -pR'
1c710c3c 18970fi
5213506e
RW
18971rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18972rmdir conf$$.dir 2>/dev/null
18973
18974
18975# as_fn_mkdir_p
18976# -------------
18977# Create "$as_dir" as a directory, including parents if necessary.
18978as_fn_mkdir_p ()
18979{
18980
18981 case $as_dir in #(
18982 -*) as_dir=./$as_dir;;
18983 esac
18984 test -d "$as_dir" || eval $as_mkdir_p || {
18985 as_dirs=
18986 while :; do
18987 case $as_dir in #(
18988 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18989 *) as_qdir=$as_dir;;
18990 esac
18991 as_dirs="'$as_qdir' $as_dirs"
18992 as_dir=`$as_dirname -- "$as_dir" ||
18993$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$as_dir" : 'X\(//\)[^/]' \| \
18995 X"$as_dir" : 'X\(//\)$' \| \
18996 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18997$as_echo X"$as_dir" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)[^/].*/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\/\)$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\).*/{
19011 s//\1/
19012 q
19013 }
19014 s/.*/./; q'`
19015 test -d "$as_dir" && break
19016 done
19017 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 19018 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 19019
1c710c3c 19020
5213506e 19021} # as_fn_mkdir_p
1c710c3c 19022if mkdir -p . 2>/dev/null; then
5213506e 19023 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
19024else
19025 test -d ./-p && rmdir ./-p
19026 as_mkdir_p=false
19027fi
19028
22e05272
JM
19029
19030# as_fn_executable_p FILE
19031# -----------------------
19032# Test if FILE is an executable regular file.
19033as_fn_executable_p ()
19034{
19035 test -f "$1" && test -x "$1"
19036} # as_fn_executable_p
19037as_test_x='test -x'
19038as_executable_p=as_fn_executable_p
1c710c3c
DJ
19039
19040# Sed expression to map a string onto a valid CPP name.
19041as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19042
19043# Sed expression to map a string onto a valid variable name.
19044as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19045
19046
1c710c3c 19047exec 6>&1
5213506e
RW
19048## ----------------------------------- ##
19049## Main body of $CONFIG_STATUS script. ##
19050## ----------------------------------- ##
19051_ASEOF
19052test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19053
19054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19055# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 19056# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
19057# values after options handling.
19058ac_log="
1c710c3c 19059This file was extended by $as_me, which was
22e05272 19060generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
19061
19062 CONFIG_FILES = $CONFIG_FILES
19063 CONFIG_HEADERS = $CONFIG_HEADERS
19064 CONFIG_LINKS = $CONFIG_LINKS
19065 CONFIG_COMMANDS = $CONFIG_COMMANDS
19066 $ $0 $@
19067
5213506e
RW
19068on `(hostname || uname -n) 2>/dev/null | sed 1q`
19069"
19070
1c710c3c
DJ
19071_ACEOF
19072
5213506e
RW
19073case $ac_config_files in *"
19074"*) set x $ac_config_files; shift; ac_config_files=$*;;
19075esac
1c710c3c 19076
2aeb72e9 19077
2aeb72e9 19078
5213506e
RW
19079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19080# Files that config.status was made for.
19081config_files="$ac_config_files"
1c710c3c 19082
5213506e 19083_ACEOF
2aeb72e9 19084
5213506e 19085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 19086ac_cs_usage="\
5213506e
RW
19087\`$as_me' instantiates files and other configuration actions
19088from templates according to the current configuration. Unless the files
19089and actions are specified as TAGs, all are instantiated by default.
1c710c3c 19090
5213506e 19091Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
19092
19093 -h, --help print this help, then exit
5213506e 19094 -V, --version print version number and configuration settings, then exit
22e05272 19095 --config print configuration, then exit
5213506e
RW
19096 -q, --quiet, --silent
19097 do not print progress messages
1c710c3c
DJ
19098 -d, --debug don't remove temporary files
19099 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
19100 --file=FILE[:TEMPLATE]
19101 instantiate the configuration file FILE
1c710c3c
DJ
19102
19103Configuration files:
19104$config_files
19105
5213506e 19106Report bugs to the package provider."
2aeb72e9 19107
5213506e
RW
19108_ACEOF
19109cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19110ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
19111ac_cs_version="\\
19112config.status
22e05272
JM
19113configured by $0, generated by GNU Autoconf 2.69,
19114 with options \\"\$ac_cs_config\\"
1c710c3c 19115
22e05272 19116Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
19117This config.status script is free software; the Free Software Foundation
19118gives unlimited permission to copy, distribute and modify it."
5213506e
RW
19119
19120ac_pwd='$ac_pwd'
19121srcdir='$srcdir'
19122INSTALL='$INSTALL'
87264276 19123AWK='$AWK'
5213506e 19124test -n "\$AWK" || AWK=awk
1c710c3c
DJ
19125_ACEOF
19126
5213506e
RW
19127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19128# The default lists apply if the user does not specify any file.
1c710c3c
DJ
19129ac_need_defaults=:
19130while test $# != 0
a4b9e93e 19131do
1c710c3c 19132 case $1 in
22e05272 19133 --*=?*)
5213506e
RW
19134 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19135 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
19136 ac_shift=:
19137 ;;
22e05272
JM
19138 --*=)
19139 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19140 ac_optarg=
19141 ac_shift=:
19142 ;;
5213506e 19143 *)
1c710c3c
DJ
19144 ac_option=$1
19145 ac_optarg=$2
19146 ac_shift=shift
19147 ;;
1c710c3c
DJ
19148 esac
19149
19150 case $ac_option in
19151 # Handling of the options.
671aa708 19152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 19153 ac_cs_recheck=: ;;
5213506e
RW
19154 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19155 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
19156 --config | --confi | --conf | --con | --co | --c )
19157 $as_echo "$ac_cs_config"; exit ;;
5213506e 19158 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
19159 debug=: ;;
19160 --file | --fil | --fi | --f )
19161 $ac_shift
5213506e
RW
19162 case $ac_optarg in
19163 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 19164 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
19165 esac
19166 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 19167 ac_need_defaults=false;;
5213506e
RW
19168 --he | --h | --help | --hel | -h )
19169 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
19170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19171 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19172 ac_cs_silent=: ;;
19173
19174 # This is an error.
22e05272 19175 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19176Try \`$0 --help' for more information." ;;
1c710c3c 19177
5213506e
RW
19178 *) as_fn_append ac_config_targets " $1"
19179 ac_need_defaults=false ;;
1c710c3c 19180
0b0dc272 19181 esac
1c710c3c 19182 shift
0b0dc272
AM
19183done
19184
1c710c3c 19185ac_configure_extra_args=
0b0dc272 19186
1c710c3c
DJ
19187if $ac_cs_silent; then
19188 exec 6>/dev/null
19189 ac_configure_extra_args="$ac_configure_extra_args --silent"
19190fi
0b0dc272 19191
1c710c3c 19192_ACEOF
5213506e 19193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19194if \$ac_cs_recheck; then
22e05272 19195 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19196 shift
19197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19198 CONFIG_SHELL='$SHELL'
19199 export CONFIG_SHELL
19200 exec "\$@"
1c710c3c
DJ
19201fi
19202
19203_ACEOF
5213506e
RW
19204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19205exec 5>>config.log
19206{
19207 echo
19208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19209## Running $as_me. ##
19210_ASBOX
19211 $as_echo "$ac_log"
19212} >&5
1c710c3c 19213
5213506e
RW
19214_ACEOF
19215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19216#
19217# INIT-COMMANDS
19218#
19219extrasub_build="$extrasub_build"
19220 extrasub_host="$extrasub_host"
19221 extrasub_target="$extrasub_target"
19222
5213506e 19223_ACEOF
1c710c3c 19224
5213506e 19225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19226
5213506e 19227# Handling of arguments.
1c710c3c
DJ
19228for ac_config_target in $ac_config_targets
19229do
5213506e
RW
19230 case $ac_config_target in
19231 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19232
22e05272 19233 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19234 esac
19235done
19236
5213506e 19237
1c710c3c
DJ
19238# If the user did not use the arguments to specify the items to instantiate,
19239# then the envvar interface is used. Set only those that are not.
19240# We use the long form for the default assignment because of an extremely
19241# bizarre bug on SunOS 4.1.3.
19242if $ac_need_defaults; then
19243 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19244fi
19245
19246# Have a temporary directory for convenience. Make it in the build tree
5213506e 19247# simply because there is no reason against having it here, and in addition,
1c710c3c 19248# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19249# Hook for its removal unless debugging.
19250# Note that there is a small window in which the directory will not be cleaned:
19251# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19252$debug ||
19253{
22e05272 19254 tmp= ac_tmp=
5213506e 19255 trap 'exit_status=$?
22e05272
JM
19256 : "${ac_tmp:=$tmp}"
19257 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19258' 0
19259 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19260}
1c710c3c
DJ
19261# Create a (secure) tmp directory for tmp files.
19262
19263{
5213506e 19264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19265 test -d "$tmp"
1c710c3c
DJ
19266} ||
19267{
5213506e
RW
19268 tmp=./conf$$-$RANDOM
19269 (umask 077 && mkdir "$tmp")
22e05272
JM
19270} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19271ac_tmp=$tmp
5213506e
RW
19272
19273# Set up the scripts for CONFIG_FILES section.
19274# No need to generate them if there are no CONFIG_FILES.
19275# This happens for instance with `./config.status config.h'.
19276if test -n "$CONFIG_FILES"; then
19277
19278if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19279 ac_cs_awk_getline=:
19280 ac_cs_awk_pipe_init=
19281 ac_cs_awk_read_file='
19282 while ((getline aline < (F[key])) > 0)
19283 print(aline)
19284 close(F[key])'
19285 ac_cs_awk_pipe_fini=
19286else
19287 ac_cs_awk_getline=false
19288 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19289 ac_cs_awk_read_file='
19290 print "|#_!!_#|"
19291 print "cat " F[key] " &&"
19292 '$ac_cs_awk_pipe_init
19293 # The final `:' finishes the AND list.
19294 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19295fi
19296ac_cr=`echo X | tr X '\015'`
19297# On cygwin, bash can eat \r inside `` if the user requested igncr.
19298# But we know of no other shell where ac_cr would be empty at this
19299# point, so we can use a bashism as a fallback.
19300if test "x$ac_cr" = x; then
19301 eval ac_cr=\$\'\\r\'
19302fi
19303ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19304if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19305 ac_cs_awk_cr='\\r'
5213506e
RW
19306else
19307 ac_cs_awk_cr=$ac_cr
19308fi
19309
22e05272 19310echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19311_ACEOF
19312
19313# Create commands to substitute file output variables.
1c710c3c 19314{
5213506e 19315 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19316 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19317 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19318 echo "_ACAWK" &&
19319 echo "_ACEOF"
19320} >conf$$files.sh &&
19321. ./conf$$files.sh ||
22e05272 19322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19323rm -f conf$$files.sh
1c710c3c 19324
5213506e
RW
19325{
19326 echo "cat >conf$$subs.awk <<_ACEOF" &&
19327 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19328 echo "_ACEOF"
19329} >conf$$subs.sh ||
22e05272
JM
19330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19331ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19332ac_delim='%!_!# '
19333for ac_last_try in false false false false false :; do
19334 . ./conf$$subs.sh ||
22e05272 19335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19336
19337 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19338 if test $ac_delim_n = $ac_delim_num; then
19339 break
19340 elif $ac_last_try; then
22e05272 19341 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19342 else
19343 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19344 fi
19345done
19346rm -f conf$$subs.sh
19347
19348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19349cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19350_ACEOF
5213506e
RW
19351sed -n '
19352h
19353s/^/S["/; s/!.*/"]=/
19354p
19355g
19356s/^[^!]*!//
19357:repl
19358t repl
19359s/'"$ac_delim"'$//
19360t delim
19361:nl
19362h
22e05272 19363s/\(.\{148\}\)..*/\1/
5213506e
RW
19364t more1
19365s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19366p
19367n
19368b repl
19369:more1
19370s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19371p
19372g
19373s/.\{148\}//
19374t nl
19375:delim
19376h
22e05272 19377s/\(.\{148\}\)..*/\1/
5213506e
RW
19378t more2
19379s/["\\]/\\&/g; s/^/"/; s/$/"/
19380p
19381b
19382:more2
19383s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19384p
19385g
19386s/.\{148\}//
19387t delim
19388' <conf$$subs.awk | sed '
19389/^[^""]/{
19390 N
19391 s/\n//
19392}
19393' >>$CONFIG_STATUS || ac_write_fail=1
19394rm -f conf$$subs.awk
19395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19396_ACAWK
22e05272 19397cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19398 for (key in S) S_is_set[key] = 1
19399 FS = "\a"
19400 \$ac_cs_awk_pipe_init
19401}
19402{
19403 line = $ 0
19404 nfields = split(line, field, "@")
19405 substed = 0
19406 len = length(field[1])
19407 for (i = 2; i < nfields; i++) {
19408 key = field[i]
19409 keylen = length(key)
19410 if (S_is_set[key]) {
19411 value = S[key]
19412 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19413 len += length(value) + length(field[++i])
19414 substed = 1
19415 } else
19416 len += 1 + keylen
19417 }
19418 if (nfields == 3 && !substed) {
19419 key = field[2]
19420 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19421 \$ac_cs_awk_read_file
19422 next
19423 }
19424 }
19425 print line
19426}
19427\$ac_cs_awk_pipe_fini
19428_ACAWK
19429_ACEOF
19430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19431if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19432 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19433else
19434 cat
22e05272
JM
19435fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19436 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19437_ACEOF
19438
22e05272
JM
19439# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19440# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19441# trailing colons and then remove the whole line if VPATH becomes empty
19442# (actually we leave an empty line to preserve line numbers).
19443if test "x$srcdir" = x.; then
22e05272
JM
19444 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19445h
19446s///
19447s/^/:/
19448s/[ ]*$/:/
19449s/:\$(srcdir):/:/g
19450s/:\${srcdir}:/:/g
19451s/:@srcdir@:/:/g
19452s/^:*//
5213506e 19453s/:*$//
22e05272
JM
19454x
19455s/\(=[ ]*\).*/\1/
19456G
19457s/\n//
5213506e
RW
19458s/^[^=]*=[ ]*$//
19459}'
19460fi
2aeb72e9 19461
5213506e
RW
19462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19463fi # test -n "$CONFIG_FILES"
2aeb72e9 19464
1c710c3c 19465
5213506e
RW
19466eval set X " :F $CONFIG_FILES "
19467shift
19468for ac_tag
19469do
19470 case $ac_tag in
19471 :[FHLC]) ac_mode=$ac_tag; continue;;
19472 esac
19473 case $ac_mode$ac_tag in
19474 :[FHL]*:*);;
22e05272 19475 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19476 :[FH]-) ac_tag=-:-;;
19477 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19478 esac
19479 ac_save_IFS=$IFS
19480 IFS=:
19481 set x $ac_tag
19482 IFS=$ac_save_IFS
19483 shift
19484 ac_file=$1
19485 shift
79c06341 19486
5213506e
RW
19487 case $ac_mode in
19488 :L) ac_source=$1;;
19489 :[FH])
19490 ac_file_inputs=
19491 for ac_f
19492 do
19493 case $ac_f in
22e05272 19494 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19495 *) # Look for the file first in the build tree, then in the source tree
19496 # (if the path is not absolute). The absolute path cannot be DOS-style,
19497 # because $ac_f cannot contain `:'.
19498 test -f "$ac_f" ||
19499 case $ac_f in
19500 [\\/$]*) false;;
19501 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19502 esac ||
22e05272 19503 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19504 esac
19505 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19506 as_fn_append ac_file_inputs " '$ac_f'"
19507 done
1c710c3c 19508
5213506e
RW
19509 # Let's still pretend it is `configure' which instantiates (i.e., don't
19510 # use $as_me), people would be surprised to read:
19511 # /* config.h. Generated by config.status. */
19512 configure_input='Generated from '`
19513 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19514 `' by configure.'
19515 if test x"$ac_file" != x-; then
19516 configure_input="$ac_file. $configure_input"
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19518$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19519 fi
5213506e
RW
19520 # Neutralize special characters interpreted by sed in replacement strings.
19521 case $configure_input in #(
19522 *\&* | *\|* | *\\* )
19523 ac_sed_conf_input=`$as_echo "$configure_input" |
19524 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19525 *) ac_sed_conf_input=$configure_input;;
19526 esac
11a67599 19527
5213506e 19528 case $ac_tag in
22e05272
JM
19529 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19531 esac
19532 ;;
11a67599
ZW
19533 esac
19534
5213506e 19535 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19536$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19537 X"$ac_file" : 'X\(//\)[^/]' \| \
19538 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19539 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19540$as_echo X"$ac_file" |
19541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19542 s//\1/
19543 q
19544 }
19545 /^X\(\/\/\)[^/].*/{
19546 s//\1/
19547 q
19548 }
19549 /^X\(\/\/\)$/{
19550 s//\1/
19551 q
19552 }
19553 /^X\(\/\).*/{
19554 s//\1/
19555 q
19556 }
19557 s/.*/./; q'`
19558 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19559 ac_builddir=.
0b0dc272 19560
5213506e
RW
19561case "$ac_dir" in
19562.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19563*)
19564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19565 # A ".." for each directory in $ac_dir_suffix.
19566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19567 case $ac_top_builddir_sub in
19568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19570 esac ;;
19571esac
19572ac_abs_top_builddir=$ac_pwd
19573ac_abs_builddir=$ac_pwd$ac_dir_suffix
19574# for backward compatibility:
19575ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19576
19577case $srcdir in
5213506e 19578 .) # We are building in place.
1c710c3c 19579 ac_srcdir=.
5213506e
RW
19580 ac_top_srcdir=$ac_top_builddir_sub
19581 ac_abs_top_srcdir=$ac_pwd ;;
19582 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19583 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19584 ac_top_srcdir=$srcdir
19585 ac_abs_top_srcdir=$srcdir ;;
19586 *) # Relative name.
19587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19588 ac_top_srcdir=$ac_top_build_prefix$srcdir
19589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19590esac
5213506e 19591ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19592
0b0dc272 19593
5213506e
RW
19594 case $ac_mode in
19595 :F)
19596 #
19597 # CONFIG_FILE
19598 #
1c710c3c
DJ
19599
19600 case $INSTALL in
19601 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19602 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19603 esac
5213506e 19604_ACEOF
11a67599 19605
5213506e
RW
19606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19607# If the template does not know about datarootdir, expand it.
19608# FIXME: This hack should be removed a few years after 2.60.
19609ac_datarootdir_hack=; ac_datarootdir_seen=
19610ac_sed_dataroot='
19611/datarootdir/ {
19612 p
19613 q
19614}
19615/@datadir@/p
19616/@docdir@/p
19617/@infodir@/p
19618/@localedir@/p
19619/@mandir@/p'
19620case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19621*datarootdir*) ac_datarootdir_seen=yes;;
19622*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19624$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19625_ACEOF
5213506e
RW
19626cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19627 ac_datarootdir_hack='
19628 s&@datadir@&$datadir&g
19629 s&@docdir@&$docdir&g
19630 s&@infodir@&$infodir&g
19631 s&@localedir@&$localedir&g
19632 s&@mandir@&$mandir&g
19633 s&\\\${datarootdir}&$datarootdir&g' ;;
19634esac
19635_ACEOF
19636
19637# Neutralize VPATH when `$srcdir' = `.'.
19638# Shell code in configure.ac might set extrasub.
19639# FIXME: do we really want to maintain this feature?
19640cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19641ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19642$extrasub
19643_ACEOF
5213506e 19644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19645:t
19646/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19647s|@configure_input@|$ac_sed_conf_input|;t t
19648s&@top_builddir@&$ac_top_builddir_sub&;t t
19649s&@top_build_prefix@&$ac_top_build_prefix&;t t
19650s&@srcdir@&$ac_srcdir&;t t
19651s&@abs_srcdir@&$ac_abs_srcdir&;t t
19652s&@top_srcdir@&$ac_top_srcdir&;t t
19653s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19654s&@builddir@&$ac_builddir&;t t
19655s&@abs_builddir@&$ac_abs_builddir&;t t
19656s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19657s&@INSTALL@&$ac_INSTALL&;t t
19658$ac_datarootdir_hack
19659"
19660eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19661if $ac_cs_awk_getline; then
22e05272 19662 $AWK -f "$ac_tmp/subs.awk"
5213506e 19663else
22e05272
JM
19664 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19665fi \
19666 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19667
19668test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19669 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19670 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19671 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19673which seems to be undefined. Please make sure it is defined" >&5
5213506e 19674$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19675which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19676
22e05272 19677 rm -f "$ac_tmp/stdin"
5213506e 19678 case $ac_file in
22e05272
JM
19679 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19680 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19681 esac \
22e05272 19682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19683 ;;
11a67599 19684
11a67599 19685
79c06341 19686
5213506e
RW
19687 esac
19688
3e54529c
RW
19689
19690 case $ac_file$ac_mode in
19691 "Makefile":F) sed "$extrasub_build" Makefile |
19692 sed "$extrasub_host" |
19693 sed "$extrasub_target" > mf$$
19694 mv -f mf$$ Makefile ;;
19695
19696 esac
5213506e
RW
19697done # for ac_tag
19698
19699
19700as_fn_exit 0
1c710c3c 19701_ACEOF
1c710c3c
DJ
19702ac_clean_files=$ac_clean_files_save
19703
5213506e 19704test $ac_write_fail = 0 ||
22e05272 19705 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19706
1c710c3c
DJ
19707
19708# configure is writing to config.log, and then calls config.status.
19709# config.status does its own redirection, appending to config.log.
19710# Unfortunately, on DOS this fails, as config.log is still kept open
19711# by configure, so config.status won't be able to write to it; its
19712# output is simply discarded. So we exec the FD to /dev/null,
19713# effectively closing config.log, so it can be properly (re)opened and
19714# appended to by config.status. When coming back to configure, we
19715# need to make the FD available again.
19716if test "$no_create" != yes; then
19717 ac_cs_success=:
19718 ac_config_status_args=
19719 test "$silent" = yes &&
19720 ac_config_status_args="$ac_config_status_args --quiet"
19721 exec 5>/dev/null
19722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19723 exec 5>>config.log
19724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19725 # would make configure fail if this is the last instruction.
22e05272 19726 $ac_cs_success || as_fn_exit 1
5213506e
RW
19727fi
19728if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19730$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19731fi
79c06341 19732