]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
New Romanian translation for ld
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
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.
d0ac1c44 90as_myself=
81ecdfbb
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
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
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;}
81ecdfbb
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
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
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'\" &&
8e957354
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"
81ecdfbb
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
c6b750e1 211do
81ecdfbb
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 :
d0ac1c44
SM
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
81ecdfbb
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."
c6b750e1 266 else
81ecdfbb
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."
c6b750e1 271 fi
81ecdfbb
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
c6b750e1 301
81ecdfbb
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"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
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
81ecdfbb
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
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
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
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
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
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
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
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
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
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
c6b750e1 456
c6b750e1
DJ
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
463
c6b750e1 464
81ecdfbb
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 |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
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; }
c6b750e1 487
d0ac1c44
SM
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
c6b750e1
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
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
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';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
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.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
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
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
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
b121d7d4 604READELF_FOR_TARGET
81ecdfbb 605RANLIB_FOR_TARGET
228cf97d 606OTOOL_FOR_TARGET
81ecdfbb 607OBJDUMP_FOR_TARGET
6b91c541 608OBJCOPY_FOR_TARGET
81ecdfbb
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
228cf97d 612DSYMUTIL_FOR_TARGET
81ecdfbb
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
6a6859cb 616GM2_FOR_TARGET
228cf97d 617GDC_FOR_TARGET
e552509b 618GOC_FOR_TARGET
81ecdfbb 619GFORTRAN_FOR_TARGET
81ecdfbb
RW
620GCC_FOR_TARGET
621CXX_FOR_TARGET
622CC_FOR_TARGET
50ad1254
L
623RANLIB_PLUGIN_OPTION
624AR_PLUGIN_OPTION
9e65489a 625PKG_CONFIG_PATH
228cf97d 626GDCFLAGS
b121d7d4 627READELF
228cf97d 628OTOOL
81ecdfbb
RW
629OBJDUMP
630OBJCOPY
631WINDMC
632WINDRES
633STRIP
634RANLIB
635NM
636LIPO
637LD
228cf97d 638DSYMUTIL
81ecdfbb
RW
639DLLTOOL
640AS
641AR
642RUNTEST
643EXPECT
644MAKEINFO
645FLEX
646LEX
647M4
648BISON
649YACC
81ecdfbb
RW
650WINDRES_FOR_BUILD
651WINDMC_FOR_BUILD
652RANLIB_FOR_BUILD
653NM_FOR_BUILD
654LD_FOR_BUILD
655LDFLAGS_FOR_BUILD
228cf97d 656GDC_FOR_BUILD
e552509b 657GOC_FOR_BUILD
81ecdfbb 658GFORTRAN_FOR_BUILD
228cf97d 659DSYMUTIL_FOR_BUILD
81ecdfbb
RW
660DLLTOOL_FOR_BUILD
661CXX_FOR_BUILD
662CXXFLAGS_FOR_BUILD
e472ec9f 663CPPFLAGS_FOR_BUILD
228cf97d 664CPP_FOR_BUILD
81ecdfbb
RW
665CFLAGS_FOR_BUILD
666CC_FOR_BUILD
667AS_FOR_BUILD
668AR_FOR_BUILD
911e63d0 669target_configdirs
81ecdfbb 670configdirs
81ecdfbb 671build_configdirs
81ecdfbb
RW
672INSTALL_GDB_TK
673GDB_TK
674CONFIGURE_GDB_TK
675build_tooldir
676tooldir
677GCC_SHLIB_SUBDIR
678RPATH_ENVVAR
4074d5f2
RW
679target_configargs
680host_configargs
681build_configargs
96655cc4 682BUILD_CONFIG
91c1f14c 683LDFLAGS_FOR_TARGET
81ecdfbb
RW
684CXXFLAGS_FOR_TARGET
685CFLAGS_FOR_TARGET
686DEBUG_PREFIX_CFLAGS_FOR_TARGET
687SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 688get_gcc_base_ver
e81d5d05 689extra_host_zlib_configure_flags
700d40ca 690extra_host_libiberty_configure_flags
1b6c0831 691stage1_languages
6a6859cb
AM
692host_libs_picflag
693PICFLAG
bf41f30d 694host_shared
6a6859cb
AM
695gcc_host_pie
696host_pie
1b6c0831
L
697extra_linker_plugin_flags
698extra_linker_plugin_configure_flags
7ec59b9e 699islinc
1b6c0831 700isllibs
81ecdfbb 701poststage1_ldflags
143754cd 702poststage1_libs
81ecdfbb 703stage1_ldflags
b3676d82 704stage1_libs
7ec59b9e 705extra_isl_gmp_configure_flags
81ecdfbb
RW
706extra_mpc_mpfr_configure_flags
707extra_mpc_gmp_configure_flags
708extra_mpfr_configure_flags
709gmpinc
710gmplibs
af019bfd
L
711PGO_BUILD_LTO_CFLAGS
712PGO_BUILD_USE_CFLAGS
713PGO_BUILD_GEN_CFLAGS
228cf97d
AM
714HAVE_CXX11_FOR_BUILD
715HAVE_CXX11
81ecdfbb 716do_compare
b95bb526 717GDC
81ecdfbb
RW
718GNATMAKE
719GNATBIND
720ac_ct_CXX
721CXXFLAGS
722CXX
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730target_subdir
731host_subdir
732build_subdir
733build_libsubdir
8e957354
PB
734AWK
735SED
81ecdfbb
RW
736LN_S
737LN
738INSTALL_DATA
739INSTALL_SCRIPT
740INSTALL_PROGRAM
741target_os
742target_vendor
743target_cpu
744target
745host_os
746host_vendor
747host_cpu
748host
749target_noncanonical
750host_noncanonical
751build_noncanonical
752build_os
753build_vendor
754build_cpu
755build
756TOPLEVEL_CONFIGURE_ARGUMENTS
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776localstatedir
777sharedstatedir
778sysconfdir
779datadir
780datarootdir
781libexecdir
782sbindir
783bindir
784program_transform_name
785prefix
786exec_prefix
787PACKAGE_URL
788PACKAGE_BUGREPORT
789PACKAGE_STRING
790PACKAGE_VERSION
791PACKAGE_TARNAME
792PACKAGE_NAME
793PATH_SEPARATOR
794SHELL'
795ac_subst_files='serialization_dependencies
796host_makefile_frag
797target_makefile_frag
798alphaieee_frag
799ospace_frag'
800ac_user_opts='
801enable_option_checking
802with_build_libsubdir
cf39cfc5 803with_system_zlib
2cac01e3 804with_zstd
1b6c0831
L
805enable_as_accelerator_for
806enable_offload_targets
228cf97d 807enable_offload_defaulted
81ecdfbb 808enable_gold
c7791212 809enable_ld
bb368aad 810enable_gprofng
edeefb67 811enable_compressed_debug_sections
b0c295e1 812enable_default_compressed_debug_sections_algorithm
e5f2f7d9 813enable_year2038
89a1e9c3
PB
814enable_libquadmath
815enable_libquadmath_support
81ecdfbb 816enable_libada
6a6859cb 817enable_libgm2
81ecdfbb 818enable_libssp
f66a9a70 819enable_libstdcxx
ffdd6afc 820enable_bootstrap
af019bfd 821enable_pgo_build
81ecdfbb
RW
822with_mpc
823with_mpc_include
824with_mpc_lib
81ecdfbb
RW
825with_mpfr
826with_mpfr_include
827with_mpfr_lib
81ecdfbb
RW
828with_gmp
829with_gmp_include
830with_gmp_lib
81ecdfbb 831with_stage1_libs
c1a5d03a 832with_static_standard_libraries
b3676d82 833with_stage1_ldflags
81ecdfbb 834with_boot_libs
143754cd 835with_boot_ldflags
7ec59b9e
L
836with_isl
837with_isl_include
838with_isl_lib
839enable_isl_version_check
700d40ca 840enable_lto
1b6c0831
L
841enable_linker_plugin_configure_flags
842enable_linker_plugin_flags
6a6859cb 843enable_host_pie
bf41f30d 844enable_host_shared
81ecdfbb
RW
845enable_stage1_languages
846enable_objc_gc
05a13254
NC
847with_target_bdw_gc
848with_target_bdw_gc_include
849with_target_bdw_gc_lib
bf41f30d 850with_gcc_major_version_only
81ecdfbb
RW
851with_build_sysroot
852with_debug_prefix_map
96655cc4 853with_build_config
730af8ee 854enable_vtable_verify
81ecdfbb
RW
855enable_serial_configure
856with_build_time_tools
857enable_maintainer_mode
858enable_stage1_checking
859enable_werror
81ecdfbb
RW
860'
861 ac_precious_vars='build_alias
862host_alias
863target_alias
864CC
865CFLAGS
866LDFLAGS
867LIBS
868CPPFLAGS
869CXX
870CXXFLAGS
871CCC
4074d5f2
RW
872build_configargs
873host_configargs
874target_configargs
81ecdfbb
RW
875AR
876AS
877DLLTOOL
228cf97d 878DSYMUTIL
81ecdfbb
RW
879LD
880LIPO
881NM
882RANLIB
883STRIP
884WINDRES
885WINDMC
886OBJCOPY
887OBJDUMP
228cf97d 888OTOOL
b121d7d4 889READELF
81ecdfbb
RW
890CC_FOR_TARGET
891CXX_FOR_TARGET
892GCC_FOR_TARGET
81ecdfbb 893GFORTRAN_FOR_TARGET
e552509b 894GOC_FOR_TARGET
228cf97d 895GDC_FOR_TARGET
6a6859cb 896GM2_FOR_TARGET
81ecdfbb
RW
897AR_FOR_TARGET
898AS_FOR_TARGET
899DLLTOOL_FOR_TARGET
228cf97d 900DSYMUTIL_FOR_TARGET
81ecdfbb
RW
901LD_FOR_TARGET
902LIPO_FOR_TARGET
903NM_FOR_TARGET
6b91c541 904OBJCOPY_FOR_TARGET
81ecdfbb 905OBJDUMP_FOR_TARGET
228cf97d 906OTOOL_FOR_TARGET
81ecdfbb 907RANLIB_FOR_TARGET
b121d7d4 908READELF_FOR_TARGET
81ecdfbb
RW
909STRIP_FOR_TARGET
910WINDRES_FOR_TARGET
911WINDMC_FOR_TARGET'
912
a0da8069
NN
913
914# Initialize some variables set by options.
c6b750e1
DJ
915ac_init_help=
916ac_init_version=false
81ecdfbb
RW
917ac_unrecognized_opts=
918ac_unrecognized_sep=
a0da8069
NN
919# The variables have the same names as the options, with
920# dashes changed to underlines.
c6b750e1 921cache_file=/dev/null
a0da8069 922exec_prefix=NONE
a0da8069 923no_create=
a0da8069
NN
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
a0da8069
NN
932verbose=
933x_includes=NONE
934x_libraries=NONE
c6b750e1
DJ
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 941# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
a0da8069
NN
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
a0da8069
NN
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
81ecdfbb
RW
952docdir='${datarootdir}/doc/${PACKAGE}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
252b5132 961
a0da8069 962ac_prev=
81ecdfbb 963ac_dashdash=
a0da8069
NN
964for ac_option
965do
a0da8069
NN
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
81ecdfbb 968 eval $ac_prev=\$ac_option
a0da8069
NN
969 ac_prev=
970 continue
971 fi
252b5132 972
81ecdfbb 973 case $ac_option in
d0ac1c44
SM
974 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *=) ac_optarg= ;;
976 *) ac_optarg=yes ;;
81ecdfbb 977 esac
a0da8069
NN
978
979 # Accept the important Cygnus configure options, so we can diagnose typos.
980
81ecdfbb
RW
981 case $ac_dashdash$ac_option in
982 --)
983 ac_dashdash=yes ;;
a0da8069
NN
984
985 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 ac_prev=bindir ;;
987 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 988 bindir=$ac_optarg ;;
a0da8069
NN
989
990 -build | --build | --buil | --bui | --bu)
c6b750e1 991 ac_prev=build_alias ;;
a0da8069 992 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 993 build_alias=$ac_optarg ;;
a0da8069
NN
994
995 -cache-file | --cache-file | --cache-fil | --cache-fi \
996 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997 ac_prev=cache_file ;;
998 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
1000 cache_file=$ac_optarg ;;
1001
1002 --config-cache | -C)
1003 cache_file=config.cache ;;
a0da8069 1004
81ecdfbb 1005 -datadir | --datadir | --datadi | --datad)
a0da8069 1006 ac_prev=datadir ;;
81ecdfbb 1007 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 1008 datadir=$ac_optarg ;;
a0da8069 1009
81ecdfbb
RW
1010 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011 | --dataroo | --dataro | --datar)
1012 ac_prev=datarootdir ;;
1013 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015 datarootdir=$ac_optarg ;;
1016
a0da8069 1017 -disable-* | --disable-*)
81ecdfbb 1018 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 1019 # Reject names that are not valid shell variable names.
81ecdfbb 1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1021 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
a0da8069
NN
1042
1043 -enable-* | --enable-*)
81ecdfbb 1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1045 # Reject names that are not valid shell variable names.
81ecdfbb 1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1047 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052"enable_$ac_useropt"
1053"*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
a0da8069 1056 esac
81ecdfbb 1057 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1058
1059 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1060 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1061 | --exec | --exe | --ex)
1062 ac_prev=exec_prefix ;;
1063 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1064 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1065 | --exec=* | --exe=* | --ex=*)
c6b750e1 1066 exec_prefix=$ac_optarg ;;
a0da8069
NN
1067
1068 -gas | --gas | --ga | --g)
1069 # Obsolete; use --with-gas.
1070 with_gas=yes ;;
1071
c6b750e1
DJ
1072 -help | --help | --hel | --he | -h)
1073 ac_init_help=long ;;
1074 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1075 ac_init_help=recursive ;;
1076 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1077 ac_init_help=short ;;
a0da8069
NN
1078
1079 -host | --host | --hos | --ho)
c6b750e1 1080 ac_prev=host_alias ;;
a0da8069 1081 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1082 host_alias=$ac_optarg ;;
a0da8069 1083
81ecdfbb
RW
1084 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1085 ac_prev=htmldir ;;
1086 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1087 | --ht=*)
1088 htmldir=$ac_optarg ;;
1089
a0da8069
NN
1090 -includedir | --includedir | --includedi | --included | --include \
1091 | --includ | --inclu | --incl | --inc)
1092 ac_prev=includedir ;;
1093 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1094 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1095 includedir=$ac_optarg ;;
a0da8069
NN
1096
1097 -infodir | --infodir | --infodi | --infod | --info | --inf)
1098 ac_prev=infodir ;;
1099 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1100 infodir=$ac_optarg ;;
a0da8069
NN
1101
1102 -libdir | --libdir | --libdi | --libd)
1103 ac_prev=libdir ;;
1104 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1105 libdir=$ac_optarg ;;
a0da8069
NN
1106
1107 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1108 | --libexe | --libex | --libe)
1109 ac_prev=libexecdir ;;
1110 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1111 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1112 libexecdir=$ac_optarg ;;
a0da8069 1113
81ecdfbb
RW
1114 -localedir | --localedir | --localedi | --localed | --locale)
1115 ac_prev=localedir ;;
1116 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1117 localedir=$ac_optarg ;;
1118
a0da8069 1119 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1120 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1121 ac_prev=localstatedir ;;
1122 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1123 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1124 localstatedir=$ac_optarg ;;
a0da8069
NN
1125
1126 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1127 ac_prev=mandir ;;
1128 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1129 mandir=$ac_optarg ;;
a0da8069
NN
1130
1131 -nfp | --nfp | --nf)
1132 # Obsolete; use --without-fp.
1133 with_fp=no ;;
1134
1135 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1136 | --no-cr | --no-c | -n)
a0da8069
NN
1137 no_create=yes ;;
1138
1139 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1140 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1141 no_recursion=yes ;;
1142
1143 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1144 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1145 | --oldin | --oldi | --old | --ol | --o)
1146 ac_prev=oldincludedir ;;
1147 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1148 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1149 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1150 oldincludedir=$ac_optarg ;;
a0da8069
NN
1151
1152 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1153 ac_prev=prefix ;;
1154 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1155 prefix=$ac_optarg ;;
a0da8069
NN
1156
1157 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1158 | --program-pre | --program-pr | --program-p)
1159 ac_prev=program_prefix ;;
1160 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1161 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1162 program_prefix=$ac_optarg ;;
a0da8069
NN
1163
1164 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1165 | --program-suf | --program-su | --program-s)
1166 ac_prev=program_suffix ;;
1167 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1168 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1169 program_suffix=$ac_optarg ;;
a0da8069
NN
1170
1171 -program-transform-name | --program-transform-name \
1172 | --program-transform-nam | --program-transform-na \
1173 | --program-transform-n | --program-transform- \
1174 | --program-transform | --program-transfor \
1175 | --program-transfo | --program-transf \
1176 | --program-trans | --program-tran \
1177 | --progr-tra | --program-tr | --program-t)
1178 ac_prev=program_transform_name ;;
1179 -program-transform-name=* | --program-transform-name=* \
1180 | --program-transform-nam=* | --program-transform-na=* \
1181 | --program-transform-n=* | --program-transform-=* \
1182 | --program-transform=* | --program-transfor=* \
1183 | --program-transfo=* | --program-transf=* \
1184 | --program-trans=* | --program-tran=* \
1185 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1186 program_transform_name=$ac_optarg ;;
a0da8069 1187
81ecdfbb
RW
1188 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1189 ac_prev=pdfdir ;;
1190 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1191 pdfdir=$ac_optarg ;;
1192
1193 -psdir | --psdir | --psdi | --psd | --ps)
1194 ac_prev=psdir ;;
1195 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1196 psdir=$ac_optarg ;;
1197
a0da8069
NN
1198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1199 | -silent | --silent | --silen | --sile | --sil)
1200 silent=yes ;;
1201
1202 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1203 ac_prev=sbindir ;;
1204 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1205 | --sbi=* | --sb=*)
c6b750e1 1206 sbindir=$ac_optarg ;;
a0da8069
NN
1207
1208 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1209 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1210 | --sharedst | --shareds | --shared | --share | --shar \
1211 | --sha | --sh)
1212 ac_prev=sharedstatedir ;;
1213 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1214 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1215 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1216 | --sha=* | --sh=*)
c6b750e1 1217 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1218
1219 -site | --site | --sit)
1220 ac_prev=site ;;
1221 -site=* | --site=* | --sit=*)
c6b750e1 1222 site=$ac_optarg ;;
a0da8069
NN
1223
1224 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1225 ac_prev=srcdir ;;
1226 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1227 srcdir=$ac_optarg ;;
a0da8069
NN
1228
1229 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1230 | --syscon | --sysco | --sysc | --sys | --sy)
1231 ac_prev=sysconfdir ;;
1232 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1233 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1234 sysconfdir=$ac_optarg ;;
a0da8069
NN
1235
1236 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1237 ac_prev=target_alias ;;
a0da8069 1238 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1239 target_alias=$ac_optarg ;;
a0da8069
NN
1240
1241 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1242 verbose=yes ;;
1243
c6b750e1
DJ
1244 -version | --version | --versio | --versi | --vers | -V)
1245 ac_init_version=: ;;
a0da8069
NN
1246
1247 -with-* | --with-*)
81ecdfbb 1248 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1249 # Reject names that are not valid shell variable names.
81ecdfbb 1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1251 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1252 ac_useropt_orig=$ac_useropt
1253 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1255 *"
1256"with_$ac_useropt"
1257"*) ;;
1258 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep=', ';;
a0da8069 1260 esac
81ecdfbb 1261 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1262
1263 -without-* | --without-*)
81ecdfbb 1264 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1265 # Reject names that are not valid shell variable names.
81ecdfbb 1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1267 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
a0da8069
NN
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1288 x_includes=$ac_optarg ;;
a0da8069
NN
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1295 x_libraries=$ac_optarg ;;
a0da8069 1296
d0ac1c44
SM
1297 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1298Try \`$0 --help' for more information"
a0da8069
NN
1299 ;;
1300
c6b750e1
DJ
1301 *=*)
1302 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1304 case $ac_envvar in #(
1305 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1306 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1307 esac
1308 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1309 export $ac_envvar ;;
1310
a0da8069 1311 *)
c6b750e1 1312 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
c6b750e1 1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1324 as_fn_error $? "missing argument to $ac_option"
a0da8069 1325fi
a0da8069 1326
81ecdfbb
RW
1327if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1329 no) ;;
d0ac1c44 1330 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1332 esac
81ecdfbb 1333fi
a0da8069 1334
81ecdfbb
RW
1335# Check all directory arguments for consistency.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
a0da8069 1340do
81ecdfbb
RW
1341 eval ac_val=\$$ac_var
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
c6b750e1 1349 case $ac_val in
81ecdfbb
RW
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1352 esac
d0ac1c44 1353 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1354done
1355
c6b750e1
DJ
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
376a0e54 1362
c6b750e1
DJ
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
c6b750e1
DJ
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1369 fi
1370fi
1371
1372ac_tool_prefix=
1373test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
1375test "$silent" = yes && exec 6>/dev/null
a0da8069 1376
a0da8069 1377
81ecdfbb
RW
1378ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379ac_ls_di=`ls -di .` &&
1380ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1381 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1382test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1383 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1384
1385
a0da8069
NN
1386# Find the source files, if location was not specified.
1387if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
81ecdfbb
RW
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395$as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\).*/{
1409 s//\1/
1410 q
1411 }
1412 s/.*/./; q'`
a0da8069 1413 srcdir=$ac_confdir
81ecdfbb 1414 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1415 srcdir=..
1416 fi
1417else
1418 ac_srcdir_defaulted=no
1419fi
81ecdfbb
RW
1420if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1423fi
1424ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425ac_abs_confdir=`(
d0ac1c44 1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
6d0cd39e
AM
1438case $srcdir in
1439 *" "*)
d0ac1c44 1440 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1441 ;;
1442esac
9cc8ae67
PB
1443ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1444
81ecdfbb
RW
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
c6b750e1
DJ
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures this package to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
d0ac1c44 1473 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
c6b750e1
DJ
1479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1481 [$ac_default_prefix]
c6b750e1 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1483 [PREFIX]
c6b750e1
DJ
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
81ecdfbb
RW
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525_ACEOF
a0da8069 1526fi
a0da8069 1527
c6b750e1
DJ
1528if test -n "$ac_init_help"; then
1529
1530 cat <<\_ACEOF
1531
1532Optional Features:
81ecdfbb 1533 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1536 --enable-as-accelerator-for=ARG
1537 build as offload target compiler. Specify offload
1538 host triple by ARG
1539 --enable-offload-targets=LIST
1540 enable offloading to devices from comma-separated
1541 LIST of TARGET[=DIR]. Use optional path to find
1542 offload target compiler during the build
228cf97d
AM
1543 --enable-offload-defaulted
1544 If enabled, configured but not installed offload compilers and
1545 libgomp plugins are silently ignored. Useful for distribution
1546 compilers where those are in separate optional packages.
1547
c7791212 1548 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1549 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
bb368aad 1550 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
6c3bc0f8 1551 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1552 Enable compressed debug sections for gas, gold or ld
1553 by default
b0c295e1
ML
1554 --enable-default-compressed-debug-sections-algorithm={zlib,zstd}
1555 Default compression algorithm for
1556 --enable-compressed-debug-sections.
e5f2f7d9 1557 --enable-year2038 enable support for timestamps past the year 2038
89a1e9c3
PB
1558 --disable-libquadmath do not build libquadmath directory
1559 --disable-libquadmath-support
1560 disable libquadmath support for Fortran
521ec477 1561 --enable-libada build libada directory
6a6859cb 1562 --enable-libgm2 build libgm2 directory
521ec477 1563 --enable-libssp build libssp directory
f66a9a70 1564 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc 1565 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1566 --enable-pgo-build[=lto]
1567 enable the PGO build
7ec59b9e 1568 --disable-isl-version-check
4849dfd8 1569 disable check for isl version
700d40ca 1570 --enable-lto enable link time optimization support
1b6c0831
L
1571 --enable-linker-plugin-configure-flags=FLAGS
1572 additional flags for configuring linker plugins
1573 [none]
1574 --enable-linker-plugin-flags=FLAGS
1575 additional flags for configuring and building linker
1576 plugins [none]
6a6859cb 1577 --enable-host-pie build position independent host executables
bf41f30d 1578 --enable-host-shared build host code as shared libraries
7837304f
AS
1579 --enable-stage1-languages[=all]
1580 choose additional languages to build during stage1.
1581 Mostly useful for compiler development
1582 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1583 Objective-C runtime
ce6c656d 1584 --enable-vtable-verify Enable vtable verification feature
521ec477 1585 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1586 force sequential configuration of sub-packages for
1587 the host, target or build machine, or all
1588 sub-packages
1589 --enable-maintainer-mode
1590 enable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-stage1-checking[=all]
1593 choose additional checking for stage1 of the
1594 compiler
c6b750e1
DJ
1595 --enable-werror enable -Werror in bootstrap stage2 and later
1596
1597Optional Packages:
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1601 --with-system-zlib use installed libz
2cac01e3
FS
1602 --with-zstd Support zstd compressed debug sections
1603 (default=auto)
7837304f
AS
1604 --with-mpc=PATH specify prefix directory for installed MPC package.
1605 Equivalent to --with-mpc-include=PATH/include plus
1606 --with-mpc-lib=PATH/lib
1607 --with-mpc-include=PATH specify directory for installed MPC include files
1608 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477 1609 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1610 Equivalent to --with-mpfr-include=PATH/include plus
1611 --with-mpfr-lib=PATH/lib
c6b750e1 1612 --with-mpfr-include=PATH
521ec477
DD
1613 specify directory for installed MPFR include files
1614 --with-mpfr-lib=PATH specify directory for the installed MPFR library
7837304f
AS
1615 --with-gmp=PATH specify prefix directory for the installed GMP
1616 package. Equivalent to
1617 --with-gmp-include=PATH/include plus
1618 --with-gmp-lib=PATH/lib
521ec477
DD
1619 --with-gmp-include=PATH specify directory for installed GMP include files
1620 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1621 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1622 --with-static-standard-libraries
1623 use -static-libstdc++ and -static-libgcc
1624 (default=auto)
7837304f
AS
1625 --with-stage1-ldflags=FLAGS
1626 linker flags for stage1
7837304f
AS
1627 --with-boot-libs=LIBS libraries for stage2 and later
1628 --with-boot-ldflags=FLAGS
1629 linker flags for stage2 and later
4849dfd8 1630 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1631 package. Equivalent to
7ec59b9e
L
1632 --with-isl-include=PATH/include plus
1633 --with-isl-lib=PATH/lib
4849dfd8
NC
1634 --with-isl-include=PATH Specify directory for installed isl include files
1635 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1636 --with-target-bdw-gc=PATHLIST
1637 specify prefix directory for installed bdw-gc
1638 package. Equivalent to
1639 --with-target-bdw-gc-include=PATH/include plus
1640 --with-target-bdw-gc-lib=PATH/lib
1641 --with-target-bdw-gc-include=PATHLIST
1642 specify directories for installed bdw-gc include
1643 files
1644 --with-target-bdw-gc-lib=PATHLIST
1645 specify directories for installed bdw-gc library
bf41f30d
NC
1646 --with-gcc-major-version-only
1647 use only GCC major number in filesystem paths
521ec477 1648 --with-build-sysroot=SYSROOT
c6b750e1 1649 use sysroot as the system root during the build
8a6ee3ab 1650 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1651 map A to B, C to D ... in debug information
1652 --with-build-config='NAME NAME2...'
1653 use config/NAME.mk build configuration
521ec477 1654 --with-build-time-tools=PATH
c6b750e1 1655 use given path to find target tools during the build
c6b750e1
DJ
1656
1657Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
81ecdfbb 1662 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1664 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
4074d5f2
RW
1667 build_configargs
1668 additional configure arguments for build directories
1669 host_configargs
1670 additional configure arguments for host directories
1671 target_configargs
1672 additional configure arguments for target directories
9a819804
AO
1673 AR AR for the host
1674 AS AS for the host
1675 DLLTOOL DLLTOOL for the host
228cf97d 1676 DSYMUTIL DSYMUTIL for the host
9a819804
AO
1677 LD LD for the host
1678 LIPO LIPO for the host
1679 NM NM for the host
1680 RANLIB RANLIB for the host
1681 STRIP STRIP for the host
1682 WINDRES WINDRES for the host
0c24b341 1683 WINDMC WINDMC for the host
9a819804
AO
1684 OBJCOPY OBJCOPY for the host
1685 OBJDUMP OBJDUMP for the host
228cf97d 1686 OTOOL OTOOL for the host
b121d7d4 1687 READELF READELF for the host
9a819804
AO
1688 CC_FOR_TARGET
1689 CC for the target
1690 CXX_FOR_TARGET
1691 CXX for the target
1692 GCC_FOR_TARGET
1693 GCC for the target
9a819804
AO
1694 GFORTRAN_FOR_TARGET
1695 GFORTRAN for the target
e552509b
ILT
1696 GOC_FOR_TARGET
1697 GOC for the target
228cf97d
AM
1698 GDC_FOR_TARGET
1699 GDC for the target
6a6859cb
AM
1700 GM2_FOR_TARGET
1701 GM2 for the target
9a819804
AO
1702 AR_FOR_TARGET
1703 AR for the target
1704 AS_FOR_TARGET
1705 AS for the target
1706 DLLTOOL_FOR_TARGET
1707 DLLTOOL for the target
228cf97d
AM
1708 DSYMUTIL_FOR_TARGET
1709 DSYMUTIL for the target
9a819804
AO
1710 LD_FOR_TARGET
1711 LD for the target
1712 LIPO_FOR_TARGET
1713 LIPO for the target
1714 NM_FOR_TARGET
1715 NM for the target
6b91c541
AP
1716 OBJCOPY_FOR_TARGET
1717 OBJCOPY for the target
9a819804
AO
1718 OBJDUMP_FOR_TARGET
1719 OBJDUMP for the target
228cf97d
AM
1720 OTOOL_FOR_TARGET
1721 OTOOL for the target
9a819804
AO
1722 RANLIB_FOR_TARGET
1723 RANLIB for the target
b121d7d4
DD
1724 READELF_FOR_TARGET
1725 READELF for the target
9a819804
AO
1726 STRIP_FOR_TARGET
1727 STRIP for the target
1728 WINDRES_FOR_TARGET
1729 WINDRES for the target
0c24b341
NC
1730 WINDMC_FOR_TARGET
1731 WINDMC for the target
c6b750e1
DJ
1732
1733Use these variables to override the choices made by `configure' or to help
1734it to find libraries and programs with nonstandard names/locations.
1735
81ecdfbb 1736Report bugs to the package provider.
c6b750e1 1737_ACEOF
81ecdfbb 1738ac_status=$?
c6b750e1
DJ
1739fi
1740
1741if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
c6b750e1 1743 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1746 continue
c6b750e1
DJ
1747 ac_builddir=.
1748
81ecdfbb
RW
1749case "$ac_dir" in
1750.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751*)
1752 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1757 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1758 esac ;;
1759esac
1760ac_abs_top_builddir=$ac_pwd
1761ac_abs_builddir=$ac_pwd$ac_dir_suffix
1762# for backward compatibility:
1763ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1764
1765case $srcdir in
81ecdfbb 1766 .) # We are building in place.
c6b750e1 1767 ac_srcdir=.
81ecdfbb
RW
1768 ac_top_srcdir=$ac_top_builddir_sub
1769 ac_abs_top_srcdir=$ac_pwd ;;
1770 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1771 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1772 ac_top_srcdir=$srcdir
1773 ac_abs_top_srcdir=$srcdir ;;
1774 *) # Relative name.
1775 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1778esac
81ecdfbb
RW
1779ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780
1781 cd "$ac_dir" || { ac_status=$?; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1784 echo &&
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1787 echo &&
1788 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1789 else
81ecdfbb
RW
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 fi || ac_status=$?
1792 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1793 done
1794fi
1795
81ecdfbb 1796test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1797if $ac_init_version; then
1798 cat <<\_ACEOF
81ecdfbb 1799configure
d0ac1c44 1800generated by GNU Autoconf 2.69
c6b750e1 1801
d0ac1c44 1802Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1803This configure script is free software; the Free Software Foundation
1804gives unlimited permission to copy, distribute and modify it.
1805_ACEOF
81ecdfbb 1806 exit
c6b750e1 1807fi
81ecdfbb
RW
1808
1809## ------------------------ ##
1810## Autoconf initialization. ##
1811## ------------------------ ##
1812
1813# ac_fn_c_try_compile LINENO
1814# --------------------------
1815# Try to compile conftest.$ac_ext, and return whether this succeeded.
1816ac_fn_c_try_compile ()
1817{
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext
1820 if { { ac_try="$ac_compile"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
1844 ac_retval=1
1845fi
d0ac1c44
SM
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
81ecdfbb
RW
1848
1849} # ac_fn_c_try_compile
1850
1851# ac_fn_cxx_try_compile LINENO
1852# ----------------------------
1853# Try to compile conftest.$ac_ext, and return whether this succeeded.
1854ac_fn_cxx_try_compile ()
1855{
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1859case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1866 ac_status=$?
1867 if test -s conftest.err; then
1868 grep -v '^ *+' conftest.err >conftest.er1
1869 cat conftest.er1 >&5
1870 mv -f conftest.er1 conftest.err
1871 fi
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.$ac_objext; then :
1877 ac_retval=0
1878else
1879 $as_echo "$as_me: failed program was:" >&5
1880sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 ac_retval=1
1883fi
d0ac1c44
SM
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status $ac_retval
81ecdfbb
RW
1886
1887} # ac_fn_cxx_try_compile
1888
b3676d82
EB
1889# ac_fn_cxx_try_link LINENO
1890# -------------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded.
1892ac_fn_cxx_try_link ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1909 fi
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
d0ac1c44 1916 test -x conftest$ac_exeext
b3676d82
EB
1917 }; then :
1918 ac_retval=0
1919else
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=1
1924fi
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
b3676d82
EB
1932
1933} # ac_fn_cxx_try_link
1934
81ecdfbb
RW
1935# ac_fn_c_try_link LINENO
1936# -----------------------
1937# Try to link conftest.$ac_ext, and return whether this succeeded.
1938ac_fn_c_try_link ()
1939{
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1943case "(($ac_try" in
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1950 ac_status=$?
1951 if test -s conftest.err; then
1952 grep -v '^ *+' conftest.err >conftest.er1
1953 cat conftest.er1 >&5
1954 mv -f conftest.er1 conftest.err
1955 fi
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest$ac_exeext && {
1961 test "$cross_compiling" = yes ||
d0ac1c44 1962 test -x conftest$ac_exeext
81ecdfbb
RW
1963 }; then :
1964 ac_retval=0
1965else
1966 $as_echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969 ac_retval=1
1970fi
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status $ac_retval
81ecdfbb
RW
1978
1979} # ac_fn_c_try_link
1980cat >config.log <<_ACEOF
c6b750e1
DJ
1981This file contains any messages produced by compilers while
1982running configure, to aid debugging if configure makes a mistake.
1983
1984It was created by $as_me, which was
d0ac1c44 1985generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1986
1987 $ $0 $@
1988
1989_ACEOF
81ecdfbb 1990exec 5>>config.log
c6b750e1
DJ
1991{
1992cat <<_ASUNAME
1993## --------- ##
1994## Platform. ##
1995## --------- ##
1996
1997hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001uname -v = `(uname -v) 2>/dev/null || echo unknown`
2002
2003/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2005
2006/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2009/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
2010/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013
2014_ASUNAME
2015
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2021 $as_echo "PATH: $as_dir"
2022 done
2023IFS=$as_save_IFS
c6b750e1
DJ
2024
2025} >&5
2026
2027cat >&5 <<_ACEOF
2028
2029
2030## ----------- ##
2031## Core tests. ##
2032## ----------- ##
2033
2034_ACEOF
2035
2036
2037# Keep a trace of the command line.
2038# Strip out --no-create and --no-recursion so they do not pile up.
2039# Strip out --silent because we don't want to record it for future runs.
2040# Also quote any args containing shell meta-characters.
2041# Make two passes to allow for proper duplicate-argument suppression.
2042ac_configure_args=
2043ac_configure_args0=
2044ac_configure_args1=
c6b750e1
DJ
2045ac_must_keep_next=false
2046for ac_pass in 1 2
2047do
2048 for ac_arg
2049 do
2050 case $ac_arg in
2051 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2053 | -silent | --silent | --silen | --sile | --sil)
2054 continue ;;
81ecdfbb
RW
2055 *\'*)
2056 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2057 esac
2058 case $ac_pass in
81ecdfbb 2059 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2060 2)
81ecdfbb 2061 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2062 if test $ac_must_keep_next = true; then
2063 ac_must_keep_next=false # Got value, back to normal.
2064 else
2065 case $ac_arg in
2066 *=* | --config-cache | -C | -disable-* | --disable-* \
2067 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2068 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2069 | -with-* | --with-* | -without-* | --without-* | --x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2072 esac
2073 ;;
2074 -* ) ac_must_keep_next=true ;;
2075 esac
2076 fi
81ecdfbb 2077 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2078 ;;
2079 esac
2080 done
2081done
81ecdfbb
RW
2082{ ac_configure_args0=; unset ac_configure_args0;}
2083{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2084
2085# When interrupted or exit'd, cleanup temporary files, and complete
2086# config.log. We remove comments because anyway the quotes in there
2087# would cause problems or look ugly.
81ecdfbb
RW
2088# WARNING: Use '\'' to represent an apostrophe within the trap.
2089# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2090trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2092 {
2093 echo
2094
d0ac1c44 2095 $as_echo "## ---------------- ##
c6b750e1 2096## Cache variables. ##
d0ac1c44 2097## ---------------- ##"
c6b750e1
DJ
2098 echo
2099 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2100(
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2103 case $ac_val in #(
2104 *${as_nl}*)
2105 case $ac_var in #(
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2108 esac
2109 case $ac_var in #(
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2113 esac ;;
2114 esac
2115 done
c6b750e1 2116 (set) 2>&1 |
81ecdfbb
RW
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
c6b750e1 2119 sed -n \
81ecdfbb
RW
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2122 ;; #(
c6b750e1 2123 *)
81ecdfbb 2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2125 ;;
81ecdfbb
RW
2126 esac |
2127 sort
2128)
c6b750e1
DJ
2129 echo
2130
d0ac1c44 2131 $as_echo "## ----------------- ##
c6b750e1 2132## Output variables. ##
d0ac1c44 2133## ----------------- ##"
c6b750e1
DJ
2134 echo
2135 for ac_var in $ac_subst_vars
2136 do
81ecdfbb
RW
2137 eval ac_val=\$$ac_var
2138 case $ac_val in
2139 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140 esac
2141 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2142 done | sort
2143 echo
2144
2145 if test -n "$ac_subst_files"; then
d0ac1c44 2146 $as_echo "## ------------------- ##
81ecdfbb 2147## File substitutions. ##
d0ac1c44 2148## ------------------- ##"
c6b750e1
DJ
2149 echo
2150 for ac_var in $ac_subst_files
2151 do
81ecdfbb
RW
2152 eval ac_val=\$$ac_var
2153 case $ac_val in
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155 esac
2156 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2157 done | sort
2158 echo
2159 fi
2160
2161 if test -s confdefs.h; then
d0ac1c44 2162 $as_echo "## ----------- ##
c6b750e1 2163## confdefs.h. ##
d0ac1c44 2164## ----------- ##"
c6b750e1 2165 echo
81ecdfbb 2166 cat confdefs.h
c6b750e1
DJ
2167 echo
2168 fi
2169 test "$ac_signal" != 0 &&
81ecdfbb
RW
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
c6b750e1 2172 } >&5
81ecdfbb
RW
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2175 exit $exit_status
81ecdfbb 2176' 0
c6b750e1 2177for ac_signal in 1 2 13 15; do
81ecdfbb 2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2179done
2180ac_signal=0
2181
2182# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2183rm -f -r conftest* confdefs.h
2184
2185$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2186
2187# Predefined preprocessor variables.
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_NAME "$PACKAGE_NAME"
2191_ACEOF
2192
c6b750e1
DJ
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2195_ACEOF
2196
c6b750e1
DJ
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_VERSION "$PACKAGE_VERSION"
2199_ACEOF
2200
c6b750e1
DJ
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_STRING "$PACKAGE_STRING"
2203_ACEOF
2204
c6b750e1
DJ
2205cat >>confdefs.h <<_ACEOF
2206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2207_ACEOF
2208
81ecdfbb
RW
2209cat >>confdefs.h <<_ACEOF
2210#define PACKAGE_URL "$PACKAGE_URL"
2211_ACEOF
2212
c6b750e1
DJ
2213
2214# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2215# Prefer an explicitly selected file to automatically selected ones.
2216ac_site_file1=NONE
2217ac_site_file2=NONE
2218if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1=./$CONFIG_SITE;;
2222 */*) ac_site_file1=$CONFIG_SITE;;
2223 *) ac_site_file1=./$CONFIG_SITE;;
2224 esac
81ecdfbb
RW
2225elif test "x$prefix" != xNONE; then
2226 ac_site_file1=$prefix/share/config.site
2227 ac_site_file2=$prefix/etc/config.site
2228else
2229 ac_site_file1=$ac_default_prefix/share/config.site
2230 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2231fi
81ecdfbb
RW
2232for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2233do
2234 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2235 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2238 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2239 . "$ac_site_file" \
2240 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242as_fn_error $? "failed to load site script $ac_site_file
2243See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2244 fi
2245done
2246
2247if test -r "$cache_file"; then
d0ac1c44
SM
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2253 case $cache_file in
81ecdfbb
RW
2254 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2255 *) . "./$cache_file";;
c6b750e1
DJ
2256 esac
2257 fi
a0da8069 2258else
81ecdfbb
RW
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2261 >$cache_file
2262fi
2263
2264# Check that the precious variables saved in the cache have kept the same
2265# value.
2266ac_cache_corrupted=false
81ecdfbb 2267for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2269 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2271 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2272 case $ac_old_set,$ac_new_set in
2273 set,)
81ecdfbb
RW
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2276 ac_cache_corrupted=: ;;
2277 ,set)
81ecdfbb
RW
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2280 ac_cache_corrupted=: ;;
2281 ,);;
2282 *)
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w=`echo x $ac_old_val`
2286 ac_new_val_w=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted=:
2291 else
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\$ac_old_val
2295 fi
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2300 fi;;
2301 esac
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2304 case $ac_new_val in
81ecdfbb 2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2306 *) ac_arg=$ac_var=$ac_new_val ;;
2307 esac
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2311 esac
2312 fi
2313done
2314if $ac_cache_corrupted; then
81ecdfbb
RW
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2320fi
81ecdfbb
RW
2321## -------------------- ##
2322## Main body of script. ##
2323## -------------------- ##
a0da8069
NN
2324
2325ac_ext=c
a0da8069 2326ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330
2331
2332
2333
c6b750e1
DJ
2334
2335
34a0f3cf 2336
c6b750e1 2337
5b553f7e
RW
2338progname=$0
2339# if PWD already has a value, it is probably wrong.
2340if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2341
2342# Export original configure arguments for use by sub-configures.
2343# Quote arguments with shell meta charatcers.
2344TOPLEVEL_CONFIGURE_ARGUMENTS=
2345set -- "$progname" "$@"
2346for ac_arg
2347do
2348 case "$ac_arg" in
2349 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2350 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2351 # if the argument is of the form -foo=baz, quote the baz part only
2352 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2353 *) ;;
2354 esac
2355 # Add the quoted argument to the list.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2357done
2358if test "$silent" = yes; then
2359 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2360fi
2361# Remove the initial space we just introduced and, as these will be
2362# expanded by make, quote '$'.
2363TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2364
c6b750e1
DJ
2365
2366# Find the build, host, and target systems.
a0da8069 2367ac_aux_dir=
81ecdfbb 2368for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2369 if test -f "$ac_dir/install-sh"; then
2370 ac_aux_dir=$ac_dir
2371 ac_install_sh="$ac_aux_dir/install-sh -c"
2372 break
2373 elif test -f "$ac_dir/install.sh"; then
2374 ac_aux_dir=$ac_dir
2375 ac_install_sh="$ac_aux_dir/install.sh -c"
2376 break
2377 elif test -f "$ac_dir/shtool"; then
2378 ac_aux_dir=$ac_dir
2379 ac_install_sh="$ac_aux_dir/shtool install -c"
2380 break
2381 fi
a0da8069
NN
2382done
2383if test -z "$ac_aux_dir"; then
d0ac1c44 2384 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2385fi
81ecdfbb
RW
2386
2387# These three variables are undocumented and unsupported,
2388# and are intended to be withdrawn in a future Autoconf release.
2389# They can cause serious problems if a builder's source tree is in a directory
2390# whose full name contains unusual characters.
2391ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2394
a0da8069 2395
c6b750e1 2396# Make sure we can run config.sub.
81ecdfbb 2397$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2398 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2399
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2401$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2402if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2403 $as_echo_n "(cached) " >&6
2404else
2405 ac_build_alias=$build_alias
2406test "x$ac_build_alias" = x &&
2407 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2408test "x$ac_build_alias" = x &&
d0ac1c44 2409 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2410ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2411 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2412
2413fi
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2415$as_echo "$ac_cv_build" >&6; }
2416case $ac_cv_build in
2417*-*-*) ;;
d0ac1c44 2418*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2419esac
c6b750e1 2420build=$ac_cv_build
81ecdfbb
RW
2421ac_save_IFS=$IFS; IFS='-'
2422set x $ac_cv_build
2423shift
2424build_cpu=$1
2425build_vendor=$2
2426shift; shift
2427# Remember, the first character of IFS is used to create $*,
2428# except with old shells:
2429build_os=$*
2430IFS=$ac_save_IFS
2431case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2432
a0da8069 2433
c6b750e1
DJ
2434 case ${build_alias} in
2435 "") build_noncanonical=${build} ;;
2436 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2437esac
2438
2439
cac3d6c4 2440
c6b750e1
DJ
2441 case ${host_alias} in
2442 "") host_noncanonical=${build_noncanonical} ;;
2443 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2444esac
2445
cac3d6c4 2446
c6b750e1
DJ
2447
2448 case ${target_alias} in
2449 "") target_noncanonical=${host_noncanonical} ;;
2450 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2451esac
2452
cac3d6c4 2453
c6b750e1
DJ
2454
2455
2456test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2457 test "$program_prefix$program_suffix$program_transform_name" = \
2458 NONENONEs,x,x, &&
c6b750e1 2459 program_transform_name=s,y,y,
cac3d6c4 2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2463if ${ac_cv_host+:} false; then :
81ecdfbb 2464 $as_echo_n "(cached) " >&6
cac3d6c4 2465else
81ecdfbb
RW
2466 if test "x$host_alias" = x; then
2467 ac_cv_host=$ac_cv_build
2468else
2469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2470 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2471fi
c6b750e1
DJ
2472
2473fi
81ecdfbb
RW
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475$as_echo "$ac_cv_host" >&6; }
2476case $ac_cv_host in
2477*-*-*) ;;
d0ac1c44 2478*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2479esac
c6b750e1 2480host=$ac_cv_host
81ecdfbb
RW
2481ac_save_IFS=$IFS; IFS='-'
2482set x $ac_cv_host
2483shift
2484host_cpu=$1
2485host_vendor=$2
2486shift; shift
2487# Remember, the first character of IFS is used to create $*,
2488# except with old shells:
2489host_os=$*
2490IFS=$ac_save_IFS
2491case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2492
2493
81ecdfbb
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2496if ${ac_cv_target+:} false; then :
81ecdfbb 2497 $as_echo_n "(cached) " >&6
c6b750e1 2498else
81ecdfbb
RW
2499 if test "x$target_alias" = x; then
2500 ac_cv_target=$ac_cv_host
2501else
2502 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2504fi
c6b750e1 2505
cac3d6c4 2506fi
81ecdfbb
RW
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508$as_echo "$ac_cv_target" >&6; }
2509case $ac_cv_target in
2510*-*-*) ;;
d0ac1c44 2511*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2512esac
c6b750e1 2513target=$ac_cv_target
81ecdfbb
RW
2514ac_save_IFS=$IFS; IFS='-'
2515set x $ac_cv_target
2516shift
2517target_cpu=$1
2518target_vendor=$2
2519shift; shift
2520# Remember, the first character of IFS is used to create $*,
2521# except with old shells:
2522target_os=$*
2523IFS=$ac_save_IFS
2524case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2525
2526
2527# The aliases save the names the user supplied, while $host etc.
2528# will get canonicalized.
2529test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2531 NONENONEs,x,x, &&
2532 program_prefix=${target_alias}-
81ecdfbb 2533
a0da8069 2534test "$program_prefix" != NONE &&
81ecdfbb 2535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2536# Use a double $ so make ignores it.
2537test "$program_suffix" != NONE &&
81ecdfbb
RW
2538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539# Double any \ or $.
c6b750e1 2540# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2543
a0da8069
NN
2544
2545
e5c3f801
NN
2546# Get 'install' or 'install-sh' and its variants.
2547# Find a good install program. We prefer a C program (faster),
2548# so one script is as good as another. But avoid the broken or
2549# incompatible versions:
2550# SysV /etc/install, /usr/sbin/install
2551# SunOS /usr/etc/install
2552# IRIX /sbin/install
2553# AIX /bin/install
c6b750e1 2554# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2555# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2558# OS/2's system install, which has a completely different semantic
e5c3f801 2559# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2560# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2562$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2563if test -z "$INSTALL"; then
d0ac1c44 2564if ${ac_cv_path_install+:} false; then :
81ecdfbb 2565 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2566else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2572 # Account for people who put trailing slashes in PATH elements.
2573case $as_dir/ in #((
2574 ./ | .// | /[cC]/* | \
c6b750e1 2575 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2576 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2577 /usr/ucb/* ) ;;
2578 *)
2579 # OSF1 and SCO ODT 3.0 have their own names for install.
2580 # Don't use installbsd from OSF since it installs stuff as root
2581 # by default.
2582 for ac_prog in ginstall scoinst install; do
2583 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2584 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2585 if test $ac_prog = install &&
c6b750e1 2586 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2587 # AIX install. It has an incompatible calling convention.
2588 :
c6b750e1
DJ
2589 elif test $ac_prog = install &&
2590 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591 # program-specific install script used by HP pwplus--don't use.
2592 :
e5c3f801 2593 else
58c85be7
RW
2594 rm -rf conftest.one conftest.two conftest.dir
2595 echo one > conftest.one
2596 echo two > conftest.two
2597 mkdir conftest.dir
2598 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2599 test -s conftest.one && test -s conftest.two &&
2600 test -s conftest.dir/conftest.one &&
2601 test -s conftest.dir/conftest.two
2602 then
2603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2604 break 3
2605 fi
e5c3f801
NN
2606 fi
2607 fi
2608 done
c6b750e1
DJ
2609 done
2610 ;;
2611esac
81ecdfbb
RW
2612
2613 done
2614IFS=$as_save_IFS
c6b750e1 2615
58c85be7 2616rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2617
2618fi
2619 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2620 INSTALL=$ac_cv_path_install
e5c3f801 2621 else
58c85be7
RW
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for INSTALL within a source directory, because that will
e5c3f801 2624 # break other packages using the cache if that directory is
58c85be7 2625 # removed, or if the value is a relative name.
c6b750e1 2626 INSTALL=$ac_install_sh
e5c3f801
NN
2627 fi
2628fi
81ecdfbb
RW
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2630$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2631
2632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633# It thinks the first close brace ends the variable substitution.
2634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2635
c6b750e1 2636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2637
2638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2639
81ecdfbb
RW
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2641$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2642if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2643 $as_echo_n "(cached) " >&6
656fdd47
PB
2644else
2645 rm -f conftestdata_t
2646echo >conftestdata_f
2647if ln conftestdata_f conftestdata_t 2>/dev/null
2648then
2649 acx_cv_prog_LN=ln
2650else
2651 acx_cv_prog_LN=no
2652fi
2653rm -f conftestdata_f conftestdata_t
2654
2655fi
2656if test $acx_cv_prog_LN = no; then
2657 LN="cp"
81ecdfbb
RW
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2659$as_echo "no, using $LN" >&6; }
656fdd47
PB
2660else
2661 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663$as_echo "yes" >&6; }
656fdd47
PB
2664fi
2665
81ecdfbb
RW
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2667$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2668LN_S=$as_ln_s
2669if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671$as_echo "yes" >&6; }
cac3d6c4 2672else
81ecdfbb
RW
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2674$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2675fi
2676
8e957354
PB
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2678$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2679if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2680 $as_echo_n "(cached) " >&6
2681else
2682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2683 for ac_i in 1 2 3 4 5 6 7; do
2684 ac_script="$ac_script$as_nl$ac_script"
2685 done
2686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2687 { ac_script=; unset ac_script;}
2688 if test -z "$SED"; then
2689 ac_path_SED_found=false
2690 # Loop through the user's path and test for each of PROGNAME-LIST
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692for as_dir in $PATH
2693do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_prog in sed gsed; do
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2699 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2700# Check for GNU ac_path_SED and select it if it is found.
2701 # Check for GNU $ac_path_SED
2702case `"$ac_path_SED" --version 2>&1` in
2703*GNU*)
2704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2705*)
2706 ac_count=0
2707 $as_echo_n 0123456789 >"conftest.in"
2708 while :
2709 do
2710 cat "conftest.in" "conftest.in" >"conftest.tmp"
2711 mv "conftest.tmp" "conftest.in"
2712 cp "conftest.in" "conftest.nl"
2713 $as_echo '' >> "conftest.nl"
2714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2716 as_fn_arith $ac_count + 1 && ac_count=$as_val
2717 if test $ac_count -gt ${ac_path_SED_max-0}; then
2718 # Best one so far, save it but keep looking for a better one
2719 ac_cv_path_SED="$ac_path_SED"
2720 ac_path_SED_max=$ac_count
2721 fi
2722 # 10*(2^10) chars as input seems more than enough
2723 test $ac_count -gt 10 && break
2724 done
2725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2726esac
2727
2728 $ac_path_SED_found && break 3
2729 done
2730 done
2731 done
2732IFS=$as_save_IFS
2733 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2735 fi
2736else
2737 ac_cv_path_SED=$SED
2738fi
2739
2740fi
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2742$as_echo "$ac_cv_path_SED" >&6; }
2743 SED="$ac_cv_path_SED"
2744 rm -f conftest.sed
2745
2746for ac_prog in gawk mawk nawk awk
2747do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749set dummy $ac_prog; ac_word=$2
2750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2752if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2753 $as_echo_n "(cached) " >&6
2754else
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2757else
2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2765 ac_cv_prog_AWK="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769done
2770 done
2771IFS=$as_save_IFS
2772
2773fi
2774fi
2775AWK=$ac_cv_prog_AWK
2776if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778$as_echo "$AWK" >&6; }
2779else
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781$as_echo "no" >&6; }
2782fi
2783
2784
2785 test -n "$AWK" && break
2786done
2787
e5c3f801 2788
0fdbe983
DJ
2789srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2790
2791# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2792# a relative path.
2793if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2794 INSTALL="${srcpwd}/install-sh -c"
2795fi
2796
a0da8069
NN
2797# Set srcdir to "." if that's what it is.
2798# This is important for multilib support.
2799pwd=`${PWDCMD-pwd}`
a0da8069
NN
2800if test "${pwd}" = "${srcpwd}" ; then
2801 srcdir=.
252b5132
RH
2802fi
2803
a0da8069 2804topsrcdir=$srcpwd
252b5132 2805
a0da8069 2806extra_host_args=
afefada0 2807
a0da8069
NN
2808### To add a new directory to the tree, first choose whether it is a target
2809### or a host dependent tool. Then put it into the appropriate list
2810### (library or tools, host or target), doing a dependency sort.
252b5132 2811
c6b750e1 2812# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2813# configdirs, or target_configdirs; see the serialization section below.
252b5132 2814
c6b750e1
DJ
2815# Dependency sorting is only needed when *configuration* must be done in
2816# a particular order. In all cases a dependency should be specified in
a0da8069 2817# the Makefile, whether or not it's implicitly specified here.
252b5132 2818
a0da8069
NN
2819# Double entries in build_configdirs, configdirs, or target_configdirs may
2820# cause circular dependencies and break everything horribly.
252b5132 2821
6a9cf61e
PB
2822# these library is used by various programs built for the build
2823# environment
2824#
1b6c0831 2825build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2826
2827# these tools are built for the build environment
a90ef4bf 2828build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2829
a0da8069 2830# these libraries are used by various programs built for the host environment
1b6c0831 2831#f
862776f2 2832host_libs="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
a0da8069 2833
a0da8069
NN
2834# these tools are built for the host environment
2835# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2836# know that we are building the simulator.
2837# binutils, gas and ld appear in that order because it makes sense to run
2838# "make check" in that particular order.
e6de499b 2839# If --enable-gold is used, "gold" may replace "ld".
6a6859cb 2840host_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"
a0da8069 2841
a0da8069
NN
2842# these libraries are built for the target environment, and are built after
2843# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2844# Note that libiberty is not a target library.
b1299c4e 2845target_libraries="target-libgcc \
2bf680c4 2846 target-libbacktrace \
a0da8069
NN
2847 target-libgloss \
2848 target-newlib \
cff87f51 2849 target-libgomp \
7ec59b9e 2850 target-libatomic \
d32e2926 2851 target-libitm \
b9459e83 2852 target-libstdc++-v3 \
5286fdef 2853 target-libsanitizer \
95e43135 2854 target-libvtv \
bb780410 2855 target-libssp \
e552509b 2856 target-libquadmath \
4b1cb4fe 2857 target-libgfortran \
05a13254 2858 target-libffi \
a2592b1b 2859 target-libobjc \
e552509b 2860 target-libada \
6a6859cb 2861 target-libgm2 \
228cf97d
AM
2862 target-libgo \
2863 target-libphobos \
2864 target-zlib"
a0da8069 2865
9c14acb8
NN
2866# these tools are built using the target libraries, and are intended to
2867# run only in the target environment
a0da8069 2868#
9c14acb8 2869# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2870# list belongs in this list.
a0da8069 2871#
a90ef4bf 2872target_tools="target-rda"
252b5132 2873
a0da8069 2874################################################################################
252b5132 2875
a0da8069
NN
2876## All tools belong in one of the four categories, and are assigned above
2877## We assign ${configdirs} this way to remove all embedded newlines. This
2878## is important because configure will choke if they ever get through.
2879## ${configdirs} is directories we build using the host tools.
2880## ${target_configdirs} is directories we build using the target tools.
a0da8069 2881configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2882target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2883build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2884
9cc8ae67
PB
2885
2886
a0da8069 2887################################################################################
252b5132 2888
a0da8069 2889srcname="gnu development package"
252b5132 2890
a0da8069
NN
2891# This gets set non-empty for some net releases of packages.
2892appdirs=""
252b5132 2893
a0da8069
NN
2894# Define is_cross_compiler to save on calls to 'test'.
2895is_cross_compiler=
2896if test x"${host}" = x"${target}" ; then
2897 is_cross_compiler=no
252b5132 2898else
a0da8069 2899 is_cross_compiler=yes
c6b750e1 2900fi
252b5132 2901
9175bfc0 2902# Find the build and target subdir names.
dd12c3a8 2903
66a79c16
DJ
2904# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2905# have matching libraries, they should use host libraries: Makefile.tpl
2906# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2907# However, they still use the build modules, because the corresponding
2908# host modules (e.g. bison) are only built for the host when bootstrap
2909# finishes. So:
2910# - build_subdir is where we find build modules, and never changes.
2911# - build_libsubdir is where we find build libraries, and can be overridden.
2912
2913# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2914build_subdir="build-${build_noncanonical}"
c6b750e1 2915
81ecdfbb
RW
2916# Check whether --with-build-libsubdir was given.
2917if test "${with_build_libsubdir+set}" = set; then :
2918 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2919else
2920 build_libsubdir="$build_subdir"
81ecdfbb
RW
2921fi
2922
b00612cc
PB
2923# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2924if ( test $srcdir = . && test -d gcc ) \
2925 || test -d $srcdir/../host-${host_noncanonical}; then
2926 host_subdir="host-${host_noncanonical}"
2927else
2928 host_subdir=.
2929fi
dd12c3a8
NN
2930# No prefix.
2931target_subdir=${target_noncanonical}
c6b750e1 2932
2fd0b40b
RW
2933# Be sure to cover against remnants of an in-tree build.
2934if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2935 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2936Use a pristine source tree when building in a separate tree" "$LINENO" 5
2937fi
252b5132 2938
a0da8069
NN
2939# Skipdirs are removed silently.
2940skipdirs=
2941# Noconfigdirs are removed loudly.
2942noconfigdirs=""
252b5132 2943
a0da8069
NN
2944use_gnu_ld=
2945# Make sure we don't let GNU ld be added if we didn't want it.
2946if test x$with_gnu_ld = xno ; then
2947 use_gnu_ld=no
93f9b408 2948 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2949fi
2950
a0da8069
NN
2951use_gnu_as=
2952# Make sure we don't let GNU as be added if we didn't want it.
2953if test x$with_gnu_as = xno ; then
2954 use_gnu_as=no
2955 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2956fi
2957
700d40ca 2958use_included_zlib=
cf39cfc5
L
2959
2960# Check whether --with-system-zlib was given.
2961if test "${with_system_zlib+set}" = set; then :
2962 withval=$with_system_zlib;
2963fi
2964
700d40ca
ILT
2965# Make sure we don't let ZLIB be added if we didn't want it.
2966if test x$with_system_zlib = xyes ; then
2967 use_included_zlib=no
2968 noconfigdirs="$noconfigdirs zlib"
2969fi
2970
1c232ab0
ДП
2971# Don't compile the bundled readline/libreadline.a if --with-system-readline
2972# is provided.
2973if test x$with_system_readline = xyes ; then
2974 noconfigdirs="$noconfigdirs readline"
2975fi
2976
2cac01e3
FS
2977
2978# Check whether --with-zstd was given.
2979if test "${with_zstd+set}" = set; then :
2980 withval=$with_zstd;
2981fi
2982
2983
c6b750e1 2984# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2985# it's not even worth trying to configure, much less build, that tool.
252b5132 2986
a0da8069
NN
2987case ${with_x} in
2988 yes | "") ;; # the default value for this tree is that X11 is available
2989 no)
675c6968 2990 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2991 # We won't be able to build gdbtk without X.
c6b750e1 2992 enable_gdbtk=no
a0da8069
NN
2993 ;;
2994 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2995esac
252b5132 2996
0377a422 2997# Some are only suitable for cross toolchains.
a0da8069
NN
2998# Remove these if host=target.
2999cross_only="target-libgloss target-newlib target-opcodes"
3000
3001case $is_cross_compiler in
3002 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 3003esac
252b5132 3004
a0da8069
NN
3005# If both --with-headers and --with-libs are specified, default to
3006# --without-newlib.
32be62b5
RS
3007if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3008 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
3009 if test x"${with_newlib}" = x ; then
3010 with_newlib=no
3011 fi
252b5132
RH
3012fi
3013
a0da8069
NN
3014# Recognize --with-newlib/--without-newlib.
3015case ${with_newlib} in
3016 no) skipdirs="${skipdirs} target-newlib" ;;
3017 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3018esac
252b5132 3019
1b6c0831
L
3020# Check whether --enable-as-accelerator-for was given.
3021if test "${enable_as_accelerator_for+set}" = set; then :
3022 enableval=$enable_as_accelerator_for;
3023fi
3024
3025
3026# Check whether --enable-offload-targets was given.
3027if test "${enable_offload_targets+set}" = set; then :
3028 enableval=$enable_offload_targets;
3029 if test x"$enable_offload_targets" = x; then
d0ac1c44 3030 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
3031 fi
3032
3033else
3034 enable_offload_targets=
3035fi
3036
3037
228cf97d
AM
3038# Check whether --enable-offload-defaulted was given.
3039if test "${enable_offload_defaulted+set}" = set; then :
3040 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3041else
3042 enable_offload_defaulted=
3043fi
3044
3045
c7791212
NC
3046# Handle --enable-gold, --enable-ld.
3047# --disable-gold [--enable-ld]
3048# Build only ld. Default option.
d3b50760
L
3049# --enable-gold [--enable-ld]
3050# Build both gold and ld. Install gold as "ld.gold", install ld
3051# as "ld.bfd" and "ld".
3052# --enable-gold=default [--enable-ld]
c7791212
NC
3053# Build both gold and ld. Install gold as "ld.gold" and "ld",
3054# install ld as "ld.bfd".
3055# --enable-gold[=default] --disable-ld
3056# Build only gold, which is then installed as both "ld.gold" and "ld".
3057# --enable-gold --enable-ld=default
d3b50760
L
3058# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3059# and ld.bfd).
c7791212
NC
3060# In other words, ld is default
3061# --enable-gold=default --enable-ld=default
3062# Error.
3063
3064default_ld=
81ecdfbb
RW
3065# Check whether --enable-gold was given.
3066if test "${enable_gold+set}" = set; then :
3067 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3068else
3069 ENABLE_GOLD=no
81ecdfbb
RW
3070fi
3071
c7791212
NC
3072case "${ENABLE_GOLD}" in
3073 yes|default)
e6de499b
NC
3074 # Check for ELF target.
3075 is_elf=no
3076 case "${target}" in
3077 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3078 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3079 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
6a6859cb 3080 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-haiku*)
e6de499b
NC
3081 case "${target}" in
3082 *-*-linux*aout* | *-*-linux*oldld*)
3083 ;;
3084 *)
3085 is_elf=yes
3086 ;;
3087 esac
3088 esac
3089
3090 if test "$is_elf" = "yes"; then
3091 # Check for target supported by gold.
93f9b408 3092 case "${target}" in
6d26190c 3093 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
228cf97d 3094 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
c7791212
NC
3095 configdirs="$configdirs gold"
3096 if test x${ENABLE_GOLD} = xdefault; then
3097 default_ld=gold
3098 fi
e6de499b 3099 ENABLE_GOLD=yes
93f9b408
ILT
3100 ;;
3101 esac
e6de499b
NC
3102 fi
3103 ;;
3104 no)
3105 ;;
3106 *)
d0ac1c44 3107 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3108 ;;
c7791212
NC
3109esac
3110
3111# Check whether --enable-ld was given.
3112if test "${enable_ld+set}" = set; then :
3113 enableval=$enable_ld; ENABLE_LD=$enableval
3114else
3115 ENABLE_LD=yes
3116fi
3117
3118
3119case "${ENABLE_LD}" in
3120 default)
d3b50760 3121 if test x${default_ld} != x; then
d0ac1c44 3122 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3123 fi
3124 ;;
3125 yes)
3126 ;;
3127 no)
3128 if test x${ENABLE_GOLD} != xyes; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3130$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3131 fi
3132 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3133 ;;
3134 *)
d0ac1c44 3135 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3136 ;;
3137esac
93f9b408 3138
bb368aad
VM
3139# Check whether --enable-gprofng was given.
3140if test "${enable_gprofng+set}" = set; then :
3141 enableval=$enable_gprofng; enable_gprofng=$enableval
3142else
3143 enable_gprofng=yes
3144fi
3145
3146if test "$enable_gprofng" = "yes"; then
3147 case "${target}" in
3148 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3149 configdirs="$configdirs gprofng"
3150 ;;
3151 esac
3152fi
3153
3154
edeefb67
L
3155# PR gas/19109
3156# Decide the default method for compressing debug sections.
3157# Provide a configure time option to override our default.
3158# Check whether --enable-compressed_debug_sections was given.
3159if test "${enable_compressed_debug_sections+set}" = set; then :
3160 enableval=$enable_compressed_debug_sections;
3161 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3162 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3163 fi
3164
3165else
3166 enable_compressed_debug_sections=
3167fi
3168
3169
b0c295e1
ML
3170# Select default compression algorithm.
3171# Check whether --enable-default_compressed_debug_sections_algorithm was given.
3172if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3173 enableval=$enable_default_compressed_debug_sections_algorithm;
3174else
3175 default_compressed_debug_sections_algorithm=
3176fi
3177
3178
a0da8069 3179# Configure extra directories which are host specific
252b5132 3180
a0da8069
NN
3181case "${host}" in
3182 *-cygwin*)
3183 configdirs="$configdirs libtermcap" ;;
3184esac
252b5132 3185
59f7ec45
HPN
3186# A target can indicate whether a language isn't supported for some reason.
3187# Only spaces may be used in this macro; not newlines or tabs.
3188unsupported_languages=
3189
c6b750e1 3190# Remove more programs from consideration, based on the host or
a0da8069
NN
3191# target this usually means that a port of the program doesn't
3192# exist yet.
252b5132 3193
a0da8069 3194case "${host}" in
3516a403 3195 i[3456789]86-*-msdosdjgpp*)
6a608608 3196 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3197 ;;
a0da8069 3198esac
252b5132 3199
e5f2f7d9
LM
3200# Default to --disable-year2038 until we can handle differences between
3201# projects that use gnulib (which understands year 2038) and projects that
3202# do not (like BFD).
3203# Check whether --enable-year2038 was given.
3204if test "${enable_year2038+set}" = set; then :
3205 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3206else
3207 ENABLE_YEAR2038=no
3208fi
3209
3210enable_year2038=
3211if test "${ENABLE_YEAR2038}" = "no" ; then
3212 enable_year2038=no
3213fi
4b1cb4fe 3214
89a1e9c3
PB
3215# Check whether --enable-libquadmath was given.
3216if test "${enable_libquadmath+set}" = set; then :
3217 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3218else
3219 ENABLE_LIBQUADMATH=yes
3220fi
3221
3222if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3223 noconfigdirs="$noconfigdirs target-libquadmath"
3224fi
3225
3226
3227# Check whether --enable-libquadmath-support was given.
3228if test "${enable_libquadmath_support+set}" = set; then :
3229 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3230else
3231 ENABLE_LIBQUADMATH_SUPPORT=yes
3232fi
3233
3234enable_libquadmath_support=
3235if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3236 enable_libquadmath_support=no
3237fi
3238
3239
81ecdfbb
RW
3240# Check whether --enable-libada was given.
3241if test "${enable_libada+set}" = set; then :
3242 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3243else
3244 ENABLE_LIBADA=yes
81ecdfbb
RW
3245fi
3246
a2592b1b 3247if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3248 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3249fi
3250
6a6859cb
AM
3251# Check whether --enable-libgm2 was given.
3252if test "${enable_libgm2+set}" = set; then :
3253 enableval=$enable_libgm2; ENABLE_LIBGM2=$enableval
3254else
3255 ENABLE_LIBGM2=no
3256fi
3257
3258if test "${ENABLE_LIBGM2}" != "yes" ; then
3259 noconfigdirs="$noconfigdirs gm2tools"
3260fi
3261
81ecdfbb
RW
3262# Check whether --enable-libssp was given.
3263if test "${enable_libssp+set}" = set; then :
3264 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3265else
3266 ENABLE_LIBSSP=yes
81ecdfbb
RW
3267fi
3268
5f128533 3269
f66a9a70
L
3270# Check whether --enable-libstdcxx was given.
3271if test "${enable_libstdcxx+set}" = set; then :
3272 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3273else
3274 ENABLE_LIBSTDCXX=default
3275fi
3276
3277if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3278 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3279fi
3280
68996839 3281# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3282if test x$enable_libgomp = x ; then
b3ded179 3283 case "${target}" in
29383458 3284 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3285 ;;
5b806d27 3286 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3287 ;;
2479f722 3288 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3289 ;;
3290 *-*-darwin* | *-*-aix*)
3291 ;;
228cf97d 3292 nvptx*-*-* | amdgcn*-*-*)
68996839 3293 ;;
b3ded179
PB
3294 *)
3295 noconfigdirs="$noconfigdirs target-libgomp"
3296 ;;
3297 esac
a6df5a19 3298fi
b3ded179 3299
7ec59b9e
L
3300# Disable libatomic on unsupported systems.
3301if test -d ${srcdir}/libatomic; then
3302 if test x$enable_libatomic = x; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3304$as_echo_n "checking for libatomic support... " >&6; }
3305 if (srcdir=${srcdir}/libatomic; \
3306 . ${srcdir}/configure.tgt; \
3307 test -n "$UNSUPPORTED")
3308 then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311 noconfigdirs="$noconfigdirs target-libatomic"
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314$as_echo "yes" >&6; }
3315 fi
3316 fi
3317fi
3318
d32e2926
RH
3319# Disable libitm on unsupported systems.
3320if test -d ${srcdir}/libitm; then
3321 if test x$enable_libitm = x; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3323$as_echo_n "checking for libitm support... " >&6; }
3324 if (srcdir=${srcdir}/libitm; \
3325 . ${srcdir}/configure.tgt; \
3326 test -n "$UNSUPPORTED")
3327 then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329$as_echo "no" >&6; }
3330 noconfigdirs="$noconfigdirs target-libitm"
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
3334 fi
3335 fi
3336fi
3337
5286fdef
L
3338# Disable libsanitizer on unsupported systems.
3339if test -d ${srcdir}/libsanitizer; then
3340 if test x$enable_libsanitizer = x; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3342$as_echo_n "checking for libsanitizer support... " >&6; }
3343 if (srcdir=${srcdir}/libsanitizer; \
3344 . ${srcdir}/configure.tgt; \
3345 test -n "$UNSUPPORTED")
3346 then
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349 noconfigdirs="$noconfigdirs target-libsanitizer"
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352$as_echo "yes" >&6; }
3353 fi
3354 fi
3355fi
3356
95e43135
JBG
3357# Disable libvtv on unsupported systems.
3358if test -d ${srcdir}/libvtv; then
3359 if test x$enable_libvtv = x; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3361$as_echo_n "checking for libvtv support... " >&6; }
3362 if (srcdir=${srcdir}/libvtv; \
3363 . ${srcdir}/configure.tgt; \
3364 test "$VTV_SUPPORTED" != "yes")
3365 then
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367$as_echo "no" >&6; }
3368 noconfigdirs="$noconfigdirs target-libvtv"
3369 else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
3372 fi
3373 fi
3374fi
3375
1488e230
DE
3376# Disable libquadmath for some systems.
3377case "${target}" in
5286fdef
L
3378 avr-*-*)
3379 noconfigdirs="$noconfigdirs target-libquadmath"
3380 ;;
1488e230
DE
3381 # libquadmath is unused on AIX and libquadmath build process use of
3382 # LD_LIBRARY_PATH can break AIX bootstrap.
3383 powerpc-*-aix* | rs6000-*-aix*)
3384 noconfigdirs="$noconfigdirs target-libquadmath"
3385 ;;
3386esac
3387
065a5627
JM
3388# Disable libssp for some systems.
3389case "${target}" in
3390 avr-*-*)
c5f5c3c2 3391 # No hosted I/O support.
065a5627
JM
3392 noconfigdirs="$noconfigdirs target-libssp"
3393 ;;
228cf97d
AM
3394 bpf-*-*)
3395 noconfigdirs="$noconfigdirs target-libssp"
3396 ;;
065a5627
JM
3397 powerpc-*-aix* | rs6000-*-aix*)
3398 noconfigdirs="$noconfigdirs target-libssp"
3399 ;;
228cf97d
AM
3400 pru-*-*)
3401 # No hosted I/O support.
3402 noconfigdirs="$noconfigdirs target-libssp"
3403 ;;
99c513f6 3404 rl78-*-*)
202e2356
NC
3405 # libssp uses a misaligned load to trigger a fault, but the RL78
3406 # doesn't fault for those - instead, it gives a build-time error
3407 # for explicit misaligned loads.
99c513f6
DD
3408 noconfigdirs="$noconfigdirs target-libssp"
3409 ;;
1b6c0831
L
3410 visium-*-*)
3411 # No hosted I/O support.
3412 noconfigdirs="$noconfigdirs target-libssp"
3413 ;;
065a5627
JM
3414esac
3415
065a5627 3416# Disable libstdc++-v3 for some systems.
228cf97d 3417# Allow user to override this if they pass --enable-libstdcxx
f66a9a70
L
3418if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3419 case "${target}" in
3420 *-*-vxworks*)
3421 # VxWorks uses the Dinkumware C++ library.
3422 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3423 ;;
228cf97d
AM
3424 amdgcn*-*-*)
3425 # Not ported/fails to build when using newlib.
3426 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3427 ;;
f66a9a70
L
3428 arm*-wince-pe*)
3429 # the C++ libraries don't build on top of CE's C libraries
3430 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3431 ;;
3432 avr-*-*)
3433 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3434 ;;
228cf97d
AM
3435 bpf-*-*)
3436 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3437 ;;
969b1713
L
3438 ft32-*-*)
3439 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3440 ;;
f66a9a70
L
3441 esac
3442fi
065a5627 3443
228cf97d
AM
3444# Disable C++ on systems where it is known to not work.
3445# For testing, you can override this with --enable-languages=c++.
3446case ,${enable_languages}, in
3447 *,c++,*)
3448 ;;
3449 *)
3450 case "${target}" in
3451 bpf-*-*)
3452 unsupported_languages="$unsupported_languages c++"
3453 ;;
3454 esac
3455 ;;
3456esac
3457
3458# Disable Objc on systems where it is known to not work.
3459# For testing, you can override this with --enable-languages=objc.
3460case ,${enable_languages}, in
3461 *,objc,*)
3462 ;;
3463 *)
3464 case "${target}" in
3465 bpf-*-*)
3466 unsupported_languages="$unsupported_languages objc"
3467 ;;
3468 esac
3469 ;;
3470esac
3471
3472# Disable D on systems where it is known to not work.
3473# For testing, you can override this with --enable-languages=d.
3474case ,${enable_languages}, in
3475 *,d,*)
3476 ;;
3477 *)
3478 case "${target}" in
3479 bpf-*-*)
3480 unsupported_languages="$unsupported_languages d"
3481 ;;
3482 esac
3483 ;;
3484esac
3485
3486# Disable libphobos on unsupported systems.
3487# For testing, you can override this with --enable-libphobos.
3488if test -d ${srcdir}/libphobos; then
3489 if test x$enable_libphobos = x; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3491$as_echo_n "checking for libphobos support... " >&6; }
3492 if (srcdir=${srcdir}/libphobos; \
3493 . ${srcdir}/configure.tgt; \
3494 test "$LIBPHOBOS_SUPPORTED" != "yes")
3495 then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498 noconfigdirs="$noconfigdirs target-libphobos"
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501$as_echo "yes" >&6; }
3502 fi
3503 fi
3504fi
3505
065a5627
JM
3506# Disable Fortran for some systems.
3507case "${target}" in
3508 mmix-*-*)
3509 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3510 unsupported_languages="$unsupported_languages fortran"
3511 ;;
228cf97d
AM
3512 bpf-*-*)
3513 unsupported_languages="$unsupported_languages fortran"
3514 ;;
065a5627
JM
3515esac
3516
05a13254 3517# Disable libffi for some systems.
0827f9a6 3518case "${target}" in
9863d716
JM
3519 powerpc-*-darwin*)
3520 ;;
3521 i[3456789]86-*-darwin*)
3522 ;;
3523 x86_64-*-darwin[912]*)
3524 ;;
3525 *-*-darwin*)
05a13254 3526 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3527 ;;
9863d716 3528 *-*-netware*)
05a13254
NC
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 *-*-phoenix*)
3532 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3533 ;;
3534 *-*-rtems*)
05a13254 3535 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3536 ;;
3537 *-*-tpf*)
05a13254 3538 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3539 ;;
3540 *-*-uclinux*)
05a13254 3541 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3542 ;;
3543 *-*-vxworks*)
05a13254
NC
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
3546 aarch64*-*-freebsd*)
3547 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3548 ;;
9863d716 3549 alpha*-*-*vms*)
05a13254 3550 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3551 ;;
1b6c0831 3552 arm*-*-freebsd*)
05a13254 3553 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3554 ;;
0827f9a6 3555 arm-wince-pe)
05a13254 3556 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3557 ;;
228cf97d
AM
3558 arm*-*-symbianelf*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 bpf-*-*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
9863d716 3564 cris-*-* | crisv32-*-*)
9863d716
JM
3565 case "${target}" in
3566 *-*-linux*)
3567 ;;
3568 *) # See PR46792 regarding target-libffi.
05a13254 3569 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3570 esac
3571 ;;
82ae827f 3572 hppa*64*-*-hpux*)
05a13254 3573 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3574 ;;
3575 hppa*-hp-hpux11*)
3576 ;;
82ae827f 3577 hppa*-*-hpux*)
05a13254 3578 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3579 ;;
9863d716 3580 ia64*-*-*vms*)
05a13254 3581 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3582 ;;
9863d716 3583 i[3456789]86-w64-mingw*)
05a13254 3584 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3585 ;;
3586 i[3456789]86-*-mingw*)
05a13254 3587 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3588 ;;
3589 x86_64-*-mingw*)
05a13254 3590 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3591 ;;
9863d716 3592 mmix-*-*)
05a13254 3593 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3594 ;;
3595 powerpc-*-aix*)
9863d716 3596 ;;
9863d716 3597 rs6000-*-aix*)
9863d716 3598 ;;
3f8107ab 3599 ft32-*-*)
05a13254 3600 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3601 ;;
9863d716 3602 *-*-lynxos*)
05a13254 3603 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3604 ;;
9863d716
JM
3605esac
3606
1b6c0831
L
3607# Disable the go frontend on systems where it is known to not work. Please keep
3608# this in sync with contrib/config-list.mk.
3609case "${target}" in
228cf97d 3610*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
1b6c0831
L
3611 unsupported_languages="$unsupported_languages go"
3612 ;;
3613esac
3614
919adfe8
TT
3615# Only allow gdbserver on some systems.
3616if test -d ${srcdir}/gdbserver; then
3617 if test x$enable_gdbserver = x; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3619$as_echo_n "checking for gdbserver support... " >&6; }
3620 if (srcdir=${srcdir}/gdbserver; \
3621 . ${srcdir}/configure.srv; \
3622 test -n "$UNSUPPORTED")
3623 then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625$as_echo "no" >&6; }
3626 noconfigdirs="$noconfigdirs gdbserver"
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629$as_echo "yes" >&6; }
3630 fi
3631 fi
3632fi
3633
a413f71a
ILT
3634# Disable libgo for some systems where it is known to not work.
3635# For testing, you can easily override this with --enable-libgo.
3636if test x$enable_libgo = x; then
3637 case "${target}" in
3638 *-*-darwin*)
3639 # PR 46986
3640 noconfigdirs="$noconfigdirs target-libgo"
3641 ;;
3642 *-*-cygwin* | *-*-mingw*)
3643 noconfigdirs="$noconfigdirs target-libgo"
3644 ;;
228cf97d
AM
3645 bpf-*-*)
3646 noconfigdirs="$noconfigdirs target-libgo"
3647 ;;
a413f71a
ILT
3648 esac
3649fi
3650
691bb5a1
DD
3651# Default libgloss CPU subdirectory.
3652libgloss_dir="$target_cpu"
4b1cb4fe 3653
ff46fb8f
JM
3654case "${target}" in
3655 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3656 libgloss_dir=wince
3657 ;;
f1dd87fc
YZ
3658 aarch64*-*-* )
3659 libgloss_dir=aarch64
3660 ;;
ff46fb8f
JM
3661 arm*-*-*)
3662 libgloss_dir=arm
3663 ;;
3664 cris-*-* | crisv32-*-*)
3665 libgloss_dir=cris
3666 ;;
6e712424
PI
3667 kvx-*-elf)
3668 libgloss_dir=kvx-elf
3669 ;;
3670 kvx-*-mbr)
3671 libgloss_dir=kvx-mbr
3672 ;;
3673 kvx-*-cos)
3674 libgloss_dir=kvx-cos
3675 ;;
ff46fb8f
JM
3676 hppa*-*-*)
3677 libgloss_dir=pa
3678 ;;
3679 i[3456789]86-*-*)
3680 libgloss_dir=i386
3681 ;;
228cf97d
AM
3682 loongarch*-*-*)
3683 libgloss_dir=loongarch
3684 ;;
ff46fb8f
JM
3685 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3686 libgloss_dir=m68hc11
3687 ;;
3688 m68*-*-* | fido-*-*)
3689 libgloss_dir=m68k
3690 ;;
3691 mips*-*-*)
3692 libgloss_dir=mips
3693 ;;
3694 powerpc*-*-*)
3695 libgloss_dir=rs6000
3696 ;;
228cf97d
AM
3697 pru-*-*)
3698 libgloss_dir=pru
3699 ;;
ff46fb8f
JM
3700 sparc*-*-*)
3701 libgloss_dir=sparc
3702 ;;
3703esac
3704
c7e4b184 3705# Disable newlib and libgloss for various target OSes.
a0da8069 3706case "${target}" in
c7e4b184
JM
3707 alpha*-dec-osf*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 i[3456789]86-*-linux*)
3711 # This section makes it possible to build newlib natively on linux.
3712 # If we are using a cross compiler then don't configure newlib.
3713 if test x${is_cross_compiler} != xno ; then
3714 noconfigdirs="$noconfigdirs target-newlib"
3715 fi
3716 noconfigdirs="$noconfigdirs target-libgloss"
3717 # If we are not using a cross compiler, do configure newlib.
3718 # Note however, that newlib will only be configured in this situation
3719 # if the --with-newlib option has been given, because otherwise
3720 # 'target-newlib' will appear in skipdirs.
3721 ;;
3722 i[3456789]86-*-rdos*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 sparc-*-sunos4*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
228cf97d
AM
3731 bpf-*-*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
c7e4b184
JM
3734 *-*-aix*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737 *-*-beos*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 ;;
a0da8069 3740 *-*-chorusos)
b2f14e4a 3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3742 ;;
c7e4b184
JM
3743 *-*-dragonfly*)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3745 ;;
3746 *-*-freebsd*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 ;;
3749 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3751 ;;
3752 *-*-lynxos*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3754 ;;
3755 *-*-mingw*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3757 ;;
3758 *-*-netbsd*)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3760 ;;
3761 *-*-netware*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3763 ;;
3764 *-*-tpf*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3766 ;;
3767 *-*-uclinux*)
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 ;;
3770 *-*-vxworks*)
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3772 ;;
3773esac
3774
3775case "${target}" in
3776 *-*-chorusos)
3777 ;;
f075eb5e
TG
3778 aarch64-*-darwin*)
3779 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3780 noconfigdirs="$noconfigdirs sim target-rda"
3781 ;;
228cf97d
AM
3782 amdgcn*-*-*)
3783 ;;
f075eb5e
TG
3784 arm-*-darwin*)
3785 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3786 noconfigdirs="$noconfigdirs sim target-rda"
3787 ;;
24741ab2 3788 powerpc-*-darwin*)
9d39db92 3789 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3790 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3791 ;;
85bd1942
TG
3792 i[3456789]86-*-darwin*)
3793 noconfigdirs="$noconfigdirs ld gprof"
3794 noconfigdirs="$noconfigdirs sim target-rda"
3795 ;;
e8a5fa9c 3796 x86_64-*-darwin[912]*)
652dec25
TG
3797 noconfigdirs="$noconfigdirs ld gas gprof"
3798 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3799 ;;
04d1ab34 3800 *-*-darwin*)
d320aacb 3801 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3802 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3803 ;;
5b806d27 3804 *-*-dragonfly*)
5b806d27 3805 ;;
de0b4a87 3806 *-*-freebsd*)
228cf97d
AM
3807 if test "x$with_gmp" = x \
3808 && ! test -d ${srcdir}/gmp \
4b1cb4fe
DD
3809 && test -f /usr/local/include/gmp.h; then
3810 with_gmp=/usr/local
3811 fi
4b1cb4fe 3812 ;;
f8a495c8
NC
3813 *-*-kaos*)
3814 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3815 noconfigdirs="$noconfigdirs target-libgloss"
3816 ;;
a0da8069 3817 *-*-netbsd*)
a0da8069 3818 ;;
2a3124ca 3819 *-*-netware*)
a0da8069 3820 ;;
05a13254
NC
3821 *-*-phoenix*)
3822 noconfigdirs="$noconfigdirs target-libgloss"
3823 ;;
a0da8069 3824 *-*-rtems*)
9863d716 3825 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3826 ;;
1587117a
EC
3827 # The tpf target doesn't support gdb yet.
3828 *-*-tpf*)
c7e4b184 3829 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3830 ;;
c1968181 3831 *-*-uclinux*)
c7e4b184 3832 noconfigdirs="$noconfigdirs target-rda"
c1968181 3833 ;;
a0da8069 3834 *-*-vxworks*)
a0da8069
NN
3835 ;;
3836 alpha*-dec-osf*)
3837 # ld works, but does not support shared libraries.
a0da8069 3838 # gas doesn't generate exception information.
c7e4b184 3839 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3840 ;;
3841 alpha*-*-*vms*)
9863d716 3842 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3843 ;;
a0da8069
NN
3844 alpha*-*-*)
3845 # newlib is not 64 bit ready
9863d716 3846 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3847 ;;
228cf97d
AM
3848 bpf-*-*)
3849 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3850 ;;
a0da8069 3851 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3852 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3853 ;;
05a13254
NC
3854 arc*-*-*)
3855 noconfigdirs="$noconfigdirs sim"
a0da8069 3856 ;;
a0da8069 3857 arm-*-pe*)
9863d716 3858 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3859 ;;
a0da8069 3860 arm-*-riscix*)
b2f14e4a 3861 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3862 ;;
8e71395b
L
3863 avr-*-*)
3864 if test x${with_avrlibc} != xno; then
3865 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3866 fi
3867 ;;
a0da8069 3868 c4x-*-* | tic4x-*-*)
b2f14e4a 3869 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3870 ;;
b2f14e4a
JM
3871 tic54x-*-*)
3872 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3873 ;;
a0da8069 3874 d10v-*-*)
b2f14e4a 3875 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3876 ;;
3877 d30v-*-*)
b2f14e4a 3878 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3879 ;;
3880 fr30-*-elf*)
9863d716 3881 noconfigdirs="$noconfigdirs gdb"
a0da8069 3882 ;;
3f8107ab
AM
3883 ft32-*-*)
3884 noconfigdirs="$noconfigdirs target-rda gprof"
3885 ;;
20135e4c 3886 moxie-*-*)
10b8fe5e 3887 noconfigdirs="$noconfigdirs"
20135e4c 3888 ;;
a0da8069 3889 h8300*-*-*)
9863d716 3890 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3891 ;;
3892 h8500-*-*)
b2f14e4a 3893 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3894 ;;
caeba88f 3895 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3896 ;;
5569a85f
JDA
3897 hppa*64*-*-hpux*)
3898 noconfigdirs="$noconfigdirs gdb"
3899 ;;
3900 hppa*-*-hpux11*)
3901 noconfigdirs="$noconfigdirs gdb ld"
3902 ;;
93cc359e 3903 hppa*64*-*-linux*)
a0da8069 3904 ;;
f0ff0f90 3905 hppa*-*-linux*)
5dcac624 3906 ;;
a0da8069 3907 hppa*-*-*elf* | \
a0da8069
NN
3908 hppa*-*-lites* | \
3909 hppa*-*-openbsd* | \
3910 hppa*64*-*-*)
4f0ef2d8 3911 ;;
691bb5a1 3912 hppa*-*-pro*)
691bb5a1 3913 ;;
a0da8069 3914 hppa*-*-*)
9863d716 3915 noconfigdirs="$noconfigdirs ld"
a0da8069 3916 ;;
b07c2aad 3917 i960-*-*)
b2f14e4a 3918 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3919 ;;
a0da8069
NN
3920 ia64*-*-elf*)
3921 # No gdb support yet.
0377a422 3922 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3923 ;;
3924 ia64*-**-hpux*)
92c9a463 3925 # No ld support yet.
5569a85f 3926 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3927 ;;
19e99079 3928 ia64*-*-*vms*)
7ec59b9e
L
3929 # No ld support yet.
3930 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3931 ;;
1f53ca9a 3932 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3933 ;;
3934 i[3456789]86-*-mingw*)
45055374 3935 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3936 ;;
a0da8069
NN
3937 *-*-cygwin*)
3938 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3939 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3940 # always build newlib if winsup directory is present.
45055374 3941 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3942 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3943 elif test -d "$srcdir/newlib"; then
45055374 3944 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3945 fi
c6b750e1 3946 ;;
ec11bdc6 3947 i[3456789]86-*-pe)
782cb41f 3948 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3949 ;;
ec11bdc6 3950 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3951 # The linker does not yet know about weak symbols in COFF,
3952 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3953 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3954 ;;
ec11bdc6 3955 i[3456789]86-*-sco*)
b2f14e4a 3956 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3957 ;;
cff32a7c 3958 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3959 noconfigdirs="$noconfigdirs target-libgloss"
3960 ;;
ec11bdc6 3961 i[3456789]86-*-sysv4*)
b2f14e4a 3962 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3963 ;;
ec11bdc6 3964 i[3456789]86-*-beos*)
c7e4b184 3965 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3966 ;;
b59bea8a 3967 i[3456789]86-*-rdos*)
c7e4b184 3968 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3969 ;;
6e712424 3970 kvx-*-*)
05fbbeac 3971 noconfigdirs="$noconfigdirs gdb gdbserver sim"
6e712424 3972 ;;
a0da8069 3973 mmix-*-*)
9863d716 3974 noconfigdirs="$noconfigdirs gdb"
a0da8069 3975 ;;
4970f871 3976 mt-*-*)
cdb9b172
AH
3977 noconfigdirs="$noconfigdirs sim"
3978 ;;
1063beb5
FT
3979 nfp-*-*)
3980 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3981 noconfigdirs="$noconfigdirs $target_libraries"
3982 ;;
11104e42
SC
3983 pdp11-*-*)
3984 noconfigdirs="$noconfigdirs gdb gprof"
3985 ;;
a0da8069
NN
3986 powerpc-*-aix*)
3987 # copied from rs6000-*-* entry
c7e4b184 3988 noconfigdirs="$noconfigdirs gprof"
a0da8069 3989 ;;
93cc359e 3990 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3991 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3992 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3993 # always build newlib.
3994 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3995 ;;
3996 # This is temporary until we can link against shared libraries
3997 powerpcle-*-solaris*)
b2f14e4a 3998 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3999 ;;
4000 powerpc-*-beos*)
c7e4b184 4001 noconfigdirs="$noconfigdirs gdb"
a0da8069 4002 ;;
a0da8069 4003 rs6000-*-lynxos*)
c7e4b184 4004 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4005 ;;
4006 rs6000-*-aix*)
c7e4b184 4007 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4008 ;;
4009 rs6000-*-*)
9863d716 4010 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4011 ;;
4012 m68k-apollo-*)
b2f14e4a 4013 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 4014 ;;
25a07265 4015 microblaze*)
9863d716 4016 noconfigdirs="$noconfigdirs gprof"
25a07265 4017 ;;
a9d58c06 4018 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
4019 if test x$with_newlib = xyes; then
4020 noconfigdirs="$noconfigdirs gprof"
4021 fi
5bd8be13 4022 ;;
a0da8069 4023 mips*-*-irix5*)
b2f14e4a 4024 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
4025 ;;
4026 mips*-*-irix6*)
9863d716 4027 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 4028 ;;
a0da8069 4029 mips*-*-bsd*)
e8044f35 4030 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 4031 ;;
a0da8069 4032 mips*-*-linux*)
a0da8069 4033 ;;
e8044f35
RS
4034 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4035 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4036 noconfigdirs="$noconfigdirs ld gas gprof"
4037 ;;
a0da8069 4038 mips*-*-*)
9863d716 4039 noconfigdirs="$noconfigdirs gprof"
a0da8069 4040 ;;
1b6c0831 4041 nvptx*-*-*)
1b6c0831
L
4042 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4043 ;;
05a13254 4044 sh-*-*)
e8a5fa9c
RW
4045 case "${target}" in
4046 sh*-*-elf)
9863d716 4047 ;;
e8a5fa9c 4048 *)
9863d716 4049 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 4050 esac
a0da8069 4051 ;;
a0da8069 4052 sparc-*-sunos4*)
c7e4b184 4053 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
4054 use_gnu_ld=no
4055 fi
4056 ;;
619a3713 4057 tic6x-*-*)
40ae9136 4058 noconfigdirs="$noconfigdirs sim"
619a3713 4059 ;;
05a13254 4060 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
4061 noconfigdirs="$noconfigdirs sim"
4062 ;;
a0da8069 4063 v810-*-*)
b2f14e4a 4064 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
4065 ;;
4066 vax-*-*)
9863d716 4067 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 4068 ;;
b29d2641
MR
4069 wasm32-*-*)
4070 noconfigdirs="$noconfigdirs ld"
4071 ;;
228cf97d
AM
4072 loongarch*-*-linux*)
4073 ;;
4074 loongarch*-*-*)
4075 noconfigdirs="$noconfigdirs gprof"
4076 ;;
a0da8069 4077esac
252b5132 4078
a0da8069
NN
4079# If we aren't building newlib, then don't build libgloss, since libgloss
4080# depends upon some newlib header files.
4081case "${noconfigdirs}" in
4082 *target-libgloss*) ;;
4083 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4084esac
4085
a0da8069 4086# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
4087host_makefile_frag=/dev/null
4088if test -d ${srcdir}/config ; then
4089case "${host}" in
ec11bdc6 4090 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
4091 host_makefile_frag="config/mh-djgpp"
4092 ;;
4093 *-cygwin*)
e33b51a6 4094
81ecdfbb
RW
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4096$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 4097echo a >cygwin-cat-check
1f53ca9a 4098if test `cat cygwin-cat-check` = a ; then
8ade07e9 4099 rm cygwin-cat-check
81ecdfbb
RW
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4101$as_echo "yes" >&6; }
e33b51a6 4102else
8ade07e9 4103 rm cygwin-cat-check
81ecdfbb
RW
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
d0ac1c44 4106 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
4107 Please either mount the build directory in binary mode or run the following
4108 commands before running any configure script:
4109set -o igncr
4110export SHELLOPTS
81ecdfbb 4111 " "$LINENO" 5
e33b51a6 4112fi
e33b51a6 4113
a0da8069
NN
4114 host_makefile_frag="config/mh-cygwin"
4115 ;;
8a1599ab 4116 *-mingw*)
84e7906e 4117 host_makefile_frag="config/mh-mingw"
2d1e8239 4118 ;;
ce6c656d
L
4119 alpha*-linux*)
4120 host_makefile_frag="config/mh-alpha-linux"
4121 ;;
3516a403 4122 hppa*-hp-hpux*)
da888c87
PB
4123 host_makefile_frag="config/mh-pa"
4124 ;;
4125 hppa*-*)
4126 host_makefile_frag="config/mh-pa"
4127 ;;
228cf97d 4128 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
e552509b 4129 host_makefile_frag="config/mh-darwin"
0df3d27f 4130 ;;
f6d183c0
PB
4131 powerpc-*-aix*)
4132 host_makefile_frag="config/mh-ppc-aix"
4133 ;;
4134 rs6000-*-aix*)
4135 host_makefile_frag="config/mh-ppc-aix"
4136 ;;
a0da8069
NN
4137esac
4138fi
4139
9e07f89d 4140if test "${build}" != "${host}" ; then
1576798e
PB
4141 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4142 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4143 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
228cf97d 4144 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
1576798e 4145 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
228cf97d 4146 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
1576798e 4147 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4148 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
228cf97d 4149 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
1576798e
PB
4150 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4151 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4152 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4153 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4154 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4155 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4156else
4157 AR_FOR_BUILD="\$(AR)"
4158 AS_FOR_BUILD="\$(AS)"
512b7dfb 4159 CC_FOR_BUILD="\$(CC)"
1576798e 4160 CXX_FOR_BUILD="\$(CXX)"
228cf97d 4161 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
1576798e 4162 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4163 GOC_FOR_BUILD="\$(GOC)"
228cf97d 4164 GDC_FOR_BUILD="\$(GDC)"
1576798e
PB
4165 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4166 LD_FOR_BUILD="\$(LD)"
4167 NM_FOR_BUILD="\$(NM)"
4168 RANLIB_FOR_BUILD="\$(RANLIB)"
4169 WINDRES_FOR_BUILD="\$(WINDRES)"
4170 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4171fi
4172
4173ac_ext=c
c6b750e1
DJ
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178if test -n "$ac_tool_prefix"; then
4179 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4180set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4183if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4184 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4185else
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
81ecdfbb 4194 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4196 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4198 break 2
4199 fi
4200done
81ecdfbb
RW
4201 done
4202IFS=$as_save_IFS
c6b750e1
DJ
4203
4204fi
4205fi
4206CC=$ac_cv_prog_CC
4207if test -n "$CC"; then
81ecdfbb
RW
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209$as_echo "$CC" >&6; }
c6b750e1 4210else
81ecdfbb
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
c6b750e1
DJ
4213fi
4214
81ecdfbb 4215
c6b750e1
DJ
4216fi
4217if test -z "$ac_cv_prog_CC"; then
4218 ac_ct_CC=$CC
6a9cf61e 4219 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4220set dummy gcc; ac_word=$2
81ecdfbb
RW
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4223if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4224 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4225else
4226 if test -n "$ac_ct_CC"; then
4227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4228else
4229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230for as_dir in $PATH
4231do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
81ecdfbb 4234 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4236 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4238 break 2
4239 fi
4240done
81ecdfbb
RW
4241 done
4242IFS=$as_save_IFS
c6b750e1
DJ
4243
4244fi
4245fi
4246ac_ct_CC=$ac_cv_prog_ac_ct_CC
4247if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4249$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4250else
81ecdfbb
RW
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252$as_echo "no" >&6; }
c6b750e1
DJ
4253fi
4254
81ecdfbb
RW
4255 if test "x$ac_ct_CC" = x; then
4256 CC=""
4257 else
4258 case $cross_compiling:$ac_tool_warned in
4259yes:)
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4262ac_tool_warned=yes ;;
4263esac
4264 CC=$ac_ct_CC
4265 fi
c6b750e1
DJ
4266else
4267 CC="$ac_cv_prog_CC"
4268fi
4269
4270if test -z "$CC"; then
81ecdfbb
RW
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4273set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4276if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4277 $as_echo_n "(cached) " >&6
9e07f89d
NN
4278else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281else
c6b750e1
DJ
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
81ecdfbb 4287 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4289 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4291 break 2
4292 fi
4293done
81ecdfbb
RW
4294 done
4295IFS=$as_save_IFS
c6b750e1 4296
9e07f89d
NN
4297fi
4298fi
c6b750e1 4299CC=$ac_cv_prog_CC
9e07f89d 4300if test -n "$CC"; then
81ecdfbb
RW
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302$as_echo "$CC" >&6; }
c6b750e1 4303else
81ecdfbb
RW
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305$as_echo "no" >&6; }
c6b750e1
DJ
4306fi
4307
c6b750e1 4308
81ecdfbb 4309 fi
c6b750e1 4310fi
9e07f89d
NN
4311if test -z "$CC"; then
4312 # Extract the first word of "cc", so it can be a program name with args.
4313set dummy cc; ac_word=$2
81ecdfbb
RW
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4316if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4317 $as_echo_n "(cached) " >&6
9e07f89d
NN
4318else
4319 if test -n "$CC"; then
4320 ac_cv_prog_CC="$CC" # Let the user override the test.
4321else
9e07f89d 4322 ac_prog_rejected=no
c6b750e1
DJ
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
81ecdfbb 4328 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4330 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4331 ac_prog_rejected=yes
4332 continue
4333 fi
4334 ac_cv_prog_CC="cc"
81ecdfbb 4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4336 break 2
4337 fi
4338done
81ecdfbb
RW
4339 done
4340IFS=$as_save_IFS
c6b750e1 4341
9e07f89d
NN
4342if test $ac_prog_rejected = yes; then
4343 # We found a bogon in the path, so make sure we never use it.
4344 set dummy $ac_cv_prog_CC
4345 shift
c6b750e1 4346 if test $# != 0; then
9e07f89d
NN
4347 # We chose a different compiler from the bogus one.
4348 # However, it has the same basename, so the bogon will be chosen
4349 # first if we set CC to just the basename; use the full file name.
4350 shift
c6b750e1 4351 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4352 fi
4353fi
4354fi
4355fi
c6b750e1 4356CC=$ac_cv_prog_CC
9e07f89d 4357if test -n "$CC"; then
81ecdfbb
RW
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4359$as_echo "$CC" >&6; }
9e07f89d 4360else
81ecdfbb
RW
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362$as_echo "no" >&6; }
9e07f89d
NN
4363fi
4364
81ecdfbb 4365
c6b750e1
DJ
4366fi
4367if test -z "$CC"; then
4368 if test -n "$ac_tool_prefix"; then
81ecdfbb 4369 for ac_prog in cl.exe
c6b750e1
DJ
4370 do
4371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4372set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4375if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4376 $as_echo_n "(cached) " >&6
9e07f89d
NN
4377else
4378 if test -n "$CC"; then
4379 ac_cv_prog_CC="$CC" # Let the user override the test.
4380else
c6b750e1
DJ
4381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH
4383do
4384 IFS=$as_save_IFS
4385 test -z "$as_dir" && as_dir=.
81ecdfbb 4386 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4388 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4390 break 2
376a0e54 4391 fi
c6b750e1 4392done
81ecdfbb
RW
4393 done
4394IFS=$as_save_IFS
cac3d6c4 4395
c6b750e1
DJ
4396fi
4397fi
4398CC=$ac_cv_prog_CC
4399if test -n "$CC"; then
81ecdfbb
RW
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4401$as_echo "$CC" >&6; }
cac3d6c4 4402else
81ecdfbb
RW
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
9e07f89d 4405fi
cac3d6c4 4406
81ecdfbb 4407
c6b750e1
DJ
4408 test -n "$CC" && break
4409 done
cac3d6c4 4410fi
c6b750e1
DJ
4411if test -z "$CC"; then
4412 ac_ct_CC=$CC
81ecdfbb 4413 for ac_prog in cl.exe
c6b750e1
DJ
4414do
4415 # Extract the first word of "$ac_prog", so it can be a program name with args.
4416set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4419if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4420 $as_echo_n "(cached) " >&6
cac3d6c4 4421else
c6b750e1
DJ
4422 if test -n "$ac_ct_CC"; then
4423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4424else
c6b750e1
DJ
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428 IFS=$as_save_IFS
4429 test -z "$as_dir" && as_dir=.
81ecdfbb 4430 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4432 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4434 break 2
4435 fi
4436done
81ecdfbb
RW
4437 done
4438IFS=$as_save_IFS
c6b750e1 4439
cac3d6c4
CM
4440fi
4441fi
c6b750e1
DJ
4442ac_ct_CC=$ac_cv_prog_ac_ct_CC
4443if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4445$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4446else
81ecdfbb
RW
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
cac3d6c4 4449fi
376a0e54 4450
81ecdfbb 4451
c6b750e1
DJ
4452 test -n "$ac_ct_CC" && break
4453done
4454
81ecdfbb
RW
4455 if test "x$ac_ct_CC" = x; then
4456 CC=""
4457 else
4458 case $cross_compiling:$ac_tool_warned in
4459yes:)
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4462ac_tool_warned=yes ;;
4463esac
4464 CC=$ac_ct_CC
4465 fi
c6b750e1
DJ
4466fi
4467
4468fi
4469
4470
81ecdfbb
RW
4471test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4473as_fn_error $? "no acceptable C compiler found in \$PATH
4474See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4475
4476# Provide some information about the compiler.
81ecdfbb
RW
4477$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4478set X $ac_compile
4479ac_compiler=$2
4480for ac_option in --version -v -V -qversion; do
4481 { { ac_try="$ac_compiler $ac_option >&5"
4482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485esac
4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487$as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4489 ac_status=$?
81ecdfbb
RW
4490 if test -s conftest.err; then
4491 sed '10a\
4492... rest of stderr output deleted ...
4493 10q' conftest.err >conftest.er1
4494 cat conftest.er1 >&5
81ecdfbb 4495 fi
d0ac1c44 4496 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4499done
c6b750e1 4500
81ecdfbb 4501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4502/* end confdefs.h. */
4503
4504int
4505main ()
4506{
4507
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512ac_clean_files_save=$ac_clean_files
d0ac1c44 4513ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4514# Try to create an executable without -o first, disregard a.out.
4515# It will help us diagnose broken compilers, and finding out an intuition
4516# of exeext.
d0ac1c44
SM
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4518$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4519ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4520
4521# The possible output files:
4522ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4523
4524ac_rmfiles=
4525for ac_file in $ac_files
4526do
4527 case $ac_file in
4528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4529 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4530 esac
4531done
4532rm -f $ac_rmfiles
4533
4534if { { ac_try="$ac_link_default"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540$as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_link_default") 2>&5
c6b750e1 4542 ac_status=$?
81ecdfbb
RW
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; then :
4545 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4546# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4547# in a Makefile. We should not override ac_cv_exeext if it was cached,
4548# so that the user can short-circuit this test for compilers unknown to
4549# Autoconf.
4550for ac_file in $ac_files ''
c6b750e1
DJ
4551do
4552 test -f "$ac_file" || continue
4553 case $ac_file in
81ecdfbb 4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4555 ;;
4556 [ab].out )
4557 # We found the default executable, but exeext='' is most
4558 # certainly right.
4559 break;;
4560 *.* )
81ecdfbb
RW
4561 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4562 then :; else
4563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4564 fi
4565 # We set ac_cv_exeext here because the later test for it is not
4566 # safe: cross compilers may not add the suffix if given an `-o'
4567 # argument, so we may need to know it at that point already.
4568 # Even if this section looks crufty: it has the advantage of
4569 # actually working.
c6b750e1
DJ
4570 break;;
4571 * )
4572 break;;
4573 esac
4574done
81ecdfbb
RW
4575test "$ac_cv_exeext" = no && ac_cv_exeext=
4576
c6b750e1 4577else
81ecdfbb
RW
4578 ac_file=''
4579fi
81ecdfbb 4580if test -z "$ac_file"; then :
d0ac1c44
SM
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582$as_echo "no" >&6; }
4583$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
81ecdfbb
RW
4586{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4588as_fn_error 77 "C compiler cannot create executables
4589See \`config.log' for more details" "$LINENO" 5; }
4590else
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4592$as_echo "yes" >&6; }
c6b750e1 4593fi
d0ac1c44
SM
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4595$as_echo_n "checking for C compiler default output file name... " >&6; }
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4597$as_echo "$ac_file" >&6; }
c6b750e1 4598ac_exeext=$ac_cv_exeext
c6b750e1 4599
d0ac1c44 4600rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4601ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4603$as_echo_n "checking for suffix of executables... " >&6; }
4604if { { ac_try="$ac_link"
4605case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
4609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4610$as_echo "$ac_try_echo"; } >&5
4611 (eval "$ac_link") 2>&5
c6b750e1 4612 ac_status=$?
81ecdfbb
RW
4613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4614 test $ac_status = 0; }; then :
c6b750e1
DJ
4615 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4616# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4617# work properly (i.e., refer to `conftest.exe'), while it won't with
4618# `rm'.
4619for ac_file in conftest.exe conftest conftest.*; do
4620 test -f "$ac_file" || continue
4621 case $ac_file in
81ecdfbb 4622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4623 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4624 break;;
4625 * ) break;;
4626 esac
4627done
4628else
81ecdfbb
RW
4629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4631as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4632See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4633fi
d0ac1c44 4634rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4636$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4637
4638rm -f conftest.$ac_ext
4639EXEEXT=$ac_cv_exeext
4640ac_exeext=$EXEEXT
d0ac1c44
SM
4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h. */
4643#include <stdio.h>
4644int
4645main ()
4646{
4647FILE *f = fopen ("conftest.out", "w");
4648 return ferror (f) || fclose (f) != 0;
4649
4650 ;
4651 return 0;
4652}
4653_ACEOF
4654ac_clean_files="$ac_clean_files conftest.out"
4655# Check that the compiler produces executables we can run. If not, either
4656# the compiler is broken, or we cross compile.
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4658$as_echo_n "checking whether we are cross compiling... " >&6; }
4659if test "$cross_compiling" != yes; then
4660 { { ac_try="$ac_link"
4661case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664esac
4665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4666$as_echo "$ac_try_echo"; } >&5
4667 (eval "$ac_link") 2>&5
4668 ac_status=$?
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4671 if { ac_try='./conftest$ac_cv_exeext'
4672 { { case "(($ac_try" in
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4675esac
4676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4677$as_echo "$ac_try_echo"; } >&5
4678 (eval "$ac_try") 2>&5
4679 ac_status=$?
4680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4681 test $ac_status = 0; }; }; then
4682 cross_compiling=no
4683 else
4684 if test "$cross_compiling" = maybe; then
4685 cross_compiling=yes
4686 else
4687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4689as_fn_error $? "cannot run C compiled programs.
4690If you meant to cross compile, use \`--host'.
4691See \`config.log' for more details" "$LINENO" 5; }
4692 fi
4693 fi
4694fi
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4696$as_echo "$cross_compiling" >&6; }
4697
4698rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4699ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4701$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4702if ${ac_cv_objext+:} false; then :
81ecdfbb 4703 $as_echo_n "(cached) " >&6
c6b750e1 4704else
81ecdfbb 4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4706/* end confdefs.h. */
4707
4708int
4709main ()
4710{
4711
4712 ;
4713 return 0;
4714}
4715_ACEOF
4716rm -f conftest.o conftest.obj
81ecdfbb
RW
4717if { { ac_try="$ac_compile"
4718case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723$as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_compile") 2>&5
c6b750e1 4725 ac_status=$?
81ecdfbb
RW
4726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727 test $ac_status = 0; }; then :
4728 for ac_file in conftest.o conftest.obj conftest.*; do
4729 test -f "$ac_file" || continue;
c6b750e1 4730 case $ac_file in
81ecdfbb 4731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4732 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4733 break;;
4734 esac
4735done
cac3d6c4 4736else
81ecdfbb 4737 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4738sed 's/^/| /' conftest.$ac_ext >&5
4739
81ecdfbb
RW
4740{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4742as_fn_error $? "cannot compute suffix of object files: cannot compile
4743See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4744fi
c6b750e1
DJ
4745rm -f conftest.$ac_cv_objext conftest.$ac_ext
4746fi
81ecdfbb
RW
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4748$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4749OBJEXT=$ac_cv_objext
4750ac_objext=$OBJEXT
81ecdfbb
RW
4751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4752$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4753if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4754 $as_echo_n "(cached) " >&6
c6b750e1 4755else
81ecdfbb 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4757/* end confdefs.h. */
4758
4759int
4760main ()
4761{
4762#ifndef __GNUC__
4763 choke me
4764#endif
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
81ecdfbb 4770if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4771 ac_compiler_gnu=yes
4772else
81ecdfbb 4773 ac_compiler_gnu=no
c6b750e1 4774fi
81ecdfbb 4775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4776ac_cv_c_compiler_gnu=$ac_compiler_gnu
4777
4778fi
81ecdfbb
RW
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4780$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4781if test $ac_compiler_gnu = yes; then
4782 GCC=yes
4783else
4784 GCC=
4785fi
c6b750e1
DJ
4786ac_test_CFLAGS=${CFLAGS+set}
4787ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4789$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4790if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4791 $as_echo_n "(cached) " >&6
4792else
4793 ac_save_c_werror_flag=$ac_c_werror_flag
4794 ac_c_werror_flag=yes
4795 ac_cv_prog_cc_g=no
4796 CFLAGS="-g"
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4798/* end confdefs.h. */
4799
4800int
4801main ()
4802{
4803
4804 ;
4805 return 0;
4806}
4807_ACEOF
81ecdfbb 4808if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4809 ac_cv_prog_cc_g=yes
4810else
81ecdfbb
RW
4811 CFLAGS=""
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813/* end confdefs.h. */
4814
4815int
4816main ()
4817{
4818
4819 ;
4820 return 0;
4821}
4822_ACEOF
4823if ac_fn_c_try_compile "$LINENO"; then :
4824
4825else
4826 ac_c_werror_flag=$ac_save_c_werror_flag
4827 CFLAGS="-g"
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829/* end confdefs.h. */
cac3d6c4 4830
81ecdfbb
RW
4831int
4832main ()
4833{
4834
4835 ;
4836 return 0;
4837}
4838_ACEOF
4839if ac_fn_c_try_compile "$LINENO"; then :
4840 ac_cv_prog_cc_g=yes
4841fi
4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4843fi
81ecdfbb 4844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4845fi
81ecdfbb
RW
4846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 ac_c_werror_flag=$ac_save_c_werror_flag
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4850$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4851if test "$ac_test_CFLAGS" = set; then
c6b750e1 4852 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4853elif test $ac_cv_prog_cc_g = yes; then
4854 if test "$GCC" = yes; then
4855 CFLAGS="-g -O2"
4856 else
4857 CFLAGS="-g"
4858 fi
4859else
4860 if test "$GCC" = yes; then
4861 CFLAGS="-O2"
4862 else
4863 CFLAGS=
4864 fi
4865fi
81ecdfbb
RW
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4867$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4868if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4869 $as_echo_n "(cached) " >&6
c6b750e1 4870else
81ecdfbb 4871 ac_cv_prog_cc_c89=no
c6b750e1 4872ac_save_CC=$CC
81ecdfbb 4873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4874/* end confdefs.h. */
4875#include <stdarg.h>
4876#include <stdio.h>
d0ac1c44 4877struct stat;
c6b750e1
DJ
4878/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4879struct buf { int x; };
4880FILE * (*rcsopen) (struct buf *, struct stat *, int);
4881static char *e (p, i)
4882 char **p;
4883 int i;
4884{
4885 return p[i];
4886}
4887static char *f (char * (*g) (char **, int), char **p, ...)
4888{
4889 char *s;
4890 va_list v;
4891 va_start (v,p);
4892 s = g (p, va_arg (v,int));
4893 va_end (v);
4894 return s;
4895}
4896
4897/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4898 function prototypes and stuff, but not '\xHH' hex character constants.
4899 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4900 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4901 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4902 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4903 that's true only with -std. */
c6b750e1
DJ
4904int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4905
81ecdfbb
RW
4906/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4907 inside strings and character constants. */
4908#define FOO(x) 'x'
4909int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4910
c6b750e1
DJ
4911int test (int i, double x);
4912struct s1 {int (*f) (int a);};
4913struct s2 {int (*f) (double a);};
4914int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4915int argc;
4916char **argv;
4917int
4918main ()
4919{
4920return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4921 ;
4922 return 0;
4923}
4924_ACEOF
81ecdfbb
RW
4925for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4926 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4927do
4928 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4931fi
81ecdfbb
RW
4932rm -f core conftest.err conftest.$ac_objext
4933 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4934done
81ecdfbb 4935rm -f conftest.$ac_ext
c6b750e1
DJ
4936CC=$ac_save_CC
4937
4938fi
81ecdfbb
RW
4939# AC_CACHE_VAL
4940case "x$ac_cv_prog_cc_c89" in
4941 x)
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4943$as_echo "none needed" >&6; } ;;
4944 xno)
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4946$as_echo "unsupported" >&6; } ;;
c6b750e1 4947 *)
81ecdfbb
RW
4948 CC="$CC $ac_cv_prog_cc_c89"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4950$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4951esac
81ecdfbb 4952if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4953
c6b750e1
DJ
4954fi
4955
c6b750e1
DJ
4956ac_ext=c
4957ac_cpp='$CPP $CPPFLAGS'
4958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4961
a8d6316b
NC
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4963$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4964if ${ac_cv_prog_cc_c99+:} false; then :
4965 $as_echo_n "(cached) " >&6
4966else
4967 ac_cv_prog_cc_c99=no
4968ac_save_CC=$CC
4969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h. */
4971#include <stdarg.h>
4972#include <stdbool.h>
4973#include <stdlib.h>
4974#include <wchar.h>
4975#include <stdio.h>
4976
4977// Check varargs macros. These examples are taken from C99 6.10.3.5.
4978#define debug(...) fprintf (stderr, __VA_ARGS__)
4979#define showlist(...) puts (#__VA_ARGS__)
4980#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4981static void
4982test_varargs_macros (void)
4983{
4984 int x = 1234;
4985 int y = 5678;
4986 debug ("Flag");
4987 debug ("X = %d\n", x);
4988 showlist (The first, second, and third items.);
4989 report (x>y, "x is %d but y is %d", x, y);
4990}
4991
4992// Check long long types.
4993#define BIG64 18446744073709551615ull
4994#define BIG32 4294967295ul
4995#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4996#if !BIG_OK
4997 your preprocessor is broken;
4998#endif
4999#if BIG_OK
5000#else
5001 your preprocessor is broken;
5002#endif
5003static long long int bignum = -9223372036854775807LL;
5004static unsigned long long int ubignum = BIG64;
5005
5006struct incomplete_array
5007{
5008 int datasize;
5009 double data[];
5010};
5011
5012struct named_init {
5013 int number;
5014 const wchar_t *name;
5015 double average;
5016};
5017
5018typedef const char *ccp;
5019
5020static inline int
5021test_restrict (ccp restrict text)
5022{
5023 // See if C++-style comments work.
5024 // Iterate through items via the restricted pointer.
5025 // Also check for declarations in for loops.
5026 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5027 continue;
5028 return 0;
5029}
5030
5031// Check varargs and va_copy.
5032static void
5033test_varargs (const char *format, ...)
5034{
5035 va_list args;
5036 va_start (args, format);
5037 va_list args_copy;
5038 va_copy (args_copy, args);
5039
5040 const char *str;
5041 int number;
5042 float fnumber;
5043
5044 while (*format)
5045 {
5046 switch (*format++)
5047 {
5048 case 's': // string
5049 str = va_arg (args_copy, const char *);
5050 break;
5051 case 'd': // int
5052 number = va_arg (args_copy, int);
5053 break;
5054 case 'f': // float
5055 fnumber = va_arg (args_copy, double);
5056 break;
5057 default:
5058 break;
5059 }
5060 }
5061 va_end (args_copy);
5062 va_end (args);
5063}
5064
5065int
5066main ()
5067{
5068
5069 // Check bool.
5070 _Bool success = false;
5071
5072 // Check restrict.
5073 if (test_restrict ("String literal") == 0)
5074 success = true;
5075 char *restrict newvar = "Another string";
5076
5077 // Check varargs.
5078 test_varargs ("s, d' f .", "string", 65, 34.234);
5079 test_varargs_macros ();
5080
5081 // Check flexible array members.
5082 struct incomplete_array *ia =
5083 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5084 ia->datasize = 10;
5085 for (int i = 0; i < ia->datasize; ++i)
5086 ia->data[i] = i * 1.234;
5087
5088 // Check named initializers.
5089 struct named_init ni = {
5090 .number = 34,
5091 .name = L"Test wide string",
5092 .average = 543.34343,
5093 };
5094
5095 ni.number = 58;
5096
5097 int dynamic_array[ni.number];
5098 dynamic_array[ni.number - 1] = 543;
5099
5100 // work around unused variable warnings
5101 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5102 || dynamic_array[ni.number - 1] != 543);
5103
5104 ;
5105 return 0;
5106}
5107_ACEOF
5108for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5109do
5110 CC="$ac_save_CC $ac_arg"
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_prog_cc_c99=$ac_arg
5113fi
5114rm -f core conftest.err conftest.$ac_objext
5115 test "x$ac_cv_prog_cc_c99" != "xno" && break
5116done
5117rm -f conftest.$ac_ext
5118CC=$ac_save_CC
5119
5120fi
5121# AC_CACHE_VAL
5122case "x$ac_cv_prog_cc_c99" in
5123 x)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5125$as_echo "none needed" >&6; } ;;
5126 xno)
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5128$as_echo "unsupported" >&6; } ;;
5129 *)
5130 CC="$CC $ac_cv_prog_cc_c99"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5132$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5133esac
5134if test "x$ac_cv_prog_cc_c99" != xno; then :
5135
5136fi
5137
5138
81ecdfbb 5139ac_ext=cpp
18f6b6ee
PB
5140ac_cpp='$CXXCPP $CPPFLAGS'
5141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
5144if test -z "$CXX"; then
5145 if test -n "$CCC"; then
5146 CXX=$CCC
5147 else
5148 if test -n "$ac_tool_prefix"; then
5149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5150 do
5151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5155if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5156 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5157else
5158 if test -n "$CXX"; then
5159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
81ecdfbb 5166 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5170 break 2
5171 fi
5172done
81ecdfbb
RW
5173 done
5174IFS=$as_save_IFS
512b7dfb 5175
18f6b6ee
PB
5176fi
5177fi
5178CXX=$ac_cv_prog_CXX
5179if test -n "$CXX"; then
81ecdfbb
RW
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5181$as_echo "$CXX" >&6; }
18f6b6ee 5182else
81ecdfbb
RW
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184$as_echo "no" >&6; }
18f6b6ee
PB
5185fi
5186
81ecdfbb 5187
18f6b6ee
PB
5188 test -n "$CXX" && break
5189 done
5190fi
5191if test -z "$CXX"; then
5192 ac_ct_CXX=$CXX
81ecdfbb 5193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5194do
5195 # Extract the first word of "$ac_prog", so it can be a program name with args.
5196set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5199if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5200 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5201else
5202 if test -n "$ac_ct_CXX"; then
5203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5204else
5205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206for as_dir in $PATH
5207do
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
81ecdfbb 5210 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5212 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5214 break 2
512b7dfb 5215 fi
18f6b6ee 5216done
81ecdfbb
RW
5217 done
5218IFS=$as_save_IFS
512b7dfb 5219
18f6b6ee
PB
5220fi
5221fi
5222ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5223if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5225$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5226else
81ecdfbb
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5228$as_echo "no" >&6; }
18f6b6ee
PB
5229fi
5230
81ecdfbb 5231
18f6b6ee
PB
5232 test -n "$ac_ct_CXX" && break
5233done
18f6b6ee 5234
81ecdfbb
RW
5235 if test "x$ac_ct_CXX" = x; then
5236 CXX="g++"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239yes:)
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5242ac_tool_warned=yes ;;
5243esac
5244 CXX=$ac_ct_CXX
5245 fi
18f6b6ee
PB
5246fi
5247
81ecdfbb
RW
5248 fi
5249fi
18f6b6ee 5250# Provide some information about the compiler.
81ecdfbb
RW
5251$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5252set X $ac_compile
5253ac_compiler=$2
5254for ac_option in --version -v -V -qversion; do
5255 { { ac_try="$ac_compiler $ac_option >&5"
5256case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
5260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5261$as_echo "$ac_try_echo"; } >&5
5262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5263 ac_status=$?
81ecdfbb
RW
5264 if test -s conftest.err; then
5265 sed '10a\
5266... rest of stderr output deleted ...
5267 10q' conftest.err >conftest.er1
5268 cat conftest.er1 >&5
81ecdfbb 5269 fi
d0ac1c44 5270 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5272 test $ac_status = 0; }
5273done
18f6b6ee 5274
81ecdfbb
RW
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5276$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5277if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5278 $as_echo_n "(cached) " >&6
18f6b6ee 5279else
81ecdfbb 5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5281/* end confdefs.h. */
5282
5283int
5284main ()
5285{
5286#ifndef __GNUC__
5287 choke me
5288#endif
5289
5290 ;
5291 return 0;
5292}
5293_ACEOF
81ecdfbb 5294if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5295 ac_compiler_gnu=yes
5296else
81ecdfbb 5297 ac_compiler_gnu=no
18f6b6ee 5298fi
81ecdfbb 5299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5300ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5301
5302fi
81ecdfbb
RW
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5304$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5305if test $ac_compiler_gnu = yes; then
5306 GXX=yes
5307else
5308 GXX=
5309fi
18f6b6ee
PB
5310ac_test_CXXFLAGS=${CXXFLAGS+set}
5311ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5313$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5314if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5315 $as_echo_n "(cached) " >&6
5316else
5317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5318 ac_cxx_werror_flag=yes
5319 ac_cv_prog_cxx_g=no
5320 CXXFLAGS="-g"
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5322/* end confdefs.h. */
5323
5324int
5325main ()
5326{
5327
5328 ;
5329 return 0;
5330}
5331_ACEOF
81ecdfbb 5332if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5333 ac_cv_prog_cxx_g=yes
5334else
81ecdfbb
RW
5335 CXXFLAGS=""
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5337/* end confdefs.h. */
81ecdfbb 5338
18f6b6ee
PB
5339int
5340main ()
5341{
81ecdfbb 5342
18f6b6ee
PB
5343 ;
5344 return 0;
5345}
5346_ACEOF
81ecdfbb 5347if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5348
81ecdfbb
RW
5349else
5350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5351 CXXFLAGS="-g"
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5353/* end confdefs.h. */
81ecdfbb 5354
18f6b6ee
PB
5355int
5356main ()
5357{
81ecdfbb 5358
18f6b6ee
PB
5359 ;
5360 return 0;
5361}
5362_ACEOF
81ecdfbb
RW
5363if ac_fn_cxx_try_compile "$LINENO"; then :
5364 ac_cv_prog_cxx_g=yes
18f6b6ee 5365fi
81ecdfbb
RW
5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367fi
5368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369fi
5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5374$as_echo "$ac_cv_prog_cxx_g" >&6; }
5375if test "$ac_test_CXXFLAGS" = set; then
5376 CXXFLAGS=$ac_save_CXXFLAGS
5377elif test $ac_cv_prog_cxx_g = yes; then
5378 if test "$GXX" = yes; then
5379 CXXFLAGS="-g -O2"
5380 else
5381 CXXFLAGS="-g"
5382 fi
5383else
5384 if test "$GXX" = yes; then
5385 CXXFLAGS="-O2"
5386 else
5387 CXXFLAGS=
5388 fi
18f6b6ee 5389fi
18f6b6ee
PB
5390ac_ext=c
5391ac_cpp='$CPP $CPPFLAGS'
5392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5394ac_compiler_gnu=$ac_cv_c_compiler_gnu
5395
5396
5397# We must set the default linker to the linker used by gcc for the correct
5398# operation of libtool. If LD is not defined and we are using gcc, try to
5399# set the LD default to the ld used by gcc.
5400if test -z "$LD"; then
5401 if test "$GCC" = yes; then
5402 case $build in
5403 *-*-mingw*)
5404 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5405 *)
5406 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5407 esac
5408 case $gcc_prog_ld in
5409 # Accept absolute paths.
5410 [\\/]* | [A-Za-z]:[\\/]*)
5411 LD="$gcc_prog_ld" ;;
5412 esac
5413 fi
512b7dfb
PB
5414fi
5415
b3676d82
EB
5416# Check whether -static-libstdc++ -static-libgcc is supported.
5417have_static_libs=no
5418if test "$GCC" = yes; then
5419 saved_LDFLAGS="$LDFLAGS"
5420
5421 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5423$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5424 ac_ext=cpp
5425ac_cpp='$CXXCPP $CPPFLAGS'
5426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5429
5430
5431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h. */
a882be68
EB
5433
5434#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5435#error -static-libstdc++ not implemented
5436#endif
b3676d82
EB
5437int main() {}
5438_ACEOF
5439if ac_fn_cxx_try_link "$LINENO"; then :
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5441$as_echo "yes" >&6; }; have_static_libs=yes
5442else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }
5445fi
5446rm -f core conftest.err conftest.$ac_objext \
5447 conftest$ac_exeext conftest.$ac_ext
5448 ac_ext=c
5449ac_cpp='$CPP $CPPFLAGS'
5450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453
5454
5455 LDFLAGS="$saved_LDFLAGS"
5456fi
5457
512b7dfb
PB
5458
5459
5460
c6b750e1 5461if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5462 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5463set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5466if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5467 $as_echo_n "(cached) " >&6
9e07f89d 5468else
512b7dfb
PB
5469 if test -n "$GNATBIND"; then
5470 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5471else
c6b750e1
DJ
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
81ecdfbb 5477 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5479 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5481 break 2
5482 fi
5483done
81ecdfbb
RW
5484 done
5485IFS=$as_save_IFS
c6b750e1 5486
9e07f89d
NN
5487fi
5488fi
512b7dfb
PB
5489GNATBIND=$ac_cv_prog_GNATBIND
5490if test -n "$GNATBIND"; then
81ecdfbb
RW
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5492$as_echo "$GNATBIND" >&6; }
9e07f89d 5493else
81ecdfbb
RW
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
9e07f89d
NN
5496fi
5497
81ecdfbb 5498
c6b750e1 5499fi
512b7dfb
PB
5500if test -z "$ac_cv_prog_GNATBIND"; then
5501 ac_ct_GNATBIND=$GNATBIND
5502 # Extract the first word of "gnatbind", so it can be a program name with args.
5503set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5506if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5507 $as_echo_n "(cached) " >&6
9e07f89d 5508else
512b7dfb
PB
5509 if test -n "$ac_ct_GNATBIND"; then
5510 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5511else
c6b750e1
DJ
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
81ecdfbb 5517 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5519 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5521 break 2
5522 fi
5523done
81ecdfbb
RW
5524 done
5525IFS=$as_save_IFS
c6b750e1 5526
9e07f89d
NN
5527fi
5528fi
512b7dfb
PB
5529ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5530if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5532$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5533else
81ecdfbb
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
9e07f89d
NN
5536fi
5537
81ecdfbb
RW
5538 if test "x$ac_ct_GNATBIND" = x; then
5539 GNATBIND="no"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545ac_tool_warned=yes ;;
5546esac
5547 GNATBIND=$ac_ct_GNATBIND
5548 fi
24ff9987 5549else
512b7dfb 5550 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5551fi
5552
7df2cd5d 5553if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5554 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5555set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5558if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5559 $as_echo_n "(cached) " >&6
7df2cd5d 5560else
512b7dfb
PB
5561 if test -n "$GNATMAKE"; then
5562 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
81ecdfbb 5569 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5571 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5573 break 2
5574 fi
5575done
81ecdfbb
RW
5576 done
5577IFS=$as_save_IFS
7df2cd5d
PB
5578
5579fi
5580fi
512b7dfb
PB
5581GNATMAKE=$ac_cv_prog_GNATMAKE
5582if test -n "$GNATMAKE"; then
81ecdfbb
RW
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5584$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5585else
81ecdfbb
RW
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
7df2cd5d
PB
5588fi
5589
81ecdfbb 5590
7df2cd5d 5591fi
512b7dfb
PB
5592if test -z "$ac_cv_prog_GNATMAKE"; then
5593 ac_ct_GNATMAKE=$GNATMAKE
5594 # Extract the first word of "gnatmake", so it can be a program name with args.
5595set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5598if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5599 $as_echo_n "(cached) " >&6
7df2cd5d 5600else
512b7dfb
PB
5601 if test -n "$ac_ct_GNATMAKE"; then
5602 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
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=.
81ecdfbb 5609 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5611 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5613 break 2
5614 fi
5615done
81ecdfbb
RW
5616 done
5617IFS=$as_save_IFS
7df2cd5d 5618
7df2cd5d
PB
5619fi
5620fi
512b7dfb
PB
5621ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5622if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5624$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5625else
81ecdfbb
RW
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
7df2cd5d
PB
5628fi
5629
81ecdfbb
RW
5630 if test "x$ac_ct_GNATMAKE" = x; then
5631 GNATMAKE="no"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634yes:)
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639 GNATMAKE=$ac_ct_GNATMAKE
5640 fi
7df2cd5d 5641else
512b7dfb 5642 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5643fi
5644
b95bb526
AM
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5646$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
d0ac1c44 5647if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5648 $as_echo_n "(cached) " >&6
9e07f89d
NN
5649else
5650 cat >conftest.adb <<EOF
b95bb526
AM
5651pragma Warnings (Off);
5652with System.CRTL;
5653pragma Warnings (On);
5654use type System.CRTL.int64;
9e07f89d
NN
5655procedure conftest is begin null; end conftest;
5656EOF
5657acx_cv_cc_gcc_supports_ada=no
5658# There is a bug in old released versions of GCC which causes the
5659# driver to exit successfully when the appropriate language module
5660# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5661# Therefore we must check for the error message as well as an
5662# unsuccessful exit.
b8908782
DD
5663# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5664# given a .adb file, but produce no object file. So we must check
5665# if an object file was really produced to guard against this.
9e07f89d 5666errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5667if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5668 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5669fi
5670rm -f conftest.*
5671fi
81ecdfbb
RW
5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5673$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5674
64b986c0 5675if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5676 have_gnat=yes
5677else
5678 have_gnat=no
5679fi
5680
b95bb526
AM
5681
5682
5683if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5685set dummy ${ac_tool_prefix}gdc; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if ${ac_cv_prog_GDC+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 if test -n "$GDC"; then
5692 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706 done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711GDC=$ac_cv_prog_GDC
5712if test -n "$GDC"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5714$as_echo "$GDC" >&6; }
5715else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720
5721fi
5722if test -z "$ac_cv_prog_GDC"; then
5723 ac_ct_GDC=$GDC
5724 # Extract the first word of "gdc", so it can be a program name with args.
5725set dummy gdc; ac_word=$2
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727$as_echo_n "checking for $ac_word... " >&6; }
5728if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730else
5731 if test -n "$ac_ct_GDC"; then
5732 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_ac_ct_GDC="gdc"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745done
5746 done
5747IFS=$as_save_IFS
5748
5749fi
5750fi
5751ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5752if test -n "$ac_ct_GDC"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5754$as_echo "$ac_ct_GDC" >&6; }
5755else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
5758fi
5759
5760 if test "x$ac_ct_GDC" = x; then
5761 GDC="no"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764yes:)
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5767ac_tool_warned=yes ;;
5768esac
5769 GDC=$ac_ct_GDC
5770 fi
5771else
5772 GDC="$ac_cv_prog_GDC"
5773fi
5774
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5776$as_echo_n "checking whether the D compiler works... " >&6; }
5777if ${acx_cv_d_compiler_works+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779else
5780 cat >conftest.d <<EOF
5781module conftest; int main() { return 0; }
5782EOF
5783acx_cv_d_compiler_works=no
5784if test "x$GDC" != xno; then
5785 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5786 if test x"$errors" = x && test -f conftest.$ac_objext; then
5787 acx_cv_d_compiler_works=yes
5788 fi
5789 rm -f conftest.*
5790fi
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5793$as_echo "$acx_cv_d_compiler_works" >&6; }
5794if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5795 have_gdc=yes
5796else
5797 have_gdc=no
5798fi
5799
81ecdfbb
RW
5800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5801$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5802if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5803 $as_echo_n "(cached) " >&6
b8908782
DD
5804else
5805 echo abfoo >t1
5806 echo cdfoo >t2
da17fe9d 5807 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5808 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5809 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5810 :
5811 else
5812 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5813 fi
5814 fi
b8908782
DD
5815 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5816 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5817 :
b8908782
DD
5818 else
5819 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5820 fi
5821 fi
5822 rm t1 t2
5823
5824fi
81ecdfbb
RW
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5826$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5827do_compare="$gcc_cv_prog_cmp_skip"
5828
5829
9e07f89d 5830
ffdd6afc
ILT
5831# Check whether --enable-bootstrap was given.
5832if test "${enable_bootstrap+set}" = set; then :
5833 enableval=$enable_bootstrap;
5834else
5835 enable_bootstrap=default
5836fi
5837
5838
5839# Issue errors and warnings for invalid/strange bootstrap combinations.
5840if test -r $srcdir/gcc/configure; then
5841 have_compiler=yes
5842else
5843 have_compiler=no
5844fi
5845
5846case "$have_compiler:$host:$target:$enable_bootstrap" in
5847 *:*:*:no) ;;
5848
5849 # Default behavior. Enable bootstrap if we have a compiler
5850 # and we are in a native configuration.
5851 yes:$build:$build:default)
5852 enable_bootstrap=yes ;;
5853
5854 *:*:*:default)
5855 enable_bootstrap=no ;;
5856
5857 # We have a compiler and we are in a native configuration, bootstrap is ok
5858 yes:$build:$build:yes)
5859 ;;
5860
5861 # Other configurations, but we have a compiler. Assume the user knows
5862 # what he's doing.
5863 yes:*:*:yes)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5865$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5866 ;;
5867
5868 # No compiler: if they passed --enable-bootstrap explicitly, fail
5869 no:*:*:yes)
d0ac1c44 5870 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5871
5872 # Fail if wrong command line
5873 *)
d0ac1c44 5874 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5875 ;;
5876esac
5877
228cf97d
AM
5878# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5879# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5880# require C++11 (or higher).
ce6c656d 5881if test "$enable_bootstrap:$GXX" = "yes:yes"; then
228cf97d
AM
5882 CXX="$CXX -std=c++11"
5883elif test "$have_compiler" = yes; then
5884 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5885 ac_ext=cpp
5886ac_cpp='$CXXCPP $CPPFLAGS'
5887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890 ac_success=no
ce6c656d 5891
228cf97d
AM
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5893$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5894if ${ax_cv_cxx_compile_cxx11+:} false; then :
5895 $as_echo_n "(cached) " >&6
af019bfd 5896else
228cf97d
AM
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898/* end confdefs.h. */
af019bfd
L
5899
5900
228cf97d
AM
5901// If the compiler admits that it is not ready for C++11, why torture it?
5902// Hopefully, this will speed up the test.
af019bfd 5903
228cf97d 5904#ifndef __cplusplus
af019bfd 5905
228cf97d 5906#error "This is not a C++ compiler"
af019bfd 5907
228cf97d 5908#elif __cplusplus < 201103L
af019bfd 5909
228cf97d 5910#error "This is not a C++11 compiler"
af019bfd 5911
228cf97d 5912#else
af019bfd 5913
228cf97d
AM
5914namespace cxx11
5915{
af019bfd 5916
228cf97d
AM
5917 namespace test_static_assert
5918 {
af019bfd 5919
228cf97d
AM
5920 template <typename T>
5921 struct check
5922 {
5923 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5924 };
af019bfd 5925
228cf97d 5926 }
af019bfd 5927
228cf97d
AM
5928 namespace test_final_override
5929 {
af019bfd 5930
228cf97d
AM
5931 struct Base
5932 {
5933 virtual ~Base() {}
5934 virtual void f() {}
5935 };
af019bfd 5936
228cf97d
AM
5937 struct Derived : public Base
5938 {
5939 virtual ~Derived() override {}
5940 virtual void f() override {}
5941 };
d5f2ee2e 5942
228cf97d 5943 }
d5f2ee2e 5944
228cf97d
AM
5945 namespace test_double_right_angle_brackets
5946 {
d5f2ee2e 5947
228cf97d
AM
5948 template < typename T >
5949 struct check {};
d5f2ee2e 5950
228cf97d
AM
5951 typedef check<void> single_type;
5952 typedef check<check<void>> double_type;
5953 typedef check<check<check<void>>> triple_type;
5954 typedef check<check<check<check<void>>>> quadruple_type;
d5f2ee2e 5955
228cf97d 5956 }
d5f2ee2e 5957
228cf97d
AM
5958 namespace test_decltype
5959 {
d5f2ee2e 5960
228cf97d
AM
5961 int
5962 f()
5963 {
5964 int a = 1;
5965 decltype(a) b = 2;
5966 return a + b;
5967 }
d5f2ee2e 5968
228cf97d 5969 }
e8a5fa9c 5970
228cf97d
AM
5971 namespace test_type_deduction
5972 {
e8a5fa9c 5973
228cf97d
AM
5974 template < typename T1, typename T2 >
5975 struct is_same
5976 {
5977 static const bool value = false;
5978 };
e8a5fa9c 5979
228cf97d
AM
5980 template < typename T >
5981 struct is_same<T, T>
5982 {
5983 static const bool value = true;
5984 };
e8a5fa9c 5985
228cf97d
AM
5986 template < typename T1, typename T2 >
5987 auto
5988 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5989 {
5990 return a1 + a2;
5991 }
e8a5fa9c 5992
228cf97d
AM
5993 int
5994 test(const int c, volatile int v)
5995 {
5996 static_assert(is_same<int, decltype(0)>::value == true, "");
5997 static_assert(is_same<int, decltype(c)>::value == false, "");
5998 static_assert(is_same<int, decltype(v)>::value == false, "");
5999 auto ac = c;
6000 auto av = v;
6001 auto sumi = ac + av + 'x';
6002 auto sumf = ac + av + 1.0;
6003 static_assert(is_same<int, decltype(ac)>::value == true, "");
6004 static_assert(is_same<int, decltype(av)>::value == true, "");
6005 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6006 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6007 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6008 return (sumf > 0.0) ? sumi : add(c, v);
6009 }
e8a5fa9c 6010
228cf97d 6011 }
e8a5fa9c 6012
228cf97d
AM
6013 namespace test_noexcept
6014 {
e8a5fa9c 6015
228cf97d
AM
6016 int f() { return 0; }
6017 int g() noexcept { return 0; }
4b900473 6018
228cf97d
AM
6019 static_assert(noexcept(f()) == false, "");
6020 static_assert(noexcept(g()) == true, "");
c6b750e1 6021
228cf97d 6022 }
81ecdfbb 6023
228cf97d
AM
6024 namespace test_constexpr
6025 {
11b04d1f 6026
228cf97d
AM
6027 template < typename CharT >
6028 unsigned long constexpr
6029 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6030 {
6031 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6032 }
11b04d1f 6033
228cf97d
AM
6034 template < typename CharT >
6035 unsigned long constexpr
6036 strlen_c(const CharT *const s) noexcept
6037 {
6038 return strlen_c_r(s, 0UL);
6039 }
6040
6041 static_assert(strlen_c("") == 0UL, "");
6042 static_assert(strlen_c("1") == 1UL, "");
6043 static_assert(strlen_c("example") == 7UL, "");
6044 static_assert(strlen_c("another\0example") == 7UL, "");
6045
6046 }
6047
6048 namespace test_rvalue_references
6049 {
6050
6051 template < int N >
6052 struct answer
6053 {
6054 static constexpr int value = N;
6055 };
6056
6057 answer<1> f(int&) { return answer<1>(); }
6058 answer<2> f(const int&) { return answer<2>(); }
6059 answer<3> f(int&&) { return answer<3>(); }
6060
6061 void
6062 test()
6063 {
6064 int i = 0;
6065 const int c = 0;
6066 static_assert(decltype(f(i))::value == 1, "");
6067 static_assert(decltype(f(c))::value == 2, "");
6068 static_assert(decltype(f(0))::value == 3, "");
6069 }
6070
6071 }
6072
6073 namespace test_uniform_initialization
6074 {
6075
6076 struct test
6077 {
6078 static const int zero {};
6079 static const int one {1};
6080 };
6081
6082 static_assert(test::zero == 0, "");
6083 static_assert(test::one == 1, "");
6084
6085 }
6086
6087 namespace test_lambdas
6088 {
6089
6090 void
6091 test1()
6092 {
6093 auto lambda1 = [](){};
6094 auto lambda2 = lambda1;
6095 lambda1();
6096 lambda2();
6097 }
6098
6099 int
6100 test2()
6101 {
6102 auto a = [](int i, int j){ return i + j; }(1, 2);
6103 auto b = []() -> int { return '0'; }();
6104 auto c = [=](){ return a + b; }();
6105 auto d = [&](){ return c; }();
6106 auto e = [a, &b](int x) mutable {
6107 const auto identity = [](int y){ return y; };
6108 for (auto i = 0; i < a; ++i)
6109 a += b--;
6110 return x + identity(a + b);
6111 }(0);
6112 return a + b + c + d + e;
6113 }
6114
6115 int
6116 test3()
6117 {
6118 const auto nullary = [](){ return 0; };
6119 const auto unary = [](int x){ return x; };
6120 using nullary_t = decltype(nullary);
6121 using unary_t = decltype(unary);
6122 const auto higher1st = [](nullary_t f){ return f(); };
6123 const auto higher2nd = [unary](nullary_t f1){
6124 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6125 };
6126 return higher1st(nullary) + higher2nd(nullary)(unary);
6127 }
6128
6129 }
6130
6131 namespace test_variadic_templates
6132 {
6133
6134 template <int...>
6135 struct sum;
6136
6137 template <int N0, int... N1toN>
6138 struct sum<N0, N1toN...>
6139 {
6140 static constexpr auto value = N0 + sum<N1toN...>::value;
6141 };
6142
6143 template <>
6144 struct sum<>
6145 {
6146 static constexpr auto value = 0;
6147 };
6148
6149 static_assert(sum<>::value == 0, "");
6150 static_assert(sum<1>::value == 1, "");
6151 static_assert(sum<23>::value == 23, "");
6152 static_assert(sum<1, 2>::value == 3, "");
6153 static_assert(sum<5, 5, 11>::value == 21, "");
6154 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6155
6156 }
6157
6158 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6159 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6160 // because of this.
6161 namespace test_template_alias_sfinae
6162 {
6163
6164 struct foo {};
6165
6166 template<typename T>
6167 using member = typename T::member_type;
6168
6169 template<typename T>
6170 void func(...) {}
6171
6172 template<typename T>
6173 void func(member<T>*) {}
6174
6175 void test();
6176
6177 void test() { func<foo>(0); }
6178
6179 }
6180
6181} // namespace cxx11
6182
6183#endif // __cplusplus >= 201103L
6184
6185
6186
6187_ACEOF
6188if ac_fn_cxx_try_compile "$LINENO"; then :
6189 ax_cv_cxx_compile_cxx11=yes
6190else
6191 ax_cv_cxx_compile_cxx11=no
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194fi
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6196$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6197 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6198 ac_success=yes
6199 fi
6200
6201 if test x$ac_success = xno; then
6202 for alternative in ${ax_cxx_compile_alternatives}; do
6203 switch="-std=gnu++${alternative}"
6204 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6206$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6207if eval \${$cachevar+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209else
6210 ac_save_CXX="$CXX"
6211 CXX="$CXX $switch"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213/* end confdefs.h. */
6214
6215
6216// If the compiler admits that it is not ready for C++11, why torture it?
6217// Hopefully, this will speed up the test.
6218
6219#ifndef __cplusplus
6220
6221#error "This is not a C++ compiler"
6222
6223#elif __cplusplus < 201103L
6224
6225#error "This is not a C++11 compiler"
6226
6227#else
6228
6229namespace cxx11
6230{
6231
6232 namespace test_static_assert
6233 {
6234
6235 template <typename T>
6236 struct check
6237 {
6238 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6239 };
6240
6241 }
6242
6243 namespace test_final_override
6244 {
6245
6246 struct Base
6247 {
6248 virtual ~Base() {}
6249 virtual void f() {}
6250 };
6251
6252 struct Derived : public Base
6253 {
6254 virtual ~Derived() override {}
6255 virtual void f() override {}
6256 };
6257
6258 }
6259
6260 namespace test_double_right_angle_brackets
6261 {
6262
6263 template < typename T >
6264 struct check {};
6265
6266 typedef check<void> single_type;
6267 typedef check<check<void>> double_type;
6268 typedef check<check<check<void>>> triple_type;
6269 typedef check<check<check<check<void>>>> quadruple_type;
6270
6271 }
6272
6273 namespace test_decltype
6274 {
6275
6276 int
6277 f()
6278 {
6279 int a = 1;
6280 decltype(a) b = 2;
6281 return a + b;
6282 }
6283
6284 }
6285
6286 namespace test_type_deduction
6287 {
6288
6289 template < typename T1, typename T2 >
6290 struct is_same
6291 {
6292 static const bool value = false;
6293 };
6294
6295 template < typename T >
6296 struct is_same<T, T>
6297 {
6298 static const bool value = true;
6299 };
6300
6301 template < typename T1, typename T2 >
6302 auto
6303 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6304 {
6305 return a1 + a2;
6306 }
6307
6308 int
6309 test(const int c, volatile int v)
6310 {
6311 static_assert(is_same<int, decltype(0)>::value == true, "");
6312 static_assert(is_same<int, decltype(c)>::value == false, "");
6313 static_assert(is_same<int, decltype(v)>::value == false, "");
6314 auto ac = c;
6315 auto av = v;
6316 auto sumi = ac + av + 'x';
6317 auto sumf = ac + av + 1.0;
6318 static_assert(is_same<int, decltype(ac)>::value == true, "");
6319 static_assert(is_same<int, decltype(av)>::value == true, "");
6320 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6321 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6322 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6323 return (sumf > 0.0) ? sumi : add(c, v);
6324 }
6325
6326 }
6327
6328 namespace test_noexcept
6329 {
6330
6331 int f() { return 0; }
6332 int g() noexcept { return 0; }
6333
6334 static_assert(noexcept(f()) == false, "");
6335 static_assert(noexcept(g()) == true, "");
6336
6337 }
6338
6339 namespace test_constexpr
6340 {
6341
6342 template < typename CharT >
6343 unsigned long constexpr
6344 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6345 {
6346 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6347 }
6348
6349 template < typename CharT >
6350 unsigned long constexpr
6351 strlen_c(const CharT *const s) noexcept
6352 {
6353 return strlen_c_r(s, 0UL);
6354 }
6355
6356 static_assert(strlen_c("") == 0UL, "");
6357 static_assert(strlen_c("1") == 1UL, "");
6358 static_assert(strlen_c("example") == 7UL, "");
6359 static_assert(strlen_c("another\0example") == 7UL, "");
6360
6361 }
6362
6363 namespace test_rvalue_references
6364 {
6365
6366 template < int N >
6367 struct answer
6368 {
6369 static constexpr int value = N;
6370 };
6371
6372 answer<1> f(int&) { return answer<1>(); }
6373 answer<2> f(const int&) { return answer<2>(); }
6374 answer<3> f(int&&) { return answer<3>(); }
6375
6376 void
6377 test()
6378 {
6379 int i = 0;
6380 const int c = 0;
6381 static_assert(decltype(f(i))::value == 1, "");
6382 static_assert(decltype(f(c))::value == 2, "");
6383 static_assert(decltype(f(0))::value == 3, "");
6384 }
6385
6386 }
6387
6388 namespace test_uniform_initialization
6389 {
6390
6391 struct test
6392 {
6393 static const int zero {};
6394 static const int one {1};
6395 };
6396
6397 static_assert(test::zero == 0, "");
6398 static_assert(test::one == 1, "");
6399
6400 }
6401
6402 namespace test_lambdas
6403 {
6404
6405 void
6406 test1()
6407 {
6408 auto lambda1 = [](){};
6409 auto lambda2 = lambda1;
6410 lambda1();
6411 lambda2();
6412 }
6413
6414 int
6415 test2()
6416 {
6417 auto a = [](int i, int j){ return i + j; }(1, 2);
6418 auto b = []() -> int { return '0'; }();
6419 auto c = [=](){ return a + b; }();
6420 auto d = [&](){ return c; }();
6421 auto e = [a, &b](int x) mutable {
6422 const auto identity = [](int y){ return y; };
6423 for (auto i = 0; i < a; ++i)
6424 a += b--;
6425 return x + identity(a + b);
6426 }(0);
6427 return a + b + c + d + e;
6428 }
6429
6430 int
6431 test3()
6432 {
6433 const auto nullary = [](){ return 0; };
6434 const auto unary = [](int x){ return x; };
6435 using nullary_t = decltype(nullary);
6436 using unary_t = decltype(unary);
6437 const auto higher1st = [](nullary_t f){ return f(); };
6438 const auto higher2nd = [unary](nullary_t f1){
6439 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6440 };
6441 return higher1st(nullary) + higher2nd(nullary)(unary);
6442 }
6443
6444 }
6445
6446 namespace test_variadic_templates
6447 {
6448
6449 template <int...>
6450 struct sum;
6451
6452 template <int N0, int... N1toN>
6453 struct sum<N0, N1toN...>
6454 {
6455 static constexpr auto value = N0 + sum<N1toN...>::value;
6456 };
6457
6458 template <>
6459 struct sum<>
6460 {
6461 static constexpr auto value = 0;
6462 };
6463
6464 static_assert(sum<>::value == 0, "");
6465 static_assert(sum<1>::value == 1, "");
6466 static_assert(sum<23>::value == 23, "");
6467 static_assert(sum<1, 2>::value == 3, "");
6468 static_assert(sum<5, 5, 11>::value == 21, "");
6469 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6470
6471 }
6472
6473 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6474 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6475 // because of this.
6476 namespace test_template_alias_sfinae
6477 {
6478
6479 struct foo {};
6480
6481 template<typename T>
6482 using member = typename T::member_type;
6483
6484 template<typename T>
6485 void func(...) {}
6486
6487 template<typename T>
6488 void func(member<T>*) {}
6489
6490 void test();
6491
6492 void test() { func<foo>(0); }
6493
6494 }
6495
6496} // namespace cxx11
6497
6498#endif // __cplusplus >= 201103L
6499
6500
6501
6502_ACEOF
6503if ac_fn_cxx_try_compile "$LINENO"; then :
6504 eval $cachevar=yes
6505else
6506 eval $cachevar=no
6507fi
6508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509 CXX="$ac_save_CXX"
6510fi
6511eval ac_res=\$$cachevar
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6513$as_echo "$ac_res" >&6; }
6514 if eval test x\$$cachevar = xyes; then
6515 CXX="$CXX $switch"
6516 if test -n "$CXXCPP" ; then
6517 CXXCPP="$CXXCPP $switch"
6518 fi
6519 ac_success=yes
6520 break
6521 fi
6522 done
6523 fi
6524
6525 if test x$ac_success = xno; then
6526 for alternative in ${ax_cxx_compile_alternatives}; do
6527 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6528 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6530$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6531if eval \${$cachevar+:} false; then :
6532 $as_echo_n "(cached) " >&6
6533else
6534 ac_save_CXX="$CXX"
6535 CXX="$CXX $switch"
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h. */
6538
6539
6540// If the compiler admits that it is not ready for C++11, why torture it?
6541// Hopefully, this will speed up the test.
6542
6543#ifndef __cplusplus
6544
6545#error "This is not a C++ compiler"
6546
6547#elif __cplusplus < 201103L
6548
6549#error "This is not a C++11 compiler"
6550
6551#else
6552
6553namespace cxx11
6554{
6555
6556 namespace test_static_assert
6557 {
6558
6559 template <typename T>
6560 struct check
6561 {
6562 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6563 };
6564
6565 }
6566
6567 namespace test_final_override
6568 {
6569
6570 struct Base
6571 {
6572 virtual ~Base() {}
6573 virtual void f() {}
6574 };
6575
6576 struct Derived : public Base
6577 {
6578 virtual ~Derived() override {}
6579 virtual void f() override {}
6580 };
6581
6582 }
6583
6584 namespace test_double_right_angle_brackets
6585 {
6586
6587 template < typename T >
6588 struct check {};
6589
6590 typedef check<void> single_type;
6591 typedef check<check<void>> double_type;
6592 typedef check<check<check<void>>> triple_type;
6593 typedef check<check<check<check<void>>>> quadruple_type;
6594
6595 }
6596
6597 namespace test_decltype
6598 {
6599
6600 int
6601 f()
6602 {
6603 int a = 1;
6604 decltype(a) b = 2;
6605 return a + b;
6606 }
6607
6608 }
6609
6610 namespace test_type_deduction
6611 {
6612
6613 template < typename T1, typename T2 >
6614 struct is_same
6615 {
6616 static const bool value = false;
6617 };
6618
6619 template < typename T >
6620 struct is_same<T, T>
6621 {
6622 static const bool value = true;
6623 };
6624
6625 template < typename T1, typename T2 >
6626 auto
6627 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6628 {
6629 return a1 + a2;
6630 }
6631
6632 int
6633 test(const int c, volatile int v)
6634 {
6635 static_assert(is_same<int, decltype(0)>::value == true, "");
6636 static_assert(is_same<int, decltype(c)>::value == false, "");
6637 static_assert(is_same<int, decltype(v)>::value == false, "");
6638 auto ac = c;
6639 auto av = v;
6640 auto sumi = ac + av + 'x';
6641 auto sumf = ac + av + 1.0;
6642 static_assert(is_same<int, decltype(ac)>::value == true, "");
6643 static_assert(is_same<int, decltype(av)>::value == true, "");
6644 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6645 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6646 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6647 return (sumf > 0.0) ? sumi : add(c, v);
6648 }
6649
6650 }
6651
6652 namespace test_noexcept
6653 {
6654
6655 int f() { return 0; }
6656 int g() noexcept { return 0; }
6657
6658 static_assert(noexcept(f()) == false, "");
6659 static_assert(noexcept(g()) == true, "");
6660
6661 }
6662
6663 namespace test_constexpr
6664 {
6665
6666 template < typename CharT >
6667 unsigned long constexpr
6668 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6669 {
6670 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6671 }
6672
6673 template < typename CharT >
6674 unsigned long constexpr
6675 strlen_c(const CharT *const s) noexcept
6676 {
6677 return strlen_c_r(s, 0UL);
6678 }
6679
6680 static_assert(strlen_c("") == 0UL, "");
6681 static_assert(strlen_c("1") == 1UL, "");
6682 static_assert(strlen_c("example") == 7UL, "");
6683 static_assert(strlen_c("another\0example") == 7UL, "");
6684
6685 }
6686
6687 namespace test_rvalue_references
6688 {
6689
6690 template < int N >
6691 struct answer
6692 {
6693 static constexpr int value = N;
6694 };
6695
6696 answer<1> f(int&) { return answer<1>(); }
6697 answer<2> f(const int&) { return answer<2>(); }
6698 answer<3> f(int&&) { return answer<3>(); }
6699
6700 void
6701 test()
6702 {
6703 int i = 0;
6704 const int c = 0;
6705 static_assert(decltype(f(i))::value == 1, "");
6706 static_assert(decltype(f(c))::value == 2, "");
6707 static_assert(decltype(f(0))::value == 3, "");
6708 }
6709
6710 }
6711
6712 namespace test_uniform_initialization
6713 {
6714
6715 struct test
6716 {
6717 static const int zero {};
6718 static const int one {1};
6719 };
6720
6721 static_assert(test::zero == 0, "");
6722 static_assert(test::one == 1, "");
6723
6724 }
6725
6726 namespace test_lambdas
6727 {
6728
6729 void
6730 test1()
6731 {
6732 auto lambda1 = [](){};
6733 auto lambda2 = lambda1;
6734 lambda1();
6735 lambda2();
6736 }
6737
6738 int
6739 test2()
6740 {
6741 auto a = [](int i, int j){ return i + j; }(1, 2);
6742 auto b = []() -> int { return '0'; }();
6743 auto c = [=](){ return a + b; }();
6744 auto d = [&](){ return c; }();
6745 auto e = [a, &b](int x) mutable {
6746 const auto identity = [](int y){ return y; };
6747 for (auto i = 0; i < a; ++i)
6748 a += b--;
6749 return x + identity(a + b);
6750 }(0);
6751 return a + b + c + d + e;
6752 }
6753
6754 int
6755 test3()
6756 {
6757 const auto nullary = [](){ return 0; };
6758 const auto unary = [](int x){ return x; };
6759 using nullary_t = decltype(nullary);
6760 using unary_t = decltype(unary);
6761 const auto higher1st = [](nullary_t f){ return f(); };
6762 const auto higher2nd = [unary](nullary_t f1){
6763 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6764 };
6765 return higher1st(nullary) + higher2nd(nullary)(unary);
6766 }
6767
6768 }
6769
6770 namespace test_variadic_templates
6771 {
6772
6773 template <int...>
6774 struct sum;
6775
6776 template <int N0, int... N1toN>
6777 struct sum<N0, N1toN...>
6778 {
6779 static constexpr auto value = N0 + sum<N1toN...>::value;
6780 };
6781
6782 template <>
6783 struct sum<>
6784 {
6785 static constexpr auto value = 0;
6786 };
6787
6788 static_assert(sum<>::value == 0, "");
6789 static_assert(sum<1>::value == 1, "");
6790 static_assert(sum<23>::value == 23, "");
6791 static_assert(sum<1, 2>::value == 3, "");
6792 static_assert(sum<5, 5, 11>::value == 21, "");
6793 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6794
6795 }
6796
6797 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6798 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6799 // because of this.
6800 namespace test_template_alias_sfinae
6801 {
6802
6803 struct foo {};
6804
6805 template<typename T>
6806 using member = typename T::member_type;
6807
6808 template<typename T>
6809 void func(...) {}
6810
6811 template<typename T>
6812 void func(member<T>*) {}
6813
6814 void test();
6815
6816 void test() { func<foo>(0); }
6817
6818 }
6819
6820} // namespace cxx11
6821
6822#endif // __cplusplus >= 201103L
6823
6824
6825
6826_ACEOF
6827if ac_fn_cxx_try_compile "$LINENO"; then :
6828 eval $cachevar=yes
6829else
6830 eval $cachevar=no
6831fi
6832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 CXX="$ac_save_CXX"
6834fi
6835eval ac_res=\$$cachevar
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6837$as_echo "$ac_res" >&6; }
6838 if eval test x\$$cachevar = xyes; then
6839 CXX="$CXX $switch"
6840 if test -n "$CXXCPP" ; then
6841 CXXCPP="$CXXCPP $switch"
6842 fi
6843 ac_success=yes
6844 break
6845 fi
6846 done
6847 if test x$ac_success = xyes; then
6848 break
6849 fi
6850 done
6851 fi
6852
6853 ac_ext=c
6854ac_cpp='$CPP $CPPFLAGS'
6855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857ac_compiler_gnu=$ac_cv_c_compiler_gnu
6858
6859 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6860 if test x$ac_success = xno; then
6861 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6862 fi
6863 fi
6864 if test x$ac_success = xno; then
6865 HAVE_CXX11=0
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6867$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6868 else
6869 HAVE_CXX11=1
6870
6871$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6872
6873 fi
6874
6875
6876
6877 if test "${build}" != "${host}"; then
6878 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6879 ac_ext=cpp
6880ac_cpp='$CXXCPP $CPPFLAGS'
6881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6884 ac_success=no
6885 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6886 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6887 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6888 CXX="$CXX_FOR_BUILD"
6889 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6890 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6892$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6893if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895else
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h. */
6898
6899
6900// If the compiler admits that it is not ready for C++11, why torture it?
6901// Hopefully, this will speed up the test.
6902
6903#ifndef __cplusplus
6904
6905#error "This is not a C++ compiler"
6906
6907#elif __cplusplus < 201103L
6908
6909#error "This is not a C++11 compiler"
6910
6911#else
6912
6913namespace cxx11
6914{
6915
6916 namespace test_static_assert
6917 {
6918
6919 template <typename T>
6920 struct check
6921 {
6922 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6923 };
6924
6925 }
6926
6927 namespace test_final_override
6928 {
6929
6930 struct Base
6931 {
6932 virtual ~Base() {}
6933 virtual void f() {}
6934 };
6935
6936 struct Derived : public Base
6937 {
6938 virtual ~Derived() override {}
6939 virtual void f() override {}
6940 };
6941
6942 }
6943
6944 namespace test_double_right_angle_brackets
6945 {
6946
6947 template < typename T >
6948 struct check {};
6949
6950 typedef check<void> single_type;
6951 typedef check<check<void>> double_type;
6952 typedef check<check<check<void>>> triple_type;
6953 typedef check<check<check<check<void>>>> quadruple_type;
6954
6955 }
6956
6957 namespace test_decltype
6958 {
6959
6960 int
6961 f()
6962 {
6963 int a = 1;
6964 decltype(a) b = 2;
6965 return a + b;
6966 }
6967
6968 }
6969
6970 namespace test_type_deduction
6971 {
6972
6973 template < typename T1, typename T2 >
6974 struct is_same
6975 {
6976 static const bool value = false;
6977 };
6978
6979 template < typename T >
6980 struct is_same<T, T>
6981 {
6982 static const bool value = true;
6983 };
6984
6985 template < typename T1, typename T2 >
6986 auto
6987 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6988 {
6989 return a1 + a2;
6990 }
6991
6992 int
6993 test(const int c, volatile int v)
6994 {
6995 static_assert(is_same<int, decltype(0)>::value == true, "");
6996 static_assert(is_same<int, decltype(c)>::value == false, "");
6997 static_assert(is_same<int, decltype(v)>::value == false, "");
6998 auto ac = c;
6999 auto av = v;
7000 auto sumi = ac + av + 'x';
7001 auto sumf = ac + av + 1.0;
7002 static_assert(is_same<int, decltype(ac)>::value == true, "");
7003 static_assert(is_same<int, decltype(av)>::value == true, "");
7004 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7005 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7006 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7007 return (sumf > 0.0) ? sumi : add(c, v);
7008 }
7009
7010 }
7011
7012 namespace test_noexcept
7013 {
7014
7015 int f() { return 0; }
7016 int g() noexcept { return 0; }
7017
7018 static_assert(noexcept(f()) == false, "");
7019 static_assert(noexcept(g()) == true, "");
7020
7021 }
7022
7023 namespace test_constexpr
7024 {
7025
7026 template < typename CharT >
7027 unsigned long constexpr
7028 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7029 {
7030 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7031 }
7032
7033 template < typename CharT >
7034 unsigned long constexpr
7035 strlen_c(const CharT *const s) noexcept
7036 {
7037 return strlen_c_r(s, 0UL);
7038 }
7039
7040 static_assert(strlen_c("") == 0UL, "");
7041 static_assert(strlen_c("1") == 1UL, "");
7042 static_assert(strlen_c("example") == 7UL, "");
7043 static_assert(strlen_c("another\0example") == 7UL, "");
7044
7045 }
7046
7047 namespace test_rvalue_references
7048 {
7049
7050 template < int N >
7051 struct answer
7052 {
7053 static constexpr int value = N;
7054 };
7055
7056 answer<1> f(int&) { return answer<1>(); }
7057 answer<2> f(const int&) { return answer<2>(); }
7058 answer<3> f(int&&) { return answer<3>(); }
7059
7060 void
7061 test()
7062 {
7063 int i = 0;
7064 const int c = 0;
7065 static_assert(decltype(f(i))::value == 1, "");
7066 static_assert(decltype(f(c))::value == 2, "");
7067 static_assert(decltype(f(0))::value == 3, "");
7068 }
7069
7070 }
7071
7072 namespace test_uniform_initialization
7073 {
7074
7075 struct test
7076 {
7077 static const int zero {};
7078 static const int one {1};
7079 };
7080
7081 static_assert(test::zero == 0, "");
7082 static_assert(test::one == 1, "");
7083
7084 }
7085
7086 namespace test_lambdas
7087 {
7088
7089 void
7090 test1()
7091 {
7092 auto lambda1 = [](){};
7093 auto lambda2 = lambda1;
7094 lambda1();
7095 lambda2();
7096 }
7097
7098 int
7099 test2()
7100 {
7101 auto a = [](int i, int j){ return i + j; }(1, 2);
7102 auto b = []() -> int { return '0'; }();
7103 auto c = [=](){ return a + b; }();
7104 auto d = [&](){ return c; }();
7105 auto e = [a, &b](int x) mutable {
7106 const auto identity = [](int y){ return y; };
7107 for (auto i = 0; i < a; ++i)
7108 a += b--;
7109 return x + identity(a + b);
7110 }(0);
7111 return a + b + c + d + e;
7112 }
7113
7114 int
7115 test3()
7116 {
7117 const auto nullary = [](){ return 0; };
7118 const auto unary = [](int x){ return x; };
7119 using nullary_t = decltype(nullary);
7120 using unary_t = decltype(unary);
7121 const auto higher1st = [](nullary_t f){ return f(); };
7122 const auto higher2nd = [unary](nullary_t f1){
7123 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7124 };
7125 return higher1st(nullary) + higher2nd(nullary)(unary);
7126 }
7127
7128 }
7129
7130 namespace test_variadic_templates
7131 {
7132
7133 template <int...>
7134 struct sum;
7135
7136 template <int N0, int... N1toN>
7137 struct sum<N0, N1toN...>
7138 {
7139 static constexpr auto value = N0 + sum<N1toN...>::value;
7140 };
7141
7142 template <>
7143 struct sum<>
7144 {
7145 static constexpr auto value = 0;
7146 };
7147
7148 static_assert(sum<>::value == 0, "");
7149 static_assert(sum<1>::value == 1, "");
7150 static_assert(sum<23>::value == 23, "");
7151 static_assert(sum<1, 2>::value == 3, "");
7152 static_assert(sum<5, 5, 11>::value == 21, "");
7153 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7154
7155 }
7156
7157 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7158 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7159 // because of this.
7160 namespace test_template_alias_sfinae
7161 {
7162
7163 struct foo {};
7164
7165 template<typename T>
7166 using member = typename T::member_type;
7167
7168 template<typename T>
7169 void func(...) {}
7170
7171 template<typename T>
7172 void func(member<T>*) {}
7173
7174 void test();
7175
7176 void test() { func<foo>(0); }
7177
7178 }
7179
7180} // namespace cxx11
7181
7182#endif // __cplusplus >= 201103L
7183
7184
7185
7186_ACEOF
7187if ac_fn_cxx_try_compile "$LINENO"; then :
7188 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7189else
7190 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7191fi
7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7193fi
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7195$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7196 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7197 ac_success=yes
7198 fi
7199
7200 if test x$ac_success = xno; then
7201 for alternative in ${ax_cxx_compile_alternatives}; do
7202 switch="-std=gnu++${alternative}"
7203 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7205$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7206if eval \${$cachevar+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208else
7209 ac_save_CXX="$CXX"
7210 CXX="$CXX $switch"
7211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h. */
7213
7214
7215// If the compiler admits that it is not ready for C++11, why torture it?
7216// Hopefully, this will speed up the test.
7217
7218#ifndef __cplusplus
7219
7220#error "This is not a C++ compiler"
7221
7222#elif __cplusplus < 201103L
7223
7224#error "This is not a C++11 compiler"
7225
7226#else
7227
7228namespace cxx11
7229{
7230
7231 namespace test_static_assert
7232 {
7233
7234 template <typename T>
7235 struct check
7236 {
7237 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7238 };
7239
7240 }
7241
7242 namespace test_final_override
7243 {
7244
7245 struct Base
7246 {
7247 virtual ~Base() {}
7248 virtual void f() {}
7249 };
7250
7251 struct Derived : public Base
7252 {
7253 virtual ~Derived() override {}
7254 virtual void f() override {}
7255 };
7256
7257 }
7258
7259 namespace test_double_right_angle_brackets
7260 {
7261
7262 template < typename T >
7263 struct check {};
7264
7265 typedef check<void> single_type;
7266 typedef check<check<void>> double_type;
7267 typedef check<check<check<void>>> triple_type;
7268 typedef check<check<check<check<void>>>> quadruple_type;
7269
7270 }
7271
7272 namespace test_decltype
7273 {
7274
7275 int
7276 f()
7277 {
7278 int a = 1;
7279 decltype(a) b = 2;
7280 return a + b;
7281 }
7282
7283 }
7284
7285 namespace test_type_deduction
7286 {
7287
7288 template < typename T1, typename T2 >
7289 struct is_same
7290 {
7291 static const bool value = false;
7292 };
7293
7294 template < typename T >
7295 struct is_same<T, T>
7296 {
7297 static const bool value = true;
7298 };
7299
7300 template < typename T1, typename T2 >
7301 auto
7302 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7303 {
7304 return a1 + a2;
7305 }
7306
7307 int
7308 test(const int c, volatile int v)
7309 {
7310 static_assert(is_same<int, decltype(0)>::value == true, "");
7311 static_assert(is_same<int, decltype(c)>::value == false, "");
7312 static_assert(is_same<int, decltype(v)>::value == false, "");
7313 auto ac = c;
7314 auto av = v;
7315 auto sumi = ac + av + 'x';
7316 auto sumf = ac + av + 1.0;
7317 static_assert(is_same<int, decltype(ac)>::value == true, "");
7318 static_assert(is_same<int, decltype(av)>::value == true, "");
7319 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7320 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7321 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7322 return (sumf > 0.0) ? sumi : add(c, v);
7323 }
7324
7325 }
7326
7327 namespace test_noexcept
7328 {
7329
7330 int f() { return 0; }
7331 int g() noexcept { return 0; }
7332
7333 static_assert(noexcept(f()) == false, "");
7334 static_assert(noexcept(g()) == true, "");
7335
7336 }
7337
7338 namespace test_constexpr
7339 {
7340
7341 template < typename CharT >
7342 unsigned long constexpr
7343 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7344 {
7345 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7346 }
7347
7348 template < typename CharT >
7349 unsigned long constexpr
7350 strlen_c(const CharT *const s) noexcept
7351 {
7352 return strlen_c_r(s, 0UL);
7353 }
7354
7355 static_assert(strlen_c("") == 0UL, "");
7356 static_assert(strlen_c("1") == 1UL, "");
7357 static_assert(strlen_c("example") == 7UL, "");
7358 static_assert(strlen_c("another\0example") == 7UL, "");
7359
7360 }
7361
7362 namespace test_rvalue_references
7363 {
7364
7365 template < int N >
7366 struct answer
7367 {
7368 static constexpr int value = N;
7369 };
7370
7371 answer<1> f(int&) { return answer<1>(); }
7372 answer<2> f(const int&) { return answer<2>(); }
7373 answer<3> f(int&&) { return answer<3>(); }
7374
7375 void
7376 test()
7377 {
7378 int i = 0;
7379 const int c = 0;
7380 static_assert(decltype(f(i))::value == 1, "");
7381 static_assert(decltype(f(c))::value == 2, "");
7382 static_assert(decltype(f(0))::value == 3, "");
7383 }
7384
7385 }
7386
7387 namespace test_uniform_initialization
7388 {
7389
7390 struct test
7391 {
7392 static const int zero {};
7393 static const int one {1};
7394 };
7395
7396 static_assert(test::zero == 0, "");
7397 static_assert(test::one == 1, "");
7398
7399 }
7400
7401 namespace test_lambdas
7402 {
7403
7404 void
7405 test1()
7406 {
7407 auto lambda1 = [](){};
7408 auto lambda2 = lambda1;
7409 lambda1();
7410 lambda2();
7411 }
7412
7413 int
7414 test2()
7415 {
7416 auto a = [](int i, int j){ return i + j; }(1, 2);
7417 auto b = []() -> int { return '0'; }();
7418 auto c = [=](){ return a + b; }();
7419 auto d = [&](){ return c; }();
7420 auto e = [a, &b](int x) mutable {
7421 const auto identity = [](int y){ return y; };
7422 for (auto i = 0; i < a; ++i)
7423 a += b--;
7424 return x + identity(a + b);
7425 }(0);
7426 return a + b + c + d + e;
7427 }
7428
7429 int
7430 test3()
7431 {
7432 const auto nullary = [](){ return 0; };
7433 const auto unary = [](int x){ return x; };
7434 using nullary_t = decltype(nullary);
7435 using unary_t = decltype(unary);
7436 const auto higher1st = [](nullary_t f){ return f(); };
7437 const auto higher2nd = [unary](nullary_t f1){
7438 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7439 };
7440 return higher1st(nullary) + higher2nd(nullary)(unary);
7441 }
7442
7443 }
7444
7445 namespace test_variadic_templates
7446 {
7447
7448 template <int...>
7449 struct sum;
7450
7451 template <int N0, int... N1toN>
7452 struct sum<N0, N1toN...>
7453 {
7454 static constexpr auto value = N0 + sum<N1toN...>::value;
7455 };
7456
7457 template <>
7458 struct sum<>
7459 {
7460 static constexpr auto value = 0;
7461 };
7462
7463 static_assert(sum<>::value == 0, "");
7464 static_assert(sum<1>::value == 1, "");
7465 static_assert(sum<23>::value == 23, "");
7466 static_assert(sum<1, 2>::value == 3, "");
7467 static_assert(sum<5, 5, 11>::value == 21, "");
7468 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7469
7470 }
7471
7472 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7473 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7474 // because of this.
7475 namespace test_template_alias_sfinae
7476 {
7477
7478 struct foo {};
7479
7480 template<typename T>
7481 using member = typename T::member_type;
7482
7483 template<typename T>
7484 void func(...) {}
7485
7486 template<typename T>
7487 void func(member<T>*) {}
7488
7489 void test();
7490
7491 void test() { func<foo>(0); }
7492
7493 }
7494
7495} // namespace cxx11
7496
7497#endif // __cplusplus >= 201103L
7498
7499
7500
7501_ACEOF
7502if ac_fn_cxx_try_compile "$LINENO"; then :
7503 eval $cachevar=yes
7504else
7505 eval $cachevar=no
7506fi
7507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7508 CXX="$ac_save_CXX"
7509fi
7510eval ac_res=\$$cachevar
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7512$as_echo "$ac_res" >&6; }
7513 if eval test x\$$cachevar = xyes; then
7514 CXX="$CXX $switch"
7515 if test -n "$CXXCPP" ; then
7516 CXXCPP="$CXXCPP $switch"
7517 fi
7518 ac_success=yes
7519 break
7520 fi
7521 done
7522 fi
7523
7524 if test x$ac_success = xno; then
7525 for alternative in ${ax_cxx_compile_alternatives}; do
7526 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7527 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7529$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7530if eval \${$cachevar+:} false; then :
7531 $as_echo_n "(cached) " >&6
7532else
7533 ac_save_CXX="$CXX"
7534 CXX="$CXX $switch"
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536/* end confdefs.h. */
7537
7538
7539// If the compiler admits that it is not ready for C++11, why torture it?
7540// Hopefully, this will speed up the test.
7541
7542#ifndef __cplusplus
7543
7544#error "This is not a C++ compiler"
7545
7546#elif __cplusplus < 201103L
7547
7548#error "This is not a C++11 compiler"
7549
7550#else
7551
7552namespace cxx11
7553{
7554
7555 namespace test_static_assert
7556 {
7557
7558 template <typename T>
7559 struct check
7560 {
7561 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7562 };
7563
7564 }
7565
7566 namespace test_final_override
7567 {
7568
7569 struct Base
7570 {
7571 virtual ~Base() {}
7572 virtual void f() {}
7573 };
7574
7575 struct Derived : public Base
7576 {
7577 virtual ~Derived() override {}
7578 virtual void f() override {}
7579 };
7580
7581 }
7582
7583 namespace test_double_right_angle_brackets
7584 {
7585
7586 template < typename T >
7587 struct check {};
7588
7589 typedef check<void> single_type;
7590 typedef check<check<void>> double_type;
7591 typedef check<check<check<void>>> triple_type;
7592 typedef check<check<check<check<void>>>> quadruple_type;
7593
7594 }
7595
7596 namespace test_decltype
7597 {
7598
7599 int
7600 f()
7601 {
7602 int a = 1;
7603 decltype(a) b = 2;
7604 return a + b;
7605 }
7606
7607 }
7608
7609 namespace test_type_deduction
7610 {
7611
7612 template < typename T1, typename T2 >
7613 struct is_same
7614 {
7615 static const bool value = false;
7616 };
7617
7618 template < typename T >
7619 struct is_same<T, T>
7620 {
7621 static const bool value = true;
7622 };
7623
7624 template < typename T1, typename T2 >
7625 auto
7626 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7627 {
7628 return a1 + a2;
7629 }
7630
7631 int
7632 test(const int c, volatile int v)
7633 {
7634 static_assert(is_same<int, decltype(0)>::value == true, "");
7635 static_assert(is_same<int, decltype(c)>::value == false, "");
7636 static_assert(is_same<int, decltype(v)>::value == false, "");
7637 auto ac = c;
7638 auto av = v;
7639 auto sumi = ac + av + 'x';
7640 auto sumf = ac + av + 1.0;
7641 static_assert(is_same<int, decltype(ac)>::value == true, "");
7642 static_assert(is_same<int, decltype(av)>::value == true, "");
7643 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7644 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7645 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7646 return (sumf > 0.0) ? sumi : add(c, v);
7647 }
7648
7649 }
7650
7651 namespace test_noexcept
7652 {
7653
7654 int f() { return 0; }
7655 int g() noexcept { return 0; }
7656
7657 static_assert(noexcept(f()) == false, "");
7658 static_assert(noexcept(g()) == true, "");
7659
7660 }
7661
7662 namespace test_constexpr
7663 {
7664
7665 template < typename CharT >
7666 unsigned long constexpr
7667 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7668 {
7669 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7670 }
7671
7672 template < typename CharT >
7673 unsigned long constexpr
7674 strlen_c(const CharT *const s) noexcept
7675 {
7676 return strlen_c_r(s, 0UL);
7677 }
7678
7679 static_assert(strlen_c("") == 0UL, "");
7680 static_assert(strlen_c("1") == 1UL, "");
7681 static_assert(strlen_c("example") == 7UL, "");
7682 static_assert(strlen_c("another\0example") == 7UL, "");
7683
7684 }
7685
7686 namespace test_rvalue_references
7687 {
7688
7689 template < int N >
7690 struct answer
7691 {
7692 static constexpr int value = N;
7693 };
7694
7695 answer<1> f(int&) { return answer<1>(); }
7696 answer<2> f(const int&) { return answer<2>(); }
7697 answer<3> f(int&&) { return answer<3>(); }
7698
7699 void
7700 test()
7701 {
7702 int i = 0;
7703 const int c = 0;
7704 static_assert(decltype(f(i))::value == 1, "");
7705 static_assert(decltype(f(c))::value == 2, "");
7706 static_assert(decltype(f(0))::value == 3, "");
7707 }
7708
7709 }
7710
7711 namespace test_uniform_initialization
7712 {
7713
7714 struct test
7715 {
7716 static const int zero {};
7717 static const int one {1};
7718 };
7719
7720 static_assert(test::zero == 0, "");
7721 static_assert(test::one == 1, "");
7722
7723 }
7724
7725 namespace test_lambdas
7726 {
7727
7728 void
7729 test1()
7730 {
7731 auto lambda1 = [](){};
7732 auto lambda2 = lambda1;
7733 lambda1();
7734 lambda2();
7735 }
7736
7737 int
7738 test2()
7739 {
7740 auto a = [](int i, int j){ return i + j; }(1, 2);
7741 auto b = []() -> int { return '0'; }();
7742 auto c = [=](){ return a + b; }();
7743 auto d = [&](){ return c; }();
7744 auto e = [a, &b](int x) mutable {
7745 const auto identity = [](int y){ return y; };
7746 for (auto i = 0; i < a; ++i)
7747 a += b--;
7748 return x + identity(a + b);
7749 }(0);
7750 return a + b + c + d + e;
7751 }
7752
7753 int
7754 test3()
7755 {
7756 const auto nullary = [](){ return 0; };
7757 const auto unary = [](int x){ return x; };
7758 using nullary_t = decltype(nullary);
7759 using unary_t = decltype(unary);
7760 const auto higher1st = [](nullary_t f){ return f(); };
7761 const auto higher2nd = [unary](nullary_t f1){
7762 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7763 };
7764 return higher1st(nullary) + higher2nd(nullary)(unary);
7765 }
7766
7767 }
7768
7769 namespace test_variadic_templates
7770 {
7771
7772 template <int...>
7773 struct sum;
7774
7775 template <int N0, int... N1toN>
7776 struct sum<N0, N1toN...>
7777 {
7778 static constexpr auto value = N0 + sum<N1toN...>::value;
7779 };
7780
7781 template <>
7782 struct sum<>
7783 {
7784 static constexpr auto value = 0;
7785 };
7786
7787 static_assert(sum<>::value == 0, "");
7788 static_assert(sum<1>::value == 1, "");
7789 static_assert(sum<23>::value == 23, "");
7790 static_assert(sum<1, 2>::value == 3, "");
7791 static_assert(sum<5, 5, 11>::value == 21, "");
7792 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7793
7794 }
7795
7796 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7797 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7798 // because of this.
7799 namespace test_template_alias_sfinae
7800 {
7801
7802 struct foo {};
7803
7804 template<typename T>
7805 using member = typename T::member_type;
7806
7807 template<typename T>
7808 void func(...) {}
7809
7810 template<typename T>
7811 void func(member<T>*) {}
7812
7813 void test();
7814
7815 void test() { func<foo>(0); }
7816
7817 }
7818
7819} // namespace cxx11
7820
7821#endif // __cplusplus >= 201103L
7822
7823
7824
7825_ACEOF
7826if ac_fn_cxx_try_compile "$LINENO"; then :
7827 eval $cachevar=yes
7828else
7829 eval $cachevar=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 CXX="$ac_save_CXX"
7833fi
7834eval ac_res=\$$cachevar
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7836$as_echo "$ac_res" >&6; }
7837 if eval test x\$$cachevar = xyes; then
7838 CXX="$CXX $switch"
7839 if test -n "$CXXCPP" ; then
7840 CXXCPP="$CXXCPP $switch"
7841 fi
7842 ac_success=yes
7843 break
7844 fi
7845 done
7846 if test x$ac_success = xyes; then
7847 break
7848 fi
7849 done
7850 fi
7851 CXX_FOR_BUILD="$CXX"
7852 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7853 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7854 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7855 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7856 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7857 ac_ext=c
7858ac_cpp='$CPP $CPPFLAGS'
7859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7861ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862
7863 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7864 if test x$ac_success = xno; then
7865 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7866 fi
7867 fi
7868 if test x$ac_success = xno; then
7869 HAVE_CXX11_FOR_BUILD=0
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7871$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7872 else
7873 HAVE_CXX11_FOR_BUILD=1
7874
7875$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7876
7877 fi
7878
7879
7880 fi
7881fi
7882
7883# Check whether --enable-pgo-build was given.
7884if test "${enable_pgo_build+set}" = set; then :
7885 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7886else
7887 enable_pgo_build=no
7888fi
7889
7890
7891# Issue errors and warnings for invalid/strange PGO build combinations.
7892case "$have_compiler:$host:$target:$enable_pgo_build" in
7893 *:*:*:no) ;;
7894
7895 # Allow the PGO build only if we aren't building a compiler and
7896 # we are in a native configuration.
7897 no:$build:$build:yes | no:$build:$build:lto) ;;
7898
7899 # Disallow the PGO bootstrap if we are building a compiler.
7900 yes:*:*:yes | yes:*:*:lto)
7901 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7902
7903 *)
7904 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7905 ;;
7906esac
7907
7908if test "$enable_pgo_build" != "no"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7910$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7911 old_CFLAGS="$CFLAGS"
7912 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7913 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7914
7915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h. */
7917int foo;
7918_ACEOF
7919if ac_fn_c_try_compile "$LINENO"; then :
7920
7921else
7922 PGO_BUILD_GEN_CFLAGS=
7923fi
7924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 CFLAGS="$old_CFLAGS"
7926 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7928$as_echo "yes" >&6; }
7929 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7934 fi
7935
7936 if test "$enable_pgo_build" = "lto"; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7938$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7939 old_CFLAGS="$CFLAGS"
7940 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7941 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7943/* end confdefs.h. */
7944int foo;
7945_ACEOF
7946if ac_fn_c_try_compile "$LINENO"; then :
7947
7948else
7949 PGO_BUILD_LTO_CFLAGS=
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 CFLAGS="$old_CFLAGS"
7953 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7955$as_echo "yes" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958$as_echo "no" >&6; }
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7960$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7961 fi
7962 fi
7963fi
7964
7965
7966
7967
7968# Used for setting $lt_cv_objdir
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7970$as_echo_n "checking for objdir... " >&6; }
7971if ${lt_cv_objdir+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973else
7974 rm -f .libs 2>/dev/null
7975mkdir .libs 2>/dev/null
7976if test -d .libs; then
7977 lt_cv_objdir=.libs
7978else
7979 # MS-DOS does not allow filenames that begin with a dot.
7980 lt_cv_objdir=_libs
7981fi
7982rmdir .libs 2>/dev/null
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7985$as_echo "$lt_cv_objdir" >&6; }
7986objdir=$lt_cv_objdir
7987
7988
7989
7990
7991
7992cat >>confdefs.h <<_ACEOF
7993#define LT_OBJDIR "$lt_cv_objdir/"
7994_ACEOF
7995
7996
7997
7998# Check for GMP, MPFR and MPC
99118062
AP
7999require_gmp=no
8000require_mpc=no
8001if test -d ${srcdir}/gcc ; then
8002 require_gmp=yes
8003 require_mpc=yes
8004fi
8005if test -d ${srcdir}/gdb ; then
5fb0e308
CC
8006 if test "x$enable_gdb" != xno; then
8007 require_gmp=yes
8008 fi
99118062
AP
8009fi
8010
8011gmplibs="-lmpfr -lgmp"
8012if test x"$require_mpc" = "xyes" ; then
8013 gmplibs="-lmpc $gmplibs"
8014fi
228cf97d
AM
8015gmpinc=
8016have_gmp=no
8017
8018# Specify a location for mpc
8019# check for this first so it ends up on the link line before mpfr.
8020
8021# Check whether --with-mpc was given.
8022if test "${with_mpc+set}" = set; then :
8023 withval=$with_mpc;
8024fi
8025
8026
8027# Check whether --with-mpc-include was given.
8028if test "${with_mpc_include+set}" = set; then :
8029 withval=$with_mpc_include;
8030fi
8031
8032
8033# Check whether --with-mpc-lib was given.
8034if test "${with_mpc_lib+set}" = set; then :
8035 withval=$with_mpc_lib;
8036fi
8037
8038
8039if test "x$with_mpc" != x; then
8040 gmplibs="-L$with_mpc/lib $gmplibs"
8041 gmpinc="-I$with_mpc/include $gmpinc"
8042fi
8043if test "x$with_mpc_include" != x; then
8044 gmpinc="-I$with_mpc_include $gmpinc"
8045fi
8046if test "x$with_mpc_lib" != x; then
8047 gmplibs="-L$with_mpc_lib $gmplibs"
8048fi
8049if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
8050 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8051 gmpinc='-I$$s/mpc/src '"$gmpinc"
8052 # Do not test the mpc version. Assume that it is sufficient, since
8053 # it is in the source tree, and the library has not been built yet
8054 # but it would be included on the link line in the version check below
8055 # hence making the test fail.
8056 have_gmp=yes
8057fi
8058
8059# Specify a location for mpfr
8060# check for this first so it ends up on the link line before gmp.
8061
8062# Check whether --with-mpfr was given.
8063if test "${with_mpfr+set}" = set; then :
8064 withval=$with_mpfr;
8065fi
c6b750e1 8066
11b04d1f 8067
e552509b 8068# Check whether --with-mpfr-include was given.
81ecdfbb
RW
8069if test "${with_mpfr_include+set}" = set; then :
8070 withval=$with_mpfr_include;
8071fi
c6b750e1 8072
8a0d8a5c 8073
e552509b 8074# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
8075if test "${with_mpfr_lib+set}" = set; then :
8076 withval=$with_mpfr_lib;
8077fi
8a0d8a5c 8078
11b04d1f
DD
8079
8080if test "x$with_mpfr" != x; then
8081 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 8082 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 8083fi
8a0d8a5c 8084if test "x$with_mpfr_include" != x; then
d9b76ff9 8085 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
8086fi
8087if test "x$with_mpfr_lib" != x; then
8088 gmplibs="-L$with_mpfr_lib $gmplibs"
8089fi
4b900473 8090if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 8091 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 8092 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 8093 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 8094 fi
05a13254
NC
8095 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8096 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8097 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
8098 # Do not test the mpfr version. Assume that it is sufficient, since
8099 # it is in the source tree, and the library has not been built yet
8100 # but it would be included on the link line in the version check below
8101 # hence making the test fail.
8102 have_gmp=yes
8103fi
11b04d1f 8104
4b1cb4fe 8105# Specify a location for gmp
c6b750e1 8106
81ecdfbb
RW
8107# Check whether --with-gmp was given.
8108if test "${with_gmp+set}" = set; then :
8109 withval=$with_gmp;
8110fi
c6b750e1 8111
4b1cb4fe 8112
e552509b 8113# Check whether --with-gmp-include was given.
81ecdfbb
RW
8114if test "${with_gmp_include+set}" = set; then :
8115 withval=$with_gmp_include;
8116fi
c6b750e1 8117
8a0d8a5c 8118
e552509b 8119# Check whether --with-gmp-lib was given.
81ecdfbb
RW
8120if test "${with_gmp_lib+set}" = set; then :
8121 withval=$with_gmp_lib;
8122fi
8a0d8a5c
PB
8123
8124
4b1cb4fe 8125
11b04d1f
DD
8126if test "x$with_gmp" != x; then
8127 gmplibs="-L$with_gmp/lib $gmplibs"
8128 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 8129fi
8a0d8a5c
PB
8130if test "x$with_gmp_include" != x; then
8131 gmpinc="-I$with_gmp_include $gmpinc"
8132fi
8133if test "x$with_gmp_lib" != x; then
8134 gmplibs="-L$with_gmp_lib $gmplibs"
8135fi
4b900473 8136if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 8137 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 8138 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 8139 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 8140 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 8141 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
8142 # Do not test the gmp version. Assume that it is sufficient, since
8143 # it is in the source tree, and the library has not been built yet
8144 # but it would be included on the link line in the version check below
8145 # hence making the test fail.
8146 have_gmp=yes
8147fi
4b1cb4fe 8148
99118062 8149if test "x$require_gmp" = xyes && test "x$have_gmp" = xno; then
4b900473
PB
8150 have_gmp=yes
8151 saved_CFLAGS="$CFLAGS"
8152 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
8153 # Check for the recommended and required versions of GMP.
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8155$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
8157/* end confdefs.h. */
8158#include "gmp.h"
8159int
8160main ()
8161{
8162
8163 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8164 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 8165 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
8166 choke me
8167 #endif
8168
8169 ;
8170 return 0;
8171}
8172_ACEOF
8173if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8175/* end confdefs.h. */
a6b5846e 8176#include <gmp.h>
c6b750e1
DJ
8177int
8178main ()
8179{
4b1cb4fe 8180
a6b5846e
KG
8181 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8182 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8183 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
8184 choke me
8185 #endif
c6b750e1
DJ
8186
8187 ;
8188 return 0;
8189}
8190_ACEOF
81ecdfbb
RW
8191if ac_fn_c_try_compile "$LINENO"; then :
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8193$as_echo "yes" >&6; }
a6b5846e
KG
8194else
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8196$as_echo "buggy but acceptable" >&6; }
8197fi
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 8199else
81ecdfbb
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }; have_gmp=no
c6b750e1 8202fi
81ecdfbb 8203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 8204
e8a5fa9c 8205 # If we have GMP, check the MPFR version.
4b900473 8206 if test x"$have_gmp" = xyes; then
a6b5846e
KG
8207 # Check for the recommended and required versions of MPFR.
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8209$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8211/* end confdefs.h. */
9b134994 8212#include <gmp.h>
4b900473 8213 #include <mpfr.h>
c6b750e1
DJ
8214int
8215main ()
8216{
9b134994 8217
228cf97d 8218 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
4b900473
PB
8219 choke me
8220 #endif
c6b750e1
DJ
8221
8222 ;
8223 return 0;
8224}
8225_ACEOF
81ecdfbb
RW
8226if ac_fn_c_try_compile "$LINENO"; then :
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8228/* end confdefs.h. */
4b1cb4fe 8229#include <gmp.h>
4b900473 8230 #include <mpfr.h>
c6b750e1
DJ
8231int
8232main ()
8233{
9dbaa842 8234
228cf97d 8235 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
4b900473
PB
8236 choke me
8237 #endif
e8a5fa9c
RW
8238
8239 ;
8240 return 0;
8241}
8242_ACEOF
81ecdfbb
RW
8243if ac_fn_c_try_compile "$LINENO"; then :
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8245$as_echo "yes" >&6; }
e8a5fa9c 8246else
81ecdfbb
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8248$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 8249fi
81ecdfbb 8250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 8251else
81ecdfbb
RW
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 8254fi
81ecdfbb 8255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
8256 fi
8257
8258 # Check for the MPC header version.
99118062 8259 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes ; then
a6b5846e 8260 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8262$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
8264/* end confdefs.h. */
8265#include <mpc.h>
8266int
8267main ()
8268{
8269
a6b5846e
KG
8270 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8271 choke me
8272 #endif
8273
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278if ac_fn_c_try_compile "$LINENO"; then :
8279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h. */
8281#include <mpc.h>
8282int
8283main ()
8284{
8285
8286 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
8287 choke me
8288 #endif
8289
8290 ;
8291 return 0;
8292}
8293_ACEOF
81ecdfbb
RW
8294if ac_fn_c_try_compile "$LINENO"; then :
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 8296$as_echo "yes" >&6; }
a6b5846e
KG
8297else
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8299$as_echo "buggy but acceptable" >&6; }
8300fi
8301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 8302else
81ecdfbb 8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 8304$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 8305fi
81ecdfbb 8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
8307 fi
8308
8309 # Now check the MPFR library.
8310 if test x"$have_gmp" = xyes; then
8311 saved_LIBS="$LIBS"
8312 LIBS="$LIBS $gmplibs"
99118062
AP
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8314$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
81ecdfbb 8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 8316/* end confdefs.h. */
99118062 8317#include <mpfr.h>
e8a5fa9c
RW
8318int
8319main ()
8320{
8321
8322 mpfr_t n;
8323 mpfr_t x;
8324 int t;
8325 mpfr_init (n);
8326 mpfr_init (x);
228cf97d
AM
8327 mpfr_atan2 (n, n, x, MPFR_RNDN);
8328 mpfr_erfc (n, x, MPFR_RNDN);
8329 mpfr_subnormalize (x, t, MPFR_RNDN);
d9b76ff9
KG
8330 mpfr_clear(n);
8331 mpfr_clear(x);
99118062
AP
8332
8333 ;
8334 return 0;
8335}
8336_ACEOF
8337if ac_fn_c_try_link "$LINENO"; then :
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8339$as_echo "yes" >&6; }
8340else
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }; have_gmp=no
8343fi
8344rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 LIBS="$saved_LIBS"
8347 fi
8348
8349 # Now check the MPC library
8350 if test "x$require_mpc" = xyes && test x"$have_gmp" = xyes; then
8351 saved_LIBS="$LIBS"
8352 LIBS="$LIBS $gmplibs"
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8354$as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356/* end confdefs.h. */
8357#include <mpc.h>
8358int
8359main ()
8360{
8361
8362 mpc_t c;
d9b76ff9
KG
8363 mpc_init2 (c, 53);
8364 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8365 mpc_cosh (c, c, MPC_RNDNN);
8366 mpc_pow (c, c, c, MPC_RNDNN);
8367 mpc_acosh (c, c, MPC_RNDNN);
8368 mpc_clear (c);
c6b750e1
DJ
8369
8370 ;
8371 return 0;
8372}
8373_ACEOF
81ecdfbb
RW
8374if ac_fn_c_try_link "$LINENO"; then :
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8376$as_echo "yes" >&6; }
c6b750e1 8377else
81ecdfbb
RW
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379$as_echo "no" >&6; }; have_gmp=no
c6b750e1 8380fi
81ecdfbb
RW
8381rm -f core conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
8383 LIBS="$saved_LIBS"
8384 fi
8385
4b900473 8386 CFLAGS="$saved_CFLAGS"
4b1cb4fe 8387
a6b5846e
KG
8388# The library versions listed in the error message below should match
8389# the HARD-minimums enforced above.
4b900473 8390 if test x$have_gmp != xyes; then
99118062
AP
8391 if test -d ${srcdir}/gcc ; then
8392 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
d9b76ff9
KG
8393Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8394their locations. Source code for these libraries can be found at
8395their respective hosting sites as well as at
228cf97d 8396https://gcc.gnu.org/pub/gcc/infrastructure/. See also
d9b76ff9
KG
8397http://gcc.gnu.org/install/prerequisites.html for additional info. If
8398you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8399make sure that you have installed both the libraries and the header
8400files. They may be located in separate packages." "$LINENO" 5
99118062
AP
8401 else
8402 as_fn_error $? "Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8403Try the --with-gmp and/or --with-mpfr options to specify
8404their locations. If you obtained GMP and/or MPFR from a vendor
8405distribution package, make sure that you have installed both the libraries
8406and the header files. They may be located in separate packages." "$LINENO" 5
8407 fi
4b900473 8408 fi
9dbaa842
DD
8409fi
8410
e8a5fa9c
RW
8411# Flags needed for both GMP, MPFR and/or MPC.
8412
8413
8414
4b1cb4fe
DD
8415
8416
8417
7ec59b9e 8418
b3676d82 8419# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 8420
b3676d82
EB
8421# Check whether --with-stage1-libs was given.
8422if test "${with_stage1_libs+set}" = set; then :
8423 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8424 stage1_libs=
e8a5fa9c 8425 else
b3676d82 8426 stage1_libs=$withval
e8a5fa9c
RW
8427 fi
8428else
68996839 8429 stage1_libs=
81ecdfbb
RW
8430fi
8431
e8a5fa9c
RW
8432
8433
c1a5d03a
TT
8434# Whether or not to use -static-libstdc++ and -static-libgcc. The
8435# default is yes if gcc is being built; no otherwise. The reason for
8436# this default is that gdb is sometimes linked against GNU Source
8437# Highlight, which is a shared library that uses C++ exceptions. In
8438# this case, -static-libstdc++ will cause crashes.
8439
8440# Check whether --with-static-standard-libraries was given.
8441if test "${with_static_standard_libraries+set}" = set; then :
8442 withval=$with_static_standard_libraries;
8443else
8444 with_static_standard_libraries=auto
8445fi
8446
8447if test "$with_static_standard_libraries" = auto; then
8448 with_static_standard_libraries=$have_compiler
8449fi
8450
b3676d82 8451# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 8452
b3676d82
EB
8453# Check whether --with-stage1-ldflags was given.
8454if test "${with_stage1_ldflags+set}" = set; then :
8455 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8456 stage1_ldflags=
e8a5fa9c 8457 else
b3676d82 8458 stage1_ldflags=$withval
e8a5fa9c
RW
8459 fi
8460else
b3676d82
EB
8461 stage1_ldflags=
8462 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8463 # if supported. But if the user explicitly specified the libraries to use,
8464 # trust that they are doing what they want.
c1a5d03a
TT
8465 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8466 -a "$have_static_libs" = yes; then
b3676d82
EB
8467 stage1_ldflags="-static-libstdc++ -static-libgcc"
8468 fi
81ecdfbb
RW
8469fi
8470
e8a5fa9c
RW
8471
8472
68996839 8473# Libraries to use for stage2 and later builds.
e8a5fa9c 8474
81ecdfbb
RW
8475# Check whether --with-boot-libs was given.
8476if test "${with_boot_libs+set}" = set; then :
8477 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
8478 poststage1_libs=
8479 else
8480 poststage1_libs=$withval
8481 fi
8482else
68996839 8483 poststage1_libs=
81ecdfbb
RW
8484fi
8485
e8a5fa9c
RW
8486
8487
143754cd
NC
8488# Linker flags to use for stage2 and later builds.
8489
8490# Check whether --with-boot-ldflags was given.
8491if test "${with_boot_ldflags+set}" = set; then :
8492 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8493 poststage1_ldflags=
8494 else
8495 poststage1_ldflags=$withval
8496 fi
8497else
8498 poststage1_ldflags=
4f11b223
ILT
8499 # In stages 2 and 3, default to linking libstdc++ and libgcc
8500 # statically. But if the user explicitly specified the libraries to
8501 # use, trust that they are doing what they want.
8502 if test "$poststage1_libs" = ""; then
143754cd
NC
8503 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8504 fi
8505fi
8506
8507
8508
4849dfd8 8509# GCC GRAPHITE dependency isl.
1b6c0831 8510# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
8511
8512
7ec59b9e
L
8513# Check whether --with-isl was given.
8514if test "${with_isl+set}" = set; then :
8515 withval=$with_isl;
81ecdfbb 8516fi
e28c595f 8517
e28c595f 8518
1b6c0831 8519# Treat --without-isl as a request to disable
8e71395b 8520# GRAPHITE support and skip all following checks.
1b6c0831 8521if test "x$with_isl" != "xno"; then
4849dfd8 8522 # Check for isl
8e71395b
L
8523
8524
7ec59b9e
L
8525# Check whether --with-isl-include was given.
8526if test "${with_isl_include+set}" = set; then :
8527 withval=$with_isl_include;
81ecdfbb
RW
8528fi
8529
e28c595f 8530
7ec59b9e
L
8531# Check whether --with-isl-lib was given.
8532if test "${with_isl_lib+set}" = set; then :
8533 withval=$with_isl_lib;
81ecdfbb 8534fi
e28c595f 8535
e28c595f 8536
7ec59b9e
L
8537 # Check whether --enable-isl-version-check was given.
8538if test "${enable_isl_version_check+set}" = set; then :
8539 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8540else
8541 ENABLE_ISL_CHECK=yes
b123da99
SP
8542fi
8543
8544
7ec59b9e
L
8545 # Initialize isllibs and islinc.
8546 case $with_isl in
8547 no)
8548 isllibs=
8549 islinc=
8550 ;;
8551 "" | yes)
8552 ;;
8553 *)
8554 isllibs="-L$with_isl/lib"
8555 islinc="-I$with_isl/include"
8556 ;;
8557 esac
8558 if test "x${with_isl_include}" != x ; then
8559 islinc="-I$with_isl_include"
8560 fi
8561 if test "x${with_isl_lib}" != x; then
8562 isllibs="-L$with_isl_lib"
8563 fi
8564 if test "x${islinc}" = x && test "x${isllibs}" = x \
8565 && test -d ${srcdir}/isl; then
8566 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8567 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8568 ENABLE_ISL_CHECK=no
4849dfd8
NC
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8570$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 8571 fi
b123da99 8572
1b6c0831 8573 isllibs="${isllibs} -lisl"
b123da99 8574
e28c595f 8575
b3fc79f8
JBG
8576
8577 if test "${ENABLE_ISL_CHECK}" = yes ; then
8578 _isl_saved_CFLAGS=$CFLAGS
8579 _isl_saved_LDFLAGS=$LDFLAGS
8580 _isl_saved_LIBS=$LIBS
8581
8582 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
8583 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8584 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 8585
bf41f30d
NC
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8587$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 8588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 8589/* end confdefs.h. */
bf41f30d 8590#include <isl/schedule.h>
b3fc79f8
JBG
8591int
8592main ()
8593{
bf41f30d 8594isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
8595 ;
8596 return 0;
8597}
8598_ACEOF
1b6c0831 8599if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
8600 gcc_cv_isl=yes
8601else
8602 gcc_cv_isl=no
8603fi
1b6c0831
L
8604rm -f core conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8607$as_echo "$gcc_cv_isl" >&6; }
8608
4849dfd8 8609 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8611$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
8612 fi
8613
b3fc79f8
JBG
8614 CFLAGS=$_isl_saved_CFLAGS
8615 LDFLAGS=$_isl_saved_LDFLAGS
8616 LIBS=$_isl_saved_LIBS
8617 fi
8618
8619
e28c595f 8620
e28c595f 8621
7ec59b9e
L
8622
8623
7ec59b9e
L
8624 if test "x${with_isl}" = xno; then
8625 graphite_requested=no
8626 elif test "x${with_isl}" != x \
8627 || test "x${with_isl_include}" != x \
8628 || test "x${with_isl_lib}" != x ; then
8629 graphite_requested=yes
8630 else
8631 graphite_requested=no
b123da99 8632 fi
e28c595f 8633
e28c595f
JM
8634
8635
7ec59b9e
L
8636 if test "${gcc_cv_isl}" = no ; then
8637 isllibs=
8638 islinc=
8639 fi
e28c595f 8640
7ec59b9e
L
8641 if test "${graphite_requested}" = yes \
8642 && test "x${isllibs}" = x \
8643 && test "x${islinc}" = x ; then
e28c595f 8644
d0ac1c44 8645 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 8646 fi
e552509b 8647
e28c595f 8648
e552509b
ILT
8649fi
8650
4849dfd8 8651# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 8652if test "x$with_isl" = xno ||
8e71395b 8653 test "x$gcc_cv_isl" = xno; then
1b6c0831 8654 noconfigdirs="$noconfigdirs isl"
8e71395b 8655 islinc=
7ec59b9e
L
8656fi
8657
8e71395b
L
8658
8659
8660
700d40ca
ILT
8661# Check for LTO support.
8662# Check whether --enable-lto was given.
8663if test "${enable_lto+set}" = set; then :
8664 enableval=$enable_lto; enable_lto=$enableval
8665else
8666 enable_lto=yes; default_enable_lto=yes
8667fi
8668
8669
143754cd 8670
e49e5c92
DK
8671
8672
8673target_elf=no
8674case $target in
8675 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 8676 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
8677 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8678 nvptx-*-none)
e49e5c92
DK
8679 target_elf=no
8680 ;;
8681 *)
8682 target_elf=yes
8683 ;;
8684esac
8685
8686if test $target_elf = yes; then :
74cea91b
DK
8687 # ELF platforms build the lto-plugin always.
8688 build_lto_plugin=yes
e49e5c92 8689
e49e5c92
DK
8690else
8691 if test x"$default_enable_lto" = x"yes" ; then
29821356 8692 case $target in
bf41f30d 8693 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 8694 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
8695 *) enable_lto=no ;;
8696 esac
e49e5c92 8697 else
29821356
RW
8698 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8699 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
8700 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8701 # warn during gcc/ subconfigure; unless you're bootstrapping with
8702 # -flto it won't be needed until after installation anyway.
8703 case $target in
52cf9762 8704 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 8705 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 8706 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
8707 fi
8708 ;;
8709 esac
8710 fi
a8eb3f0a 8711 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 8712 # Build it unless LTO was explicitly disabled.
a8eb3f0a 8713 case $target in
74cea91b 8714 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
8715 *) ;;
8716 esac
74cea91b 8717
e49e5c92
DK
8718fi
8719
700d40ca 8720
1b6c0831
L
8721# Check whether --enable-linker-plugin-configure-flags was given.
8722if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8723 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8724else
8725 extra_linker_plugin_configure_flags=
8726fi
8727
8728
8729# Check whether --enable-linker-plugin-flags was given.
8730if test "${enable_linker_plugin_flags+set}" = set; then :
8731 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8732else
8733 extra_linker_plugin_flags=
8734fi
8735
8736
8737
6a6859cb
AM
8738# Handle --enable-host-pie
8739# If host PIE executables are the default (or must be forced on) for some host,
8740# we must pass that configuration to the gcc directory.
8741gcc_host_pie=
8742# Check whether --enable-host-pie was given.
8743if test "${enable_host_pie+set}" = set; then :
8744 enableval=$enable_host_pie; host_pie=$enableval
8745 case $host in
8746 *-*-darwin2*)
8747 if test x$host_pie != xyes ; then
8748 # for Darwin20+ this is required.
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8750$as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8751 host_pie=yes
8752 gcc_host_pie=--enable-host-pie
8753 fi ;;
8754 *) ;;
8755 esac
8756else
8757 case $host in
8758 *-*-darwin2*)
8759 # Default to PIE (mandatory for aarch64).
8760 host_pie=yes
8761 gcc_host_pie=--enable-host-pie
8762 ;;
8763 *) host_pie=no ;;
8764 esac
8765fi
8766
8767
8768
8769
8770
bf41f30d
NC
8771# Enable --enable-host-shared.
8772# Checked early to determine whether jit is an 'all' language
8773# Check whether --enable-host-shared was given.
8774if test "${enable_host_shared+set}" = set; then :
8775 enableval=$enable_host_shared; host_shared=$enableval
228cf97d
AM
8776 case $host in
8777 x86_64-*-darwin* | aarch64-*-darwin*)
8778 if test x$host_shared != xyes ; then
8779 # PIC is the default, and actually cannot be switched off.
6a6859cb
AM
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8781$as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8782 host_shared=yes
8783 fi ;;
8784 *-*-darwin*)
8785 if test x$host_pie = xyes -a x$host_shared != xyes ; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8787$as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
228cf97d
AM
8788 host_shared=yes
8789 fi ;;
8790 *) ;;
8791 esac
bf41f30d 8792else
228cf97d 8793 case $host in
6a6859cb 8794 # 64B x86_64 and Aarch64 Darwin default to PIC.
228cf97d 8795 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
6a6859cb
AM
8796 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8797 *-*-darwin*) host_shared=$host_pie ;;
8798 *) host_shared=no;;
228cf97d 8799 esac
bf41f30d
NC
8800fi
8801
8802
e28c595f 8803
6a6859cb
AM
8804
8805if test x$host_shared = xyes; then
8806 case $host in
8807 *-*-darwin*)
8808 # Since host shared is the default for 64b Darwin, and also enabled for
8809 # host_pie, ensure that we present the PIE flag when host_pie is active.
8810 if test x$host_pie = xyes; then
8811 PICFLAG=-fPIE
8812 fi
8813 ;;
8814 *)
8815 PICFLAG=-fPIC
8816 ;;
8817 esac
8818elif test x$host_pie = xyes; then
8819 PICFLAG=-fPIE
8820else
8821 PICFLAG=
8822fi
8823
8824
8825
8826# If we are building PIC/PIE host executables, and we are building dependent
8827# libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8828# code.
8829host_libs_picflag=
8830if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8831host_libs_picflag='--with-pic'
8832fi
8833
8834
7ec59b9e 8835# By default, C and C++ are the only stage 1 languages.
9b134994 8836stage1_languages=,c,
1d39f329 8837
e8a5fa9c 8838# Target libraries that we bootstrap.
2aa2364a 8839bootstrap_target_libs=,target-libgcc,
e8a5fa9c 8840
9e07f89d
NN
8841# Figure out what language subdirectories are present.
8842# Look if the user specified --enable-languages="..."; if not, use
8843# the environment variable $LANGUAGES if defined. $LANGUAGES might
8844# go away some day.
8845# NB: embedded tabs in this IF block -- do not untabify
8846if test -d ${srcdir}/gcc; then
8847 if test x"${enable_languages+set}" != xset; then
8848 if test x"${LANGUAGES+set}" = xset; then
8849 enable_languages="${LANGUAGES}"
136bb21f 8850 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 8851 else
bf41f30d 8852 enable_languages=default
9e07f89d
NN
8853 fi
8854 else
8855 if test x"${enable_languages}" = x ||
8856 test x"${enable_languages}" = xyes;
8857 then
136bb21f 8858 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
8859 exit 1
8860 fi
8861 fi
8862 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8863
096f7d00
DE
8864 # 'f95' is the old name for the 'fortran' language. We issue a warning
8865 # and make the substitution.
8866 case ,${enable_languages}, in
8867 *,f95,*)
136bb21f 8868 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
8869 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8870 ;;
8871 esac
8872
7ec59b9e
L
8873 # If bootstrapping, C++ must be enabled.
8874 case ",$enable_languages,:$enable_bootstrap" in
8875 *,c++,*:*) ;;
8876 *:yes)
ffdd6afc
ILT
8877 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8878 enable_languages="${enable_languages},c++"
8879 else
d0ac1c44 8880 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
8881 fi
8882 ;;
8883 esac
8884
9e07f89d
NN
8885 # First scan to see if an enabled language requires some other language.
8886 # We assume that a given config-lang.in will list all the language
8887 # front ends it requires, even if some are required indirectly.
8888 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8889 case ${lang_frag} in
8890 ..) ;;
8891 # The odd quoting in the next line works around
8892 # an apparent bug in bash 1.12 on linux.
8893 ${srcdir}/gcc/[*]/config-lang.in) ;;
8894 *)
e552509b
ILT
8895 # From the config-lang.in, get $language, $lang_requires, and
8896 # $lang_requires_boot_languages.
9e07f89d
NN
8897 language=
8898 lang_requires=
e552509b 8899 lang_requires_boot_languages=
bf41f30d
NC
8900 # set srcdir during sourcing lang_frag to the gcc dir.
8901 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8902 # polutes this shell
8903 saved_srcdir=${srcdir}
8904 srcdir=${srcdir}/gcc . ${lang_frag}
8905 srcdir=${saved_srcdir}
e552509b 8906 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
8907 case ,${enable_languages}, in
8908 *,$other,*) ;;
bf41f30d 8909 *,default,*) ;;
9e07f89d
NN
8910 *,all,*) ;;
8911 *,$language,*)
8912 echo " \`$other' language required by \`$language'; enabling" 1>&2
8913 enable_languages="${enable_languages},${other}"
8914 ;;
8915 esac
8916 done
e552509b
ILT
8917 for other in ${lang_requires_boot_languages} ; do
8918 if test "$other" != "c"; then
8919 case ,${enable_stage1_languages}, in
8920 *,$other,*) ;;
bf41f30d 8921 *,default,*) ;;
e552509b
ILT
8922 *,all,*) ;;
8923 *)
8924 case ,${enable_languages}, in
8925 *,$language,*)
8926 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8927 enable_stage1_languages="$enable_stage1_languages,${other}"
8928 ;;
8929 esac
8930 ;;
8931 esac
8932 fi
8933 done
9e07f89d
NN
8934 ;;
8935 esac
8936 done
8937
9b134994 8938 new_enable_languages=,c,
700d40ca
ILT
8939
8940 # If LTO is enabled, add the LTO front end.
700d40ca 8941 if test "$enable_lto" = "yes" ; then
6811fb56
RW
8942 case ,${enable_languages}, in
8943 *,lto,*) ;;
8944 *) enable_languages="${enable_languages},lto" ;;
8945 esac
a8eb3f0a 8946 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 8947 configdirs="$configdirs lto-plugin"
700d40ca
ILT
8948 fi
8949 fi
8950
1b6c0831
L
8951 # If we're building an offloading compiler, add the LTO front end.
8952 if test x"$enable_as_accelerator_for" != x ; then
8953 case ,${enable_languages}, in
8954 *,lto,*) ;;
8955 *) enable_languages="${enable_languages},lto" ;;
8956 esac
8957 fi
700d40ca 8958
bf41f30d 8959 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 8960 potential_languages=,c,
9e07f89d 8961
9e1a94f4
ILT
8962 enabled_target_libs=
8963 disabled_target_libs=
8964
9e07f89d
NN
8965 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8966 case ${lang_frag} in
8967 ..) ;;
8968 # The odd quoting in the next line works around
8969 # an apparent bug in bash 1.12 on linux.
8970 ${srcdir}/gcc/[*]/config-lang.in) ;;
8971 *)
c6b750e1 8972 # From the config-lang.in, get $language, $target_libs,
1d39f329 8973 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
8974 language=
8975 target_libs=
8976 lang_dirs=
64ce424c 8977 subdir_requires=
9b134994
PB
8978 boot_language=no
8979 build_by_default=yes
bf41f30d
NC
8980 # set srcdir during sourcing. See above about save & restore
8981 saved_srcdir=${srcdir}
8982 srcdir=${srcdir}/gcc . ${lang_frag}
8983 srcdir=${saved_srcdir}
9b134994
PB
8984 if test x${language} = x; then
8985 echo "${lang_frag} doesn't set \$language." 1>&2
8986 exit 1
8987 fi
8988
ffdd6afc 8989 if test "$language" = "c++"; then
7ec59b9e 8990 boot_language=yes
e8a5fa9c
RW
8991 fi
8992
8e71395b 8993 add_this_lang=no
bf41f30d
NC
8994 # C is always enabled, so no need to add it again
8995 if test "$language" != "c"; then
8996 case ,${enable_languages}, in
8997 *,${language},*)
8998 # Language was explicitly selected; include it
7ec59b9e 8999 add_this_lang=yes
bf41f30d
NC
9000 ;;
9001 *,all,*)
9002 # All languages are enabled
9003 add_this_lang=all
9004 ;;
9005 *,default,*)
9006 # 'default' was selected, select it if it is a default language
8e71395b 9007 add_this_lang=${build_by_default}
bf41f30d
NC
9008 ;;
9009 esac
9010 fi
4b1cb4fe 9011
64ce424c 9012 # Disable languages that need other directories if these aren't available.
1f3f1bbf 9013 for i in $subdir_requires; do
3d3adb43 9014 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
9015 case ${add_this_lang} in
9016 yes)
64ce424c 9017 # Specifically requested language; tell them.
d0ac1c44 9018 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 9019 ;;
bf41f30d
NC
9020 all)
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9022$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9023 add_this_lang=unsupported
9024 ;;
64ce424c
PB
9025 *)
9026 # Silently disable.
9b134994 9027 add_this_lang=unsupported
64ce424c
PB
9028 ;;
9029 esac
9030 done
9031
9b134994 9032 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
9033 case ${add_this_lang}:${language}:${have_gnat} in
9034 yes:ada:no)
9b134994 9035 # Specifically requested language; tell them.
d0ac1c44 9036 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 9037 ;;
bf41f30d
NC
9038 all:ada:no)
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9040$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9041 add_this_lang=unsupported
9042 ;;
9b134994
PB
9043 *:ada:no)
9044 # Silently disable.
9045 add_this_lang=unsupported
9046 ;;
9047 esac
9048
228cf97d
AM
9049 # Disable D if no preexisting GDC is available.
9050 case ${add_this_lang}:${language}:${have_gdc} in
9051 yes:d:no)
9052 # Specifically requested language; tell them.
9053 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
9054 ;;
9055 all:d:no)
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9057$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9058 add_this_lang=unsupported
9059 ;;
9060 *:d:no)
9061 # Silently disable.
9062 add_this_lang=unsupported
9063 ;;
9064 esac
9065
bf41f30d 9066 # Disable jit if -enable-host-shared not specified
228cf97d
AM
9067 # but not if building for Mingw. All code in Windows
9068 # is position independent code (PIC).
9069 case $target in
9070 *mingw*) ;;
9071 *)
9072 case ${add_this_lang}:${language}:${host_shared} in
9073 yes:jit:no)
9074 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 9075 as_fn_error $? "
bf41f30d
NC
9076Enabling language \"jit\" requires --enable-host-shared.
9077
9078--enable-host-shared typically slows the rest of the compiler down by
9079a few %, so you must explicitly enable it.
9080
9081If you want to build both the jit and the regular compiler, it is often
9082best to do this via two separate configure/builds, in separate
9083directories, to avoid imposing the performance cost of
9084--enable-host-shared on the regular compiler." "$LINENO" 5
228cf97d
AM
9085 ;;
9086 all:jit:no)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
bf41f30d 9088$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
228cf97d
AM
9089 add_this_lang=unsupported
9090 ;;
9091 *:jit:no)
9092 # Silently disable.
9093 add_this_lang=unsupported
9094 ;;
9095 esac
9096 ;;
9097 esac
bf41f30d
NC
9098
9099 # Disable a language that is unsupported by the target.
9100 case "${add_this_lang}: $unsupported_languages " in
9101 no:*) ;;
9102 unsupported:*) ;;
9103 *:*" $language "*)
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9105$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 9106 add_this_lang=unsupported
59f7ec45
HPN
9107 ;;
9108 esac
9109
4b1cb4fe 9110 case $add_this_lang in
9b134994 9111 unsupported)
9e07f89d 9112 # Remove language-dependent dirs.
9e1a94f4
ILT
9113 disabled_target_libs="$disabled_target_libs $target_libs"
9114 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 9115 ;;
9b134994
PB
9116 no)
9117 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
9118 disabled_target_libs="$disabled_target_libs $target_libs"
9119 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
9120 potential_languages="${potential_languages}${language},"
9121 ;;
bf41f30d 9122 all|yes)
9b134994
PB
9123 new_enable_languages="${new_enable_languages}${language},"
9124 potential_languages="${potential_languages}${language},"
1d39f329 9125 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 9126 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
9127 case "${boot_language}:,$enable_stage1_languages," in
9128 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 9129 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
9130 case ",$stage1_languages," in
9131 *,$language,* | ,yes, | ,all,) ;;
9132 *) stage1_languages="${stage1_languages}${language}," ;;
9133 esac
e8a5fa9c 9134 # We need to bootstrap any supporting libraries.
228cf97d 9135 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
1d39f329
NN
9136 ;;
9137 esac
9138 ;;
9e07f89d
NN
9139 esac
9140 ;;
9141 esac
9142 done
9143
9e1a94f4
ILT
9144 # Add target libraries which are only needed for disabled languages
9145 # to noconfigdirs.
9146 if test -n "$disabled_target_libs"; then
9147 for dir in $disabled_target_libs; do
9148 case " $enabled_target_libs " in
9149 *" ${dir} "*) ;;
9150 *) noconfigdirs="$noconfigdirs $dir" ;;
9151 esac
9152 done
9153 fi
9154
81ecdfbb
RW
9155 # Check whether --enable-stage1-languages was given.
9156if test "${enable_stage1_languages+set}" = set; then :
9157 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
9158 ,no,|,,)
9159 # Set it to something that will have no effect in the loop below
9160 enable_stage1_languages=c ;;
9161 ,yes,)
9162 enable_stage1_languages=`echo $new_enable_languages | \
9163 sed -e "s/^,//" -e "s/,$//" ` ;;
9164 *,all,*)
9165 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9166 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9167 esac
9168
9169 # Add "good" languages from enable_stage1_languages to stage1_languages,
9170 # while "bad" languages go in missing_languages. Leave no duplicates.
9171 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9172 case $potential_languages in
9173 *,$i,*)
9174 case $stage1_languages in
9175 *,$i,*) ;;
9176 *) stage1_languages="$stage1_languages$i," ;;
9177 esac ;;
9178 *)
9179 case $missing_languages in
9180 *,$i,*) ;;
9181 *) missing_languages="$missing_languages$i," ;;
9182 esac ;;
9183 esac
9184 done
81ecdfbb
RW
9185fi
9186
9b134994
PB
9187
9188 # Remove leading/trailing commas that were added for simplicity
9189 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 9190 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
9191 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9192 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9193
9e07f89d 9194 if test "x$missing_languages" != x; then
d0ac1c44 9195 as_fn_error $? "
27258dd4 9196The following requested languages could not be built: ${missing_languages}
81ecdfbb 9197Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 9198 fi
9e07f89d
NN
9199 if test "x$new_enable_languages" != "x$enable_languages"; then
9200 echo The following languages will be built: ${new_enable_languages}
9b134994 9201 enable_languages="$new_enable_languages"
9e07f89d 9202 fi
9b134994 9203
c6b750e1 9204
81ec575a 9205 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
9206fi
9207
a6df5a19
PB
9208# Handle --disable-<component> generically.
9209for dir in $configdirs $build_configdirs $target_configdirs ; do
9210 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
9211 varname=`echo $dirname | sed -e s/+/_/g`
9212 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
9213 noconfigdirs="$noconfigdirs $dir"
9214 fi
9215done
9216
4f0ef2d8 9217# Check for Boehm's garbage collector
81ecdfbb
RW
9218# Check whether --enable-objc-gc was given.
9219if test "${enable_objc_gc+set}" = set; then :
05a13254 9220 enableval=$enable_objc_gc;
81ecdfbb
RW
9221fi
9222
4f0ef2d8 9223
05a13254
NC
9224# Check whether --with-target-bdw-gc was given.
9225if test "${with_target_bdw_gc+set}" = set; then :
9226 withval=$with_target_bdw_gc;
9227fi
9228
9229
9230# Check whether --with-target-bdw-gc-include was given.
9231if test "${with_target_bdw_gc_include+set}" = set; then :
9232 withval=$with_target_bdw_gc_include;
9233fi
9234
9235
9236# Check whether --with-target-bdw-gc-lib was given.
9237if test "${with_target_bdw_gc_lib+set}" = set; then :
9238 withval=$with_target_bdw_gc_lib;
9239fi
9240
9241
9242case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9244$as_echo_n "checking for bdw garbage collector... " >&6; }
9245 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9247$as_echo "using bdw-gc in default locations" >&6; }
9248 else
9249 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 9250 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 9251 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 9252 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9255$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 9256 fi
05a13254 9257 fi
4f0ef2d8
CD
9258esac
9259
6a6859cb 9260# Disable libitm, libsanitizer, libvtv if we're not building C++
7ec59b9e 9261case ,${enable_languages}, in
1b6c0831 9262 *,c++,*)
bf41f30d 9263 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
9264 case "${noconfigdirs}" in
9265 *target-libstdc++-v3*)
bf41f30d 9266 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
9267 ;;
9268 *) ;;
9269 esac
9270 ;;
7ec59b9e 9271 *)
6a6859cb 9272 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
9273 ;;
9274esac
9275
d33228c9
AB
9276# If gcc/ is not in the source tree then we'll not be building a
9277# target compiler, assume in that case we don't want to build any
9278# target libraries or tools.
9279#
9280# This was added primarily for the benefit for binutils-gdb who reuse
9281# this configure script, but don't always have target tools available.
9282if test ! -d ${srcdir}/gcc; then
9283 skipdirs="${skipdirs} ${target_configdirs}"
9284fi
9285
caeba88f
AL
9286# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9287# $build_configdirs and $target_configdirs.
9e07f89d
NN
9288# If we have the source for $noconfigdirs entries, add them to $notsupp.
9289
9290notsupp=""
9291for dir in . $skipdirs $noconfigdirs ; do
caeba88f 9292 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
9293 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9294 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9295 if test -r $srcdir/$dirname/configure ; then
9296 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9297 true
9298 else
9299 notsupp="$notsupp $dir"
9300 fi
9301 fi
9302 fi
caeba88f
AL
9303 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9304 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9305 if test -r $srcdir/$dirname/configure ; then
9306 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9307 true
9308 else
9309 notsupp="$notsupp $dir"
9310 fi
9311 fi
9312 fi
9e07f89d
NN
9313 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9314 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9315 if test -r $srcdir/$dirname/configure ; then
9316 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9317 true
9318 else
9319 notsupp="$notsupp $dir"
9320 fi
9321 fi
9322 fi
9323done
9324
9e07f89d
NN
9325# Quietly strip out all directories which aren't configurable in this tree.
9326# This relies on all configurable subdirectories being autoconfiscated, which
9327# is now the case.
6a9cf61e
PB
9328build_configdirs_all="$build_configdirs"
9329build_configdirs=
9330for i in ${build_configdirs_all} ; do
c6b750e1 9331 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
9332 if test -f ${srcdir}/$j/configure ; then
9333 build_configdirs="${build_configdirs} $i"
9334 fi
9335done
9336
9e07f89d
NN
9337configdirs_all="$configdirs"
9338configdirs=
9339for i in ${configdirs_all} ; do
9340 if test -f ${srcdir}/$i/configure ; then
9341 configdirs="${configdirs} $i"
9342 fi
9343done
6a9cf61e 9344
9e07f89d
NN
9345target_configdirs_all="$target_configdirs"
9346target_configdirs=
9347for i in ${target_configdirs_all} ; do
c6b750e1 9348 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
9349 if test -f ${srcdir}/$j/configure ; then
9350 target_configdirs="${target_configdirs} $i"
9351 fi
9352done
9353
1b6c0831
L
9354# libiberty-linker-plugin is special: it doesn't have its own source directory,
9355# so we have to add it after the preceding checks.
9356if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9357then
9358 case " $configdirs " in
9359 *" libiberty "*)
9360 # If we can build libiberty, we can also build libiberty-linker-plugin.
9361 configdirs="$configdirs libiberty-linker-plugin"
9362 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9363 --with-libiberty=../libiberty-linker-plugin";;
9364 *)
d0ac1c44 9365 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
9366 esac
9367fi
9368
9369# Sometimes we have special requirements for the host libiberty.
9370extra_host_libiberty_configure_flags=
9371case " $configdirs " in
a08bdb15 9372 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
1b6c0831
L
9373 # When these are to be built as shared libraries, the same applies to
9374 # libiberty.
9375 extra_host_libiberty_configure_flags=--enable-shared
9376 ;;
95127faf
TV
9377esac
9378
9379
9380# Sometimes we have special requirements for the host zlib.
9381extra_host_zlib_configure_flags=
9382case " $configdirs " in
e81d5d05
L
9383 *" bfd "*)
9384 # When bfd is to be built as a shared library, the same applies to
9385 # zlib.
9386 if test "$enable_shared" = "yes"; then
9387 extra_host_zlib_configure_flags=--enable-host-shared
9388 fi
9389 ;;
1b6c0831
L
9390esac
9391
9392
9e07f89d
NN
9393# Produce a warning message for the subdirs we can't configure.
9394# This isn't especially interesting in the Cygnus tree, but in the individual
9395# FSF releases, it's important to let people know when their machine isn't
9396# supported by the one or two programs in a package.
9397
9398if test -n "${notsupp}" && test -z "${norecursion}" ; then
9399 # If $appdirs is non-empty, at least one of those directories must still
9400 # be configured, or we error out. (E.g., if the gas release supports a
9401 # specified target in some subdirs but not the gas subdir, we shouldn't
9402 # pretend that all is well.)
9403 if test -n "$appdirs" ; then
9404 for dir in $appdirs ; do
9405 if test -r $dir/Makefile.in ; then
9406 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9407 appdirs=""
9408 break
9409 fi
6a9cf61e 9410 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
9411 appdirs=""
9412 break
9413 fi
9414 fi
9415 done
9416 if test -n "$appdirs" ; then
9417 echo "*** This configuration is not supported by this package." 1>&2
9418 exit 1
9419 fi
9420 fi
9421 # Okay, some application will build, or we don't care to check. Still
9422 # notify of subdirs not getting built.
9423 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9424 echo " ${notsupp}" 1>&2
9425 echo " (Any other directories should still work fine.)" 1>&2
9426fi
9427
9428case "$host" in
9429 *msdosdjgpp*)
9430 enable_gdbtk=no ;;
9431esac
9432
18f6b6ee
PB
9433# To find our prefix, in gcc_cv_tool_prefix.
9434
9435# The user is always right.
9436if test "${PATH_SEPARATOR+set}" != set; then
9437 echo "#! /bin/sh" >conf$$.sh
9438 echo "exit 0" >>conf$$.sh
9439 chmod +x conf$$.sh
9440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9441 PATH_SEPARATOR=';'
9442 else
9443 PATH_SEPARATOR=:
9444 fi
9445 rm -f conf$$.sh
9446fi
9447
9448
bf41f30d
NC
9449 get_gcc_base_ver="cat"
9450
9451# Check whether --with-gcc-major-version-only was given.
9452if test "${with_gcc_major_version_only+set}" = set; then :
9453 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 9454 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
9455 fi
9456
9457fi
9458
9459
9460
9461
9462
18f6b6ee
PB
9463
9464if test "x$exec_prefix" = xNONE; then
9465 if test "x$prefix" = xNONE; then
9466 gcc_cv_tool_prefix=$ac_default_prefix
9467 else
9468 gcc_cv_tool_prefix=$prefix
9469 fi
9470else
9471 gcc_cv_tool_prefix=$exec_prefix
9472fi
9473
9474# If there is no compiler in the tree, use the PATH only. In any
9475# case, if there is no compiler in the tree nobody should use
9476# AS_FOR_TARGET and LD_FOR_TARGET.
9477if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
9478 if test x$with_gcc_major_version_only = xyes ; then
9479 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9480 else
9481 gcc_version=`cat $srcdir/gcc/BASE-VER`
9482 fi
18f6b6ee
PB
9483 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9484 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9485 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9486 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9487 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9488 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9489else
9490 gcc_cv_tool_dirs=
9491fi
9492
9493if test x$build = x$target && test -n "$md_exec_prefix"; then
9494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9495fi
9496
9497
9498
9e07f89d
NN
9499copy_dirs=
9500
c6b750e1 9501
81ecdfbb
RW
9502# Check whether --with-build-sysroot was given.
9503if test "${with_build_sysroot+set}" = set; then :
9504 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
9505 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9506 fi
9507else
9508 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 9509fi
a19b6204
MM
9510
9511
8a6ee3ab 9512
81ecdfbb
RW
9513
9514# Check whether --with-debug-prefix-map was given.
9515if test "${with_debug_prefix_map+set}" = set; then :
9516 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
9517 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9518 for debug_map in $withval; do
9519 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9520 done
9521 fi
9522else
9523 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
9524fi
9525
8a6ee3ab
JM
9526
9527
7f6ef0c0
PB
9528# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9529# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9530# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9531# We want to ensure that TARGET libraries (which we know are built with
9532# gcc) are built with "-O2 -g", so include those options when setting
9533# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9534if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
9535 if test "x${is_cross_compiler}" = xyes; then
9536 CFLAGS_FOR_TARGET="-g -O2"
9537 else
9538 CFLAGS_FOR_TARGET=$CFLAGS
9539 case " $CFLAGS " in
9540 *" -O2 "*) ;;
9541 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9542 esac
9543 case " $CFLAGS " in
9544 *" -g "* | *" -g3 "*) ;;
9545 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9546 esac
9547 fi
7f6ef0c0
PB
9548fi
9549
9550
9551if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
9552 if test "x${is_cross_compiler}" = xyes; then
9553 CXXFLAGS_FOR_TARGET="-g -O2"
9554 else
9555 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9556 case " $CXXFLAGS " in
9557 *" -O2 "*) ;;
9558 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9559 esac
9560 case " $CXXFLAGS " in
9561 *" -g "* | *" -g3 "*) ;;
9562 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9563 esac
9564 fi
7f6ef0c0
PB
9565fi
9566
9567
91c1f14c
DK
9568
9569
9e07f89d
NN
9570# Handle --with-headers=XXX. If the value is not "yes", the contents of
9571# the named directory are copied to $(tooldir)/sys-include.
9572if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9573 if test x${is_cross_compiler} = xno ; then
9574 echo 1>&2 '***' --with-headers is only supported when cross compiling
9575 exit 1
9576 fi
9577 if test x"${with_headers}" != xyes ; then
18f6b6ee 9578 x=${gcc_cv_tool_prefix}
c6b750e1 9579 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
9580 fi
9581fi
9582
9583# Handle --with-libs=XXX. If the value is not "yes", the contents of
9584# the name directories are copied to $(tooldir)/lib. Multiple directories
9585# are permitted.
9586if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9587 if test x${is_cross_compiler} = xno ; then
9588 echo 1>&2 '***' --with-libs is only supported when cross compiling
9589 exit 1
9590 fi
9591 if test x"${with_libs}" != xyes ; then
9592 # Copy the libraries in reverse order, so that files in the first named
9593 # library override files in subsequent libraries.
18f6b6ee 9594 x=${gcc_cv_tool_prefix}
9e07f89d 9595 for l in ${with_libs}; do
c6b750e1 9596 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
9597 done
9598 fi
9599fi
9600
700d40ca 9601# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
9602#
9603# This is done by determining whether or not the appropriate directory
9604# is available, and by checking whether or not specific configurations
9605# have requested that this magic not happen.
c6b750e1
DJ
9606#
9607# The command line options always override the explicit settings in
136bb21f 9608# configure.ac, and the settings in configure.ac override this magic.
2429c060 9609#
c6b750e1 9610# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 9611# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
9612# --without-gnu-ld options for the configure script. Similarly, if
9613# the default is to use the included zlib and you don't want to do that,
9614# you should use the --with-system-zlib option for the configure script.
2429c060
PB
9615
9616if test x${use_gnu_as} = x &&
9617 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9618 with_gnu_as=yes
9619 extra_host_args="$extra_host_args --with-gnu-as"
9620fi
9621
9622if test x${use_gnu_ld} = x &&
93f9b408 9623 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
9624 with_gnu_ld=yes
9625 extra_host_args="$extra_host_args --with-gnu-ld"
9626fi
9627
700d40ca
ILT
9628if test x${use_included_zlib} = x &&
9629 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9630 :
9631else
9632 with_system_zlib=yes
9633 extra_host_args="$extra_host_args --with-system-zlib"
9634fi
9635
2429c060
PB
9636# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9637# can detect this case.
9638
9639if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9640 with_newlib=yes
9641 extra_host_args="$extra_host_args --with-newlib"
9642fi
9643
9e07f89d
NN
9644# Handle ${copy_dirs}
9645set fnord ${copy_dirs}
9646shift
9647while test $# != 0 ; do
9648 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9649 :
9650 else
9651 echo Copying $1 to $2
9652
9653 # Use the install script to create the directory and all required
9654 # parent directories.
9655 if test -d $2 ; then
9656 :
9657 else
9658 echo >config.temp
9659 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9660 fi
9661
9662 # Copy the directory, assuming we have tar.
9663 # FIXME: Should we use B in the second tar? Not all systems support it.
9664 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9665
9666 # It is the responsibility of the user to correctly adjust all
9667 # symlinks. If somebody can figure out how to handle them correctly
9668 # here, feel free to add the code.
9669
9670 echo $1 > $2/COPIED
9671 fi
9672 shift; shift
9673done
9674
2429c060
PB
9675# Determine a target-dependent exec_prefix that the installed
9676# gcc will search in. Keep this list sorted by triplet, with
9677# the *-*-osname triplets last.
9678md_exec_prefix=
9679case "${target}" in
521ec477 9680 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
9681 md_exec_prefix=/dev/env/DJDIR/bin
9682 ;;
2429c060 9683 *-*-hpux* | \
2429c060 9684 *-*-nto-qnx* | \
1f111696 9685 *-*-solaris2*)
2429c060
PB
9686 md_exec_prefix=/usr/ccs/bin
9687 ;;
9688esac
9689
a0da8069
NN
9690extra_arflags_for_target=
9691extra_nmflags_for_target=
9692extra_ranlibflags_for_target=
9693target_makefile_frag=/dev/null
9694case "${target}" in
77d7106f
AM
9695 spu-*-*)
9696 target_makefile_frag="config/mt-spu"
9697 ;;
a9d58c06 9698 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
9699 target_makefile_frag="config/mt-sde"
9700 ;;
f3b1e08e
RS
9701 mipsisa*-*-elfoabi*)
9702 target_makefile_frag="config/mt-mips-elfoabi"
9703 ;;
e7c8859c
RS
9704 mips*-*-*linux* | mips*-*-gnu*)
9705 target_makefile_frag="config/mt-mips-gnu"
9706 ;;
d9e042ac
SL
9707 nios2-*-elf*)
9708 target_makefile_frag="config/mt-nios2-elf"
9709 ;;
bf41f30d
NC
9710 *-*-linux-android*)
9711 target_makefile_frag="config/mt-android"
9712 ;;
29383458 9713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 9714 target_makefile_frag="config/mt-gnu"
a0da8069
NN
9715 ;;
9716 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 9717 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
9718 # commands to handle both 32-bit and 64-bit objects. These flags are
9719 # harmless if we're using GNU nm or ar.
9720 extra_arflags_for_target=" -X32_64"
9721 extra_nmflags_for_target=" -B -X32_64"
9722 ;;
a0da8069
NN
9723esac
9724
9725alphaieee_frag=/dev/null
9726case $target in
9727 alpha*-*-*)
9728 # This just makes sure to use the -mieee option to build target libs.
9729 # This should probably be set individually by each library.
9730 alphaieee_frag="config/mt-alphaieee"
9731 ;;
9732esac
9733
9734# If --enable-target-optspace always use -Os instead of -O2 to build
9735# the target libraries, similarly if it is not specified, use -Os
9736# on selected platforms.
9737ospace_frag=/dev/null
9738case "${enable_target_optspace}:${target}" in
9739 yes:*)
9740 ospace_frag="config/mt-ospace"
9741 ;;
9742 :d30v-*)
9743 ospace_frag="config/mt-d30v"
9744 ;;
16beab3d 9745 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
9746 ospace_frag="config/mt-ospace"
9747 ;;
9748 no:* | :*)
9749 ;;
9750 *)
9751 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9752 ;;
9753esac
9754
a0da8069
NN
9755# Some systems (e.g., one of the i386-aix systems the gas testers are
9756# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 9757tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
9758build_tooldir=${tooldir}
9759
a0da8069
NN
9760# Create a .gdbinit file which runs the one in srcdir
9761# and tells GDB to look there for source files.
9762
9763if test -r ${srcdir}/.gdbinit ; then
9764 case ${srcdir} in
9765 .) ;;
9766 *) cat > ./.gdbinit <<EOF
9767# ${NO_EDIT}
9768dir ${srcdir}
9769dir .
9770source ${srcdir}/.gdbinit
9771EOF
9772 ;;
9773 esac
9774fi
9775
a0da8069
NN
9776# Make sure that the compiler is able to generate an executable. If it
9777# can't, we are probably in trouble. We don't care whether we can run the
9778# executable--we might be using a cross compiler--we only care whether it
9779# can be created. At this point the main configure script has set CC.
9780we_are_ok=no
9781echo "int main () { return 0; }" > conftest.c
9782${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9783if test $? = 0 ; then
9784 if test -s conftest || test -s conftest.exe ; then
9785 we_are_ok=yes
9786 fi
c6b750e1 9787fi
a0da8069
NN
9788case $we_are_ok in
9789 no)
9790 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9791 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9792 rm -f conftest*
9793 exit 1
9794 ;;
9795esac
9796rm -f conftest*
9797
3bbd2f8f 9798# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
9799case "${host}" in
9800 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 9801 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 9802 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
9803 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9804esac
9805
3bbd2f8f 9806# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
9807# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9808# built executables to PATH.
3bbd2f8f
AL
9809if test "$RPATH_ENVVAR" = PATH; then
9810 GCC_SHLIB_SUBDIR=/shlib
9811else
9812 GCC_SHLIB_SUBDIR=
9813fi
9814
730af8ee 9815# Adjust the toplevel makefile according to whether bootstrap was selected.
9816case $enable_bootstrap in
9817 yes)
9818 bootstrap_suffix=bootstrap
9819 BUILD_CONFIG=bootstrap-debug
9820 ;;
9821 no)
9822 bootstrap_suffix=no-bootstrap
9823 BUILD_CONFIG=
9824 ;;
9825esac
9826
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9828$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9829
9830
9831# Check whether --with-build-config was given.
9832if test "${with_build_config+set}" = set; then :
9833 withval=$with_build_config; case $with_build_config in
9834 yes) with_build_config= ;;
9835 no) with_build_config= BUILD_CONFIG= ;;
9836 esac
9837fi
9838
9839
9840if test "x${with_build_config}" != x; then
9841 BUILD_CONFIG=$with_build_config
9842else
9843 case $BUILD_CONFIG in
9844 bootstrap-debug)
9845 if echo "int f (void) { return 0; }" > conftest.c &&
9846 ${CC} -c conftest.c &&
9847 mv conftest.o conftest.o.g0 &&
9848 ${CC} -c -g conftest.c &&
9849 mv conftest.o conftest.o.g &&
9850 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9851 :
9852 else
9853 BUILD_CONFIG=
9854 fi
9855 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9856 ;;
9857 esac
9858fi
9859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9860$as_echo "$BUILD_CONFIG" >&6; }
9861
9862
9863# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9865$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9866# Check whether --enable-vtable-verify was given.
9867if test "${enable_vtable_verify+set}" = set; then :
9868 enableval=$enable_vtable_verify; case "$enableval" in
9869 yes) enable_vtable_verify=yes ;;
9870 no) enable_vtable_verify=no ;;
9871 *) enable_vtable_verify=no;;
9872 esac
9873else
9874 enable_vtable_verify=no
9875fi
9876
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9878$as_echo "$enable_vtable_verify" >&6; }
9879
a0da8069
NN
9880# Record target_configdirs and the configure arguments for target and
9881# build configuration in Makefile.
9882target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 9883build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 9884bootstrap_fixincludes=no
a0da8069 9885
2aa2364a
JR
9886# If we are building libgomp, bootstrap it.
9887if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9888 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9889fi
9890
730af8ee 9891# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9892# or bootstrap-ubsan, bootstrap it.
9893if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9894 case "$BUILD_CONFIG" in
228cf97d 9895 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
730af8ee 9896 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 9897 bootstrap_fixincludes=yes
730af8ee 9898 ;;
9899 esac
5eb08693
L
9900fi
9901
730af8ee 9902# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9903if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9904 test "$enable_vtable_verify" != no; then
95e43135
JBG
9905 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9906fi
9907
228cf97d
AM
9908# If we are building libatomic and the list of enabled languages includes the
9909# D frontend, bootstrap it.
9910if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9911 case ,${enable_languages}, in
9912 *,d,*)
9913 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9914 ;;
9915 esac
9916fi
9917
a0da8069
NN
9918# Determine whether gdb needs tk/tcl or not.
9919# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9920# and in that case we want gdb to be built without tk. Ugh!
9921# In fact I believe gdb is the *only* package directly dependent on tk,
9922# so we should be able to put the 'maybe's in unconditionally and
9923# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9924# 100% sure that that's safe though.
c180f501 9925
675c6968 9926gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
9927case "$enable_gdbtk" in
9928 no)
9929 GDB_TK="" ;;
c180f501
AC
9930 yes)
9931 GDB_TK="${gdb_tk}" ;;
a0da8069 9932 *)
c180f501
AC
9933 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9934 # distro. Eventually someone will fix this and move Insight, nee
9935 # gdbtk to a separate directory.
9936 if test -d ${srcdir}/gdb/gdbtk ; then
9937 GDB_TK="${gdb_tk}"
9938 else
9939 GDB_TK=""
9940 fi
9941 ;;
a0da8069 9942esac
907be67c
DJ
9943CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9944INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 9945
b6f9caee
TT
9946# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9947# else does, only include them if one of these is built. The Makefile
9948# provides the ordering, so it's enough here to add to the list.
9949case " ${configdirs} " in
9950 *\ gdb\ *)
9951 configdirs="${configdirs} gnulib gdbsupport"
9952 ;;
9953 *\ gdbserver\ *)
9954 configdirs="${configdirs} gnulib gdbsupport"
9955 ;;
5c9e84c2
MF
9956 *\ sim\ *)
9957 configdirs="${configdirs} gnulib"
9958 ;;
b6f9caee 9959esac
73cc7272 9960
6bd3dfaa 9961# Strip out unwanted targets.
dd12c3a8
NN
9962
9963# While at that, we remove Makefiles if we were started for recursive
9964# configuration, so that the top-level Makefile reconfigures them,
9965# like we used to do when configure itself was recursive.
dd12c3a8 9966
06a51eac
RW
9967# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9968# but now we're fixing up the Makefile ourselves with the additional
9969# commands passed to AC_CONFIG_FILES. Use separate variables
9970# extrasub-{build,host,target} not because there is any reason to split
9971# the substitutions up that way, but only to remain below the limit of
9972# 99 commands in a script, for HP-UX sed.
4119873a
AO
9973
9974# Do not nest @if/@endif or @unless/@endunless pairs, because
9975# configure will not warn you at all.
dd12c3a8 9976
16b1ad29
RW
9977case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9978 yes:yes:*\ gold\ *:*,c++,*) ;;
9979 yes:yes:*\ gold\ *:*)
d0ac1c44 9980 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
9981 ;;
9982esac
9983
06a51eac 9984extrasub_build=
6a9cf61e 9985for module in ${build_configdirs} ; do
498d4a71
CF
9986 if test -z "${no_recursion}" \
9987 && test -f ${build_subdir}/${module}/Makefile; then
9988 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9989 rm -f ${build_subdir}/${module}/Makefile
9990 fi
06a51eac 9991 extrasub_build="$extrasub_build
498d4a71
CF
9992/^@if build-$module\$/d
9993/^@endif build-$module\$/d
4119873a 9994/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 9995/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
9996/^@endif build-$module-$bootstrap_suffix\$/d
9997/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 9998done
06a51eac 9999extrasub_host=
498d4a71 10000for module in ${configdirs} ; do
80911fe1 10001 if test -z "${no_recursion}"; then
8cf39b1b 10002 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
10003 if test -f ${file}; then
10004 echo 1>&2 "*** removing ${file} to force reconfigure"
10005 rm -f ${file}
10006 fi
10007 done
498d4a71 10008 fi
201f096f 10009 case ${module},${bootstrap_fixincludes} in
10010 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
10011 *) host_bootstrap_suffix=$bootstrap_suffix ;;
10012 esac
06a51eac 10013 extrasub_host="$extrasub_host
498d4a71
CF
10014/^@if $module\$/d
10015/^@endif $module\$/d
4119873a 10016/^@unless $module\$/,/^@endunless $module\$/d
201f096f 10017/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
10018/^@endif $module-$host_bootstrap_suffix\$/d
10019/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 10020done
06a51eac 10021extrasub_target=
498d4a71
CF
10022for module in ${target_configdirs} ; do
10023 if test -z "${no_recursion}" \
10024 && test -f ${target_subdir}/${module}/Makefile; then
10025 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10026 rm -f ${target_subdir}/${module}/Makefile
10027 fi
e8a5fa9c
RW
10028
10029 # We only bootstrap target libraries listed in bootstrap_target_libs.
10030 case $bootstrap_target_libs in
10031 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
10032 *) target_bootstrap_suffix=no-bootstrap ;;
10033 esac
10034
06a51eac 10035 extrasub_target="$extrasub_target
498d4a71
CF
10036/^@if target-$module\$/d
10037/^@endif target-$module\$/d
4119873a 10038/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 10039/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
10040/^@endif target-$module-$target_bootstrap_suffix\$/d
10041/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
10042done
10043
06a51eac
RW
10044# Do the final fixup along with target modules.
10045extrasub_target="$extrasub_target
4119873a
AO
10046/^@if /,/^@endif /d
10047/^@unless /d
10048/^@endunless /d"
a0da8069 10049
af019bfd
L
10050if test "$enable_pgo_build" != "no"; then
10051 extrasub_build="$extrasub_build
10052/^@if pgo-build\$/d
10053/^@endif pgo-build\$/d"
10054fi
10055
a0da8069
NN
10056# Create the serialization dependencies. This uses a temporary file.
10057
81ecdfbb
RW
10058# Check whether --enable-serial-configure was given.
10059if test "${enable_serial_configure+set}" = set; then :
10060 enableval=$enable_serial_configure;
10061fi
e6bfb94a
AO
10062
10063
1047cb91
DD
10064case ${enable_serial_configure} in
10065 yes)
10066 enable_serial_build_configure=yes
10067 enable_serial_host_configure=yes
10068 enable_serial_target_configure=yes
10069 ;;
10070esac
10071
a0da8069
NN
10072# These force 'configure's to be done one at a time, to avoid problems
10073# with contention over a shared config.cache.
10074rm -f serdep.tmp
6a6859cb 10075if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes; then
e6bfb94a 10076echo '# serdep.tmp' > serdep.tmp
6a6859cb 10077fi
a0da8069 10078olditem=
1047cb91 10079test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
10080for item in ${build_configdirs} ; do
10081 case ${olditem} in
10082 "") ;;
e6bfb94a 10083 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
10084 esac
10085 olditem=${item}
10086done
10087olditem=
1047cb91 10088test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
10089for item in ${configdirs} ; do
10090 case ${olditem} in
10091 "") ;;
e6bfb94a 10092 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
10093 esac
10094 olditem=${item}
10095done
10096olditem=
1047cb91 10097test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
10098for item in ${target_configdirs} ; do
10099 case ${olditem} in
10100 "") ;;
e6bfb94a 10101 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
10102 esac
10103 olditem=${item}
10104done
10105serialization_dependencies=serdep.tmp
10106
10107
e6bfb94a 10108# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 10109# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
10110# might not want to pass down to subconfigures. The exception being
10111# --cache-file=/dev/null, which is used to turn off the use of cache
10112# files altogether, and which should be passed on to subconfigures.
10113# Also strip program-prefix, program-suffix, and program-transform-name,
10114# so that we can pass down a consistent program-transform-name.
862776f2
AA
10115hbaseargs=
10116bbaseargs=
65b4571a 10117tbaseargs=
c6b750e1
DJ
10118keep_next=no
10119skip_next=no
10120eval "set -- $ac_configure_args"
18f6b6ee
PB
10121for ac_arg
10122do
c6b750e1
DJ
10123 if test X"$skip_next" = X"yes"; then
10124 skip_next=no
10125 continue
10126 fi
10127 if test X"$keep_next" = X"yes"; then
10128 case $ac_arg in
10129 *\'*)
10130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10131 esac
862776f2
AA
10132 hbaseargs="$hbaseargs '$ac_arg'"
10133 bbaseargs="$bbaseargs '$ac_arg'"
65b4571a 10134 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
10135 keep_next=no
10136 continue
10137 fi
10138
10139 # Handle separated arguments. Based on the logic generated by
10140 # autoconf 2.59.
10141 case $ac_arg in
10142 *=* | --config-cache | -C | -disable-* | --disable-* \
10143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10145 | -with-* | --with-* | -without-* | --without-* | --x)
10146 separate_arg=no
10147 ;;
10148 -*)
10149 separate_arg=yes
10150 ;;
10151 *)
10152 separate_arg=no
10153 ;;
10154 esac
10155
65b4571a 10156 skip_targ=no
862776f2 10157 skip_barg=no
65b4571a
AO
10158 case $ac_arg in
10159
10160 --with-* | --without-*)
10161 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10162
10163 case $libopt in
10164 *[-_]include)
10165 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10166 ;;
10167 *[-_]lib)
10168 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10169 ;;
862776f2
AA
10170 *[-_]prefix)
10171 lib=`echo "$libopt" | sed 's,[-_]prefix$,,'`
10172 ;;
10173 *[-_]type)
10174 lib=`echo "$libopt" | sed 's,[-_]type$,,'`
10175 ;;
65b4571a
AO
10176 *)
10177 lib=$libopt
10178 ;;
10179 esac
10180
10181
10182 case $lib in
1b6c0831 10183 mpc | mpfr | gmp | isl)
65b4571a
AO
10184 # If we're processing --with-$lib, --with-$lib-include or
10185 # --with-$lib-lib, for one of the libs above, and target is
10186 # different from host, don't pass the current argument to any
10187 # target library's configure.
10188 if test x$is_cross_compiler = xyes; then
10189 skip_targ=yes
10190 fi
10191 ;;
862776f2
AA
10192 libintl | libiconv)
10193 # We don't want libintl (and co.) in anything but the host arguments.
10194 skip_targ=yes
10195 skip_barg=yes
10196 ;;
65b4571a
AO
10197 esac
10198 ;;
10199 esac
10200
c6b750e1 10201 case "$ac_arg" in
30167e0a
NC
10202 --cache-file=/dev/null | \
10203 -cache-file=/dev/null )
10204 # Handled here to avoid the test to skip args below.
862776f2
AA
10205 hbaseargs="$hbaseargs '$ac_arg'"
10206 bbaseargs="$bbaseargs '$ac_arg'"
65b4571a 10207 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
10208 # Assert: $separate_arg should always be no.
10209 keep_next=$separate_arg
10210 ;;
c6b750e1
DJ
10211 --no*)
10212 continue
10213 ;;
10214 --c* | \
10215 --sr* | \
10216 --ho* | \
10217 --bu* | \
10218 --t* | \
10219 --program-* | \
10220 -cache_file* | \
10221 -srcdir* | \
10222 -host* | \
10223 -build* | \
10224 -target* | \
10225 -program-prefix* | \
10226 -program-suffix* | \
10227 -program-transform-name* )
10228 skip_next=$separate_arg
10229 continue
10230 ;;
10231 -*)
10232 # An option. Add it.
10233 case $ac_arg in
10234 *\'*)
10235 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10236 esac
862776f2
AA
10237 hbaseargs="$hbaseargs '$ac_arg'"
10238 if test X"$skip_barg" = Xno; then
10239 bbaseargs="$bbaseargs '$ac_arg'"
10240 fi
65b4571a
AO
10241 if test X"$skip_targ" = Xno; then
10242 tbaseargs="$tbaseargs '$ac_arg'"
10243 fi
c6b750e1
DJ
10244 keep_next=$separate_arg
10245 ;;
10246 *)
10247 # Either a variable assignment, or a nonopt (triplet). Don't
10248 # pass it down; let the Makefile handle this.
10249 continue
10250 ;;
10251 esac
10252done
10253# Remove the initial space we just introduced and, as these will be
10254# expanded by make, quote '$'.
862776f2
AA
10255hbaseargs=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10256bbaseargs=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 10257
f27d4f92
DJ
10258# Add in --program-transform-name, after --program-prefix and
10259# --program-suffix have been applied to it. Autoconf has already
10260# doubled dollar signs and backslashes in program_transform_name; we want
10261# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 10262# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
10263# Also, because we want to override the logic in subdir configure scripts to
10264# choose program_transform_name, replace any s,x,x, with s,y,y,.
10265sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10266${program_transform_name}
10267EOF_SED
10268gcc_transform_name=`cat conftestsed.out`
10269rm -f conftestsed.out
862776f2
AA
10270hbaseargs="$hbaseargs --program-transform-name='${gcc_transform_name}'"
10271bbaseargs="$bbaseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 10272tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b 10273if test "$silent" = yes; then
862776f2
AA
10274 bbaseargs="$bbaseargs --silent"
10275 hbaseargs="$hbaseargs --silent"
65b4571a 10276 tbaseargs="$tbaseargs --silent"
2444379b 10277fi
e5f2f7d9 10278
862776f2
AA
10279bbaseargs="$bbaseargs --disable-option-checking"
10280hbaseargs="$hbaseargs --disable-option-checking"
65b4571a 10281tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 10282
e5f2f7d9
LM
10283if test "$enable_year2038" = no; then
10284 baseargs="$baseargs --disable-year2038"
10285 tbaseargs="$tbaseargs --disable-year2038"
10286fi
10287
4074d5f2
RW
10288# Record and document user additions to sub configure arguments.
10289
10290
10291
10292
a0da8069
NN
10293# For the build-side libraries, we just need to pretend we're native,
10294# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
10295# desired. We can't even use the same cache file for all build-side
10296# libraries, as they're compiled differently; some with C, some with
10297# C++ or with different feature-enabling options.
862776f2 10298build_configargs="$build_configargs --cache-file=./config.cache ${bbaseargs}"
a0da8069
NN
10299
10300# For host modules, accept cache file option, or specification as blank.
10301case "${cache_file}" in
10302"") # empty
10303 cache_file_option="" ;;
10304/* | [A-Za-z]:[\\/]* ) # absolute path
10305 cache_file_option="--cache-file=${cache_file}" ;;
10306*) # relative path
10307 cache_file_option="--cache-file=../${cache_file}" ;;
10308esac
10309
82252c06
NN
10310# Host dirs don't like to share a cache file either, horribly enough.
10311# This seems to be due to autoconf 2.5x stupidity.
862776f2 10312host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
a0da8069 10313
65b4571a 10314target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
10315
10316# Passing a --with-cross-host argument lets the target libraries know
10317# whether they are being built with a cross-compiler or being built
10318# native. However, it would be better to use other mechanisms to make the
10319# sorts of decisions they want to make on this basis. Please consider
10320# this option to be deprecated. FIXME.
10321if test x${is_cross_compiler} = xyes ; then
c6b750e1 10322 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
10323fi
10324
afc0578d 10325# Special user-friendly check for native x86_64-linux build, if
10326# multilib is not explicitly enabled.
10327case "$target:$have_compiler:$host:$target:$enable_multilib" in
10328 x86_64-*linux*:yes:$build:$build:)
ce6c656d 10329 # Make sure we have a development environment that handles 32-bit
afc0578d 10330 dev64=no
10331 echo "int main () { return 0; }" > conftest.c
10332 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10333 if test $? = 0 ; then
10334 if test -s conftest || test -s conftest.exe ; then
10335 dev64=yes
10336 fi
10337 fi
10338 rm -f conftest*
10339 if test x${dev64} != xyes ; then
d0ac1c44 10340 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
afc0578d 10341 fi
10342 ;;
10343esac
10344
938d2b74
RW
10345# Default to --enable-multilib.
10346if test x${enable_multilib} = x ; then
a0da8069 10347 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 10348fi
a0da8069
NN
10349
10350# Pass --with-newlib if appropriate. Note that target_configdirs has
10351# changed from the earlier setting of with_newlib.
10352if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10353 target_configargs="--with-newlib ${target_configargs}"
10354fi
10355
95036d20
NN
10356# Different target subdirs use different values of certain variables
10357# (notably CXX). Worse, multilibs use *lots* of different values.
10358# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10359# it doesn't automatically accept command-line overrides of them.
10360# This means it's not safe for target subdirs to share a cache file,
10361# which is disgusting, but there you have it. Hopefully this can be
10362# fixed in future. It's still worthwhile to use a cache file for each
10363# directory. I think.
10364
ae380b45
MS
10365# Pass the appropriate --build, --host, --target and --cache-file arguments.
10366# We need to pass --target, as newer autoconf's requires consistency
10367# for target_alias and gcc doesn't manage it consistently.
4b900473 10368target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 10369
a0da8069
NN
10370FLAGS_FOR_TARGET=
10371case " $target_configdirs " in
10372 *" newlib "*)
10373 case " $target_configargs " in
10374 *" --with-newlib "*)
10375 case "$target" in
1f53ca9a 10376 *-cygwin*)
6d94c122 10377 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 10378 ;;
a0da8069
NN
10379 esac
10380
10381 # If we're not building GCC, don't discard standard headers.
10382 if test -d ${srcdir}/gcc; then
10383 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10384
10385 if test "${build}" != "${host}"; then
10386 # On Canadian crosses, CC_FOR_TARGET will have already been set
10387 # by `configure', so we won't have an opportunity to add -Bgcc/
10388 # to it. This is right: we don't want to search that directory
10389 # for binaries, but we want the header files in there, so add
10390 # them explicitly.
e552509b 10391 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
10392
10393 # Someone might think of using the pre-installed headers on
10394 # Canadian crosses, in case the installed compiler is not fully
10395 # compatible with the compiler being built. In this case, it
10396 # would be better to flag an error than risking having
10397 # incompatible object files being constructed. We can't
10398 # guarantee that an error will be flagged, but let's hope the
10399 # compiler will do it, when presented with incompatible header
10400 # files.
10401 fi
10402 fi
10403
10404 case "${target}-${is_cross_compiler}" in
ec11bdc6 10405 i[3456789]86-*-linux*-no)
a0da8069
NN
10406 # Here host == target, so we don't need to build gcc,
10407 # so we don't want to discard standard headers.
10408 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10409 ;;
10410 *)
10411 # If we're building newlib, use its generic headers last, but search
10412 # for any libc-related directories first (so make it the last -B
10413 # switch).
10414 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
10415
10416 # If we're building libgloss, find the startup file, simulator library
10417 # and linker script.
10418 case " $target_configdirs " in
10419 *" libgloss "*)
10420 # Look for startup file, simulator library and maybe linker script.
10421 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10422 # Look for libnosys.a in case the target needs it.
10423 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10424 # Most targets have the linker script in the source directory.
10425 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10426 ;;
10427 esac
a0da8069
NN
10428 ;;
10429 esac
10430 ;;
10431 esac
10432 ;;
10433esac
1f53ca9a 10434
45055374 10435case "$target" in
1f53ca9a
AO
10436 x86_64-*mingw* | *-w64-mingw*)
10437 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10438 # however, use a symlink named 'mingw' in ${prefix} .
10439 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10440 ;;
10441 *-mingw*)
10442 # MinGW can't be handled as Cygwin above since it does not use newlib.
10443 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'
10444 ;;
45055374 10445esac
a0da8069 10446
5fbad20a
DD
10447# Allow the user to override the flags for
10448# our build compiler if desired.
c66487f8
NC
10449if test x"${build}" = x"${host}" ; then
10450 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
e472ec9f 10451 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
c66487f8
NC
10452 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10453 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10454fi
5fbad20a 10455
a0da8069
NN
10456# On Canadian crosses, we'll be searching the right directories for
10457# the previously-installed cross compiler, so don't bother to add
10458# flags for directories within the install tree of the compiler
10459# being built; programs in there won't even run.
10460if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10461 # Search for pre-installed headers if nothing else fits.
bba45b8b 10462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
10463fi
10464
10465if test "x${use_gnu_ld}" = x &&
10466 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10467 # Arrange for us to find uninstalled linker scripts.
b00612cc 10468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
10469fi
10470
a481dbb7
DD
10471# Search for other target-specific linker scripts and such.
10472case "${target}" in
4e206d7e
DB
10473 mep*)
10474 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10475 ;;
228cf97d
AM
10476 # The VxWorks support for shared libraries is getting in
10477 # incrementally. Make sure it doesn't get activated implicitly:
10478 *vxworks*)
10479 if test "${enable_shared-unset}" = unset ; then
10480 enable_shared=no
10481 # So the build of libraries knows ...
10482 target_configargs="${target_configargs} --disable-shared"
10483 # So gcc knows ...
10484 host_configargs="${host_configargs} --disable-shared"
10485 fi
10486 ;;
4e206d7e
DB
10487esac
10488
a0da8069 10489# Makefile fragments.
3e707e94
PB
10490for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10491do
10492 eval fragval=\$$frag
10493 if test $fragval != /dev/null; then
10494 eval $frag=${srcdir}/$fragval
10495 fi
10496done
a0da8069
NN
10497
10498
10499
10500
10501
10502# Miscellanea: directories, flags, etc.
10503
10504
10505
10506
10507
10508
10509
3bbd2f8f 10510
6a9cf61e 10511# Build module lists & subconfigure args.
a0da8069
NN
10512
10513
10514
be01d343
PB
10515# Host module lists & subconfigure args.
10516
10517
10518
911e63d0 10519
be01d343
PB
10520# Target module lists & subconfigure args.
10521
10522
10523
10524# Build tools.
10525
10526
10527
1576798e
PB
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
e472ec9f 10541
228cf97d
AM
10542
10543
10544
be01d343
PB
10545# Generate default definitions for YACC, M4, LEX and other programs that run
10546# on the build machine. These are used if the Makefile can't locate these
10547# programs in objdir.
10548MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10549
10550for ac_prog in 'bison -y' byacc yacc
10551do
c6b750e1 10552 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10553set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10556if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 10557 $as_echo_n "(cached) " >&6
be01d343
PB
10558else
10559 if test -n "$YACC"; then
10560 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10561else
c6b750e1
DJ
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
81ecdfbb 10567 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10569 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10571 break 2
10572 fi
10573done
81ecdfbb
RW
10574 done
10575IFS=$as_save_IFS
c6b750e1 10576
be01d343
PB
10577fi
10578fi
c6b750e1 10579YACC=$ac_cv_prog_YACC
be01d343 10580if test -n "$YACC"; then
81ecdfbb
RW
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10582$as_echo "$YACC" >&6; }
be01d343 10583else
81ecdfbb
RW
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
be01d343
PB
10586fi
10587
81ecdfbb 10588
c6b750e1 10589 test -n "$YACC" && break
be01d343
PB
10590done
10591test -n "$YACC" || YACC="$MISSING bison -y"
10592
10593case " $build_configdirs " in
10594 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
10595esac
10596
10597for ac_prog in bison
10598do
c6b750e1 10599 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10600set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10603if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 10604 $as_echo_n "(cached) " >&6
be01d343
PB
10605else
10606 if test -n "$BISON"; then
10607 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10608else
c6b750e1
DJ
10609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610for as_dir in $PATH
10611do
10612 IFS=$as_save_IFS
10613 test -z "$as_dir" && as_dir=.
81ecdfbb 10614 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10616 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10618 break 2
10619 fi
10620done
81ecdfbb
RW
10621 done
10622IFS=$as_save_IFS
c6b750e1 10623
be01d343
PB
10624fi
10625fi
c6b750e1 10626BISON=$ac_cv_prog_BISON
be01d343 10627if test -n "$BISON"; then
81ecdfbb
RW
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10629$as_echo "$BISON" >&6; }
be01d343 10630else
81ecdfbb
RW
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632$as_echo "no" >&6; }
be01d343
PB
10633fi
10634
81ecdfbb 10635
c6b750e1 10636 test -n "$BISON" && break
be01d343
PB
10637done
10638test -n "$BISON" || BISON="$MISSING bison"
10639
10640case " $build_configdirs " in
10641 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10642esac
10643
10644for ac_prog in gm4 gnum4 m4
10645do
c6b750e1 10646 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10647set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10649$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10650if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 10651 $as_echo_n "(cached) " >&6
be01d343
PB
10652else
10653 if test -n "$M4"; then
10654 ac_cv_prog_M4="$M4" # Let the user override the test.
10655else
c6b750e1
DJ
10656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10657for as_dir in $PATH
10658do
10659 IFS=$as_save_IFS
10660 test -z "$as_dir" && as_dir=.
81ecdfbb 10661 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10663 ac_cv_prog_M4="$ac_prog"
81ecdfbb 10664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10665 break 2
10666 fi
10667done
81ecdfbb
RW
10668 done
10669IFS=$as_save_IFS
c6b750e1 10670
be01d343
PB
10671fi
10672fi
c6b750e1 10673M4=$ac_cv_prog_M4
be01d343 10674if test -n "$M4"; then
81ecdfbb
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10676$as_echo "$M4" >&6; }
be01d343 10677else
81ecdfbb
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
be01d343
PB
10680fi
10681
81ecdfbb 10682
c6b750e1 10683 test -n "$M4" && break
be01d343
PB
10684done
10685test -n "$M4" || M4="$MISSING m4"
10686
10687case " $build_configdirs " in
10688 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10689esac
10690
10691for ac_prog in flex lex
10692do
c6b750e1 10693 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10694set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10696$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10697if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 10698 $as_echo_n "(cached) " >&6
be01d343
PB
10699else
10700 if test -n "$LEX"; then
10701 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10702else
c6b750e1
DJ
10703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704for as_dir in $PATH
10705do
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
81ecdfbb 10708 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10710 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10712 break 2
10713 fi
10714done
81ecdfbb
RW
10715 done
10716IFS=$as_save_IFS
c6b750e1 10717
be01d343
PB
10718fi
10719fi
c6b750e1 10720LEX=$ac_cv_prog_LEX
be01d343 10721if test -n "$LEX"; then
81ecdfbb
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10723$as_echo "$LEX" >&6; }
be01d343 10724else
81ecdfbb
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726$as_echo "no" >&6; }
be01d343
PB
10727fi
10728
81ecdfbb 10729
c6b750e1 10730 test -n "$LEX" && break
be01d343
PB
10731done
10732test -n "$LEX" || LEX="$MISSING flex"
10733
10734case " $build_configdirs " in
10735 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10736 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10737esac
10738
10739for ac_prog in flex
10740do
c6b750e1 10741 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10742set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10745if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 10746 $as_echo_n "(cached) " >&6
be01d343
PB
10747else
10748 if test -n "$FLEX"; then
10749 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10750else
c6b750e1
DJ
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
81ecdfbb 10756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10758 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10760 break 2
10761 fi
10762done
81ecdfbb
RW
10763 done
10764IFS=$as_save_IFS
c6b750e1 10765
be01d343
PB
10766fi
10767fi
c6b750e1 10768FLEX=$ac_cv_prog_FLEX
be01d343 10769if test -n "$FLEX"; then
81ecdfbb
RW
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10771$as_echo "$FLEX" >&6; }
be01d343 10772else
81ecdfbb
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774$as_echo "no" >&6; }
be01d343
PB
10775fi
10776
81ecdfbb 10777
c6b750e1 10778 test -n "$FLEX" && break
be01d343
PB
10779done
10780test -n "$FLEX" || FLEX="$MISSING flex"
10781
10782case " $build_configdirs " in
10783 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10784esac
10785
10786for ac_prog in makeinfo
10787do
c6b750e1 10788 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10789set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10791$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10792if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 10793 $as_echo_n "(cached) " >&6
be01d343
PB
10794else
10795 if test -n "$MAKEINFO"; then
10796 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10797else
c6b750e1
DJ
10798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10799for as_dir in $PATH
10800do
10801 IFS=$as_save_IFS
10802 test -z "$as_dir" && as_dir=.
81ecdfbb 10803 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10805 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 10806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10807 break 2
10808 fi
10809done
81ecdfbb
RW
10810 done
10811IFS=$as_save_IFS
c6b750e1 10812
be01d343
PB
10813fi
10814fi
c6b750e1 10815MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 10816if test -n "$MAKEINFO"; then
81ecdfbb
RW
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10818$as_echo "$MAKEINFO" >&6; }
be01d343 10819else
81ecdfbb
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821$as_echo "no" >&6; }
be01d343
PB
10822fi
10823
81ecdfbb 10824
c6b750e1 10825 test -n "$MAKEINFO" && break
be01d343
PB
10826done
10827test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10828
10829case " $build_configdirs " in
10830 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10831 *)
10832
10ad8ef3 10833 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
10834 # higher, else we use the "missing" dummy.
10835 if ${MAKEINFO} --version \
10ad8ef3 10836 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
10837 :
10838 else
10839 MAKEINFO="$MISSING makeinfo"
10840 fi
10841 ;;
10842
10843esac
a0da8069 10844
be01d343 10845# FIXME: expect and dejagnu may become build tools?
a0da8069 10846
be01d343
PB
10847for ac_prog in expect
10848do
c6b750e1 10849 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10850set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10853if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 10854 $as_echo_n "(cached) " >&6
be01d343
PB
10855else
10856 if test -n "$EXPECT"; then
10857 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10858else
c6b750e1
DJ
10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH
10861do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
81ecdfbb 10864 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10866 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10868 break 2
10869 fi
10870done
81ecdfbb
RW
10871 done
10872IFS=$as_save_IFS
c6b750e1 10873
be01d343
PB
10874fi
10875fi
c6b750e1 10876EXPECT=$ac_cv_prog_EXPECT
be01d343 10877if test -n "$EXPECT"; then
81ecdfbb
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10879$as_echo "$EXPECT" >&6; }
be01d343 10880else
81ecdfbb
RW
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882$as_echo "no" >&6; }
be01d343 10883fi
a0da8069 10884
81ecdfbb 10885
c6b750e1 10886 test -n "$EXPECT" && break
be01d343
PB
10887done
10888test -n "$EXPECT" || EXPECT="expect"
a0da8069 10889
be01d343
PB
10890case " $configdirs " in
10891 *" expect "*)
10892 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10893 ;;
10894esac
a0da8069 10895
be01d343
PB
10896for ac_prog in runtest
10897do
c6b750e1 10898 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10899set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10902if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 10903 $as_echo_n "(cached) " >&6
be01d343
PB
10904else
10905 if test -n "$RUNTEST"; then
10906 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10907else
c6b750e1
DJ
10908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909for as_dir in $PATH
10910do
10911 IFS=$as_save_IFS
10912 test -z "$as_dir" && as_dir=.
81ecdfbb 10913 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10915 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 10916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10917 break 2
10918 fi
10919done
81ecdfbb
RW
10920 done
10921IFS=$as_save_IFS
c6b750e1 10922
be01d343
PB
10923fi
10924fi
c6b750e1 10925RUNTEST=$ac_cv_prog_RUNTEST
be01d343 10926if test -n "$RUNTEST"; then
81ecdfbb
RW
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10928$as_echo "$RUNTEST" >&6; }
be01d343 10929else
81ecdfbb
RW
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
be01d343 10932fi
a0da8069 10933
81ecdfbb 10934
c6b750e1 10935 test -n "$RUNTEST" && break
be01d343
PB
10936done
10937test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 10938
be01d343
PB
10939case " $configdirs " in
10940 *" dejagnu "*)
6b89cc21 10941 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
10942 ;;
10943esac
a0da8069
NN
10944
10945
a0da8069 10946# Host tools.
859789af
AC
10947ncn_tool_prefix=
10948test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10949ncn_target_tool_prefix=
10950test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10951
9a819804
AO
10952
10953
10954if test -n "$AR"; then
10955 ac_cv_prog_AR=$AR
10956elif test -n "$ac_cv_prog_AR"; then
10957 AR=$ac_cv_prog_AR
10958fi
10959
10960if test -n "$ac_cv_prog_AR"; then
10961 for ncn_progname in ar; do
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10966if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10967 $as_echo_n "(cached) " >&6
9a819804
AO
10968else
10969 if test -n "$AR"; then
10970 ac_cv_prog_AR="$AR" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
81ecdfbb 10977 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10979 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10981 break 2
10982 fi
10983done
81ecdfbb
RW
10984 done
10985IFS=$as_save_IFS
9a819804
AO
10986
10987fi
10988fi
10989AR=$ac_cv_prog_AR
10990if test -n "$AR"; then
81ecdfbb
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10992$as_echo "$AR" >&6; }
9a819804 10993else
81ecdfbb
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
9a819804
AO
10996fi
10997
81ecdfbb 10998
9a819804
AO
10999 done
11000fi
11001
11002for ncn_progname in ar; do
05cbd757
PB
11003 if test -n "$ncn_tool_prefix"; then
11004 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11005set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11007$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11008if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 11009 $as_echo_n "(cached) " >&6
859789af
AC
11010else
11011 if test -n "$AR"; then
11012 ac_cv_prog_AR="$AR" # Let the user override the test.
11013else
c6b750e1
DJ
11014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015for as_dir in $PATH
11016do
11017 IFS=$as_save_IFS
11018 test -z "$as_dir" && as_dir=.
81ecdfbb 11019 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11021 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11023 break 2
11024 fi
11025done
81ecdfbb
RW
11026 done
11027IFS=$as_save_IFS
c6b750e1 11028
859789af
AC
11029fi
11030fi
c6b750e1 11031AR=$ac_cv_prog_AR
859789af 11032if test -n "$AR"; then
81ecdfbb
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11034$as_echo "$AR" >&6; }
859789af 11035else
81ecdfbb
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11037$as_echo "no" >&6; }
859789af
AC
11038fi
11039
81ecdfbb 11040
05cbd757
PB
11041 fi
11042 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11044set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11047if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 11048 $as_echo_n "(cached) " >&6
859789af 11049else
05cbd757
PB
11050 if test -n "$AR"; then
11051 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 11052else
c6b750e1
DJ
11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054for as_dir in $PATH
11055do
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
81ecdfbb 11058 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11060 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11062 break 2
11063 fi
11064done
81ecdfbb
RW
11065 done
11066IFS=$as_save_IFS
c6b750e1 11067
859789af
AC
11068fi
11069fi
c6b750e1 11070AR=$ac_cv_prog_AR
05cbd757 11071if test -n "$AR"; then
81ecdfbb
RW
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11073$as_echo "$AR" >&6; }
859789af 11074else
81ecdfbb
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
859789af 11077fi
c6b750e1 11078
81ecdfbb 11079
05cbd757
PB
11080 fi
11081 test -n "$ac_cv_prog_AR" && break
11082done
11083
11084if test -z "$ac_cv_prog_AR" ; then
11085 set dummy ar
11086 if test $build = $host ; then
11087 AR="$2"
859789af 11088 else
05cbd757 11089 AR="${ncn_tool_prefix}$2"
859789af 11090 fi
859789af
AC
11091fi
11092
9a819804
AO
11093
11094
11095if test -n "$AS"; then
11096 ac_cv_prog_AS=$AS
11097elif test -n "$ac_cv_prog_AS"; then
11098 AS=$ac_cv_prog_AS
11099fi
11100
11101if test -n "$ac_cv_prog_AS"; then
11102 for ncn_progname in as; do
11103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11104set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11107if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11108 $as_echo_n "(cached) " >&6
9a819804
AO
11109else
11110 if test -n "$AS"; then
11111 ac_cv_prog_AS="$AS" # Let the user override the test.
11112else
11113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114for as_dir in $PATH
11115do
11116 IFS=$as_save_IFS
11117 test -z "$as_dir" && as_dir=.
81ecdfbb 11118 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11120 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 11121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11122 break 2
11123 fi
11124done
81ecdfbb
RW
11125 done
11126IFS=$as_save_IFS
9a819804
AO
11127
11128fi
11129fi
11130AS=$ac_cv_prog_AS
11131if test -n "$AS"; then
81ecdfbb
RW
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11133$as_echo "$AS" >&6; }
9a819804 11134else
81ecdfbb
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136$as_echo "no" >&6; }
9a819804
AO
11137fi
11138
81ecdfbb 11139
9a819804
AO
11140 done
11141fi
11142
11143for ncn_progname in as; do
05cbd757
PB
11144 if test -n "$ncn_tool_prefix"; then
11145 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11146set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11149if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11150 $as_echo_n "(cached) " >&6
859789af
AC
11151else
11152 if test -n "$AS"; then
11153 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
11154else
11155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11156for as_dir in $PATH
11157do
11158 IFS=$as_save_IFS
11159 test -z "$as_dir" && as_dir=.
81ecdfbb 11160 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11162 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11164 break 2
11165 fi
11166done
81ecdfbb
RW
11167 done
11168IFS=$as_save_IFS
c6b750e1 11169
859789af
AC
11170fi
11171fi
c6b750e1 11172AS=$ac_cv_prog_AS
859789af 11173if test -n "$AS"; then
81ecdfbb
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11175$as_echo "$AS" >&6; }
859789af 11176else
81ecdfbb
RW
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178$as_echo "no" >&6; }
859789af
AC
11179fi
11180
81ecdfbb 11181
05cbd757
PB
11182 fi
11183 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11185set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11188if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11189 $as_echo_n "(cached) " >&6
859789af 11190else
05cbd757
PB
11191 if test -n "$AS"; then
11192 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 11193else
c6b750e1
DJ
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
81ecdfbb 11199 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11201 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11203 break 2
11204 fi
11205done
81ecdfbb
RW
11206 done
11207IFS=$as_save_IFS
c6b750e1 11208
859789af
AC
11209fi
11210fi
c6b750e1 11211AS=$ac_cv_prog_AS
05cbd757 11212if test -n "$AS"; then
81ecdfbb
RW
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11214$as_echo "$AS" >&6; }
859789af 11215else
81ecdfbb
RW
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217$as_echo "no" >&6; }
859789af 11218fi
c6b750e1 11219
81ecdfbb 11220
05cbd757
PB
11221 fi
11222 test -n "$ac_cv_prog_AS" && break
11223done
11224
11225if test -z "$ac_cv_prog_AS" ; then
11226 set dummy as
11227 if test $build = $host ; then
11228 AS="$2"
859789af 11229 else
05cbd757 11230 AS="${ncn_tool_prefix}$2"
859789af 11231 fi
859789af
AC
11232fi
11233
9a819804
AO
11234
11235
11236if test -n "$DLLTOOL"; then
11237 ac_cv_prog_DLLTOOL=$DLLTOOL
11238elif test -n "$ac_cv_prog_DLLTOOL"; then
11239 DLLTOOL=$ac_cv_prog_DLLTOOL
11240fi
11241
11242if test -n "$ac_cv_prog_DLLTOOL"; then
11243 for ncn_progname in dlltool; do
11244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11248if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11249 $as_echo_n "(cached) " >&6
9a819804
AO
11250else
11251 if test -n "$DLLTOOL"; then
11252 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
81ecdfbb 11259 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11261 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11263 break 2
11264 fi
11265done
81ecdfbb
RW
11266 done
11267IFS=$as_save_IFS
9a819804
AO
11268
11269fi
11270fi
11271DLLTOOL=$ac_cv_prog_DLLTOOL
11272if test -n "$DLLTOOL"; then
81ecdfbb
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11274$as_echo "$DLLTOOL" >&6; }
9a819804 11275else
81ecdfbb
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
9a819804
AO
11278fi
11279
81ecdfbb 11280
9a819804
AO
11281 done
11282fi
11283
11284for ncn_progname in dlltool; do
05cbd757
PB
11285 if test -n "$ncn_tool_prefix"; then
11286 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11287set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11290if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11291 $as_echo_n "(cached) " >&6
859789af
AC
11292else
11293 if test -n "$DLLTOOL"; then
11294 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11295else
c6b750e1
DJ
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
81ecdfbb 11301 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11303 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11305 break 2
11306 fi
11307done
81ecdfbb
RW
11308 done
11309IFS=$as_save_IFS
c6b750e1 11310
859789af
AC
11311fi
11312fi
c6b750e1 11313DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 11314if test -n "$DLLTOOL"; then
81ecdfbb
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11316$as_echo "$DLLTOOL" >&6; }
859789af 11317else
81ecdfbb
RW
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
859789af
AC
11320fi
11321
81ecdfbb 11322
05cbd757
PB
11323 fi
11324 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11329if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11330 $as_echo_n "(cached) " >&6
859789af 11331else
05cbd757
PB
11332 if test -n "$DLLTOOL"; then
11333 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 11334else
c6b750e1
DJ
11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336for as_dir in $PATH
11337do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
81ecdfbb 11340 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11342 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11344 break 2
11345 fi
11346done
81ecdfbb
RW
11347 done
11348IFS=$as_save_IFS
c6b750e1 11349
859789af
AC
11350fi
11351fi
c6b750e1 11352DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 11353if test -n "$DLLTOOL"; then
81ecdfbb
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11355$as_echo "$DLLTOOL" >&6; }
859789af 11356else
81ecdfbb
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
859789af 11359fi
c6b750e1 11360
81ecdfbb 11361
05cbd757
PB
11362 fi
11363 test -n "$ac_cv_prog_DLLTOOL" && break
11364done
11365
11366if test -z "$ac_cv_prog_DLLTOOL" ; then
11367 set dummy dlltool
11368 if test $build = $host ; then
11369 DLLTOOL="$2"
859789af 11370 else
05cbd757 11371 DLLTOOL="${ncn_tool_prefix}$2"
859789af 11372 fi
859789af
AC
11373fi
11374
9a819804
AO
11375
11376
228cf97d
AM
11377if test -n "$DSYMUTIL"; then
11378 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11379elif test -n "$ac_cv_prog_DSYMUTIL"; then
11380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11381fi
11382
11383if test -n "$ac_cv_prog_DSYMUTIL"; then
11384 for ncn_progname in dsymutil; do
11385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11386set dummy ${ncn_progname}; ac_word=$2
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if ${ac_cv_prog_DSYMUTIL+:} false; then :
11390 $as_echo_n "(cached) " >&6
11391else
11392 if test -n "$DSYMUTIL"; then
11393 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407 done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412DSYMUTIL=$ac_cv_prog_DSYMUTIL
11413if test -n "$DSYMUTIL"; then
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11415$as_echo "$DSYMUTIL" >&6; }
11416else
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419fi
11420
11421
11422 done
11423fi
11424
11425for ncn_progname in dsymutil; do
11426 if test -n "$ncn_tool_prefix"; then
11427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11428set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11430$as_echo_n "checking for $ac_word... " >&6; }
11431if ${ac_cv_prog_DSYMUTIL+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433else
11434 if test -n "$DSYMUTIL"; then
11435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11436else
11437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $PATH
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11444 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11446 break 2
11447 fi
11448done
11449 done
11450IFS=$as_save_IFS
11451
11452fi
11453fi
11454DSYMUTIL=$ac_cv_prog_DSYMUTIL
11455if test -n "$DSYMUTIL"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11457$as_echo "$DSYMUTIL" >&6; }
11458else
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
11461fi
11462
11463
11464 fi
11465 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467set dummy ${ncn_progname}; ac_word=$2
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if ${ac_cv_prog_DSYMUTIL+:} false; then :
11471 $as_echo_n "(cached) " >&6
11472else
11473 if test -n "$DSYMUTIL"; then
11474 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488 done
11489IFS=$as_save_IFS
11490
11491fi
11492fi
11493DSYMUTIL=$ac_cv_prog_DSYMUTIL
11494if test -n "$DSYMUTIL"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11496$as_echo "$DSYMUTIL" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502
11503 fi
11504 test -n "$ac_cv_prog_DSYMUTIL" && break
11505done
11506
11507if test -z "$ac_cv_prog_DSYMUTIL" ; then
11508 set dummy dsymutil
11509 if test $build = $host ; then
11510 DSYMUTIL="$2"
11511 else
11512 DSYMUTIL="${ncn_tool_prefix}$2"
11513 fi
11514fi
11515
11516
11517
9a819804
AO
11518if test -n "$LD"; then
11519 ac_cv_prog_LD=$LD
11520elif test -n "$ac_cv_prog_LD"; then
11521 LD=$ac_cv_prog_LD
11522fi
11523
11524if test -n "$ac_cv_prog_LD"; then
11525 for ncn_progname in ld; do
11526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11527set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11529$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11530if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11531 $as_echo_n "(cached) " >&6
9a819804
AO
11532else
11533 if test -n "$LD"; then
11534 ac_cv_prog_LD="$LD" # Let the user override the test.
11535else
11536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
81ecdfbb 11541 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11543 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11545 break 2
11546 fi
11547done
81ecdfbb
RW
11548 done
11549IFS=$as_save_IFS
9a819804
AO
11550
11551fi
11552fi
11553LD=$ac_cv_prog_LD
11554if test -n "$LD"; then
81ecdfbb
RW
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11556$as_echo "$LD" >&6; }
9a819804 11557else
81ecdfbb
RW
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559$as_echo "no" >&6; }
9a819804
AO
11560fi
11561
81ecdfbb 11562
9a819804
AO
11563 done
11564fi
11565
11566for ncn_progname in ld; do
05cbd757
PB
11567 if test -n "$ncn_tool_prefix"; then
11568 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11569set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11572if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11573 $as_echo_n "(cached) " >&6
859789af
AC
11574else
11575 if test -n "$LD"; then
11576 ac_cv_prog_LD="$LD" # Let the user override the test.
11577else
c6b750e1
DJ
11578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579for as_dir in $PATH
11580do
11581 IFS=$as_save_IFS
11582 test -z "$as_dir" && as_dir=.
81ecdfbb 11583 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11585 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11587 break 2
11588 fi
11589done
81ecdfbb
RW
11590 done
11591IFS=$as_save_IFS
c6b750e1 11592
859789af
AC
11593fi
11594fi
c6b750e1 11595LD=$ac_cv_prog_LD
859789af 11596if test -n "$LD"; then
81ecdfbb
RW
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11598$as_echo "$LD" >&6; }
859789af 11599else
81ecdfbb
RW
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11601$as_echo "no" >&6; }
859789af
AC
11602fi
11603
81ecdfbb 11604
05cbd757
PB
11605 fi
11606 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11608set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11611if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11612 $as_echo_n "(cached) " >&6
859789af 11613else
05cbd757
PB
11614 if test -n "$LD"; then
11615 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 11616else
c6b750e1
DJ
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
81ecdfbb 11622 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11624 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11626 break 2
11627 fi
11628done
81ecdfbb
RW
11629 done
11630IFS=$as_save_IFS
c6b750e1 11631
859789af
AC
11632fi
11633fi
c6b750e1 11634LD=$ac_cv_prog_LD
05cbd757 11635if test -n "$LD"; then
81ecdfbb
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11637$as_echo "$LD" >&6; }
859789af 11638else
81ecdfbb
RW
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640$as_echo "no" >&6; }
859789af 11641fi
c6b750e1 11642
81ecdfbb 11643
05cbd757
PB
11644 fi
11645 test -n "$ac_cv_prog_LD" && break
11646done
11647
11648if test -z "$ac_cv_prog_LD" ; then
11649 set dummy ld
11650 if test $build = $host ; then
11651 LD="$2"
859789af 11652 else
05cbd757 11653 LD="${ncn_tool_prefix}$2"
859789af 11654 fi
859789af
AC
11655fi
11656
9a819804
AO
11657
11658
11659if test -n "$LIPO"; then
11660 ac_cv_prog_LIPO=$LIPO
11661elif test -n "$ac_cv_prog_LIPO"; then
11662 LIPO=$ac_cv_prog_LIPO
11663fi
11664
11665if test -n "$ac_cv_prog_LIPO"; then
11666 for ncn_progname in lipo; do
11667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11668set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11670$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11671if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11672 $as_echo_n "(cached) " >&6
9a819804
AO
11673else
11674 if test -n "$LIPO"; then
11675 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11676else
11677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678for as_dir in $PATH
11679do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
81ecdfbb 11682 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11684 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11686 break 2
11687 fi
11688done
81ecdfbb
RW
11689 done
11690IFS=$as_save_IFS
9a819804
AO
11691
11692fi
11693fi
11694LIPO=$ac_cv_prog_LIPO
11695if test -n "$LIPO"; then
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11697$as_echo "$LIPO" >&6; }
9a819804 11698else
81ecdfbb
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700$as_echo "no" >&6; }
9a819804
AO
11701fi
11702
81ecdfbb 11703
9a819804
AO
11704 done
11705fi
11706
11707for ncn_progname in lipo; do
be01d343
PB
11708 if test -n "$ncn_tool_prefix"; then
11709 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11710set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11713if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11714 $as_echo_n "(cached) " >&6
be01d343
PB
11715else
11716 if test -n "$LIPO"; then
11717 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11718else
c6b750e1
DJ
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
81ecdfbb 11724 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11726 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11728 break 2
11729 fi
11730done
81ecdfbb
RW
11731 done
11732IFS=$as_save_IFS
c6b750e1 11733
be01d343
PB
11734fi
11735fi
c6b750e1 11736LIPO=$ac_cv_prog_LIPO
be01d343 11737if test -n "$LIPO"; then
81ecdfbb
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11739$as_echo "$LIPO" >&6; }
be01d343 11740else
81ecdfbb
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; }
be01d343
PB
11743fi
11744
81ecdfbb 11745
be01d343
PB
11746 fi
11747 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11752if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11753 $as_echo_n "(cached) " >&6
be01d343
PB
11754else
11755 if test -n "$LIPO"; then
11756 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11757else
c6b750e1
DJ
11758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759for as_dir in $PATH
11760do
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
81ecdfbb 11763 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11765 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11767 break 2
11768 fi
11769done
81ecdfbb
RW
11770 done
11771IFS=$as_save_IFS
c6b750e1 11772
be01d343
PB
11773fi
11774fi
c6b750e1 11775LIPO=$ac_cv_prog_LIPO
be01d343 11776if test -n "$LIPO"; then
81ecdfbb
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11778$as_echo "$LIPO" >&6; }
be01d343 11779else
81ecdfbb
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
be01d343 11782fi
c6b750e1 11783
81ecdfbb 11784
be01d343
PB
11785 fi
11786 test -n "$ac_cv_prog_LIPO" && break
11787done
11788
11789if test -z "$ac_cv_prog_LIPO" ; then
11790 set dummy lipo
11791 if test $build = $host ; then
11792 LIPO="$2"
11793 else
11794 LIPO="${ncn_tool_prefix}$2"
11795 fi
11796fi
11797
9a819804
AO
11798
11799
11800if test -n "$NM"; then
11801 ac_cv_prog_NM=$NM
11802elif test -n "$ac_cv_prog_NM"; then
11803 NM=$ac_cv_prog_NM
11804fi
11805
11806if test -n "$ac_cv_prog_NM"; then
11807 for ncn_progname in nm; do
11808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11809set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11812if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11813 $as_echo_n "(cached) " >&6
859789af
AC
11814else
11815 if test -n "$NM"; then
11816 ac_cv_prog_NM="$NM" # Let the user override the test.
11817else
c6b750e1
DJ
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
81ecdfbb 11823 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11825 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11827 break 2
11828 fi
11829done
81ecdfbb
RW
11830 done
11831IFS=$as_save_IFS
c6b750e1 11832
859789af
AC
11833fi
11834fi
c6b750e1 11835NM=$ac_cv_prog_NM
859789af 11836if test -n "$NM"; then
81ecdfbb
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11838$as_echo "$NM" >&6; }
859789af 11839else
81ecdfbb
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
859789af
AC
11842fi
11843
81ecdfbb 11844
9a819804
AO
11845 done
11846fi
11847
11848for ncn_progname in nm; do
11849 if test -n "$ncn_tool_prefix"; then
11850 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11851set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11853$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11854if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11855 $as_echo_n "(cached) " >&6
859789af 11856else
05cbd757
PB
11857 if test -n "$NM"; then
11858 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 11859else
c6b750e1
DJ
11860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11861for as_dir in $PATH
11862do
11863 IFS=$as_save_IFS
11864 test -z "$as_dir" && as_dir=.
81ecdfbb 11865 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11867 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11869 break 2
11870 fi
11871done
81ecdfbb
RW
11872 done
11873IFS=$as_save_IFS
c6b750e1 11874
859789af
AC
11875fi
11876fi
c6b750e1 11877NM=$ac_cv_prog_NM
05cbd757 11878if test -n "$NM"; then
81ecdfbb
RW
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11880$as_echo "$NM" >&6; }
859789af 11881else
81ecdfbb
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
859789af 11884fi
c6b750e1 11885
81ecdfbb 11886
05cbd757 11887 fi
9a819804
AO
11888 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11890set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11892$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11893if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11894 $as_echo_n "(cached) " >&6
9a819804
AO
11895else
11896 if test -n "$NM"; then
11897 ac_cv_prog_NM="$NM" # Let the user override the test.
11898else
11899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902 IFS=$as_save_IFS
11903 test -z "$as_dir" && as_dir=.
81ecdfbb 11904 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11906 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11908 break 2
11909 fi
11910done
81ecdfbb
RW
11911 done
11912IFS=$as_save_IFS
9a819804
AO
11913
11914fi
11915fi
11916NM=$ac_cv_prog_NM
11917if test -n "$NM"; then
81ecdfbb
RW
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11919$as_echo "$NM" >&6; }
9a819804 11920else
81ecdfbb
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922$as_echo "no" >&6; }
9a819804
AO
11923fi
11924
81ecdfbb 11925
9a819804
AO
11926 fi
11927 test -n "$ac_cv_prog_NM" && break
11928done
11929
11930if test -z "$ac_cv_prog_NM" ; then
11931 set dummy nm
11932 if test $build = $host ; then
11933 NM="$2"
11934 else
11935 NM="${ncn_tool_prefix}$2"
11936 fi
11937fi
11938
11939
11940
11941if test -n "$RANLIB"; then
11942 ac_cv_prog_RANLIB=$RANLIB
11943elif test -n "$ac_cv_prog_RANLIB"; then
11944 RANLIB=$ac_cv_prog_RANLIB
11945fi
11946
11947if test -n "$ac_cv_prog_RANLIB"; then
11948 for ncn_progname in ranlib; do
11949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11950set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11953if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11954 $as_echo_n "(cached) " >&6
9a819804
AO
11955else
11956 if test -n "$RANLIB"; then
11957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11958else
11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960for as_dir in $PATH
11961do
11962 IFS=$as_save_IFS
11963 test -z "$as_dir" && as_dir=.
81ecdfbb 11964 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11966 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11968 break 2
11969 fi
11970done
81ecdfbb
RW
11971 done
11972IFS=$as_save_IFS
9a819804
AO
11973
11974fi
11975fi
11976RANLIB=$ac_cv_prog_RANLIB
11977if test -n "$RANLIB"; then
81ecdfbb
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11979$as_echo "$RANLIB" >&6; }
9a819804 11980else
81ecdfbb
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982$as_echo "no" >&6; }
9a819804
AO
11983fi
11984
81ecdfbb 11985
9a819804
AO
11986 done
11987fi
859789af 11988
9a819804 11989for ncn_progname in ranlib; do
05cbd757
PB
11990 if test -n "$ncn_tool_prefix"; then
11991 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11992set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11995if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11996 $as_echo_n "(cached) " >&6
859789af
AC
11997else
11998 if test -n "$RANLIB"; then
11999 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12000else
c6b750e1
DJ
12001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
81ecdfbb 12006 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12008 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12010 break 2
12011 fi
12012done
81ecdfbb
RW
12013 done
12014IFS=$as_save_IFS
c6b750e1 12015
859789af
AC
12016fi
12017fi
c6b750e1 12018RANLIB=$ac_cv_prog_RANLIB
859789af 12019if test -n "$RANLIB"; then
81ecdfbb
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12021$as_echo "$RANLIB" >&6; }
859789af 12022else
81ecdfbb
RW
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
859789af
AC
12025fi
12026
81ecdfbb 12027
05cbd757
PB
12028 fi
12029 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12031set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12034if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12035 $as_echo_n "(cached) " >&6
859789af 12036else
05cbd757
PB
12037 if test -n "$RANLIB"; then
12038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 12039else
c6b750e1
DJ
12040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041for as_dir in $PATH
12042do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
81ecdfbb 12045 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12047 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12049 break 2
12050 fi
12051done
81ecdfbb
RW
12052 done
12053IFS=$as_save_IFS
c6b750e1 12054
859789af
AC
12055fi
12056fi
c6b750e1 12057RANLIB=$ac_cv_prog_RANLIB
05cbd757 12058if test -n "$RANLIB"; then
81ecdfbb
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12060$as_echo "$RANLIB" >&6; }
859789af 12061else
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
859789af 12064fi
c6b750e1 12065
81ecdfbb 12066
859789af 12067 fi
05cbd757
PB
12068 test -n "$ac_cv_prog_RANLIB" && break
12069done
12070
12071if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 12072 RANLIB="true"
859789af
AC
12073fi
12074
9a819804
AO
12075
12076
12077if test -n "$STRIP"; then
12078 ac_cv_prog_STRIP=$STRIP
12079elif test -n "$ac_cv_prog_STRIP"; then
12080 STRIP=$ac_cv_prog_STRIP
12081fi
12082
12083if test -n "$ac_cv_prog_STRIP"; then
12084 for ncn_progname in strip; do
12085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12086set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12089if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12090 $as_echo_n "(cached) " >&6
9a819804
AO
12091else
12092 if test -n "$STRIP"; then
12093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12094else
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
81ecdfbb 12100 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12102 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12104 break 2
12105 fi
12106done
81ecdfbb
RW
12107 done
12108IFS=$as_save_IFS
9a819804
AO
12109
12110fi
12111fi
12112STRIP=$ac_cv_prog_STRIP
12113if test -n "$STRIP"; then
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12115$as_echo "$STRIP" >&6; }
9a819804 12116else
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
9a819804
AO
12119fi
12120
81ecdfbb 12121
9a819804
AO
12122 done
12123fi
12124
12125for ncn_progname in strip; do
be01d343
PB
12126 if test -n "$ncn_tool_prefix"; then
12127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12128set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12130$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12131if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12132 $as_echo_n "(cached) " >&6
be01d343
PB
12133else
12134 if test -n "$STRIP"; then
12135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12136else
c6b750e1
DJ
12137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
81ecdfbb 12142 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12144 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12146 break 2
12147 fi
12148done
81ecdfbb
RW
12149 done
12150IFS=$as_save_IFS
c6b750e1 12151
be01d343
PB
12152fi
12153fi
c6b750e1 12154STRIP=$ac_cv_prog_STRIP
be01d343 12155if test -n "$STRIP"; then
81ecdfbb
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12157$as_echo "$STRIP" >&6; }
be01d343 12158else
81ecdfbb
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
be01d343
PB
12161fi
12162
81ecdfbb 12163
be01d343
PB
12164 fi
12165 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12167set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12170if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12171 $as_echo_n "(cached) " >&6
be01d343
PB
12172else
12173 if test -n "$STRIP"; then
12174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12175else
c6b750e1
DJ
12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177for as_dir in $PATH
12178do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
81ecdfbb 12181 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12183 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12185 break 2
12186 fi
12187done
81ecdfbb
RW
12188 done
12189IFS=$as_save_IFS
c6b750e1 12190
be01d343
PB
12191fi
12192fi
c6b750e1 12193STRIP=$ac_cv_prog_STRIP
be01d343 12194if test -n "$STRIP"; then
81ecdfbb
RW
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12196$as_echo "$STRIP" >&6; }
be01d343 12197else
81ecdfbb
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199$as_echo "no" >&6; }
be01d343 12200fi
c6b750e1 12201
81ecdfbb 12202
be01d343
PB
12203 fi
12204 test -n "$ac_cv_prog_STRIP" && break
12205done
12206
12207if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 12208 STRIP="true"
be01d343
PB
12209fi
12210
9a819804
AO
12211
12212
12213if test -n "$WINDRES"; then
12214 ac_cv_prog_WINDRES=$WINDRES
12215elif test -n "$ac_cv_prog_WINDRES"; then
12216 WINDRES=$ac_cv_prog_WINDRES
12217fi
12218
12219if test -n "$ac_cv_prog_WINDRES"; then
12220 for ncn_progname in windres; do
12221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12222set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12225if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12226 $as_echo_n "(cached) " >&6
9a819804
AO
12227else
12228 if test -n "$WINDRES"; then
12229 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
81ecdfbb 12236 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12238 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12240 break 2
12241 fi
12242done
81ecdfbb
RW
12243 done
12244IFS=$as_save_IFS
9a819804
AO
12245
12246fi
12247fi
12248WINDRES=$ac_cv_prog_WINDRES
12249if test -n "$WINDRES"; then
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12251$as_echo "$WINDRES" >&6; }
9a819804 12252else
81ecdfbb
RW
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
9a819804
AO
12255fi
12256
81ecdfbb 12257
9a819804
AO
12258 done
12259fi
12260
12261for ncn_progname in windres; do
05cbd757
PB
12262 if test -n "$ncn_tool_prefix"; then
12263 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12264set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12267if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12268 $as_echo_n "(cached) " >&6
859789af
AC
12269else
12270 if test -n "$WINDRES"; then
12271 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12272else
c6b750e1
DJ
12273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12274for as_dir in $PATH
12275do
12276 IFS=$as_save_IFS
12277 test -z "$as_dir" && as_dir=.
81ecdfbb 12278 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12280 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12282 break 2
12283 fi
12284done
81ecdfbb
RW
12285 done
12286IFS=$as_save_IFS
c6b750e1 12287
859789af
AC
12288fi
12289fi
c6b750e1 12290WINDRES=$ac_cv_prog_WINDRES
859789af 12291if test -n "$WINDRES"; then
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12293$as_echo "$WINDRES" >&6; }
859789af 12294else
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
859789af
AC
12297fi
12298
81ecdfbb 12299
05cbd757
PB
12300 fi
12301 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12303set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12306if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12307 $as_echo_n "(cached) " >&6
859789af 12308else
05cbd757
PB
12309 if test -n "$WINDRES"; then
12310 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 12311else
c6b750e1
DJ
12312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313for as_dir in $PATH
12314do
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
81ecdfbb 12317 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12319 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12321 break 2
12322 fi
12323done
81ecdfbb
RW
12324 done
12325IFS=$as_save_IFS
c6b750e1 12326
859789af
AC
12327fi
12328fi
c6b750e1 12329WINDRES=$ac_cv_prog_WINDRES
05cbd757 12330if test -n "$WINDRES"; then
81ecdfbb
RW
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12332$as_echo "$WINDRES" >&6; }
859789af 12333else
81ecdfbb
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
859789af 12336fi
c6b750e1 12337
81ecdfbb 12338
05cbd757
PB
12339 fi
12340 test -n "$ac_cv_prog_WINDRES" && break
12341done
12342
12343if test -z "$ac_cv_prog_WINDRES" ; then
12344 set dummy windres
12345 if test $build = $host ; then
12346 WINDRES="$2"
859789af 12347 else
05cbd757 12348 WINDRES="${ncn_tool_prefix}$2"
859789af 12349 fi
859789af
AC
12350fi
12351
9a819804
AO
12352
12353
0c24b341
NC
12354if test -n "$WINDMC"; then
12355 ac_cv_prog_WINDMC=$WINDMC
12356elif test -n "$ac_cv_prog_WINDMC"; then
12357 WINDMC=$ac_cv_prog_WINDMC
12358fi
12359
12360if test -n "$ac_cv_prog_WINDMC"; then
12361 for ncn_progname in windmc; do
12362 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12363set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12366if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12367 $as_echo_n "(cached) " >&6
0c24b341
NC
12368else
12369 if test -n "$WINDMC"; then
12370 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12371else
12372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12373for as_dir in $PATH
12374do
12375 IFS=$as_save_IFS
12376 test -z "$as_dir" && as_dir=.
81ecdfbb 12377 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12379 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12381 break 2
12382 fi
12383done
81ecdfbb
RW
12384 done
12385IFS=$as_save_IFS
0c24b341
NC
12386
12387fi
12388fi
12389WINDMC=$ac_cv_prog_WINDMC
12390if test -n "$WINDMC"; then
81ecdfbb
RW
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12392$as_echo "$WINDMC" >&6; }
0c24b341 12393else
81ecdfbb
RW
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395$as_echo "no" >&6; }
0c24b341
NC
12396fi
12397
81ecdfbb 12398
0c24b341
NC
12399 done
12400fi
12401
12402for ncn_progname in windmc; do
12403 if test -n "$ncn_tool_prefix"; then
12404 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12405set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12407$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12408if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12409 $as_echo_n "(cached) " >&6
0c24b341
NC
12410else
12411 if test -n "$WINDMC"; then
12412 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12413else
12414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12415for as_dir in $PATH
12416do
12417 IFS=$as_save_IFS
12418 test -z "$as_dir" && as_dir=.
81ecdfbb 12419 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12421 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12423 break 2
12424 fi
12425done
81ecdfbb
RW
12426 done
12427IFS=$as_save_IFS
0c24b341
NC
12428
12429fi
12430fi
12431WINDMC=$ac_cv_prog_WINDMC
12432if test -n "$WINDMC"; then
81ecdfbb
RW
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12434$as_echo "$WINDMC" >&6; }
0c24b341 12435else
81ecdfbb
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437$as_echo "no" >&6; }
0c24b341
NC
12438fi
12439
81ecdfbb 12440
0c24b341
NC
12441 fi
12442 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12444set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12447if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12448 $as_echo_n "(cached) " >&6
0c24b341
NC
12449else
12450 if test -n "$WINDMC"; then
12451 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12452else
12453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454for as_dir in $PATH
12455do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
81ecdfbb 12458 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12460 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12462 break 2
12463 fi
12464done
81ecdfbb
RW
12465 done
12466IFS=$as_save_IFS
0c24b341
NC
12467
12468fi
12469fi
12470WINDMC=$ac_cv_prog_WINDMC
12471if test -n "$WINDMC"; then
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12473$as_echo "$WINDMC" >&6; }
0c24b341 12474else
81ecdfbb
RW
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476$as_echo "no" >&6; }
0c24b341
NC
12477fi
12478
81ecdfbb 12479
0c24b341
NC
12480 fi
12481 test -n "$ac_cv_prog_WINDMC" && break
12482done
12483
12484if test -z "$ac_cv_prog_WINDMC" ; then
12485 set dummy windmc
12486 if test $build = $host ; then
12487 WINDMC="$2"
12488 else
12489 WINDMC="${ncn_tool_prefix}$2"
12490 fi
12491fi
12492
12493
12494
9a819804
AO
12495if test -n "$OBJCOPY"; then
12496 ac_cv_prog_OBJCOPY=$OBJCOPY
12497elif test -n "$ac_cv_prog_OBJCOPY"; then
12498 OBJCOPY=$ac_cv_prog_OBJCOPY
12499fi
12500
12501if test -n "$ac_cv_prog_OBJCOPY"; then
12502 for ncn_progname in objcopy; do
12503 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12504set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12506$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12507if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 12508 $as_echo_n "(cached) " >&6
9a819804
AO
12509else
12510 if test -n "$OBJCOPY"; then
12511 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12512else
12513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514for as_dir in $PATH
12515do
12516 IFS=$as_save_IFS
12517 test -z "$as_dir" && as_dir=.
81ecdfbb 12518 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12520 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 12521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12522 break 2
12523 fi
12524done
81ecdfbb
RW
12525 done
12526IFS=$as_save_IFS
9a819804
AO
12527
12528fi
12529fi
228cf97d
AM
12530OBJCOPY=$ac_cv_prog_OBJCOPY
12531if test -n "$OBJCOPY"; then
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12533$as_echo "$OBJCOPY" >&6; }
12534else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
12537fi
12538
12539
12540 done
12541fi
12542
12543for ncn_progname in objcopy; do
12544 if test -n "$ncn_tool_prefix"; then
12545 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12546set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if ${ac_cv_prog_OBJCOPY+:} false; then :
12550 $as_echo_n "(cached) " >&6
12551else
12552 if test -n "$OBJCOPY"; then
12553 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12554else
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12562 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12564 break 2
12565 fi
12566done
12567 done
12568IFS=$as_save_IFS
12569
12570fi
12571fi
12572OBJCOPY=$ac_cv_prog_OBJCOPY
12573if test -n "$OBJCOPY"; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12575$as_echo "$OBJCOPY" >&6; }
12576else
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
12579fi
12580
12581
12582 fi
12583 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585set dummy ${ncn_progname}; ac_word=$2
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
12588if ${ac_cv_prog_OBJCOPY+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590else
12591 if test -n "$OBJCOPY"; then
12592 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12593else
12594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_prog_OBJCOPY="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605done
12606 done
12607IFS=$as_save_IFS
12608
12609fi
12610fi
12611OBJCOPY=$ac_cv_prog_OBJCOPY
12612if test -n "$OBJCOPY"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12614$as_echo "$OBJCOPY" >&6; }
12615else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618fi
12619
12620
12621 fi
12622 test -n "$ac_cv_prog_OBJCOPY" && break
12623done
12624
12625if test -z "$ac_cv_prog_OBJCOPY" ; then
12626 set dummy objcopy
12627 if test $build = $host ; then
12628 OBJCOPY="$2"
12629 else
12630 OBJCOPY="${ncn_tool_prefix}$2"
12631 fi
12632fi
12633
12634
12635
12636if test -n "$OBJDUMP"; then
12637 ac_cv_prog_OBJDUMP=$OBJDUMP
12638elif test -n "$ac_cv_prog_OBJDUMP"; then
12639 OBJDUMP=$ac_cv_prog_OBJDUMP
12640fi
12641
12642if test -n "$ac_cv_prog_OBJDUMP"; then
12643 for ncn_progname in objdump; do
12644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12645set dummy ${ncn_progname}; ac_word=$2
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647$as_echo_n "checking for $ac_word... " >&6; }
12648if ${ac_cv_prog_OBJDUMP+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650else
12651 if test -n "$OBJDUMP"; then
12652 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12653else
12654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655for as_dir in $PATH
12656do
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for ac_exec_ext in '' $ac_executable_extensions; do
12660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12661 ac_cv_prog_OBJDUMP="${ncn_progname}"
12662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12663 break 2
12664 fi
12665done
12666 done
12667IFS=$as_save_IFS
12668
12669fi
12670fi
12671OBJDUMP=$ac_cv_prog_OBJDUMP
12672if test -n "$OBJDUMP"; then
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12674$as_echo "$OBJDUMP" >&6; }
9a819804 12675else
81ecdfbb
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
9a819804
AO
12678fi
12679
81ecdfbb 12680
9a819804
AO
12681 done
12682fi
12683
228cf97d 12684for ncn_progname in objdump; do
05cbd757
PB
12685 if test -n "$ncn_tool_prefix"; then
12686 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12687set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12690if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12691 $as_echo_n "(cached) " >&6
859789af 12692else
228cf97d
AM
12693 if test -n "$OBJDUMP"; then
12694 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12695else
c6b750e1
DJ
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
81ecdfbb 12701 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12703 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12705 break 2
12706 fi
12707done
81ecdfbb
RW
12708 done
12709IFS=$as_save_IFS
c6b750e1 12710
859789af
AC
12711fi
12712fi
228cf97d
AM
12713OBJDUMP=$ac_cv_prog_OBJDUMP
12714if test -n "$OBJDUMP"; then
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12716$as_echo "$OBJDUMP" >&6; }
859789af 12717else
81ecdfbb
RW
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
859789af
AC
12720fi
12721
81ecdfbb 12722
05cbd757 12723 fi
228cf97d 12724 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
05cbd757
PB
12725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12726set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12729if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12730 $as_echo_n "(cached) " >&6
859789af 12731else
228cf97d
AM
12732 if test -n "$OBJDUMP"; then
12733 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12734else
c6b750e1
DJ
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
81ecdfbb 12740 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12742 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12744 break 2
12745 fi
12746done
81ecdfbb
RW
12747 done
12748IFS=$as_save_IFS
c6b750e1 12749
859789af
AC
12750fi
12751fi
228cf97d
AM
12752OBJDUMP=$ac_cv_prog_OBJDUMP
12753if test -n "$OBJDUMP"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12755$as_echo "$OBJDUMP" >&6; }
859789af 12756else
81ecdfbb
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
859789af 12759fi
c6b750e1 12760
81ecdfbb 12761
05cbd757 12762 fi
228cf97d 12763 test -n "$ac_cv_prog_OBJDUMP" && break
05cbd757
PB
12764done
12765
228cf97d
AM
12766if test -z "$ac_cv_prog_OBJDUMP" ; then
12767 set dummy objdump
05cbd757 12768 if test $build = $host ; then
228cf97d 12769 OBJDUMP="$2"
859789af 12770 else
228cf97d 12771 OBJDUMP="${ncn_tool_prefix}$2"
859789af 12772 fi
859789af
AC
12773fi
12774
9a819804
AO
12775
12776
228cf97d
AM
12777if test -n "$OTOOL"; then
12778 ac_cv_prog_OTOOL=$OTOOL
12779elif test -n "$ac_cv_prog_OTOOL"; then
12780 OTOOL=$ac_cv_prog_OTOOL
9a819804
AO
12781fi
12782
228cf97d
AM
12783if test -n "$ac_cv_prog_OTOOL"; then
12784 for ncn_progname in otool; do
9a819804
AO
12785 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12786set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12788$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12789if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12790 $as_echo_n "(cached) " >&6
9a819804 12791else
228cf97d
AM
12792 if test -n "$OTOOL"; then
12793 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9a819804
AO
12794else
12795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796for as_dir in $PATH
12797do
12798 IFS=$as_save_IFS
12799 test -z "$as_dir" && as_dir=.
81ecdfbb 12800 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12802 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12804 break 2
12805 fi
12806done
81ecdfbb
RW
12807 done
12808IFS=$as_save_IFS
9a819804
AO
12809
12810fi
12811fi
228cf97d
AM
12812OTOOL=$ac_cv_prog_OTOOL
12813if test -n "$OTOOL"; then
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12815$as_echo "$OTOOL" >&6; }
9a819804 12816else
81ecdfbb
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12818$as_echo "no" >&6; }
9a819804
AO
12819fi
12820
81ecdfbb 12821
9a819804
AO
12822 done
12823fi
12824
228cf97d 12825for ncn_progname in otool; do
05cbd757
PB
12826 if test -n "$ncn_tool_prefix"; then
12827 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12828set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12831if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12832 $as_echo_n "(cached) " >&6
859789af 12833else
228cf97d
AM
12834 if test -n "$OTOOL"; then
12835 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12836else
c6b750e1
DJ
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
81ecdfbb 12842 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12844 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12846 break 2
12847 fi
12848done
81ecdfbb
RW
12849 done
12850IFS=$as_save_IFS
c6b750e1 12851
859789af
AC
12852fi
12853fi
228cf97d
AM
12854OTOOL=$ac_cv_prog_OTOOL
12855if test -n "$OTOOL"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12857$as_echo "$OTOOL" >&6; }
859789af 12858else
81ecdfbb
RW
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
859789af
AC
12861fi
12862
81ecdfbb 12863
05cbd757 12864 fi
228cf97d 12865 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
05cbd757
PB
12866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12867set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12870if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12871 $as_echo_n "(cached) " >&6
859789af 12872else
228cf97d
AM
12873 if test -n "$OTOOL"; then
12874 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12875else
c6b750e1
DJ
12876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877for as_dir in $PATH
12878do
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
81ecdfbb 12881 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12883 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12885 break 2
12886 fi
12887done
81ecdfbb
RW
12888 done
12889IFS=$as_save_IFS
c6b750e1 12890
859789af
AC
12891fi
12892fi
228cf97d
AM
12893OTOOL=$ac_cv_prog_OTOOL
12894if test -n "$OTOOL"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12896$as_echo "$OTOOL" >&6; }
859789af 12897else
81ecdfbb
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
859789af 12900fi
c6b750e1 12901
81ecdfbb 12902
05cbd757 12903 fi
228cf97d 12904 test -n "$ac_cv_prog_OTOOL" && break
05cbd757
PB
12905done
12906
228cf97d
AM
12907if test -z "$ac_cv_prog_OTOOL" ; then
12908 set dummy otool
05cbd757 12909 if test $build = $host ; then
228cf97d 12910 OTOOL="$2"
859789af 12911 else
228cf97d 12912 OTOOL="${ncn_tool_prefix}$2"
859789af 12913 fi
859789af
AC
12914fi
12915
a0da8069
NN
12916
12917
b121d7d4
DD
12918if test -n "$READELF"; then
12919 ac_cv_prog_READELF=$READELF
12920elif test -n "$ac_cv_prog_READELF"; then
12921 READELF=$ac_cv_prog_READELF
12922fi
12923
12924if test -n "$ac_cv_prog_READELF"; then
12925 for ncn_progname in readelf; do
12926 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12927set dummy ${ncn_progname}; ac_word=$2
12928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12929$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12930if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12931 $as_echo_n "(cached) " >&6
12932else
12933 if test -n "$READELF"; then
12934 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12935else
12936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937for as_dir in $PATH
12938do
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12943 ac_cv_prog_READELF="${ncn_progname}"
12944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12946 fi
12947done
12948 done
12949IFS=$as_save_IFS
12950
12951fi
12952fi
12953READELF=$ac_cv_prog_READELF
12954if test -n "$READELF"; then
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12956$as_echo "$READELF" >&6; }
12957else
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959$as_echo "no" >&6; }
12960fi
12961
12962
12963 done
12964fi
12965
12966for ncn_progname in readelf; do
12967 if test -n "$ncn_tool_prefix"; then
12968 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12969set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12971$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12972if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12973 $as_echo_n "(cached) " >&6
12974else
12975 if test -n "$READELF"; then
12976 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12977else
12978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12985 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12988 fi
12989done
12990 done
12991IFS=$as_save_IFS
12992
12993fi
12994fi
12995READELF=$ac_cv_prog_READELF
12996if test -n "$READELF"; then
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12998$as_echo "$READELF" >&6; }
12999else
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
13002fi
13003
13004
13005 fi
13006 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
13007 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13008set dummy ${ncn_progname}; ac_word=$2
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13011if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
13012 $as_echo_n "(cached) " >&6
13013else
13014 if test -n "$READELF"; then
13015 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13016else
13017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $PATH
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13024 ac_cv_prog_READELF="${ncn_progname}"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13027 fi
13028done
13029 done
13030IFS=$as_save_IFS
13031
13032fi
13033fi
13034READELF=$ac_cv_prog_READELF
13035if test -n "$READELF"; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13037$as_echo "$READELF" >&6; }
13038else
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13040$as_echo "no" >&6; }
13041fi
13042
13043
13044 fi
13045 test -n "$ac_cv_prog_READELF" && break
13046done
13047
13048if test -z "$ac_cv_prog_READELF" ; then
13049 set dummy readelf
13050 if test $build = $host ; then
13051 READELF="$2"
13052 else
13053 READELF="${ncn_tool_prefix}$2"
13054 fi
13055fi
13056
13057
13058
a0da8069
NN
13059
13060
13061
de83289e 13062
6a6859cb 13063GDCFLAGS=${GDCFLAGS-${CFLAGS}}
228cf97d 13064
9e65489a 13065
50ad1254
L
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13067$as_echo_n "checking for -plugin option... " >&6; }
13068
13069plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13070plugin_option=
13071for plugin in $plugin_names; do
13072 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13073 if test x$plugin_so = x$plugin; then
13074 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13075 fi
13076 if test x$plugin_so != x$plugin; then
13077 plugin_option="--plugin $plugin_so"
13078 break
13079 fi
13080done
03c02f31
L
13081if test -n "$ac_tool_prefix"; then
13082 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13083set dummy ${ac_tool_prefix}ar; ac_word=$2
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085$as_echo_n "checking for $ac_word... " >&6; }
13086if ${ac_cv_prog_AR+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088else
13089 if test -n "$AR"; then
13090 ac_cv_prog_AR="$AR" # Let the user override the test.
13091else
13092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093for as_dir in $PATH
13094do
13095 IFS=$as_save_IFS
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13099 ac_cv_prog_AR="${ac_tool_prefix}ar"
13100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13101 break 2
13102 fi
13103done
13104 done
13105IFS=$as_save_IFS
13106
13107fi
13108fi
13109AR=$ac_cv_prog_AR
13110if test -n "$AR"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13112$as_echo "$AR" >&6; }
13113else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
13116fi
13117
13118
13119fi
13120if test -z "$ac_cv_prog_AR"; then
13121 ac_ct_AR=$AR
13122 # Extract the first word of "ar", so it can be a program name with args.
13123set dummy ar; ac_word=$2
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125$as_echo_n "checking for $ac_word... " >&6; }
13126if ${ac_cv_prog_ac_ct_AR+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128else
13129 if test -n "$ac_ct_AR"; then
13130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13131else
13132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13133for as_dir in $PATH
13134do
13135 IFS=$as_save_IFS
13136 test -z "$as_dir" && as_dir=.
13137 for ac_exec_ext in '' $ac_executable_extensions; do
13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13139 ac_cv_prog_ac_ct_AR="ar"
13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 break 2
13142 fi
13143done
13144 done
13145IFS=$as_save_IFS
13146
13147fi
13148fi
13149ac_ct_AR=$ac_cv_prog_ac_ct_AR
13150if test -n "$ac_ct_AR"; then
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13152$as_echo "$ac_ct_AR" >&6; }
13153else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155$as_echo "no" >&6; }
13156fi
13157
13158 if test "x$ac_ct_AR" = x; then
13159 AR=""
13160 else
13161 case $cross_compiling:$ac_tool_warned in
13162yes:)
13163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13165ac_tool_warned=yes ;;
13166esac
13167 AR=$ac_ct_AR
13168 fi
13169else
13170 AR="$ac_cv_prog_AR"
13171fi
13172
13173if test "${AR}" = "" ; then
13174 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13175fi
13176touch conftest.c
13177${AR} $plugin_option rc conftest.a conftest.c
13178if test "$?" != 0; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13180$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13181 plugin_option=
13182fi
13183rm -f conftest.*
50ad1254
L
13184if test -n "$plugin_option"; then
13185 PLUGIN_OPTION="$plugin_option"
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13187$as_echo "$plugin_option" >&6; }
13188else
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190$as_echo "no" >&6; }
13191fi
13192
13193AR_PLUGIN_OPTION=
13194RANLIB_PLUGIN_OPTION=
13195if test -n "$PLUGIN_OPTION"; then
13196 if $AR --help 2>&1 | grep -q "\--plugin"; then
13197 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13198 fi
13199 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13200 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13201 fi
13202fi
13203
13204
13205
be01d343 13206# Target tools.
c6b750e1 13207
81ecdfbb
RW
13208# Check whether --with-build-time-tools was given.
13209if test "${with_build_time_tools+set}" = set; then :
13210 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
13211 x/*) ;;
13212 *)
13213 with_build_time_tools=
81ecdfbb
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13215$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
13216 ;;
13217 esac
859789af 13218else
2429c060 13219 with_build_time_tools=
81ecdfbb
RW
13220fi
13221
859789af 13222
9a819804
AO
13223
13224
13225if test -n "$CC_FOR_TARGET"; then
13226 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13227elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13228 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13229fi
13230
13231if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13232 for ncn_progname in cc gcc; do
13233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13234set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13237if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13238 $as_echo_n "(cached) " >&6
9a819804
AO
13239else
13240 if test -n "$CC_FOR_TARGET"; then
13241 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13242else
13243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244for as_dir in $PATH
13245do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
81ecdfbb 13248 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13250 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13252 break 2
13253 fi
13254done
81ecdfbb
RW
13255 done
13256IFS=$as_save_IFS
9a819804
AO
13257
13258fi
13259fi
13260CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13261if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13263$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 13264else
81ecdfbb
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266$as_echo "no" >&6; }
9a819804
AO
13267fi
13268
81ecdfbb 13269
9a819804
AO
13270 done
13271fi
13272
13273if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13274 for ncn_progname in cc gcc; do
81ecdfbb
RW
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13276$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13277 if test -x $with_build_time_tools/${ncn_progname}; then
13278 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13280$as_echo "yes" >&6; }
cac3d6c4 13281 break
2429c060 13282 else
81ecdfbb
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284$as_echo "no" >&6; }
cac3d6c4
CM
13285 fi
13286 done
55db4b87
PB
13287fi
13288
2429c060
PB
13289if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13290 for ncn_progname in cc gcc; do
13291 if test -n "$ncn_target_tool_prefix"; then
13292 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13293set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13296if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13297 $as_echo_n "(cached) " >&6
55db4b87
PB
13298else
13299 if test -n "$CC_FOR_TARGET"; then
13300 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13301else
c6b750e1
DJ
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
81ecdfbb 13307 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13309 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13311 break 2
13312 fi
13313done
81ecdfbb
RW
13314 done
13315IFS=$as_save_IFS
c6b750e1 13316
55db4b87
PB
13317fi
13318fi
c6b750e1 13319CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 13320if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13322$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13323else
81ecdfbb
RW
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325$as_echo "no" >&6; }
55db4b87
PB
13326fi
13327
81ecdfbb 13328
2429c060
PB
13329 fi
13330 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13331 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13332set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13334$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13335if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13336 $as_echo_n "(cached) " >&6
55db4b87 13337else
05cbd757
PB
13338 if test -n "$CC_FOR_TARGET"; then
13339 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 13340else
c6b750e1
DJ
13341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13342for as_dir in $PATH
13343do
13344 IFS=$as_save_IFS
13345 test -z "$as_dir" && as_dir=.
81ecdfbb 13346 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13348 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13350 break 2
13351 fi
13352done
81ecdfbb
RW
13353 done
13354IFS=$as_save_IFS
c6b750e1 13355
55db4b87
PB
13356fi
13357fi
c6b750e1 13358CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 13359if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13361$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13362else
81ecdfbb
RW
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13364$as_echo "no" >&6; }
55db4b87 13365fi
c6b750e1 13366
81ecdfbb 13367
2429c060
PB
13368 fi
13369 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13370 done
13371fi
c6b750e1 13372
05cbd757
PB
13373if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13374 set dummy cc gcc
13375 if test $build = $target ; then
13376 CC_FOR_TARGET="$2"
55db4b87 13377 else
05cbd757 13378 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13379 fi
d3f5afc4
MS
13380else
13381 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
13382fi
13383
9a819804
AO
13384
13385
13386if test -n "$CXX_FOR_TARGET"; then
13387 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13388elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13389 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13390fi
13391
13392if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13393 for ncn_progname in c++ g++ cxx gxx; do
13394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13395set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13398if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13399 $as_echo_n "(cached) " >&6
9a819804
AO
13400else
13401 if test -n "$CXX_FOR_TARGET"; then
13402 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13403else
13404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405for as_dir in $PATH
13406do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
81ecdfbb 13409 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13411 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13413 break 2
13414 fi
13415done
81ecdfbb
RW
13416 done
13417IFS=$as_save_IFS
9a819804
AO
13418
13419fi
13420fi
13421CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13422if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13424$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 13425else
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
9a819804
AO
13428fi
13429
81ecdfbb 13430
9a819804
AO
13431 done
13432fi
13433
13434if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13435 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13437$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13438 if test -x $with_build_time_tools/${ncn_progname}; then
13439 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13441$as_echo "yes" >&6; }
2429c060
PB
13442 break
13443 else
81ecdfbb
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445$as_echo "no" >&6; }
2429c060
PB
13446 fi
13447 done
13448fi
13449
13450if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13451 for ncn_progname in c++ g++ cxx gxx; do
13452 if test -n "$ncn_target_tool_prefix"; then
13453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13454set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13457if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13458 $as_echo_n "(cached) " >&6
55db4b87
PB
13459else
13460 if test -n "$CXX_FOR_TARGET"; then
13461 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13462else
c6b750e1
DJ
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466 IFS=$as_save_IFS
13467 test -z "$as_dir" && as_dir=.
81ecdfbb 13468 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13470 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13472 break 2
13473 fi
13474done
81ecdfbb
RW
13475 done
13476IFS=$as_save_IFS
c6b750e1 13477
55db4b87
PB
13478fi
13479fi
c6b750e1 13480CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 13481if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13483$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13484else
81ecdfbb
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
55db4b87
PB
13487fi
13488
81ecdfbb 13489
2429c060
PB
13490 fi
13491 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13493set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13496if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13497 $as_echo_n "(cached) " >&6
55db4b87 13498else
05cbd757
PB
13499 if test -n "$CXX_FOR_TARGET"; then
13500 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 13501else
c6b750e1
DJ
13502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503for as_dir in $PATH
13504do
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
81ecdfbb 13507 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13509 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13511 break 2
13512 fi
13513done
81ecdfbb
RW
13514 done
13515IFS=$as_save_IFS
c6b750e1 13516
55db4b87
PB
13517fi
13518fi
c6b750e1 13519CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 13520if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13522$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13523else
81ecdfbb
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13525$as_echo "no" >&6; }
55db4b87 13526fi
c6b750e1 13527
81ecdfbb 13528
2429c060
PB
13529 fi
13530 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13531 done
13532fi
c6b750e1 13533
05cbd757
PB
13534if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13535 set dummy c++ g++ cxx gxx
13536 if test $build = $target ; then
13537 CXX_FOR_TARGET="$2"
55db4b87 13538 else
05cbd757 13539 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13540 fi
d3f5afc4
MS
13541else
13542 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
13543fi
13544
9a819804
AO
13545
13546
13547if test -n "$GCC_FOR_TARGET"; then
13548 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13549elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13550 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13551fi
13552
13553if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13554 for ncn_progname in gcc; do
13555 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13556set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13558$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13559if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13560 $as_echo_n "(cached) " >&6
9a819804
AO
13561else
13562 if test -n "$GCC_FOR_TARGET"; then
13563 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13564else
13565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $PATH
13567do
13568 IFS=$as_save_IFS
13569 test -z "$as_dir" && as_dir=.
81ecdfbb 13570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13572 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13574 break 2
13575 fi
13576done
81ecdfbb
RW
13577 done
13578IFS=$as_save_IFS
9a819804
AO
13579
13580fi
13581fi
13582GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13583if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13585$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 13586else
81ecdfbb
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13588$as_echo "no" >&6; }
9a819804
AO
13589fi
13590
81ecdfbb 13591
9a819804
AO
13592 done
13593fi
13594
13595if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13596 for ncn_progname in gcc; do
81ecdfbb
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13598$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13599 if test -x $with_build_time_tools/${ncn_progname}; then
13600 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602$as_echo "yes" >&6; }
2429c060
PB
13603 break
13604 else
81ecdfbb
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606$as_echo "no" >&6; }
2429c060
PB
13607 fi
13608 done
13609fi
13610
13611if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13612 for ncn_progname in gcc; do
13613 if test -n "$ncn_target_tool_prefix"; then
13614 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13615set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13618if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13619 $as_echo_n "(cached) " >&6
859789af 13620else
2429c060
PB
13621 if test -n "$GCC_FOR_TARGET"; then
13622 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13623else
c6b750e1
DJ
13624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625for as_dir in $PATH
13626do
13627 IFS=$as_save_IFS
13628 test -z "$as_dir" && as_dir=.
81ecdfbb 13629 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13631 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13633 break 2
13634 fi
13635done
81ecdfbb
RW
13636 done
13637IFS=$as_save_IFS
c6b750e1 13638
55db4b87
PB
13639fi
13640fi
c6b750e1 13641GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 13642if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13644$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13645else
81ecdfbb
RW
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647$as_echo "no" >&6; }
55db4b87
PB
13648fi
13649
81ecdfbb 13650
2429c060
PB
13651 fi
13652 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13654set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13656$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13657if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13658 $as_echo_n "(cached) " >&6
55db4b87 13659else
05cbd757
PB
13660 if test -n "$GCC_FOR_TARGET"; then
13661 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13662else
c6b750e1
DJ
13663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13664for as_dir in $PATH
13665do
13666 IFS=$as_save_IFS
13667 test -z "$as_dir" && as_dir=.
81ecdfbb 13668 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13670 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13672 break 2
13673 fi
13674done
81ecdfbb
RW
13675 done
13676IFS=$as_save_IFS
c6b750e1 13677
55db4b87
PB
13678fi
13679fi
c6b750e1 13680GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 13681if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13683$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13684else
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13686$as_echo "no" >&6; }
55db4b87 13687fi
c6b750e1 13688
81ecdfbb 13689
2429c060
PB
13690 fi
13691 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13692 done
13693fi
c6b750e1 13694
05cbd757
PB
13695if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13696 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
13697else
13698 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
13699fi
13700
9a819804
AO
13701
13702
9a819804
AO
13703if test -n "$GFORTRAN_FOR_TARGET"; then
13704 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13705elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13706 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
13707fi
13708
9a819804
AO
13709if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13710 for ncn_progname in gfortran; do
13711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13712set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13714$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13715if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13716 $as_echo_n "(cached) " >&6
55db4b87 13717else
9a819804
AO
13718 if test -n "$GFORTRAN_FOR_TARGET"; then
13719 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 13720else
c6b750e1
DJ
13721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13722for as_dir in $PATH
13723do
13724 IFS=$as_save_IFS
13725 test -z "$as_dir" && as_dir=.
81ecdfbb 13726 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13728 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 13729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13730 break 2
13731 fi
13732done
81ecdfbb
RW
13733 done
13734IFS=$as_save_IFS
c6b750e1 13735
55db4b87
PB
13736fi
13737fi
9a819804
AO
13738GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13739if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13741$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 13742else
81ecdfbb
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13744$as_echo "no" >&6; }
55db4b87 13745fi
c6b750e1 13746
81ecdfbb 13747
2429c060
PB
13748 done
13749fi
c6b750e1 13750
9a819804 13751if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13752 for ncn_progname in gfortran; do
81ecdfbb
RW
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13754$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13755 if test -x $with_build_time_tools/${ncn_progname}; then
13756 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13758$as_echo "yes" >&6; }
2429c060
PB
13759 break
13760 else
81ecdfbb
RW
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762$as_echo "no" >&6; }
2429c060
PB
13763 fi
13764 done
13765fi
13766
13767if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13768 for ncn_progname in gfortran; do
13769 if test -n "$ncn_target_tool_prefix"; then
13770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13771set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13774if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13775 $as_echo_n "(cached) " >&6
55db4b87 13776else
228cf97d
AM
13777 if test -n "$GFORTRAN_FOR_TARGET"; then
13778 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13779else
13780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13781for as_dir in $PATH
13782do
13783 IFS=$as_save_IFS
13784 test -z "$as_dir" && as_dir=.
13785 for ac_exec_ext in '' $ac_executable_extensions; do
13786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13787 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13789 break 2
13790 fi
13791done
13792 done
13793IFS=$as_save_IFS
13794
13795fi
13796fi
13797GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13798if test -n "$GFORTRAN_FOR_TARGET"; then
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13800$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13801else
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13803$as_echo "no" >&6; }
13804fi
13805
13806
13807 fi
13808 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13810set dummy ${ncn_progname}; ac_word=$2
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13812$as_echo_n "checking for $ac_word... " >&6; }
13813if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815else
13816 if test -n "$GFORTRAN_FOR_TARGET"; then
13817 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13818else
13819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13820for as_dir in $PATH
13821do
13822 IFS=$as_save_IFS
13823 test -z "$as_dir" && as_dir=.
13824 for ac_exec_ext in '' $ac_executable_extensions; do
13825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13826 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13828 break 2
13829 fi
13830done
13831 done
13832IFS=$as_save_IFS
13833
13834fi
13835fi
13836GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13837if test -n "$GFORTRAN_FOR_TARGET"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13839$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13840else
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842$as_echo "no" >&6; }
13843fi
13844
13845
13846 fi
13847 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13848 done
13849fi
13850
13851if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13852 set dummy gfortran
13853 if test $build = $target ; then
13854 GFORTRAN_FOR_TARGET="$2"
13855 else
13856 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13857 fi
13858else
13859 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13860fi
13861
13862
13863
13864if test -n "$GOC_FOR_TARGET"; then
13865 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13866elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13867 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13868fi
13869
13870if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13871 for ncn_progname in gccgo; do
13872 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13873set dummy ${ncn_progname}; ac_word=$2
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13875$as_echo_n "checking for $ac_word... " >&6; }
13876if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13877 $as_echo_n "(cached) " >&6
13878else
13879 if test -n "$GOC_FOR_TARGET"; then
13880 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13881else
13882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13883for as_dir in $PATH
13884do
13885 IFS=$as_save_IFS
13886 test -z "$as_dir" && as_dir=.
13887 for ac_exec_ext in '' $ac_executable_extensions; do
13888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13889 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13891 break 2
13892 fi
13893done
13894 done
13895IFS=$as_save_IFS
13896
13897fi
13898fi
13899GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13900if test -n "$GOC_FOR_TARGET"; then
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13902$as_echo "$GOC_FOR_TARGET" >&6; }
13903else
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13905$as_echo "no" >&6; }
13906fi
13907
13908
13909 done
13910fi
13911
13912if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13913 for ncn_progname in gccgo; do
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13915$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13916 if test -x $with_build_time_tools/${ncn_progname}; then
13917 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13919$as_echo "yes" >&6; }
13920 break
13921 else
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13923$as_echo "no" >&6; }
13924 fi
13925 done
13926fi
13927
13928if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13929 for ncn_progname in gccgo; do
13930 if test -n "$ncn_target_tool_prefix"; then
13931 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13932set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934$as_echo_n "checking for $ac_word... " >&6; }
13935if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13936 $as_echo_n "(cached) " >&6
13937else
13938 if test -n "$GOC_FOR_TARGET"; then
13939 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
55db4b87 13940else
c6b750e1
DJ
13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942for as_dir in $PATH
13943do
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
81ecdfbb 13946 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13948 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13950 break 2
13951 fi
13952done
81ecdfbb
RW
13953 done
13954IFS=$as_save_IFS
c6b750e1 13955
55db4b87
PB
13956fi
13957fi
228cf97d
AM
13958GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13959if test -n "$GOC_FOR_TARGET"; then
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13961$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 13962else
81ecdfbb
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
55db4b87
PB
13965fi
13966
81ecdfbb 13967
2429c060 13968 fi
228cf97d 13969 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
2429c060 13970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13971set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13973$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 13974if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
81ecdfbb 13975 $as_echo_n "(cached) " >&6
55db4b87 13976else
228cf97d
AM
13977 if test -n "$GOC_FOR_TARGET"; then
13978 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13979else
13980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981for as_dir in $PATH
13982do
13983 IFS=$as_save_IFS
13984 test -z "$as_dir" && as_dir=.
81ecdfbb 13985 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13987 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13989 break 2
13990 fi
13991done
81ecdfbb
RW
13992 done
13993IFS=$as_save_IFS
c6b750e1 13994
55db4b87
PB
13995fi
13996fi
228cf97d
AM
13997GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13998if test -n "$GOC_FOR_TARGET"; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
14000$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 14001else
81ecdfbb
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003$as_echo "no" >&6; }
55db4b87 14004fi
c6b750e1 14005
81ecdfbb 14006
2429c060 14007 fi
228cf97d 14008 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
2429c060
PB
14009 done
14010fi
c6b750e1 14011
228cf97d
AM
14012if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
14013 set dummy gccgo
05cbd757 14014 if test $build = $target ; then
228cf97d 14015 GOC_FOR_TARGET="$2"
55db4b87 14016 else
228cf97d 14017 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 14018 fi
d3f5afc4 14019else
228cf97d 14020 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
859789af
AC
14021fi
14022
2429c060
PB
14023
14024
228cf97d
AM
14025if test -n "$GDC_FOR_TARGET"; then
14026 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14027elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14028 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
e552509b
ILT
14029fi
14030
228cf97d
AM
14031if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14032 for ncn_progname in gdc; do
e552509b
ILT
14033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14034set dummy ${ncn_progname}; ac_word=$2
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14037if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14038 $as_echo_n "(cached) " >&6
14039else
228cf97d
AM
14040 if test -n "$GDC_FOR_TARGET"; then
14041 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14042else
14043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14044for as_dir in $PATH
14045do
14046 IFS=$as_save_IFS
14047 test -z "$as_dir" && as_dir=.
14048 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14050 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
14051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14052 break 2
14053 fi
14054done
14055 done
14056IFS=$as_save_IFS
14057
14058fi
14059fi
228cf97d
AM
14060GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14061if test -n "$GDC_FOR_TARGET"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14063$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14064else
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066$as_echo "no" >&6; }
14067fi
14068
14069
14070 done
14071fi
14072
228cf97d
AM
14073if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14074 for ncn_progname in gdc; do
e552509b
ILT
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14076$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14077 if test -x $with_build_time_tools/${ncn_progname}; then
228cf97d 14078 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
e552509b
ILT
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080$as_echo "yes" >&6; }
14081 break
14082 else
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084$as_echo "no" >&6; }
14085 fi
14086 done
14087fi
14088
228cf97d
AM
14089if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14090 for ncn_progname in gdc; do
e552509b
ILT
14091 if test -n "$ncn_target_tool_prefix"; then
14092 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14093set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14095$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14096if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14097 $as_echo_n "(cached) " >&6
14098else
228cf97d
AM
14099 if test -n "$GDC_FOR_TARGET"; then
14100 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14101else
14102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103for as_dir in $PATH
14104do
14105 IFS=$as_save_IFS
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14109 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
e552509b
ILT
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14111 break 2
14112 fi
14113done
14114 done
14115IFS=$as_save_IFS
14116
14117fi
14118fi
228cf97d
AM
14119GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14120if test -n "$GDC_FOR_TARGET"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14122$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14123else
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125$as_echo "no" >&6; }
14126fi
14127
14128
14129 fi
228cf97d 14130 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
e552509b
ILT
14131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14132set dummy ${ncn_progname}; ac_word=$2
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14134$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14135if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14136 $as_echo_n "(cached) " >&6
14137else
228cf97d
AM
14138 if test -n "$GDC_FOR_TARGET"; then
14139 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14140else
14141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14142for as_dir in $PATH
14143do
14144 IFS=$as_save_IFS
14145 test -z "$as_dir" && as_dir=.
14146 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14148 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
14149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14150 break 2
14151 fi
14152done
14153 done
14154IFS=$as_save_IFS
14155
14156fi
14157fi
228cf97d
AM
14158GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14159if test -n "$GDC_FOR_TARGET"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14161$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14162else
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14164$as_echo "no" >&6; }
14165fi
14166
14167
14168 fi
228cf97d 14169 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
e552509b
ILT
14170 done
14171fi
14172
228cf97d
AM
14173if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14174 set dummy gdc
e552509b 14175 if test $build = $target ; then
228cf97d 14176 GDC_FOR_TARGET="$2"
e552509b 14177 else
228cf97d 14178 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
e552509b
ILT
14179 fi
14180else
228cf97d 14181 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
e552509b
ILT
14182fi
14183
14184
14185
6a6859cb
AM
14186if test -n "$GM2_FOR_TARGET"; then
14187 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14188elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14189 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14190fi
14191
14192if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14193 for ncn_progname in gm2; do
14194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14195set dummy ${ncn_progname}; ac_word=$2
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14197$as_echo_n "checking for $ac_word... " >&6; }
14198if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14199 $as_echo_n "(cached) " >&6
14200else
14201 if test -n "$GM2_FOR_TARGET"; then
14202 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14203else
14204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14205for as_dir in $PATH
14206do
14207 IFS=$as_save_IFS
14208 test -z "$as_dir" && as_dir=.
14209 for ac_exec_ext in '' $ac_executable_extensions; do
14210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14211 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14213 break 2
14214 fi
14215done
14216 done
14217IFS=$as_save_IFS
14218
14219fi
14220fi
14221GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14222if test -n "$GM2_FOR_TARGET"; then
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14224$as_echo "$GM2_FOR_TARGET" >&6; }
14225else
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14227$as_echo "no" >&6; }
14228fi
14229
14230
14231 done
14232fi
14233
14234if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14235 for ncn_progname in gm2; do
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14237$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14238 if test -x $with_build_time_tools/${ncn_progname}; then
14239 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14241$as_echo "yes" >&6; }
14242 break
14243 else
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245$as_echo "no" >&6; }
14246 fi
14247 done
14248fi
14249
14250if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14251 for ncn_progname in gm2; do
14252 if test -n "$ncn_target_tool_prefix"; then
14253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14254set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14256$as_echo_n "checking for $ac_word... " >&6; }
14257if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14258 $as_echo_n "(cached) " >&6
14259else
14260 if test -n "$GM2_FOR_TARGET"; then
14261 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14262else
14263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264for as_dir in $PATH
14265do
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14270 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274done
14275 done
14276IFS=$as_save_IFS
14277
14278fi
14279fi
14280GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14281if test -n "$GM2_FOR_TARGET"; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14283$as_echo "$GM2_FOR_TARGET" >&6; }
14284else
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286$as_echo "no" >&6; }
14287fi
14288
14289
14290 fi
14291 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14293set dummy ${ncn_progname}; ac_word=$2
14294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14295$as_echo_n "checking for $ac_word... " >&6; }
14296if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14297 $as_echo_n "(cached) " >&6
14298else
14299 if test -n "$GM2_FOR_TARGET"; then
14300 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14301else
14302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14303for as_dir in $PATH
14304do
14305 IFS=$as_save_IFS
14306 test -z "$as_dir" && as_dir=.
14307 for ac_exec_ext in '' $ac_executable_extensions; do
14308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14309 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14311 break 2
14312 fi
14313done
14314 done
14315IFS=$as_save_IFS
14316
14317fi
14318fi
14319GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14320if test -n "$GM2_FOR_TARGET"; then
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14322$as_echo "$GM2_FOR_TARGET" >&6; }
14323else
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325$as_echo "no" >&6; }
14326fi
14327
14328
14329 fi
14330 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14331 done
14332fi
14333
14334if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14335 set dummy gm2
14336 if test $build = $target ; then
14337 GM2_FOR_TARGET="$2"
14338 else
14339 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14340 fi
14341else
14342 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14343fi
14344
14345
14346
2429c060
PB
14347cat > conftest.c << \EOF
14348#ifdef __GNUC__
14349 gcc_yay;
14350#endif
14351EOF
14352if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14353 have_gcc_for_target=yes
859789af 14354else
2429c060
PB
14355 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14356 have_gcc_for_target=no
859789af 14357fi
2429c060
PB
14358rm conftest.c
14359
14360
14361
859789af 14362
2429c060
PB
14363if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14364 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14366$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14367 if test -x $with_build_time_tools/ar; then
14368 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14369 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14371$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 14372 else
81ecdfbb
RW
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14374$as_echo "no" >&6; }
3a35eeb3 14375 fi
2429c060
PB
14376 elif test $build != $host && test $have_gcc_for_target = yes; then
14377 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
14378 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14379 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 14380 fi
2429c060 14381fi
c6b750e1 14382if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14383 # Extract the first word of "ar", so it can be a program name with args.
14384set dummy ar; ac_word=$2
81ecdfbb
RW
14385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14386$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14387if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 14388 $as_echo_n "(cached) " >&6
859789af 14389else
c6b750e1
DJ
14390 case $AR_FOR_TARGET in
14391 [\\/]* | ?:[\\/]*)
2429c060
PB
14392 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14393 ;;
2429c060 14394 *)
c6b750e1
DJ
14395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396for as_dir in $gcc_cv_tool_dirs
14397do
14398 IFS=$as_save_IFS
14399 test -z "$as_dir" && as_dir=.
81ecdfbb 14400 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14402 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14404 break 2
14405 fi
14406done
81ecdfbb
RW
14407 done
14408IFS=$as_save_IFS
c6b750e1 14409
2429c060
PB
14410 ;;
14411esac
859789af 14412fi
c6b750e1 14413AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 14414if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14416$as_echo "$AR_FOR_TARGET" >&6; }
859789af 14417else
81ecdfbb
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419$as_echo "no" >&6; }
859789af 14420fi
05cbd757 14421
81ecdfbb 14422
2429c060
PB
14423fi
14424if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
14425
14426
14427if test -n "$AR_FOR_TARGET"; then
14428 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14429elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14430 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14431fi
14432
14433if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14434 for ncn_progname in ar; do
14435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14436set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14438$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14439if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14440 $as_echo_n "(cached) " >&6
9a819804
AO
14441else
14442 if test -n "$AR_FOR_TARGET"; then
14443 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14444else
14445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446for as_dir in $PATH
14447do
14448 IFS=$as_save_IFS
14449 test -z "$as_dir" && as_dir=.
81ecdfbb 14450 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14452 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14454 break 2
14455 fi
14456done
81ecdfbb
RW
14457 done
14458IFS=$as_save_IFS
9a819804
AO
14459
14460fi
14461fi
14462AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14463if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14465$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 14466else
81ecdfbb
RW
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468$as_echo "no" >&6; }
9a819804
AO
14469fi
14470
81ecdfbb 14471
9a819804
AO
14472 done
14473fi
14474
14475if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14476 for ncn_progname in ar; do
81ecdfbb
RW
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14478$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14479 if test -x $with_build_time_tools/${ncn_progname}; then
14480 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14482$as_echo "yes" >&6; }
2429c060
PB
14483 break
14484 else
81ecdfbb
RW
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14486$as_echo "no" >&6; }
2429c060
PB
14487 fi
14488 done
859789af
AC
14489fi
14490
2429c060
PB
14491if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14492 for ncn_progname in ar; do
14493 if test -n "$ncn_target_tool_prefix"; then
14494 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 14495set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14497$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14498if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14499 $as_echo_n "(cached) " >&6
7e0f7140 14500else
2429c060
PB
14501 if test -n "$AR_FOR_TARGET"; then
14502 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 14503else
c6b750e1
DJ
14504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14505for as_dir in $PATH
14506do
14507 IFS=$as_save_IFS
14508 test -z "$as_dir" && as_dir=.
81ecdfbb 14509 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14511 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14513 break 2
14514 fi
14515done
81ecdfbb
RW
14516 done
14517IFS=$as_save_IFS
c6b750e1 14518
7e0f7140
GK
14519fi
14520fi
c6b750e1 14521AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14522if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14524$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14525else
81ecdfbb
RW
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527$as_echo "no" >&6; }
7e0f7140
GK
14528fi
14529
81ecdfbb 14530
2429c060
PB
14531 fi
14532 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 14534set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14536$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14537if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14538 $as_echo_n "(cached) " >&6
7e0f7140 14539else
2429c060
PB
14540 if test -n "$AR_FOR_TARGET"; then
14541 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 14542else
c6b750e1
DJ
14543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14544for as_dir in $PATH
14545do
14546 IFS=$as_save_IFS
14547 test -z "$as_dir" && as_dir=.
81ecdfbb 14548 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14550 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14552 break 2
14553 fi
14554done
81ecdfbb
RW
14555 done
14556IFS=$as_save_IFS
c6b750e1 14557
7e0f7140
GK
14558fi
14559fi
c6b750e1 14560AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14561if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14563$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14564else
81ecdfbb
RW
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566$as_echo "no" >&6; }
7e0f7140 14567fi
c6b750e1 14568
81ecdfbb 14569
2429c060
PB
14570 fi
14571 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14572 done
14573fi
c6b750e1 14574
2429c060
PB
14575if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14576 set dummy ar
7e0f7140 14577 if test $build = $target ; then
2429c060 14578 AR_FOR_TARGET="$2"
7e0f7140 14579 else
2429c060 14580 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 14581 fi
d3f5afc4
MS
14582else
14583 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
14584fi
14585
3a35eeb3
PB
14586else
14587 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
14588fi
14589
14590
14591
14592
14593if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14594 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14596$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14597 if test -x $with_build_time_tools/as; then
14598 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14599 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14601$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 14602 else
81ecdfbb
RW
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14604$as_echo "no" >&6; }
3a35eeb3 14605 fi
2429c060
PB
14606 elif test $build != $host && test $have_gcc_for_target = yes; then
14607 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
14608 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14609 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
14610 fi
14611fi
c6b750e1 14612if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14613 # Extract the first word of "as", so it can be a program name with args.
14614set dummy as; ac_word=$2
81ecdfbb
RW
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14616$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14617if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 14618 $as_echo_n "(cached) " >&6
2429c060 14619else
c6b750e1
DJ
14620 case $AS_FOR_TARGET in
14621 [\\/]* | ?:[\\/]*)
2429c060
PB
14622 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14623 ;;
2429c060 14624 *)
c6b750e1
DJ
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626for as_dir in $gcc_cv_tool_dirs
14627do
14628 IFS=$as_save_IFS
14629 test -z "$as_dir" && as_dir=.
81ecdfbb 14630 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14632 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14634 break 2
14635 fi
14636done
81ecdfbb
RW
14637 done
14638IFS=$as_save_IFS
c6b750e1 14639
2429c060
PB
14640 ;;
14641esac
14642fi
c6b750e1 14643AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 14644if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14646$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14647else
81ecdfbb
RW
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649$as_echo "no" >&6; }
2429c060
PB
14650fi
14651
81ecdfbb 14652
2429c060
PB
14653fi
14654if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
14655
14656
14657if test -n "$AS_FOR_TARGET"; then
14658 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14659elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14660 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14661fi
14662
14663if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14664 for ncn_progname in as; do
14665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14666set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14668$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14669if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14670 $as_echo_n "(cached) " >&6
9a819804
AO
14671else
14672 if test -n "$AS_FOR_TARGET"; then
14673 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14674else
14675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14676for as_dir in $PATH
14677do
14678 IFS=$as_save_IFS
14679 test -z "$as_dir" && as_dir=.
81ecdfbb 14680 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14682 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14684 break 2
14685 fi
14686done
81ecdfbb
RW
14687 done
14688IFS=$as_save_IFS
9a819804
AO
14689
14690fi
14691fi
14692AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14693if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14695$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 14696else
81ecdfbb
RW
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698$as_echo "no" >&6; }
9a819804
AO
14699fi
14700
81ecdfbb 14701
9a819804
AO
14702 done
14703fi
14704
14705if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14706 for ncn_progname in as; do
81ecdfbb
RW
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14708$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14709 if test -x $with_build_time_tools/${ncn_progname}; then
14710 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14712$as_echo "yes" >&6; }
2429c060
PB
14713 break
14714 else
81ecdfbb
RW
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14716$as_echo "no" >&6; }
2429c060
PB
14717 fi
14718 done
14719fi
14720
14721if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14722 for ncn_progname in as; do
14723 if test -n "$ncn_target_tool_prefix"; then
14724 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14725set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14727$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14728if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14729 $as_echo_n "(cached) " >&6
2429c060
PB
14730else
14731 if test -n "$AS_FOR_TARGET"; then
14732 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14733else
c6b750e1
DJ
14734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735for as_dir in $PATH
14736do
14737 IFS=$as_save_IFS
14738 test -z "$as_dir" && as_dir=.
81ecdfbb 14739 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14741 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14743 break 2
14744 fi
14745done
81ecdfbb
RW
14746 done
14747IFS=$as_save_IFS
c6b750e1 14748
2429c060
PB
14749fi
14750fi
c6b750e1 14751AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14752if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14754$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14755else
81ecdfbb
RW
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14757$as_echo "no" >&6; }
2429c060
PB
14758fi
14759
81ecdfbb 14760
2429c060
PB
14761 fi
14762 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14764set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14766$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14767if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14768 $as_echo_n "(cached) " >&6
2429c060
PB
14769else
14770 if test -n "$AS_FOR_TARGET"; then
14771 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14772else
c6b750e1
DJ
14773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774for as_dir in $PATH
14775do
14776 IFS=$as_save_IFS
14777 test -z "$as_dir" && as_dir=.
81ecdfbb 14778 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14780 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14782 break 2
14783 fi
14784done
81ecdfbb
RW
14785 done
14786IFS=$as_save_IFS
c6b750e1 14787
2429c060
PB
14788fi
14789fi
c6b750e1 14790AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14791if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14793$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14794else
81ecdfbb
RW
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796$as_echo "no" >&6; }
2429c060 14797fi
c6b750e1 14798
81ecdfbb 14799
2429c060
PB
14800 fi
14801 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14802 done
14803fi
c6b750e1 14804
2429c060
PB
14805if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14806 set dummy as
14807 if test $build = $target ; then
14808 AS_FOR_TARGET="$2"
14809 else
14810 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14811 fi
d3f5afc4
MS
14812else
14813 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
14814fi
14815
3a35eeb3
PB
14816else
14817 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
14818fi
14819
14820
14821
14822
14823if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14824 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14826$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14827 if test -x $with_build_time_tools/dlltool; then
14828 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14829 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14831$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 14832 else
81ecdfbb
RW
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14834$as_echo "no" >&6; }
3a35eeb3 14835 fi
2429c060
PB
14836 elif test $build != $host && test $have_gcc_for_target = yes; then
14837 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
14838 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14839 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
14840 fi
14841fi
c6b750e1 14842if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14843 # Extract the first word of "dlltool", so it can be a program name with args.
14844set dummy dlltool; ac_word=$2
81ecdfbb
RW
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14846$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14847if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14848 $as_echo_n "(cached) " >&6
2429c060 14849else
c6b750e1
DJ
14850 case $DLLTOOL_FOR_TARGET in
14851 [\\/]* | ?:[\\/]*)
2429c060
PB
14852 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14853 ;;
2429c060 14854 *)
c6b750e1
DJ
14855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14856for as_dir in $gcc_cv_tool_dirs
14857do
14858 IFS=$as_save_IFS
14859 test -z "$as_dir" && as_dir=.
81ecdfbb 14860 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14862 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14864 break 2
14865 fi
14866done
81ecdfbb
RW
14867 done
14868IFS=$as_save_IFS
c6b750e1 14869
2429c060
PB
14870 ;;
14871esac
14872fi
c6b750e1 14873DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 14874if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14876$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14877else
81ecdfbb
RW
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14879$as_echo "no" >&6; }
2429c060
PB
14880fi
14881
81ecdfbb 14882
2429c060
PB
14883fi
14884if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
14885
14886
14887if test -n "$DLLTOOL_FOR_TARGET"; then
14888 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14889elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14890 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14891fi
14892
14893if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14894 for ncn_progname in dlltool; do
14895 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14896set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14898$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14899if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14900 $as_echo_n "(cached) " >&6
9a819804
AO
14901else
14902 if test -n "$DLLTOOL_FOR_TARGET"; then
14903 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14904else
14905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906for as_dir in $PATH
14907do
14908 IFS=$as_save_IFS
14909 test -z "$as_dir" && as_dir=.
81ecdfbb 14910 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14912 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 14913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14914 break 2
14915 fi
14916done
81ecdfbb
RW
14917 done
14918IFS=$as_save_IFS
9a819804
AO
14919
14920fi
14921fi
14922DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14923if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14925$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 14926else
81ecdfbb
RW
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14928$as_echo "no" >&6; }
9a819804
AO
14929fi
14930
81ecdfbb 14931
9a819804
AO
14932 done
14933fi
14934
14935if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14936 for ncn_progname in dlltool; do
81ecdfbb
RW
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14938$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14939 if test -x $with_build_time_tools/${ncn_progname}; then
14940 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14942$as_echo "yes" >&6; }
2429c060
PB
14943 break
14944 else
81ecdfbb
RW
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946$as_echo "no" >&6; }
2429c060
PB
14947 fi
14948 done
14949fi
14950
14951if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14952 for ncn_progname in dlltool; do
14953 if test -n "$ncn_target_tool_prefix"; then
14954 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14955set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14957$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14958if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14959 $as_echo_n "(cached) " >&6
2429c060
PB
14960else
14961 if test -n "$DLLTOOL_FOR_TARGET"; then
14962 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14963else
c6b750e1
DJ
14964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14965for as_dir in $PATH
14966do
14967 IFS=$as_save_IFS
14968 test -z "$as_dir" && as_dir=.
81ecdfbb 14969 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14971 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14973 break 2
14974 fi
14975done
81ecdfbb
RW
14976 done
14977IFS=$as_save_IFS
c6b750e1 14978
2429c060
PB
14979fi
14980fi
c6b750e1 14981DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 14982if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14984$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14985else
81ecdfbb
RW
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14987$as_echo "no" >&6; }
2429c060
PB
14988fi
14989
81ecdfbb 14990
2429c060
PB
14991 fi
14992 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14994set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14996$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14997if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14998 $as_echo_n "(cached) " >&6
2429c060
PB
14999else
15000 if test -n "$DLLTOOL_FOR_TARGET"; then
15001 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15002else
c6b750e1
DJ
15003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004for as_dir in $PATH
15005do
15006 IFS=$as_save_IFS
15007 test -z "$as_dir" && as_dir=.
81ecdfbb 15008 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15010 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 15011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15012 break 2
15013 fi
15014done
81ecdfbb
RW
15015 done
15016IFS=$as_save_IFS
c6b750e1 15017
2429c060
PB
15018fi
15019fi
c6b750e1 15020DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 15021if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15023$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 15024else
81ecdfbb
RW
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15026$as_echo "no" >&6; }
2429c060 15027fi
c6b750e1 15028
81ecdfbb 15029
2429c060 15030 fi
228cf97d
AM
15031 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15032 done
15033fi
15034
15035if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15036 set dummy dlltool
15037 if test $build = $target ; then
15038 DLLTOOL_FOR_TARGET="$2"
15039 else
15040 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15041 fi
15042else
15043 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15044fi
15045
15046else
15047 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15048fi
15049
15050
15051
15052
15053if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15054 if test -n "$with_build_time_tools"; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15056$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15057 if test -x $with_build_time_tools/dsymutil; then
15058 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15059 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15061$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15062 else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064$as_echo "no" >&6; }
15065 fi
15066 elif test $build != $host && test $have_gcc_for_target = yes; then
15067 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15068 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15069 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15070 fi
15071fi
15072if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15073 # Extract the first word of "dsymutil", so it can be a program name with args.
15074set dummy dsymutil; ac_word=$2
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15076$as_echo_n "checking for $ac_word... " >&6; }
15077if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15078 $as_echo_n "(cached) " >&6
15079else
15080 case $DSYMUTIL_FOR_TARGET in
15081 [\\/]* | ?:[\\/]*)
15082 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15083 ;;
15084 *)
15085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086for as_dir in $gcc_cv_tool_dirs
15087do
15088 IFS=$as_save_IFS
15089 test -z "$as_dir" && as_dir=.
15090 for ac_exec_ext in '' $ac_executable_extensions; do
15091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15092 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15094 break 2
15095 fi
15096done
15097 done
15098IFS=$as_save_IFS
15099
15100 ;;
15101esac
15102fi
15103DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15104if test -n "$DSYMUTIL_FOR_TARGET"; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15106$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15107else
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15109$as_echo "no" >&6; }
15110fi
15111
15112
15113fi
15114if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15115
15116
15117if test -n "$DSYMUTIL_FOR_TARGET"; then
15118 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15119elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15120 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15121fi
15122
15123if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15124 for ncn_progname in dsymutil; do
15125 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15126set dummy ${ncn_progname}; ac_word=$2
15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15128$as_echo_n "checking for $ac_word... " >&6; }
15129if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15130 $as_echo_n "(cached) " >&6
15131else
15132 if test -n "$DSYMUTIL_FOR_TARGET"; then
15133 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15134else
15135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15136for as_dir in $PATH
15137do
15138 IFS=$as_save_IFS
15139 test -z "$as_dir" && as_dir=.
15140 for ac_exec_ext in '' $ac_executable_extensions; do
15141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15142 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15144 break 2
15145 fi
15146done
15147 done
15148IFS=$as_save_IFS
15149
15150fi
15151fi
15152DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15153if test -n "$DSYMUTIL_FOR_TARGET"; then
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15155$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15156else
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158$as_echo "no" >&6; }
15159fi
15160
15161
15162 done
15163fi
15164
15165if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15166 for ncn_progname in dsymutil; do
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15168$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15169 if test -x $with_build_time_tools/${ncn_progname}; then
15170 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15172$as_echo "yes" >&6; }
15173 break
15174 else
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15176$as_echo "no" >&6; }
15177 fi
15178 done
15179fi
15180
15181if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15182 for ncn_progname in dsymutil; do
15183 if test -n "$ncn_target_tool_prefix"; then
15184 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15185set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15187$as_echo_n "checking for $ac_word... " >&6; }
15188if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15189 $as_echo_n "(cached) " >&6
15190else
15191 if test -n "$DSYMUTIL_FOR_TARGET"; then
15192 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15193else
15194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195for as_dir in $PATH
15196do
15197 IFS=$as_save_IFS
15198 test -z "$as_dir" && as_dir=.
15199 for ac_exec_ext in '' $ac_executable_extensions; do
15200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15201 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15203 break 2
15204 fi
15205done
15206 done
15207IFS=$as_save_IFS
15208
15209fi
15210fi
15211DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15212if test -n "$DSYMUTIL_FOR_TARGET"; then
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15214$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15215else
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217$as_echo "no" >&6; }
15218fi
15219
15220
15221 fi
15222 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15224set dummy ${ncn_progname}; ac_word=$2
15225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15226$as_echo_n "checking for $ac_word... " >&6; }
15227if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229else
15230 if test -n "$DSYMUTIL_FOR_TARGET"; then
15231 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15232else
15233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15234for as_dir in $PATH
15235do
15236 IFS=$as_save_IFS
15237 test -z "$as_dir" && as_dir=.
15238 for ac_exec_ext in '' $ac_executable_extensions; do
15239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15240 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15242 break 2
15243 fi
15244done
15245 done
15246IFS=$as_save_IFS
15247
15248fi
15249fi
15250DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15251if test -n "$DSYMUTIL_FOR_TARGET"; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15253$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15254else
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15256$as_echo "no" >&6; }
15257fi
15258
15259
15260 fi
15261 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
2429c060
PB
15262 done
15263fi
c6b750e1 15264
228cf97d
AM
15265if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15266 set dummy dsymutil
2429c060 15267 if test $build = $target ; then
228cf97d 15268 DSYMUTIL_FOR_TARGET="$2"
2429c060 15269 else
228cf97d 15270 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
2429c060 15271 fi
d3f5afc4 15272else
228cf97d 15273 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
2429c060
PB
15274fi
15275
3a35eeb3 15276else
228cf97d 15277 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
2429c060
PB
15278fi
15279
15280
15281
15282
15283if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15284 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15286$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15287 if test -x $with_build_time_tools/ld; then
15288 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15289 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15291$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 15292 else
81ecdfbb
RW
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15294$as_echo "no" >&6; }
3a35eeb3 15295 fi
2429c060
PB
15296 elif test $build != $host && test $have_gcc_for_target = yes; then
15297 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
15298 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15299 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
15300 fi
15301fi
c6b750e1 15302if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15303 # Extract the first word of "ld", so it can be a program name with args.
15304set dummy ld; ac_word=$2
81ecdfbb
RW
15305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15307if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 15308 $as_echo_n "(cached) " >&6
2429c060 15309else
c6b750e1
DJ
15310 case $LD_FOR_TARGET in
15311 [\\/]* | ?:[\\/]*)
2429c060
PB
15312 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15313 ;;
2429c060 15314 *)
c6b750e1
DJ
15315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15316for as_dir in $gcc_cv_tool_dirs
15317do
15318 IFS=$as_save_IFS
15319 test -z "$as_dir" && as_dir=.
81ecdfbb 15320 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15322 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15324 break 2
15325 fi
15326done
81ecdfbb
RW
15327 done
15328IFS=$as_save_IFS
c6b750e1 15329
2429c060
PB
15330 ;;
15331esac
15332fi
c6b750e1 15333LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 15334if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15336$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15337else
81ecdfbb
RW
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15339$as_echo "no" >&6; }
2429c060
PB
15340fi
15341
81ecdfbb 15342
2429c060
PB
15343fi
15344if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
15345
15346
15347if test -n "$LD_FOR_TARGET"; then
15348 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15349elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15350 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15351fi
15352
15353if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15354 for ncn_progname in ld; do
15355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15356set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15358$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15359if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15360 $as_echo_n "(cached) " >&6
9a819804
AO
15361else
15362 if test -n "$LD_FOR_TARGET"; then
15363 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15364else
15365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15366for as_dir in $PATH
15367do
15368 IFS=$as_save_IFS
15369 test -z "$as_dir" && as_dir=.
81ecdfbb 15370 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15372 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15374 break 2
15375 fi
15376done
81ecdfbb
RW
15377 done
15378IFS=$as_save_IFS
9a819804
AO
15379
15380fi
15381fi
15382LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15383if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15385$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 15386else
81ecdfbb
RW
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15388$as_echo "no" >&6; }
9a819804
AO
15389fi
15390
81ecdfbb 15391
9a819804
AO
15392 done
15393fi
15394
15395if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15396 for ncn_progname in ld; do
81ecdfbb
RW
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15399 if test -x $with_build_time_tools/${ncn_progname}; then
15400 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15402$as_echo "yes" >&6; }
2429c060
PB
15403 break
15404 else
81ecdfbb
RW
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15406$as_echo "no" >&6; }
2429c060
PB
15407 fi
15408 done
15409fi
15410
15411if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15412 for ncn_progname in ld; do
15413 if test -n "$ncn_target_tool_prefix"; then
15414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15417$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15418if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15419 $as_echo_n "(cached) " >&6
2429c060
PB
15420else
15421 if test -n "$LD_FOR_TARGET"; then
15422 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15423else
c6b750e1
DJ
15424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15425for as_dir in $PATH
15426do
15427 IFS=$as_save_IFS
15428 test -z "$as_dir" && as_dir=.
81ecdfbb 15429 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15431 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15433 break 2
15434 fi
15435done
81ecdfbb
RW
15436 done
15437IFS=$as_save_IFS
c6b750e1 15438
2429c060
PB
15439fi
15440fi
c6b750e1 15441LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15442if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15444$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15445else
81ecdfbb
RW
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15447$as_echo "no" >&6; }
2429c060
PB
15448fi
15449
81ecdfbb 15450
2429c060
PB
15451 fi
15452 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15454set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15456$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15457if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15458 $as_echo_n "(cached) " >&6
2429c060
PB
15459else
15460 if test -n "$LD_FOR_TARGET"; then
15461 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15462else
c6b750e1
DJ
15463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15464for as_dir in $PATH
15465do
15466 IFS=$as_save_IFS
15467 test -z "$as_dir" && as_dir=.
81ecdfbb 15468 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15470 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15472 break 2
15473 fi
15474done
81ecdfbb
RW
15475 done
15476IFS=$as_save_IFS
c6b750e1 15477
2429c060
PB
15478fi
15479fi
c6b750e1 15480LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15481if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15483$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15484else
81ecdfbb
RW
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15486$as_echo "no" >&6; }
2429c060 15487fi
c6b750e1 15488
81ecdfbb 15489
2429c060
PB
15490 fi
15491 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15492 done
15493fi
c6b750e1 15494
2429c060
PB
15495if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15496 set dummy ld
15497 if test $build = $target ; then
15498 LD_FOR_TARGET="$2"
15499 else
15500 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15501 fi
d3f5afc4
MS
15502else
15503 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
15504fi
15505
3a35eeb3
PB
15506else
15507 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
15508fi
15509
15510
15511
15512
15513if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15514 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15516$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15517 if test -x $with_build_time_tools/lipo; then
15518 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15519 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15521$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 15522 else
81ecdfbb
RW
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15524$as_echo "no" >&6; }
3a35eeb3 15525 fi
2429c060
PB
15526 elif test $build != $host && test $have_gcc_for_target = yes; then
15527 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
15528 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15529 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
15530 fi
15531fi
9a819804
AO
15532if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15533 # Extract the first word of "lipo", so it can be a program name with args.
15534set dummy lipo; ac_word=$2
81ecdfbb
RW
15535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15536$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15537if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15538 $as_echo_n "(cached) " >&6
9a819804
AO
15539else
15540 case $LIPO_FOR_TARGET in
15541 [\\/]* | ?:[\\/]*)
15542 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15543 ;;
15544 *)
15545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15546for as_dir in $gcc_cv_tool_dirs
15547do
15548 IFS=$as_save_IFS
15549 test -z "$as_dir" && as_dir=.
81ecdfbb 15550 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15552 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15554 break 2
15555 fi
15556done
81ecdfbb
RW
15557 done
15558IFS=$as_save_IFS
9a819804
AO
15559
15560 ;;
15561esac
15562fi
15563LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 15564if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15566$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 15567else
81ecdfbb
RW
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15569$as_echo "no" >&6; }
9a819804
AO
15570fi
15571
81ecdfbb 15572
9a819804
AO
15573fi
15574if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15575
15576
15577if test -n "$LIPO_FOR_TARGET"; then
15578 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15579elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15580 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15581fi
15582
15583if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15584 for ncn_progname in lipo; do
15585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15586set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15588$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15589if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15590 $as_echo_n "(cached) " >&6
2429c060 15591else
9a819804
AO
15592 if test -n "$LIPO_FOR_TARGET"; then
15593 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15594else
15595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15596for as_dir in $PATH
c6b750e1
DJ
15597do
15598 IFS=$as_save_IFS
15599 test -z "$as_dir" && as_dir=.
81ecdfbb 15600 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15602 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15604 break 2
15605 fi
15606done
81ecdfbb
RW
15607 done
15608IFS=$as_save_IFS
c6b750e1 15609
2429c060 15610fi
9a819804
AO
15611fi
15612LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15613if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15615$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15616else
81ecdfbb
RW
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15618$as_echo "no" >&6; }
2429c060
PB
15619fi
15620
81ecdfbb 15621
9a819804 15622 done
2429c060 15623fi
9a819804
AO
15624
15625if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15626 for ncn_progname in lipo; do
81ecdfbb
RW
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15628$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15629 if test -x $with_build_time_tools/${ncn_progname}; then
15630 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632$as_echo "yes" >&6; }
2429c060
PB
15633 break
15634 else
81ecdfbb
RW
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15636$as_echo "no" >&6; }
2429c060
PB
15637 fi
15638 done
15639fi
15640
15641if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15642 for ncn_progname in lipo; do
15643 if test -n "$ncn_target_tool_prefix"; then
15644 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15645set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15647$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15648if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15649 $as_echo_n "(cached) " >&6
2429c060
PB
15650else
15651 if test -n "$LIPO_FOR_TARGET"; then
15652 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15653else
c6b750e1
DJ
15654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15655for as_dir in $PATH
15656do
15657 IFS=$as_save_IFS
15658 test -z "$as_dir" && as_dir=.
81ecdfbb 15659 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15661 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15663 break 2
15664 fi
15665done
81ecdfbb
RW
15666 done
15667IFS=$as_save_IFS
c6b750e1 15668
2429c060
PB
15669fi
15670fi
c6b750e1 15671LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15672if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15674$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15675else
81ecdfbb
RW
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677$as_echo "no" >&6; }
2429c060
PB
15678fi
15679
81ecdfbb 15680
2429c060
PB
15681 fi
15682 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15683 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15684set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15686$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15687if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15688 $as_echo_n "(cached) " >&6
2429c060
PB
15689else
15690 if test -n "$LIPO_FOR_TARGET"; then
15691 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15692else
c6b750e1
DJ
15693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15694for as_dir in $PATH
15695do
15696 IFS=$as_save_IFS
15697 test -z "$as_dir" && as_dir=.
81ecdfbb 15698 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15700 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15702 break 2
15703 fi
15704done
81ecdfbb
RW
15705 done
15706IFS=$as_save_IFS
c6b750e1 15707
2429c060
PB
15708fi
15709fi
c6b750e1 15710LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15711if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15713$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15714else
81ecdfbb
RW
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15716$as_echo "no" >&6; }
2429c060 15717fi
c6b750e1 15718
81ecdfbb 15719
2429c060
PB
15720 fi
15721 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15722 done
15723fi
c6b750e1 15724
2429c060
PB
15725if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15726 set dummy lipo
15727 if test $build = $target ; then
15728 LIPO_FOR_TARGET="$2"
15729 else
15730 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15731 fi
d3f5afc4
MS
15732else
15733 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
15734fi
15735
3a35eeb3
PB
15736else
15737 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
15738fi
15739
15740
15741
15742
15743if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15744 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15746$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15747 if test -x $with_build_time_tools/nm; then
15748 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15749 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15751$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 15752 else
81ecdfbb
RW
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15754$as_echo "no" >&6; }
3a35eeb3 15755 fi
2429c060
PB
15756 elif test $build != $host && test $have_gcc_for_target = yes; then
15757 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
15758 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15759 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
15760 fi
15761fi
c6b750e1 15762if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15763 # Extract the first word of "nm", so it can be a program name with args.
15764set dummy nm; ac_word=$2
81ecdfbb
RW
15765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15766$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15767if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 15768 $as_echo_n "(cached) " >&6
2429c060 15769else
c6b750e1
DJ
15770 case $NM_FOR_TARGET in
15771 [\\/]* | ?:[\\/]*)
2429c060
PB
15772 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15773 ;;
2429c060 15774 *)
c6b750e1
DJ
15775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15776for as_dir in $gcc_cv_tool_dirs
15777do
15778 IFS=$as_save_IFS
15779 test -z "$as_dir" && as_dir=.
81ecdfbb 15780 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15782 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15784 break 2
15785 fi
15786done
81ecdfbb
RW
15787 done
15788IFS=$as_save_IFS
c6b750e1 15789
2429c060
PB
15790 ;;
15791esac
15792fi
c6b750e1 15793NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 15794if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15796$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 15797else
81ecdfbb
RW
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799$as_echo "no" >&6; }
2429c060
PB
15800fi
15801
81ecdfbb 15802
2429c060
PB
15803fi
15804if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
15805
15806
15807if test -n "$NM_FOR_TARGET"; then
15808 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15809elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15810 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15811fi
15812
15813if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15814 for ncn_progname in nm; do
15815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15816set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15818$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15819if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15820 $as_echo_n "(cached) " >&6
9a819804
AO
15821else
15822 if test -n "$NM_FOR_TARGET"; then
15823 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15824else
15825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15826for as_dir in $PATH
15827do
15828 IFS=$as_save_IFS
15829 test -z "$as_dir" && as_dir=.
81ecdfbb 15830 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15832 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15834 break 2
15835 fi
15836done
81ecdfbb
RW
15837 done
15838IFS=$as_save_IFS
9a819804
AO
15839
15840fi
15841fi
15842NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15843if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15845$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 15846else
81ecdfbb
RW
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15848$as_echo "no" >&6; }
9a819804
AO
15849fi
15850
81ecdfbb 15851
9a819804
AO
15852 done
15853fi
15854
15855if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15856 for ncn_progname in nm; do
81ecdfbb
RW
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15858$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15859 if test -x $with_build_time_tools/${ncn_progname}; then
15860 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15862$as_echo "yes" >&6; }
2429c060
PB
15863 break
15864 else
81ecdfbb
RW
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15866$as_echo "no" >&6; }
2429c060
PB
15867 fi
15868 done
15869fi
15870
15871if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15872 for ncn_progname in nm; do
15873 if test -n "$ncn_target_tool_prefix"; then
15874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 15875set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15878if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15879 $as_echo_n "(cached) " >&6
859789af 15880else
55db4b87
PB
15881 if test -n "$NM_FOR_TARGET"; then
15882 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15883else
c6b750e1
DJ
15884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885for as_dir in $PATH
15886do
15887 IFS=$as_save_IFS
15888 test -z "$as_dir" && as_dir=.
81ecdfbb 15889 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15891 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15893 break 2
15894 fi
15895done
81ecdfbb
RW
15896 done
15897IFS=$as_save_IFS
c6b750e1 15898
859789af
AC
15899fi
15900fi
c6b750e1 15901NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 15902if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15904$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15905else
81ecdfbb
RW
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907$as_echo "no" >&6; }
859789af
AC
15908fi
15909
81ecdfbb 15910
2429c060
PB
15911 fi
15912 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 15914set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15916$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15917if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15918 $as_echo_n "(cached) " >&6
859789af 15919else
05cbd757
PB
15920 if test -n "$NM_FOR_TARGET"; then
15921 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15922else
c6b750e1
DJ
15923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15924for as_dir in $PATH
15925do
15926 IFS=$as_save_IFS
15927 test -z "$as_dir" && as_dir=.
81ecdfbb 15928 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15930 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15932 break 2
15933 fi
15934done
81ecdfbb
RW
15935 done
15936IFS=$as_save_IFS
c6b750e1 15937
859789af
AC
15938fi
15939fi
c6b750e1 15940NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 15941if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15943$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15944else
81ecdfbb
RW
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946$as_echo "no" >&6; }
859789af 15947fi
c6b750e1 15948
81ecdfbb 15949
2429c060
PB
15950 fi
15951 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15952 done
15953fi
c6b750e1 15954
05cbd757
PB
15955if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15956 set dummy nm
15957 if test $build = $target ; then
15958 NM_FOR_TARGET="$2"
859789af 15959 else
05cbd757 15960 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 15961 fi
d3f5afc4
MS
15962else
15963 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
15964fi
15965
3a35eeb3
PB
15966else
15967 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
15968fi
15969
15970
15971
15972
6b91c541
AP
15973if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15974 if test -n "$with_build_time_tools"; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15976$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15977 if test -x $with_build_time_tools/objcopy; then
15978 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15979 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15981$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15982 else
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15984$as_echo "no" >&6; }
15985 fi
15986 elif test $build != $host && test $have_gcc_for_target = yes; then
15987 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15988 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15989 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15990 fi
15991fi
15992if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15993 # Extract the first word of "objcopy", so it can be a program name with args.
15994set dummy objcopy; ac_word=$2
15995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15996$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15997if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
15998 $as_echo_n "(cached) " >&6
15999else
16000 case $OBJCOPY_FOR_TARGET in
16001 [\\/]* | ?:[\\/]*)
16002 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
16003 ;;
16004 *)
16005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16006for as_dir in $gcc_cv_tool_dirs
16007do
16008 IFS=$as_save_IFS
16009 test -z "$as_dir" && as_dir=.
16010 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16012 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16014 break 2
16015 fi
16016done
16017 done
16018IFS=$as_save_IFS
16019
16020 ;;
16021esac
16022fi
16023OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16024if test -n "$OBJCOPY_FOR_TARGET"; then
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16026$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16027else
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029$as_echo "no" >&6; }
16030fi
16031
16032
16033fi
16034if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16035
16036
16037if test -n "$OBJCOPY_FOR_TARGET"; then
16038 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16039elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16040 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16041fi
16042
16043if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16044 for ncn_progname in objcopy; do
16045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16046set dummy ${ncn_progname}; ac_word=$2
16047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16048$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16049if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16050 $as_echo_n "(cached) " >&6
16051else
16052 if test -n "$OBJCOPY_FOR_TARGET"; then
16053 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16054else
16055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16056for as_dir in $PATH
16057do
16058 IFS=$as_save_IFS
16059 test -z "$as_dir" && as_dir=.
16060 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16062 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16064 break 2
16065 fi
16066done
16067 done
16068IFS=$as_save_IFS
16069
16070fi
16071fi
16072OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16073if test -n "$OBJCOPY_FOR_TARGET"; then
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16075$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16076else
16077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16078$as_echo "no" >&6; }
16079fi
16080
16081
16082 done
16083fi
16084
16085if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16086 for ncn_progname in objcopy; do
16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16088$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16089 if test -x $with_build_time_tools/${ncn_progname}; then
16090 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16092$as_echo "yes" >&6; }
16093 break
16094 else
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16096$as_echo "no" >&6; }
16097 fi
16098 done
16099fi
16100
16101if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16102 for ncn_progname in objcopy; do
16103 if test -n "$ncn_target_tool_prefix"; then
16104 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16105set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16107$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16108if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16109 $as_echo_n "(cached) " >&6
16110else
16111 if test -n "$OBJCOPY_FOR_TARGET"; then
16112 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16113else
16114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16115for as_dir in $PATH
16116do
16117 IFS=$as_save_IFS
16118 test -z "$as_dir" && as_dir=.
16119 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16121 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16123 break 2
16124 fi
16125done
16126 done
16127IFS=$as_save_IFS
16128
16129fi
16130fi
16131OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16132if test -n "$OBJCOPY_FOR_TARGET"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16134$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16135else
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137$as_echo "no" >&6; }
16138fi
16139
16140
16141 fi
16142 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16144set dummy ${ncn_progname}; ac_word=$2
16145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16146$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16147if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16148 $as_echo_n "(cached) " >&6
16149else
16150 if test -n "$OBJCOPY_FOR_TARGET"; then
16151 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16152else
16153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154for as_dir in $PATH
16155do
16156 IFS=$as_save_IFS
16157 test -z "$as_dir" && as_dir=.
16158 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16160 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16162 break 2
16163 fi
16164done
16165 done
16166IFS=$as_save_IFS
16167
16168fi
16169fi
16170OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16171if test -n "$OBJCOPY_FOR_TARGET"; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16173$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16174else
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16176$as_echo "no" >&6; }
16177fi
16178
16179
16180 fi
16181 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16182 done
16183fi
16184
16185if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16186 set dummy objcopy
16187 if test $build = $target ; then
16188 OBJCOPY_FOR_TARGET="$2"
16189 else
16190 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16191 fi
16192else
16193 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16194fi
16195
16196else
16197 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16198fi
16199
16200
16201
16202
2429c060
PB
16203if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16204 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16206$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16207 if test -x $with_build_time_tools/objdump; then
16208 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16209 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16211$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 16212 else
81ecdfbb
RW
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214$as_echo "no" >&6; }
3a35eeb3 16215 fi
2429c060
PB
16216 elif test $build != $host && test $have_gcc_for_target = yes; then
16217 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
16218 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16219 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
16220 fi
16221fi
c6b750e1 16222if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16223 # Extract the first word of "objdump", so it can be a program name with args.
16224set dummy objdump; ac_word=$2
81ecdfbb
RW
16225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16226$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16227if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16228 $as_echo_n "(cached) " >&6
2429c060 16229else
c6b750e1
DJ
16230 case $OBJDUMP_FOR_TARGET in
16231 [\\/]* | ?:[\\/]*)
2429c060
PB
16232 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16233 ;;
2429c060 16234 *)
c6b750e1
DJ
16235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16236for as_dir in $gcc_cv_tool_dirs
16237do
16238 IFS=$as_save_IFS
16239 test -z "$as_dir" && as_dir=.
81ecdfbb 16240 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16242 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16244 break 2
16245 fi
16246done
81ecdfbb
RW
16247 done
16248IFS=$as_save_IFS
c6b750e1 16249
2429c060
PB
16250 ;;
16251esac
16252fi
c6b750e1 16253OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 16254if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16256$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 16257else
81ecdfbb
RW
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259$as_echo "no" >&6; }
2429c060
PB
16260fi
16261
81ecdfbb 16262
2429c060
PB
16263fi
16264if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
16265
16266
16267if test -n "$OBJDUMP_FOR_TARGET"; then
16268 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16269elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16270 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16271fi
16272
16273if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16274 for ncn_progname in objdump; do
16275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16276set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16278$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16279if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16280 $as_echo_n "(cached) " >&6
9a819804
AO
16281else
16282 if test -n "$OBJDUMP_FOR_TARGET"; then
16283 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16284else
16285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16286for as_dir in $PATH
16287do
16288 IFS=$as_save_IFS
16289 test -z "$as_dir" && as_dir=.
81ecdfbb 16290 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16292 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16294 break 2
16295 fi
16296done
81ecdfbb
RW
16297 done
16298IFS=$as_save_IFS
9a819804
AO
16299
16300fi
16301fi
16302OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16303if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16305$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 16306else
81ecdfbb
RW
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16308$as_echo "no" >&6; }
9a819804
AO
16309fi
16310
81ecdfbb 16311
9a819804
AO
16312 done
16313fi
16314
16315if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16316 for ncn_progname in objdump; do
81ecdfbb
RW
16317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16318$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16319 if test -x $with_build_time_tools/${ncn_progname}; then
16320 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16322$as_echo "yes" >&6; }
2429c060
PB
16323 break
16324 else
81ecdfbb
RW
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16326$as_echo "no" >&6; }
2429c060
PB
16327 fi
16328 done
16329fi
16330
16331if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16332 for ncn_progname in objdump; do
16333 if test -n "$ncn_target_tool_prefix"; then
16334 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 16335set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16337$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16338if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16339 $as_echo_n "(cached) " >&6
5ae72758
DJ
16340else
16341 if test -n "$OBJDUMP_FOR_TARGET"; then
16342 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16343else
c6b750e1
DJ
16344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16345for as_dir in $PATH
16346do
16347 IFS=$as_save_IFS
16348 test -z "$as_dir" && as_dir=.
81ecdfbb 16349 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16351 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16353 break 2
16354 fi
16355done
81ecdfbb
RW
16356 done
16357IFS=$as_save_IFS
c6b750e1 16358
5ae72758
DJ
16359fi
16360fi
c6b750e1 16361OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 16362if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16364$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 16365else
81ecdfbb
RW
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16367$as_echo "no" >&6; }
5ae72758
DJ
16368fi
16369
81ecdfbb 16370
2429c060
PB
16371 fi
16372 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 16374set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16376$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16377if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16378 $as_echo_n "(cached) " >&6
5ae72758
DJ
16379else
16380 if test -n "$OBJDUMP_FOR_TARGET"; then
16381 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16382else
c6b750e1
DJ
16383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16384for as_dir in $PATH
16385do
16386 IFS=$as_save_IFS
16387 test -z "$as_dir" && as_dir=.
81ecdfbb 16388 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16390 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16392 break 2
16393 fi
16394done
81ecdfbb
RW
16395 done
16396IFS=$as_save_IFS
c6b750e1 16397
5ae72758
DJ
16398fi
16399fi
c6b750e1 16400OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 16401if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16403$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 16404else
81ecdfbb
RW
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406$as_echo "no" >&6; }
5ae72758 16407fi
c6b750e1 16408
81ecdfbb 16409
2429c060
PB
16410 fi
16411 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16412 done
16413fi
c6b750e1 16414
5ae72758
DJ
16415if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16416 set dummy objdump
16417 if test $build = $target ; then
16418 OBJDUMP_FOR_TARGET="$2"
16419 else
16420 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16421 fi
d3f5afc4
MS
16422else
16423 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
16424fi
16425
3a35eeb3
PB
16426else
16427 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
16428fi
16429
16430
16431
16432
228cf97d
AM
16433if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16434 if test -n "$with_build_time_tools"; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16436$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16437 if test -x $with_build_time_tools/otool; then
16438 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16439 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16441$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16442 else
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16444$as_echo "no" >&6; }
16445 fi
16446 elif test $build != $host && test $have_gcc_for_target = yes; then
16447 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16448 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16449 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16450 fi
16451fi
16452if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16453 # Extract the first word of "otool", so it can be a program name with args.
16454set dummy otool; ac_word=$2
16455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16456$as_echo_n "checking for $ac_word... " >&6; }
16457if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16458 $as_echo_n "(cached) " >&6
16459else
16460 case $OTOOL_FOR_TARGET in
16461 [\\/]* | ?:[\\/]*)
16462 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16463 ;;
16464 *)
16465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16466for as_dir in $gcc_cv_tool_dirs
16467do
16468 IFS=$as_save_IFS
16469 test -z "$as_dir" && as_dir=.
16470 for ac_exec_ext in '' $ac_executable_extensions; do
16471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16472 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16474 break 2
16475 fi
16476done
16477 done
16478IFS=$as_save_IFS
16479
16480 ;;
16481esac
16482fi
16483OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16484if test -n "$OTOOL_FOR_TARGET"; then
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16486$as_echo "$OTOOL_FOR_TARGET" >&6; }
16487else
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16489$as_echo "no" >&6; }
16490fi
16491
16492
16493fi
16494if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16495
16496
16497if test -n "$OTOOL_FOR_TARGET"; then
16498 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16499elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16500 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16501fi
16502
16503if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16504 for ncn_progname in otool; do
16505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16506set dummy ${ncn_progname}; ac_word=$2
16507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16508$as_echo_n "checking for $ac_word... " >&6; }
16509if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16510 $as_echo_n "(cached) " >&6
16511else
16512 if test -n "$OTOOL_FOR_TARGET"; then
16513 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16514else
16515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16516for as_dir in $PATH
16517do
16518 IFS=$as_save_IFS
16519 test -z "$as_dir" && as_dir=.
16520 for ac_exec_ext in '' $ac_executable_extensions; do
16521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16522 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16524 break 2
16525 fi
16526done
16527 done
16528IFS=$as_save_IFS
16529
16530fi
16531fi
16532OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16533if test -n "$OTOOL_FOR_TARGET"; then
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16535$as_echo "$OTOOL_FOR_TARGET" >&6; }
16536else
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538$as_echo "no" >&6; }
16539fi
16540
16541
16542 done
16543fi
16544
16545if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16546 for ncn_progname in otool; do
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16548$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16549 if test -x $with_build_time_tools/${ncn_progname}; then
16550 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16552$as_echo "yes" >&6; }
16553 break
16554 else
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556$as_echo "no" >&6; }
16557 fi
16558 done
16559fi
16560
16561if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16562 for ncn_progname in otool; do
16563 if test -n "$ncn_target_tool_prefix"; then
16564 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16565set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16567$as_echo_n "checking for $ac_word... " >&6; }
16568if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570else
16571 if test -n "$OTOOL_FOR_TARGET"; then
16572 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16573else
16574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575for as_dir in $PATH
16576do
16577 IFS=$as_save_IFS
16578 test -z "$as_dir" && as_dir=.
16579 for ac_exec_ext in '' $ac_executable_extensions; do
16580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16581 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16583 break 2
16584 fi
16585done
16586 done
16587IFS=$as_save_IFS
16588
16589fi
16590fi
16591OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16592if test -n "$OTOOL_FOR_TARGET"; then
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16594$as_echo "$OTOOL_FOR_TARGET" >&6; }
16595else
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16597$as_echo "no" >&6; }
16598fi
16599
16600
16601 fi
16602 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16604set dummy ${ncn_progname}; ac_word=$2
16605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16606$as_echo_n "checking for $ac_word... " >&6; }
16607if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16608 $as_echo_n "(cached) " >&6
16609else
16610 if test -n "$OTOOL_FOR_TARGET"; then
16611 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16612else
16613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16614for as_dir in $PATH
16615do
16616 IFS=$as_save_IFS
16617 test -z "$as_dir" && as_dir=.
16618 for ac_exec_ext in '' $ac_executable_extensions; do
16619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16620 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16622 break 2
16623 fi
16624done
16625 done
16626IFS=$as_save_IFS
16627
16628fi
16629fi
16630OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16631if test -n "$OTOOL_FOR_TARGET"; then
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16633$as_echo "$OTOOL_FOR_TARGET" >&6; }
16634else
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636$as_echo "no" >&6; }
16637fi
16638
16639
16640 fi
16641 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16642 done
16643fi
16644
16645if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16646 set dummy otool
16647 if test $build = $target ; then
16648 OTOOL_FOR_TARGET="$2"
16649 else
16650 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16651 fi
16652else
16653 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16654fi
16655
16656else
16657 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16658fi
16659
16660
16661
16662
2429c060
PB
16663if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16664 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16666$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16667 if test -x $with_build_time_tools/ranlib; then
16668 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16669 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16671$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 16672 else
81ecdfbb
RW
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16674$as_echo "no" >&6; }
3a35eeb3 16675 fi
2429c060
PB
16676 elif test $build != $host && test $have_gcc_for_target = yes; then
16677 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
16678 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16679 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
16680 fi
16681fi
c6b750e1 16682if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16683 # Extract the first word of "ranlib", so it can be a program name with args.
16684set dummy ranlib; ac_word=$2
81ecdfbb
RW
16685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16686$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16687if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16688 $as_echo_n "(cached) " >&6
2429c060 16689else
c6b750e1
DJ
16690 case $RANLIB_FOR_TARGET in
16691 [\\/]* | ?:[\\/]*)
2429c060
PB
16692 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16693 ;;
2429c060 16694 *)
c6b750e1
DJ
16695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696for as_dir in $gcc_cv_tool_dirs
16697do
16698 IFS=$as_save_IFS
16699 test -z "$as_dir" && as_dir=.
81ecdfbb 16700 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16702 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16704 break 2
16705 fi
16706done
81ecdfbb
RW
16707 done
16708IFS=$as_save_IFS
c6b750e1 16709
2429c060
PB
16710 ;;
16711esac
16712fi
c6b750e1 16713RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 16714if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16716$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 16717else
81ecdfbb
RW
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16719$as_echo "no" >&6; }
2429c060
PB
16720fi
16721
81ecdfbb 16722
2429c060
PB
16723fi
16724if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
16725
16726
16727if test -n "$RANLIB_FOR_TARGET"; then
16728 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16729elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16730 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16731fi
16732
16733if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16734 for ncn_progname in ranlib; do
16735 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16736set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16738$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16739if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16740 $as_echo_n "(cached) " >&6
9a819804
AO
16741else
16742 if test -n "$RANLIB_FOR_TARGET"; then
16743 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16744else
16745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16746for as_dir in $PATH
16747do
16748 IFS=$as_save_IFS
16749 test -z "$as_dir" && as_dir=.
81ecdfbb 16750 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16752 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16754 break 2
16755 fi
16756done
81ecdfbb
RW
16757 done
16758IFS=$as_save_IFS
9a819804
AO
16759
16760fi
16761fi
16762RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16763if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16765$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 16766else
81ecdfbb
RW
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768$as_echo "no" >&6; }
9a819804
AO
16769fi
16770
81ecdfbb 16771
9a819804
AO
16772 done
16773fi
16774
16775if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16776 for ncn_progname in ranlib; do
81ecdfbb
RW
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16778$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16779 if test -x $with_build_time_tools/${ncn_progname}; then
16780 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16782$as_echo "yes" >&6; }
2429c060
PB
16783 break
16784 else
81ecdfbb
RW
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16786$as_echo "no" >&6; }
2429c060
PB
16787 fi
16788 done
16789fi
16790
16791if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16792 for ncn_progname in ranlib; do
16793 if test -n "$ncn_target_tool_prefix"; then
16794 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 16795set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16797$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16798if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16799 $as_echo_n "(cached) " >&6
859789af 16800else
55db4b87
PB
16801 if test -n "$RANLIB_FOR_TARGET"; then
16802 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16803else
c6b750e1
DJ
16804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16805for as_dir in $PATH
16806do
16807 IFS=$as_save_IFS
16808 test -z "$as_dir" && as_dir=.
81ecdfbb 16809 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16811 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16813 break 2
16814 fi
16815done
81ecdfbb
RW
16816 done
16817IFS=$as_save_IFS
c6b750e1 16818
859789af
AC
16819fi
16820fi
c6b750e1 16821RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 16822if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16824$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16825else
81ecdfbb
RW
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827$as_echo "no" >&6; }
859789af
AC
16828fi
16829
81ecdfbb 16830
2429c060
PB
16831 fi
16832 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 16834set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16836$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16837if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16838 $as_echo_n "(cached) " >&6
859789af 16839else
05cbd757
PB
16840 if test -n "$RANLIB_FOR_TARGET"; then
16841 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16842else
c6b750e1
DJ
16843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16844for as_dir in $PATH
16845do
16846 IFS=$as_save_IFS
16847 test -z "$as_dir" && as_dir=.
81ecdfbb 16848 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16850 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16852 break 2
16853 fi
16854done
81ecdfbb
RW
16855 done
16856IFS=$as_save_IFS
c6b750e1 16857
859789af
AC
16858fi
16859fi
c6b750e1 16860RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 16861if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16863$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16864else
81ecdfbb
RW
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16866$as_echo "no" >&6; }
859789af 16867fi
c6b750e1 16868
81ecdfbb 16869
2429c060
PB
16870 fi
16871 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16872 done
16873fi
c6b750e1 16874
2429c060
PB
16875if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16876 set dummy ranlib
16877 if test $build = $target ; then
16878 RANLIB_FOR_TARGET="$2"
16879 else
16880 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 16881 fi
d3f5afc4
MS
16882else
16883 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 16884fi
05cbd757 16885
3a35eeb3
PB
16886else
16887 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
16888fi
16889
2429c060
PB
16890
16891
16892
b121d7d4
DD
16893if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16894 if test -n "$with_build_time_tools"; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16896$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16897 if test -x $with_build_time_tools/readelf; then
16898 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16899 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16901$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16902 else
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16904$as_echo "no" >&6; }
16905 fi
16906 elif test $build != $host && test $have_gcc_for_target = yes; then
16907 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16908 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16909 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16910 fi
16911fi
16912if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16913 # Extract the first word of "readelf", so it can be a program name with args.
16914set dummy readelf; ac_word=$2
16915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16916$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16917if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16918 $as_echo_n "(cached) " >&6
16919else
16920 case $READELF_FOR_TARGET in
16921 [\\/]* | ?:[\\/]*)
16922 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16923 ;;
16924 *)
16925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16926for as_dir in $gcc_cv_tool_dirs
16927do
16928 IFS=$as_save_IFS
16929 test -z "$as_dir" && as_dir=.
16930 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16932 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16934 break 2
16935 fi
16936done
16937 done
16938IFS=$as_save_IFS
16939
16940 ;;
16941esac
16942fi
16943READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16944if test -n "$READELF_FOR_TARGET"; then
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16946$as_echo "$READELF_FOR_TARGET" >&6; }
16947else
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949$as_echo "no" >&6; }
16950fi
16951
16952
16953fi
16954if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16955
16956
16957if test -n "$READELF_FOR_TARGET"; then
16958 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16959elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16960 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16961fi
16962
16963if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16964 for ncn_progname in readelf; do
16965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16966set dummy ${ncn_progname}; ac_word=$2
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16968$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16969if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16970 $as_echo_n "(cached) " >&6
16971else
16972 if test -n "$READELF_FOR_TARGET"; then
16973 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16974else
16975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16976for as_dir in $PATH
16977do
16978 IFS=$as_save_IFS
16979 test -z "$as_dir" && as_dir=.
16980 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16982 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16984 break 2
16985 fi
16986done
16987 done
16988IFS=$as_save_IFS
16989
16990fi
16991fi
16992READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16993if test -n "$READELF_FOR_TARGET"; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16995$as_echo "$READELF_FOR_TARGET" >&6; }
16996else
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16998$as_echo "no" >&6; }
16999fi
17000
17001
17002 done
17003fi
17004
17005if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
17006 for ncn_progname in readelf; do
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17008$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17009 if test -x $with_build_time_tools/${ncn_progname}; then
17010 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17012$as_echo "yes" >&6; }
17013 break
17014 else
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17016$as_echo "no" >&6; }
17017 fi
17018 done
17019fi
17020
17021if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17022 for ncn_progname in readelf; do
17023 if test -n "$ncn_target_tool_prefix"; then
17024 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17025set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17027$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17028if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17029 $as_echo_n "(cached) " >&6
17030else
17031 if test -n "$READELF_FOR_TARGET"; then
17032 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17033else
17034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17035for as_dir in $PATH
17036do
17037 IFS=$as_save_IFS
17038 test -z "$as_dir" && as_dir=.
17039 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17041 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17043 break 2
17044 fi
17045done
17046 done
17047IFS=$as_save_IFS
17048
17049fi
17050fi
17051READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17052if test -n "$READELF_FOR_TARGET"; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17054$as_echo "$READELF_FOR_TARGET" >&6; }
17055else
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057$as_echo "no" >&6; }
17058fi
17059
17060
17061 fi
17062 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17064set dummy ${ncn_progname}; ac_word=$2
17065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17067if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17068 $as_echo_n "(cached) " >&6
17069else
17070 if test -n "$READELF_FOR_TARGET"; then
17071 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17072else
17073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17074for as_dir in $PATH
17075do
17076 IFS=$as_save_IFS
17077 test -z "$as_dir" && as_dir=.
17078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17080 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17082 break 2
17083 fi
17084done
17085 done
17086IFS=$as_save_IFS
17087
17088fi
17089fi
17090READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17091if test -n "$READELF_FOR_TARGET"; then
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17093$as_echo "$READELF_FOR_TARGET" >&6; }
17094else
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17096$as_echo "no" >&6; }
17097fi
17098
17099
17100 fi
17101 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17102 done
17103fi
17104
17105if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17106 set dummy readelf
17107 if test $build = $target ; then
17108 READELF_FOR_TARGET="$2"
17109 else
17110 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17111 fi
17112else
17113 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17114fi
17115
17116else
17117 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17118fi
17119
17120
17121
17122
2429c060
PB
17123if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17124 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17126$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17127 if test -x $with_build_time_tools/strip; then
17128 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17129 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17131$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 17132 else
81ecdfbb
RW
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17134$as_echo "no" >&6; }
3a35eeb3 17135 fi
2429c060
PB
17136 elif test $build != $host && test $have_gcc_for_target = yes; then
17137 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
17138 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17139 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
17140 fi
17141fi
c6b750e1 17142if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
17143 # Extract the first word of "strip", so it can be a program name with args.
17144set dummy strip; ac_word=$2
81ecdfbb
RW
17145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17146$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17147if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17148 $as_echo_n "(cached) " >&6
2429c060 17149else
c6b750e1
DJ
17150 case $STRIP_FOR_TARGET in
17151 [\\/]* | ?:[\\/]*)
2429c060
PB
17152 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17153 ;;
2429c060 17154 *)
c6b750e1
DJ
17155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156for as_dir in $gcc_cv_tool_dirs
17157do
17158 IFS=$as_save_IFS
17159 test -z "$as_dir" && as_dir=.
81ecdfbb 17160 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17162 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17164 break 2
17165 fi
17166done
81ecdfbb
RW
17167 done
17168IFS=$as_save_IFS
c6b750e1 17169
2429c060
PB
17170 ;;
17171esac
17172fi
c6b750e1 17173STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 17174if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17176$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 17177else
81ecdfbb
RW
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179$as_echo "no" >&6; }
2429c060
PB
17180fi
17181
81ecdfbb 17182
2429c060
PB
17183fi
17184if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
17185
17186
17187if test -n "$STRIP_FOR_TARGET"; then
17188 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17189elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17190 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17191fi
17192
17193if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17194 for ncn_progname in strip; do
17195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17196set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17198$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17199if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17200 $as_echo_n "(cached) " >&6
9a819804
AO
17201else
17202 if test -n "$STRIP_FOR_TARGET"; then
17203 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17204else
17205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17206for as_dir in $PATH
17207do
17208 IFS=$as_save_IFS
17209 test -z "$as_dir" && as_dir=.
81ecdfbb 17210 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17212 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 17213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17214 break 2
17215 fi
17216done
81ecdfbb
RW
17217 done
17218IFS=$as_save_IFS
9a819804
AO
17219
17220fi
17221fi
17222STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17223if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17225$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 17226else
81ecdfbb
RW
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228$as_echo "no" >&6; }
9a819804
AO
17229fi
17230
81ecdfbb 17231
9a819804
AO
17232 done
17233fi
17234
17235if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17236 for ncn_progname in strip; do
81ecdfbb
RW
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17238$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17239 if test -x $with_build_time_tools/${ncn_progname}; then
17240 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17242$as_echo "yes" >&6; }
2429c060
PB
17243 break
17244 else
81ecdfbb
RW
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246$as_echo "no" >&6; }
2429c060
PB
17247 fi
17248 done
17249fi
17250
17251if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17252 for ncn_progname in strip; do
17253 if test -n "$ncn_target_tool_prefix"; then
17254 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 17255set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17257$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17258if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17259 $as_echo_n "(cached) " >&6
7e0f7140
GK
17260else
17261 if test -n "$STRIP_FOR_TARGET"; then
17262 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
17263else
17264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17265for as_dir in $PATH
17266do
17267 IFS=$as_save_IFS
17268 test -z "$as_dir" && as_dir=.
81ecdfbb 17269 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17271 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17273 break 2
17274 fi
17275done
81ecdfbb
RW
17276 done
17277IFS=$as_save_IFS
c6b750e1 17278
7e0f7140
GK
17279fi
17280fi
c6b750e1 17281STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 17282if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17284$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 17285else
81ecdfbb
RW
17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287$as_echo "no" >&6; }
7e0f7140
GK
17288fi
17289
81ecdfbb 17290
2429c060
PB
17291 fi
17292 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 17294set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17296$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17297if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17298 $as_echo_n "(cached) " >&6
7e0f7140
GK
17299else
17300 if test -n "$STRIP_FOR_TARGET"; then
17301 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17302else
c6b750e1
DJ
17303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17304for as_dir in $PATH
17305do
17306 IFS=$as_save_IFS
17307 test -z "$as_dir" && as_dir=.
81ecdfbb 17308 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17310 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 17311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17312 break 2
17313 fi
17314done
81ecdfbb
RW
17315 done
17316IFS=$as_save_IFS
c6b750e1 17317
7e0f7140
GK
17318fi
17319fi
c6b750e1 17320STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 17321if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17323$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 17324else
81ecdfbb
RW
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326$as_echo "no" >&6; }
7e0f7140 17327fi
c6b750e1 17328
81ecdfbb 17329
2429c060
PB
17330 fi
17331 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17332 done
17333fi
c6b750e1 17334
7e0f7140
GK
17335if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17336 set dummy strip
17337 if test $build = $target ; then
17338 STRIP_FOR_TARGET="$2"
17339 else
17340 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17341 fi
d3f5afc4
MS
17342else
17343 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
17344fi
17345
3a35eeb3
PB
17346else
17347 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
17348fi
17349
17350
17351
17352
17353if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17354 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17356$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17357 if test -x $with_build_time_tools/windres; then
17358 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17359 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17361$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 17362 else
81ecdfbb
RW
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17364$as_echo "no" >&6; }
3a35eeb3 17365 fi
2429c060
PB
17366 elif test $build != $host && test $have_gcc_for_target = yes; then
17367 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
17368 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17369 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
17370 fi
17371fi
c6b750e1 17372if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
17373 # Extract the first word of "windres", so it can be a program name with args.
17374set dummy windres; ac_word=$2
81ecdfbb
RW
17375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17376$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17377if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17378 $as_echo_n "(cached) " >&6
2429c060 17379else
c6b750e1
DJ
17380 case $WINDRES_FOR_TARGET in
17381 [\\/]* | ?:[\\/]*)
2429c060
PB
17382 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17383 ;;
2429c060 17384 *)
c6b750e1
DJ
17385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17386for as_dir in $gcc_cv_tool_dirs
17387do
17388 IFS=$as_save_IFS
17389 test -z "$as_dir" && as_dir=.
81ecdfbb 17390 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17392 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17394 break 2
17395 fi
17396done
81ecdfbb
RW
17397 done
17398IFS=$as_save_IFS
c6b750e1 17399
2429c060
PB
17400 ;;
17401esac
17402fi
c6b750e1 17403WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 17404if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17406$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 17407else
81ecdfbb
RW
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17409$as_echo "no" >&6; }
2429c060
PB
17410fi
17411
81ecdfbb 17412
2429c060
PB
17413fi
17414if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
17415
17416
17417if test -n "$WINDRES_FOR_TARGET"; then
17418 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17419elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17420 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17421fi
17422
17423if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17424 for ncn_progname in windres; do
17425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17426set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17428$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17429if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17430 $as_echo_n "(cached) " >&6
9a819804
AO
17431else
17432 if test -n "$WINDRES_FOR_TARGET"; then
17433 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17434else
17435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17436for as_dir in $PATH
17437do
17438 IFS=$as_save_IFS
17439 test -z "$as_dir" && as_dir=.
81ecdfbb 17440 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17442 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17444 break 2
17445 fi
17446done
81ecdfbb
RW
17447 done
17448IFS=$as_save_IFS
9a819804
AO
17449
17450fi
17451fi
17452WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17453if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17455$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 17456else
81ecdfbb
RW
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17458$as_echo "no" >&6; }
9a819804
AO
17459fi
17460
81ecdfbb 17461
9a819804
AO
17462 done
17463fi
17464
17465if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17466 for ncn_progname in windres; do
81ecdfbb
RW
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17468$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17469 if test -x $with_build_time_tools/${ncn_progname}; then
17470 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17472$as_echo "yes" >&6; }
2429c060
PB
17473 break
17474 else
81ecdfbb
RW
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476$as_echo "no" >&6; }
2429c060
PB
17477 fi
17478 done
17479fi
17480
17481if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17482 for ncn_progname in windres; do
17483 if test -n "$ncn_target_tool_prefix"; then
17484 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 17485set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17488if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17489 $as_echo_n "(cached) " >&6
859789af 17490else
55db4b87
PB
17491 if test -n "$WINDRES_FOR_TARGET"; then
17492 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17493else
c6b750e1
DJ
17494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17495for as_dir in $PATH
17496do
17497 IFS=$as_save_IFS
17498 test -z "$as_dir" && as_dir=.
81ecdfbb 17499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17501 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17503 break 2
17504 fi
17505done
81ecdfbb
RW
17506 done
17507IFS=$as_save_IFS
c6b750e1 17508
859789af
AC
17509fi
17510fi
c6b750e1 17511WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 17512if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17514$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17515else
81ecdfbb
RW
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517$as_echo "no" >&6; }
859789af
AC
17518fi
17519
81ecdfbb 17520
2429c060
PB
17521 fi
17522 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 17524set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17526$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17527if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17528 $as_echo_n "(cached) " >&6
859789af 17529else
05cbd757
PB
17530 if test -n "$WINDRES_FOR_TARGET"; then
17531 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17532else
c6b750e1
DJ
17533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17534for as_dir in $PATH
17535do
17536 IFS=$as_save_IFS
17537 test -z "$as_dir" && as_dir=.
81ecdfbb 17538 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17540 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17542 break 2
17543 fi
17544done
81ecdfbb
RW
17545 done
17546IFS=$as_save_IFS
c6b750e1 17547
859789af
AC
17548fi
17549fi
c6b750e1 17550WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 17551if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17553$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17554else
81ecdfbb
RW
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17556$as_echo "no" >&6; }
859789af 17557fi
c6b750e1 17558
81ecdfbb 17559
2429c060
PB
17560 fi
17561 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17562 done
17563fi
c6b750e1 17564
05cbd757
PB
17565if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17566 set dummy windres
17567 if test $build = $target ; then
17568 WINDRES_FOR_TARGET="$2"
859789af 17569 else
05cbd757 17570 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 17571 fi
d3f5afc4
MS
17572else
17573 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
17574fi
17575
3a35eeb3
PB
17576else
17577 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
17578fi
17579
852e5f18 17580
0c24b341
NC
17581
17582
17583if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17584 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17586$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
17587 if test -x $with_build_time_tools/windmc; then
17588 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17589 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17591$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 17592 else
81ecdfbb
RW
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17594$as_echo "no" >&6; }
0c24b341
NC
17595 fi
17596 elif test $build != $host && test $have_gcc_for_target = yes; then
17597 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17598 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17599 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17600 fi
17601fi
17602if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17603 # Extract the first word of "windmc", so it can be a program name with args.
17604set dummy windmc; ac_word=$2
81ecdfbb
RW
17605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17606$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17607if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17608 $as_echo_n "(cached) " >&6
0c24b341
NC
17609else
17610 case $WINDMC_FOR_TARGET in
17611 [\\/]* | ?:[\\/]*)
17612 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17613 ;;
17614 *)
17615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17616for as_dir in $gcc_cv_tool_dirs
17617do
17618 IFS=$as_save_IFS
17619 test -z "$as_dir" && as_dir=.
81ecdfbb 17620 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17622 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17624 break 2
17625 fi
17626done
81ecdfbb
RW
17627 done
17628IFS=$as_save_IFS
0c24b341
NC
17629
17630 ;;
17631esac
17632fi
17633WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 17634if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17636$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17637else
81ecdfbb
RW
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17639$as_echo "no" >&6; }
0c24b341
NC
17640fi
17641
81ecdfbb 17642
0c24b341
NC
17643fi
17644if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17645
17646
17647if test -n "$WINDMC_FOR_TARGET"; then
17648 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17649elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17650 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17651fi
17652
17653if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17654 for ncn_progname in windmc; do
17655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17656set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17658$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17659if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17660 $as_echo_n "(cached) " >&6
0c24b341
NC
17661else
17662 if test -n "$WINDMC_FOR_TARGET"; then
17663 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17664else
17665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17666for as_dir in $PATH
17667do
17668 IFS=$as_save_IFS
17669 test -z "$as_dir" && as_dir=.
81ecdfbb 17670 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17672 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17674 break 2
17675 fi
17676done
81ecdfbb
RW
17677 done
17678IFS=$as_save_IFS
0c24b341
NC
17679
17680fi
17681fi
17682WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17683if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17685$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17686else
81ecdfbb
RW
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688$as_echo "no" >&6; }
0c24b341
NC
17689fi
17690
81ecdfbb 17691
0c24b341
NC
17692 done
17693fi
17694
17695if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17696 for ncn_progname in windmc; do
81ecdfbb
RW
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17698$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
17699 if test -x $with_build_time_tools/${ncn_progname}; then
17700 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17702$as_echo "yes" >&6; }
0c24b341
NC
17703 break
17704 else
81ecdfbb
RW
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17706$as_echo "no" >&6; }
0c24b341
NC
17707 fi
17708 done
17709fi
17710
17711if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17712 for ncn_progname in windmc; do
17713 if test -n "$ncn_target_tool_prefix"; then
17714 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17715set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17717$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17718if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17719 $as_echo_n "(cached) " >&6
0c24b341
NC
17720else
17721 if test -n "$WINDMC_FOR_TARGET"; then
17722 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17723else
17724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17725for as_dir in $PATH
17726do
17727 IFS=$as_save_IFS
17728 test -z "$as_dir" && as_dir=.
81ecdfbb 17729 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17731 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17733 break 2
17734 fi
17735done
81ecdfbb
RW
17736 done
17737IFS=$as_save_IFS
0c24b341
NC
17738
17739fi
17740fi
17741WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17742if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17744$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17745else
81ecdfbb
RW
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17747$as_echo "no" >&6; }
0c24b341
NC
17748fi
17749
81ecdfbb 17750
0c24b341
NC
17751 fi
17752 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17754set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17756$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17757if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17758 $as_echo_n "(cached) " >&6
0c24b341
NC
17759else
17760 if test -n "$WINDMC_FOR_TARGET"; then
17761 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17762else
17763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17764for as_dir in $PATH
17765do
17766 IFS=$as_save_IFS
17767 test -z "$as_dir" && as_dir=.
81ecdfbb 17768 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17770 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17772 break 2
17773 fi
17774done
81ecdfbb
RW
17775 done
17776IFS=$as_save_IFS
0c24b341
NC
17777
17778fi
17779fi
17780WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17781if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17783$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17784else
81ecdfbb
RW
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786$as_echo "no" >&6; }
0c24b341
NC
17787fi
17788
81ecdfbb 17789
0c24b341
NC
17790 fi
17791 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17792 done
17793fi
17794
17795if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17796 set dummy windmc
17797 if test $build = $target ; then
17798 WINDMC_FOR_TARGET="$2"
17799 else
17800 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17801 fi
17802else
17803 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17804fi
17805
17806else
17807 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17808fi
17809
17810
be01d343
PB
17811RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17812
81ecdfbb
RW
17813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17814$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 17815if test "x${build}" != "x${host}" ; then
2429c060
PB
17816 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17817 # We already found the complete path
b8025f34 17818 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17820$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17821 else
17822 # Canadian cross, just use what we found
81ecdfbb
RW
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17824$as_echo "pre-installed" >&6; }
2429c060 17825 fi
be01d343
PB
17826else
17827 ok=yes
17828 case " ${configdirs} " in
17829 *" binutils "*) ;;
17830 *) ok=no ;;
17831 esac
c6b750e1 17832
be01d343
PB
17833 if test $ok = yes; then
17834 # An in-tree tool is available and we can use it
17835 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17837$as_echo "just compiled" >&6; }
2429c060
PB
17838 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17839 # We already found the complete path
b8025f34 17840 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17842$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17843 elif test "x$target" = "x$host"; then
17844 # We can use an host tool
17845 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17847$as_echo "host tool" >&6; }
be01d343
PB
17848 else
17849 # We need a cross tool
81ecdfbb
RW
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17851$as_echo "pre-installed" >&6; }
be01d343
PB
17852 fi
17853fi
4b900473 17854
81ecdfbb
RW
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17856$as_echo_n "checking where to find the target as... " >&6; }
be01d343 17857if test "x${build}" != "x${host}" ; then
2429c060
PB
17858 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17859 # We already found the complete path
b8025f34 17860 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17862$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17863 else
17864 # Canadian cross, just use what we found
81ecdfbb
RW
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17866$as_echo "pre-installed" >&6; }
2429c060 17867 fi
be01d343
PB
17868else
17869 ok=yes
17870 case " ${configdirs} " in
17871 *" gas "*) ;;
17872 *) ok=no ;;
17873 esac
c6b750e1 17874
be01d343
PB
17875 if test $ok = yes; then
17876 # An in-tree tool is available and we can use it
17877 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17879$as_echo "just compiled" >&6; }
2429c060
PB
17880 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17881 # We already found the complete path
b8025f34 17882 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17884$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17885 elif test "x$target" = "x$host"; then
17886 # We can use an host tool
17887 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17889$as_echo "host tool" >&6; }
be01d343
PB
17890 else
17891 # We need a cross tool
81ecdfbb
RW
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17893$as_echo "pre-installed" >&6; }
be01d343
PB
17894 fi
17895fi
4b900473 17896
81ecdfbb
RW
17897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17898$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 17899if test "x${build}" != "x${host}" ; then
2429c060
PB
17900 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17901 # We already found the complete path
b8025f34 17902 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17904$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17905 else
17906 # Canadian cross, just use what we found
81ecdfbb
RW
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17908$as_echo "pre-installed" >&6; }
2429c060 17909 fi
be01d343
PB
17910else
17911 ok=yes
17912 case " ${configdirs} " in
17913 *" gcc "*) ;;
17914 *) ok=no ;;
17915 esac
c6b750e1 17916
be01d343
PB
17917 if test $ok = yes; then
17918 # An in-tree tool is available and we can use it
17919 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17921$as_echo "just compiled" >&6; }
2429c060
PB
17922 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17923 # We already found the complete path
b8025f34 17924 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17926$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17927 elif test "x$target" = "x$host"; then
17928 # We can use an host tool
17929 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17931$as_echo "host tool" >&6; }
be01d343
PB
17932 else
17933 # We need a cross tool
81ecdfbb
RW
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17935$as_echo "pre-installed" >&6; }
be01d343
PB
17936 fi
17937fi
4b900473 17938
81ecdfbb
RW
17939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17940$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 17941if test "x${build}" != "x${host}" ; then
2429c060
PB
17942 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17943 # We already found the complete path
b8025f34 17944 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17946$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17947 else
17948 # Canadian cross, just use what we found
81ecdfbb
RW
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17950$as_echo "pre-installed" >&6; }
2429c060 17951 fi
be01d343
PB
17952else
17953 ok=yes
17954 case " ${configdirs} " in
17955 *" gcc "*) ;;
17956 *) ok=no ;;
17957 esac
17958 case ,${enable_languages}, in
17959 *,c++,*) ;;
17960 *) ok=no ;;
17961 esac
17962 if test $ok = yes; then
17963 # An in-tree tool is available and we can use it
95e43135 17964 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'
81ecdfbb
RW
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17966$as_echo "just compiled" >&6; }
2429c060
PB
17967 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17968 # We already found the complete path
b8025f34 17969 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17971$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17972 elif test "x$target" = "x$host"; then
17973 # We can use an host tool
17974 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17976$as_echo "host tool" >&6; }
be01d343
PB
17977 else
17978 # We need a cross tool
81ecdfbb
RW
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17980$as_echo "pre-installed" >&6; }
be01d343
PB
17981 fi
17982fi
4b900473 17983
81ecdfbb
RW
17984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17985$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 17986if test "x${build}" != "x${host}" ; then
2429c060
PB
17987 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17988 # We already found the complete path
b8025f34 17989 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17991$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17992 else
17993 # Canadian cross, just use what we found
81ecdfbb
RW
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17995$as_echo "pre-installed" >&6; }
2429c060 17996 fi
be01d343
PB
17997else
17998 ok=yes
17999 case " ${configdirs} " in
18000 *" gcc "*) ;;
18001 *) ok=no ;;
18002 esac
18003 case ,${enable_languages}, in
18004 *,c++,*) ;;
18005 *) ok=no ;;
18006 esac
18007 if test $ok = yes; then
18008 # An in-tree tool is available and we can use it
95e43135 18009 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'
81ecdfbb
RW
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18011$as_echo "just compiled" >&6; }
2429c060
PB
18012 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
18013 # We already found the complete path
b8025f34 18014 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18016$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18017 elif test "x$target" = "x$host"; then
18018 # We can use an host tool
18019 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18021$as_echo "host tool" >&6; }
be01d343
PB
18022 else
18023 # We need a cross tool
81ecdfbb
RW
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18025$as_echo "pre-installed" >&6; }
be01d343
PB
18026 fi
18027fi
4b900473 18028
81ecdfbb
RW
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18030$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 18031if test "x${build}" != "x${host}" ; then
2429c060
PB
18032 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18033 # We already found the complete path
b8025f34 18034 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18036$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18037 else
18038 # Canadian cross, just use what we found
81ecdfbb
RW
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18040$as_echo "pre-installed" >&6; }
2429c060 18041 fi
be01d343
PB
18042else
18043 ok=yes
18044 case " ${configdirs} " in
18045 *" binutils "*) ;;
18046 *) ok=no ;;
18047 esac
c6b750e1 18048
be01d343
PB
18049 if test $ok = yes; then
18050 # An in-tree tool is available and we can use it
18051 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18053$as_echo "just compiled" >&6; }
2429c060
PB
18054 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18055 # We already found the complete path
b8025f34 18056 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18058$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18059 elif test "x$target" = "x$host"; then
18060 # We can use an host tool
18061 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18063$as_echo "host tool" >&6; }
be01d343
PB
18064 else
18065 # We need a cross tool
81ecdfbb
RW
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18067$as_echo "pre-installed" >&6; }
be01d343
PB
18068 fi
18069fi
4b900473 18070
228cf97d
AM
18071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18072$as_echo_n "checking where to find the target dsymutil... " >&6; }
18073if test "x${build}" != "x${host}" ; then
18074 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18075 # We already found the complete path
18076 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18078$as_echo "pre-installed in $ac_dir" >&6; }
18079 else
18080 # Canadian cross, just use what we found
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18082$as_echo "pre-installed" >&6; }
18083 fi
18084else
18085 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18086 # We already found the complete path
18087 ac_dir=`dirname $DSYMUTIL_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
18092 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
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
81ecdfbb
RW
18102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18103$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 18104if test "x${build}" != "x${host}" ; then
2429c060
PB
18105 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18106 # We already found the complete path
b8025f34 18107 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
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; }
2429c060
PB
18110 else
18111 # Canadian cross, just use what we found
81ecdfbb
RW
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18113$as_echo "pre-installed" >&6; }
2429c060 18114 fi
be01d343
PB
18115else
18116 ok=yes
18117 case " ${configdirs} " in
18118 *" gcc "*) ;;
18119 *) ok=no ;;
18120 esac
c6b750e1 18121
be01d343
PB
18122 if test $ok = yes; then
18123 # An in-tree tool is available and we can use it
18124 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18126$as_echo "just compiled" >&6; }
2429c060
PB
18127 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18128 # We already found the complete path
b8025f34 18129 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
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; }
be01d343
PB
18132 elif test "x$target" = "x$host"; then
18133 # We can use an host tool
18134 GCC_FOR_TARGET='$()'
81ecdfbb
RW
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18136$as_echo "host tool" >&6; }
be01d343
PB
18137 else
18138 # We need a cross tool
81ecdfbb
RW
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18140$as_echo "pre-installed" >&6; }
be01d343
PB
18141 fi
18142fi
4b900473 18143
81ecdfbb
RW
18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18145$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 18146if test "x${build}" != "x${host}" ; then
2429c060
PB
18147 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18148 # We already found the complete path
b8025f34 18149 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18151$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18152 else
18153 # Canadian cross, just use what we found
81ecdfbb
RW
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18155$as_echo "pre-installed" >&6; }
2429c060 18156 fi
be01d343
PB
18157else
18158 ok=yes
18159 case " ${configdirs} " in
18160 *" gcc "*) ;;
18161 *) ok=no ;;
18162 esac
18163 case ,${enable_languages}, in
18164 *,fortran,*) ;;
18165 *) ok=no ;;
18166 esac
18167 if test $ok = yes; then
18168 # An in-tree tool is available and we can use it
18169 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18171$as_echo "just compiled" >&6; }
2429c060
PB
18172 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18173 # We already found the complete path
b8025f34 18174 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18176$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18177 elif test "x$target" = "x$host"; then
18178 # We can use an host tool
18179 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18181$as_echo "host tool" >&6; }
be01d343
PB
18182 else
18183 # We need a cross tool
81ecdfbb
RW
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18185$as_echo "pre-installed" >&6; }
be01d343
PB
18186 fi
18187fi
4b900473 18188
e552509b
ILT
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18190$as_echo_n "checking where to find the target gccgo... " >&6; }
18191if test "x${build}" != "x${host}" ; then
18192 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18193 # We already found the complete path
18194 ac_dir=`dirname $GOC_FOR_TARGET`
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18196$as_echo "pre-installed in $ac_dir" >&6; }
18197 else
18198 # Canadian cross, just use what we found
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18200$as_echo "pre-installed" >&6; }
18201 fi
18202else
18203 ok=yes
18204 case " ${configdirs} " in
18205 *" gcc "*) ;;
18206 *) ok=no ;;
18207 esac
18208 case ,${enable_languages}, in
18209 *,go,*) ;;
18210 *) ok=no ;;
18211 esac
18212 if test $ok = yes; then
18213 # An in-tree tool is available and we can use it
18214 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18216$as_echo "just compiled" >&6; }
18217 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18218 # We already found the complete path
18219 ac_dir=`dirname $GOC_FOR_TARGET`
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18221$as_echo "pre-installed in $ac_dir" >&6; }
18222 elif test "x$target" = "x$host"; then
18223 # We can use an host tool
18224 GOC_FOR_TARGET='$(GOC)'
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18226$as_echo "host tool" >&6; }
18227 else
18228 # We need a cross tool
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18230$as_echo "pre-installed" >&6; }
18231 fi
18232fi
18233
228cf97d
AM
18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18235$as_echo_n "checking where to find the target gdc... " >&6; }
18236if test "x${build}" != "x${host}" ; then
18237 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18238 # We already found the complete path
18239 ac_dir=`dirname $GDC_FOR_TARGET`
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18241$as_echo "pre-installed in $ac_dir" >&6; }
18242 else
18243 # Canadian cross, just use what we found
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18245$as_echo "pre-installed" >&6; }
18246 fi
18247else
18248 ok=yes
18249 case " ${configdirs} " in
18250 *" gcc "*) ;;
18251 *) ok=no ;;
18252 esac
18253 case ,${enable_languages}, in
18254 *,d,*) ;;
18255 *) ok=no ;;
18256 esac
18257 if test $ok = yes; then
18258 # An in-tree tool is available and we can use it
18259 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18261$as_echo "just compiled" >&6; }
18262 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18263 # We already found the complete path
18264 ac_dir=`dirname $GDC_FOR_TARGET`
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18266$as_echo "pre-installed in $ac_dir" >&6; }
18267 elif test "x$target" = "x$host"; then
18268 # We can use an host tool
18269 GDC_FOR_TARGET='$(GDC)'
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18271$as_echo "host tool" >&6; }
18272 else
18273 # We need a cross tool
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18275$as_echo "pre-installed" >&6; }
18276 fi
18277fi
18278
6a6859cb
AM
18279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18280$as_echo_n "checking where to find the target gm2... " >&6; }
18281if test "x${build}" != "x${host}" ; then
18282 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18283 # We already found the complete path
18284 ac_dir=`dirname $GM2_FOR_TARGET`
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18286$as_echo "pre-installed in $ac_dir" >&6; }
18287 else
18288 # Canadian cross, just use what we found
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18290$as_echo "pre-installed" >&6; }
18291 fi
18292else
18293 ok=yes
18294 case " ${configdirs} " in
18295 *" gcc "*) ;;
18296 *) ok=no ;;
18297 esac
18298 case ,${enable_languages}, in
18299 *,m2,*) ;;
18300 *) ok=no ;;
18301 esac
18302 if test $ok = yes; then
18303 # An in-tree tool is available and we can use it
18304 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18306$as_echo "just compiled" >&6; }
18307 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18308 # We already found the complete path
18309 ac_dir=`dirname $GM2_FOR_TARGET`
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18311$as_echo "pre-installed in $ac_dir" >&6; }
18312 elif test "x$target" = "x$host"; then
18313 # We can use an host tool
18314 GM2_FOR_TARGET='$(GM2)'
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18316$as_echo "host tool" >&6; }
18317 else
18318 # We need a cross tool
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18320$as_echo "pre-installed" >&6; }
18321 fi
18322fi
18323
81ecdfbb
RW
18324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18325$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 18326if test "x${build}" != "x${host}" ; then
2429c060
PB
18327 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18328 # We already found the complete path
b8025f34 18329 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18331$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18332 else
18333 # Canadian cross, just use what we found
81ecdfbb
RW
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18335$as_echo "pre-installed" >&6; }
2429c060 18336 fi
be01d343
PB
18337else
18338 ok=yes
18339 case " ${configdirs} " in
18340 *" ld "*) ;;
18341 *) ok=no ;;
18342 esac
c6b750e1 18343
be01d343
PB
18344 if test $ok = yes; then
18345 # An in-tree tool is available and we can use it
18346 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18348$as_echo "just compiled" >&6; }
2429c060
PB
18349 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18350 # We already found the complete path
b8025f34 18351 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18353$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18354 elif test "x$target" = "x$host"; then
18355 # We can use an host tool
18356 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18358$as_echo "host tool" >&6; }
be01d343
PB
18359 else
18360 # We need a cross tool
81ecdfbb
RW
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18362$as_echo "pre-installed" >&6; }
be01d343
PB
18363 fi
18364fi
4b900473 18365
81ecdfbb
RW
18366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18367$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 18368if test "x${build}" != "x${host}" ; then
2429c060
PB
18369 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18370 # We already found the complete path
b8025f34 18371 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18373$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18374 else
18375 # Canadian cross, just use what we found
81ecdfbb
RW
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18377$as_echo "pre-installed" >&6; }
2429c060 18378 fi
be01d343 18379else
2429c060
PB
18380 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18381 # We already found the complete path
b8025f34 18382 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18384$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 18385 elif test "x$target" = "x$host"; then
be01d343
PB
18386 # We can use an host tool
18387 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18389$as_echo "host tool" >&6; }
be01d343
PB
18390 else
18391 # We need a cross tool
81ecdfbb
RW
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18393$as_echo "pre-installed" >&6; }
be01d343
PB
18394 fi
18395fi
4b900473 18396
81ecdfbb
RW
18397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18398$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 18399if test "x${build}" != "x${host}" ; then
2429c060
PB
18400 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18401 # We already found the complete path
b8025f34 18402 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18404$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18405 else
18406 # Canadian cross, just use what we found
81ecdfbb
RW
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18408$as_echo "pre-installed" >&6; }
2429c060 18409 fi
be01d343
PB
18410else
18411 ok=yes
18412 case " ${configdirs} " in
18413 *" binutils "*) ;;
18414 *) ok=no ;;
18415 esac
c6b750e1 18416
be01d343
PB
18417 if test $ok = yes; then
18418 # An in-tree tool is available and we can use it
18419 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18421$as_echo "just compiled" >&6; }
2429c060
PB
18422 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18423 # We already found the complete path
b8025f34 18424 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18426$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18427 elif test "x$target" = "x$host"; then
18428 # We can use an host tool
18429 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18431$as_echo "host tool" >&6; }
be01d343
PB
18432 else
18433 # We need a cross tool
81ecdfbb
RW
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18435$as_echo "pre-installed" >&6; }
be01d343
PB
18436 fi
18437fi
4b900473 18438
6b91c541
AP
18439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18440$as_echo_n "checking where to find the target objcopy... " >&6; }
18441if test "x${build}" != "x${host}" ; then
18442 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18443 # We already found the complete path
18444 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18446$as_echo "pre-installed in $ac_dir" >&6; }
18447 else
18448 # Canadian cross, just use what we found
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18450$as_echo "pre-installed" >&6; }
18451 fi
18452else
18453 ok=yes
18454 case " ${configdirs} " in
18455 *" binutils "*) ;;
18456 *) ok=no ;;
18457 esac
18458
18459 if test $ok = yes; then
18460 # An in-tree tool is available and we can use it
18461 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18463$as_echo "just compiled" >&6; }
18464 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18465 # We already found the complete path
18466 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18468$as_echo "pre-installed in $ac_dir" >&6; }
18469 elif test "x$target" = "x$host"; then
18470 # We can use an host tool
1b6c0831 18471 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18473$as_echo "host tool" >&6; }
18474 else
18475 # We need a cross tool
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18477$as_echo "pre-installed" >&6; }
18478 fi
18479fi
18480
81ecdfbb
RW
18481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18482$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 18483if test "x${build}" != "x${host}" ; then
2429c060
PB
18484 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18485 # We already found the complete path
b8025f34 18486 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18488$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18489 else
18490 # Canadian cross, just use what we found
81ecdfbb
RW
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18492$as_echo "pre-installed" >&6; }
2429c060 18493 fi
be01d343
PB
18494else
18495 ok=yes
18496 case " ${configdirs} " in
18497 *" binutils "*) ;;
18498 *) ok=no ;;
18499 esac
c6b750e1 18500
be01d343
PB
18501 if test $ok = yes; then
18502 # An in-tree tool is available and we can use it
18503 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18505$as_echo "just compiled" >&6; }
2429c060
PB
18506 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18507 # We already found the complete path
b8025f34 18508 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18510$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18511 elif test "x$target" = "x$host"; then
18512 # We can use an host tool
18513 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18515$as_echo "host tool" >&6; }
be01d343
PB
18516 else
18517 # We need a cross tool
81ecdfbb
RW
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18519$as_echo "pre-installed" >&6; }
be01d343
PB
18520 fi
18521fi
4b900473 18522
228cf97d
AM
18523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18524$as_echo_n "checking where to find the target otool... " >&6; }
18525if test "x${build}" != "x${host}" ; then
18526 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18527 # We already found the complete path
18528 ac_dir=`dirname $OTOOL_FOR_TARGET`
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18530$as_echo "pre-installed in $ac_dir" >&6; }
18531 else
18532 # Canadian cross, just use what we found
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18534$as_echo "pre-installed" >&6; }
18535 fi
18536else
18537 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18538 # We already found the complete path
18539 ac_dir=`dirname $OTOOL_FOR_TARGET`
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18541$as_echo "pre-installed in $ac_dir" >&6; }
18542 elif test "x$target" = "x$host"; then
18543 # We can use an host tool
18544 OTOOL_FOR_TARGET='$(OTOOL)'
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18546$as_echo "host tool" >&6; }
18547 else
18548 # We need a cross tool
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18550$as_echo "pre-installed" >&6; }
18551 fi
18552fi
18553
81ecdfbb
RW
18554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18555$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 18556if test "x${build}" != "x${host}" ; then
2429c060
PB
18557 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18558 # We already found the complete path
b8025f34 18559 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18561$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18562 else
18563 # Canadian cross, just use what we found
81ecdfbb
RW
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18565$as_echo "pre-installed" >&6; }
2429c060 18566 fi
be01d343
PB
18567else
18568 ok=yes
18569 case " ${configdirs} " in
18570 *" binutils "*) ;;
18571 *) ok=no ;;
18572 esac
c6b750e1 18573
be01d343
PB
18574 if test $ok = yes; then
18575 # An in-tree tool is available and we can use it
18576 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18578$as_echo "just compiled" >&6; }
2429c060
PB
18579 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18580 # We already found the complete path
b8025f34 18581 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18583$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18584 elif test "x$target" = "x$host"; then
18585 # We can use an host tool
18586 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18588$as_echo "host tool" >&6; }
be01d343
PB
18589 else
18590 # We need a cross tool
81ecdfbb
RW
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18592$as_echo "pre-installed" >&6; }
be01d343
PB
18593 fi
18594fi
4b900473 18595
b121d7d4
DD
18596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18597$as_echo_n "checking where to find the target readelf... " >&6; }
18598if test "x${build}" != "x${host}" ; then
18599 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18600 # We already found the complete path
18601 ac_dir=`dirname $READELF_FOR_TARGET`
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18603$as_echo "pre-installed in $ac_dir" >&6; }
18604 else
18605 # Canadian cross, just use what we found
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18607$as_echo "pre-installed" >&6; }
18608 fi
18609else
18610 ok=yes
18611 case " ${configdirs} " in
18612 *" binutils "*) ;;
18613 *) ok=no ;;
18614 esac
18615
18616 if test $ok = yes; then
18617 # An in-tree tool is available and we can use it
18618 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18620$as_echo "just compiled" >&6; }
18621 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18622 # We already found the complete path
18623 ac_dir=`dirname $READELF_FOR_TARGET`
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18625$as_echo "pre-installed in $ac_dir" >&6; }
18626 elif test "x$target" = "x$host"; then
18627 # We can use an host tool
18628 READELF_FOR_TARGET='$(READELF)'
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18630$as_echo "host tool" >&6; }
18631 else
18632 # We need a cross tool
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18634$as_echo "pre-installed" >&6; }
18635 fi
18636fi
18637
81ecdfbb
RW
18638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18639$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 18640if test "x${build}" != "x${host}" ; then
2429c060
PB
18641 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18642 # We already found the complete path
b8025f34 18643 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18645$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18646 else
18647 # Canadian cross, just use what we found
81ecdfbb
RW
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18649$as_echo "pre-installed" >&6; }
2429c060 18650 fi
be01d343
PB
18651else
18652 ok=yes
18653 case " ${configdirs} " in
18654 *" binutils "*) ;;
18655 *) ok=no ;;
18656 esac
c6b750e1 18657
be01d343
PB
18658 if test $ok = yes; then
18659 # An in-tree tool is available and we can use it
9b980aa1 18660 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18662$as_echo "just compiled" >&6; }
2429c060
PB
18663 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18664 # We already found the complete path
b8025f34 18665 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18667$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18668 elif test "x$target" = "x$host"; then
18669 # We can use an host tool
18670 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18672$as_echo "host tool" >&6; }
be01d343
PB
18673 else
18674 # We need a cross tool
81ecdfbb
RW
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18676$as_echo "pre-installed" >&6; }
be01d343
PB
18677 fi
18678fi
4b900473 18679
81ecdfbb
RW
18680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18681$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 18682if test "x${build}" != "x${host}" ; then
2429c060
PB
18683 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18684 # We already found the complete path
b8025f34 18685 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18687$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18688 else
18689 # Canadian cross, just use what we found
81ecdfbb
RW
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18691$as_echo "pre-installed" >&6; }
2429c060 18692 fi
be01d343
PB
18693else
18694 ok=yes
18695 case " ${configdirs} " in
18696 *" binutils "*) ;;
18697 *) ok=no ;;
18698 esac
c6b750e1 18699
be01d343
PB
18700 if test $ok = yes; then
18701 # An in-tree tool is available and we can use it
18702 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18704$as_echo "just compiled" >&6; }
2429c060
PB
18705 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18706 # We already found the complete path
b8025f34 18707 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18709$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18710 elif test "x$target" = "x$host"; then
18711 # We can use an host tool
18712 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18714$as_echo "host tool" >&6; }
be01d343
PB
18715 else
18716 # We need a cross tool
81ecdfbb
RW
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18718$as_echo "pre-installed" >&6; }
be01d343 18719 fi
a0da8069 18720fi
54752a6b 18721
81ecdfbb
RW
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18723$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
18724if test "x${build}" != "x${host}" ; then
18725 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18726 # We already found the complete path
18727 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18729$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18730 else
18731 # Canadian cross, just use what we found
81ecdfbb
RW
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18733$as_echo "pre-installed" >&6; }
0c24b341
NC
18734 fi
18735else
18736 ok=yes
18737 case " ${configdirs} " in
18738 *" binutils "*) ;;
18739 *) ok=no ;;
18740 esac
18741
18742 if test $ok = yes; then
18743 # An in-tree tool is available and we can use it
18744 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18746$as_echo "just compiled" >&6; }
0c24b341
NC
18747 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18748 # We already found the complete path
18749 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18751$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18752 elif test "x$target" = "x$host"; then
18753 # We can use an host tool
18754 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18756$as_echo "host tool" >&6; }
0c24b341
NC
18757 else
18758 # We need a cross tool
81ecdfbb
RW
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18760$as_echo "pre-installed" >&6; }
0c24b341
NC
18761 fi
18762fi
18763
54752a6b
NN
18764
18765
be01d343 18766
4b900473 18767
a0da8069
NN
18768# Certain tools may need extra flags.
18769AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18770RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18771NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18772
be01d343
PB
18773# When building target libraries, except in a Canadian cross, we use
18774# the same toolchain as the compiler we just built.
18775COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18776COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18777COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18778if test $host = $build; then
18779 case " $configdirs " in
18780 *" gcc "*)
18781 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18782 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18783 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18784 ;;
18785 esac
18786fi
18787
18788
18789
18790
18791
81ecdfbb
RW
18792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18793$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18794# Check whether --enable-maintainer-mode was given.
18795if test "${enable_maintainer_mode+set}" = set; then :
18796 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
18797else
18798 USE_MAINTAINER_MODE=no
81ecdfbb
RW
18799fi
18800
18801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18802$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
18803
18804
18805if test "$USE_MAINTAINER_MODE" = yes; then
18806 MAINTAINER_MODE_TRUE=
18807 MAINTAINER_MODE_FALSE='#'
18808else
18809 MAINTAINER_MODE_TRUE='#'
18810 MAINTAINER_MODE_FALSE=
c6b750e1 18811fi
3d5e36ae
AO
18812MAINT=$MAINTAINER_MODE_TRUE
18813
1d39f329
NN
18814# ---------------------
18815# GCC bootstrap support
18816# ---------------------
18817
18818# Stage specific cflags for build.
18819stage1_cflags="-g"
18820case $build in
18821 vax-*-*)
18822 case ${GCC} in
18823 yes) stage1_cflags="-g -Wa,-J" ;;
18824 *) stage1_cflags="-g -J" ;;
18825 esac ;;
1d39f329
NN
18826esac
18827
1d89b610 18828
1d39f329 18829
8a0d8a5c 18830# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
18831# Check whether --enable-stage1-checking was given.
18832if test "${enable_stage1_checking+set}" = set; then :
18833 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 18834else
5566c1fa 18835 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
18836 # For --disable-checking or implicit --enable-checking=release, avoid
18837 # setting --enable-checking=gc in the default stage1 checking for LTO
18838 # bootstraps. See PR62077.
ce6c656d
L
18839 case $BUILD_CONFIG in
18840 *lto*)
05a13254
NC
18841 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18842 *)
18843 stage1_checking=--enable-checking=yes,types;;
ce6c656d 18844 esac
05a13254
NC
18845 if test "x$enable_checking" = x && \
18846 test -d ${srcdir}/gcc && \
18847 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18848 stage1_checking=--enable-checking=yes,types,extra
18849 fi
8a0d8a5c 18850else
5566c1fa 18851 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 18852fi
81ecdfbb 18853fi
8a0d8a5c
PB
18854
18855
c6b750e1 18856
81ecdfbb
RW
18857# Enable -Werror in bootstrap stage2 and later.
18858# Check whether --enable-werror was given.
18859if test "${enable_werror+set}" = set; then :
18860 enableval=$enable_werror;
1a6f2dc7
NN
18861case ${enable_werror} in
18862 yes) stage2_werror_flag="--enable-werror-always" ;;
18863 *) stage2_werror_flag="" ;;
1d39f329
NN
18864esac
18865
82033c9b 18866else
82033c9b 18867
bf41f30d
NC
18868if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18869 case $BUILD_CONFIG in
18870 bootstrap-debug)
18871 stage2_werror_flag="--enable-werror-always" ;;
18872 "")
18873 stage2_werror_flag="--enable-werror-always" ;;
18874 esac
18875fi
82033c9b 18876
bf41f30d 18877fi
82033c9b 18878
1b6c0831 18879
1b6c0831 18880
1b6c0831 18881
e8a5fa9c
RW
18882# Specify what files to not compare during bootstrap.
18883
18884compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
6a6859cb
AM
18885compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18886compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18887compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
e8a5fa9c
RW
18888case "$target" in
18889 hppa*64*-*-hpux*) ;;
228cf97d 18890 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
18891esac
18892
18893
81ecdfbb
RW
18894ac_config_files="$ac_config_files Makefile"
18895
c6b750e1 18896cat >confcache <<\_ACEOF
a0da8069
NN
18897# This file is a shell script that caches the results of configure
18898# tests run on this system so they can be shared between configure
c6b750e1
DJ
18899# scripts and configure runs, see configure's option --config-cache.
18900# It is not useful on other systems. If it contains results you don't
18901# want to keep, you may remove or edit it.
a0da8069 18902#
c6b750e1
DJ
18903# config.status only pays attention to the cache file if you give it
18904# the --recheck option to rerun configure.
a0da8069 18905#
c6b750e1
DJ
18906# `ac_cv_env_foo' variables (set or unset) will be overridden when
18907# loading this file, other *unset* `ac_cv_foo' will be assigned the
18908# following values.
18909
18910_ACEOF
18911
a0da8069
NN
18912# The following way of writing the cache mishandles newlines in values,
18913# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 18914# So, we kill variables containing newlines.
a0da8069
NN
18915# Ultrix sh set writes to stderr and can't be redirected directly,
18916# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
18917(
18918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18919 eval ac_val=\$$ac_var
18920 case $ac_val in #(
18921 *${as_nl}*)
18922 case $ac_var in #(
18923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18924$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18925 esac
18926 case $ac_var in #(
18927 _ | IFS | as_nl) ;; #(
18928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18929 *) { eval $ac_var=; unset $ac_var;} ;;
18930 esac ;;
18931 esac
18932 done
18933
c6b750e1 18934 (set) 2>&1 |
81ecdfbb
RW
18935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18936 *${as_nl}ac_space=\ *)
18937 # `set' does not quote correctly, so add quotes: double-quote
18938 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
18939 sed -n \
18940 "s/'/'\\\\''/g;
18941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 18942 ;; #(
c6b750e1
DJ
18943 *)
18944 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 18945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 18946 ;;
81ecdfbb
RW
18947 esac |
18948 sort
18949) |
c6b750e1 18950 sed '
81ecdfbb 18951 /^ac_cv_env_/b end
c6b750e1 18952 t clear
81ecdfbb 18953 :clear
c6b750e1
DJ
18954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18955 t end
81ecdfbb
RW
18956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18957 :end' >>confcache
18958if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18959 if test -w "$cache_file"; then
d0ac1c44 18960 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18962$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
18963 if test ! -f "$cache_file" || test -h "$cache_file"; then
18964 cat confcache >"$cache_file"
18965 else
18966 case $cache_file in #(
18967 */* | ?:*)
18968 mv -f confcache "$cache_file"$$ &&
18969 mv -f "$cache_file"$$ "$cache_file" ;; #(
18970 *)
18971 mv -f confcache "$cache_file" ;;
18972 esac
18973 fi
18974 fi
a0da8069 18975 else
81ecdfbb
RW
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18977$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 18978 fi
852e5f18 18979fi
a0da8069 18980rm -f confcache
852e5f18 18981
a0da8069
NN
18982test "x$prefix" = xNONE && prefix=$ac_default_prefix
18983# Let make expand exec_prefix.
18984test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 18985
a0da8069
NN
18986# Transform confdefs.h into DEFS.
18987# Protect against shell expansion while executing Makefile rules.
18988# Protect against Makefile macro expansion.
c6b750e1
DJ
18989#
18990# If the first sed substitution is executed (which looks for macros that
81ecdfbb 18991# take arguments), then branch to the quote section. Otherwise,
c6b750e1 18992# look for a macro that doesn't take arguments.
81ecdfbb
RW
18993ac_script='
18994:mline
18995/\\$/{
18996 N
18997 s,\\\n,,
18998 b mline
18999}
c6b750e1 19000t clear
81ecdfbb
RW
19001:clear
19002s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 19003t quote
81ecdfbb 19004s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 19005t quote
81ecdfbb
RW
19006b any
19007:quote
19008s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
19009s/\[/\\&/g
19010s/\]/\\&/g
19011s/\$/$$/g
19012H
19013:any
19014${
19015 g
19016 s/^\n//
19017 s/\n/ /g
19018 p
19019}
19020'
19021DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
19022
19023
19024ac_libobjs=
19025ac_ltlibobjs=
d0ac1c44 19026U=
c6b750e1
DJ
19027for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19028 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
19029 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19030 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19031 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19032 # will be set to the directory where LIBOBJS objects are built.
19033 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19034 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
19035done
19036LIBOBJS=$ac_libobjs
852e5f18 19037
c6b750e1 19038LTLIBOBJS=$ac_ltlibobjs
376a0e54 19039
cac3d6c4 19040
c6b750e1 19041
d0ac1c44 19042: "${CONFIG_STATUS=./config.status}"
81ecdfbb 19043ac_write_fail=0
c6b750e1
DJ
19044ac_clean_files_save=$ac_clean_files
19045ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
19046{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19047$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19048as_write_fail=0
19049cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
19050#! $SHELL
19051# Generated by $as_me.
a0da8069 19052# Run this file to recreate the current configuration.
a0da8069 19053# Compiler output produced by configure, useful for debugging
c6b750e1 19054# configure, is in config.log if it exists.
376a0e54 19055
c6b750e1
DJ
19056debug=false
19057ac_cs_recheck=false
19058ac_cs_silent=false
c6b750e1 19059
81ecdfbb
RW
19060SHELL=\${CONFIG_SHELL-$SHELL}
19061export SHELL
19062_ASEOF
19063cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19064## -------------------- ##
19065## M4sh Initialization. ##
19066## -------------------- ##
19067
19068# Be more Bourne compatible
19069DUALCASE=1; export DUALCASE # for MKS sh
19070if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
19071 emulate sh
19072 NULLCMD=:
81ecdfbb 19073 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
19074 # is contrary to our usage. Disable this feature.
19075 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
19076 setopt NO_GLOB_SUBST
19077else
19078 case `(set -o) 2>/dev/null` in #(
19079 *posix*) :
19080 set -o posix ;; #(
19081 *) :
19082 ;;
19083esac
c6b750e1 19084fi
c6b750e1 19085
81ecdfbb
RW
19086
19087as_nl='
19088'
19089export as_nl
19090# Printing a long string crashes Solaris 7 /usr/bin/printf.
19091as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19092as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19093as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19094# Prefer a ksh shell builtin over an external printf program on Solaris,
19095# but without wasting forks for bash or zsh.
19096if test -z "$BASH_VERSION$ZSH_VERSION" \
19097 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19098 as_echo='print -r --'
19099 as_echo_n='print -rn --'
19100elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19101 as_echo='printf %s\n'
19102 as_echo_n='printf %s'
19103else
19104 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19105 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19106 as_echo_n='/usr/ucb/echo -n'
19107 else
19108 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19109 as_echo_n_body='eval
19110 arg=$1;
19111 case $arg in #(
19112 *"$as_nl"*)
19113 expr "X$arg" : "X\\(.*\\)$as_nl";
19114 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19115 esac;
19116 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19117 '
19118 export as_echo_n_body
19119 as_echo_n='sh -c $as_echo_n_body as_echo'
19120 fi
19121 export as_echo_body
19122 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
19123fi
19124
81ecdfbb
RW
19125# The user is always right.
19126if test "${PATH_SEPARATOR+set}" != set; then
19127 PATH_SEPARATOR=:
19128 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19129 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19130 PATH_SEPARATOR=';'
19131 }
19132fi
19133
19134
19135# IFS
19136# We need space, tab and new line, in precisely that order. Quoting is
19137# there to prevent editors from complaining about space-tab.
19138# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19139# splitting by setting IFS to empty value.)
19140IFS=" "" $as_nl"
19141
19142# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 19143as_myself=
81ecdfbb
RW
19144case $0 in #((
19145 *[\\/]* ) as_myself=$0 ;;
19146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19147for as_dir in $PATH
19148do
19149 IFS=$as_save_IFS
19150 test -z "$as_dir" && as_dir=.
19151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19152 done
19153IFS=$as_save_IFS
19154
19155 ;;
19156esac
19157# We did not find ourselves, most probably we were run as `sh COMMAND'
19158# in which case we are not to be found in the path.
19159if test "x$as_myself" = x; then
19160 as_myself=$0
19161fi
19162if test ! -f "$as_myself"; then
19163 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19164 exit 1
19165fi
c6b750e1 19166
81ecdfbb
RW
19167# Unset variables that we do not need and which cause bugs (e.g. in
19168# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19169# suppresses any "Segmentation fault" message there. '((' could
19170# trigger a bug in pdksh 5.2.14.
19171for as_var in BASH_ENV ENV MAIL MAILPATH
19172do eval test x\${$as_var+set} = xset \
19173 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19174done
c6b750e1
DJ
19175PS1='$ '
19176PS2='> '
19177PS4='+ '
19178
19179# NLS nuisances.
81ecdfbb
RW
19180LC_ALL=C
19181export LC_ALL
19182LANGUAGE=C
19183export LANGUAGE
19184
19185# CDPATH.
19186(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19187
19188
d0ac1c44
SM
19189# as_fn_error STATUS ERROR [LINENO LOG_FD]
19190# ----------------------------------------
81ecdfbb
RW
19191# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19192# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 19193# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
19194as_fn_error ()
19195{
d0ac1c44
SM
19196 as_status=$1; test $as_status -eq 0 && as_status=1
19197 if test "$4"; then
19198 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19199 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 19200 fi
d0ac1c44 19201 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
19202 as_fn_exit $as_status
19203} # as_fn_error
19204
19205
19206# as_fn_set_status STATUS
19207# -----------------------
19208# Set $? to STATUS, without forking.
19209as_fn_set_status ()
19210{
19211 return $1
19212} # as_fn_set_status
19213
19214# as_fn_exit STATUS
19215# -----------------
19216# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19217as_fn_exit ()
19218{
19219 set +e
19220 as_fn_set_status $1
19221 exit $1
19222} # as_fn_exit
19223
19224# as_fn_unset VAR
19225# ---------------
19226# Portably unset VAR.
19227as_fn_unset ()
19228{
19229 { eval $1=; unset $1;}
19230}
19231as_unset=as_fn_unset
19232# as_fn_append VAR VALUE
19233# ----------------------
19234# Append the text in VALUE to the end of the definition contained in VAR. Take
19235# advantage of any shell optimizations that allow amortized linear growth over
19236# repeated appends, instead of the typical quadratic growth present in naive
19237# implementations.
19238if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19239 eval 'as_fn_append ()
19240 {
19241 eval $1+=\$2
19242 }'
19243else
19244 as_fn_append ()
19245 {
19246 eval $1=\$$1\$2
19247 }
19248fi # as_fn_append
19249
19250# as_fn_arith ARG...
19251# ------------------
19252# Perform arithmetic evaluation on the ARGs, and store the result in the
19253# global $as_val. Take advantage of shells that can avoid forks. The arguments
19254# must be portable across $(()) and expr.
19255if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19256 eval 'as_fn_arith ()
19257 {
19258 as_val=$(( $* ))
19259 }'
19260else
19261 as_fn_arith ()
19262 {
19263 as_val=`expr "$@" || test $? -eq 1`
19264 }
19265fi # as_fn_arith
19266
c6b750e1 19267
81ecdfbb
RW
19268if expr a : '\(a\)' >/dev/null 2>&1 &&
19269 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
19270 as_expr=expr
19271else
19272 as_expr=false
19273fi
19274
81ecdfbb 19275if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
19276 as_basename=basename
19277else
19278 as_basename=false
19279fi
19280
81ecdfbb
RW
19281if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19282 as_dirname=dirname
19283else
19284 as_dirname=false
19285fi
c6b750e1 19286
81ecdfbb 19287as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
19288$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19289 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
19290 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19291$as_echo X/"$0" |
19292 sed '/^.*\/\([^/][^/]*\)\/*$/{
19293 s//\1/
19294 q
19295 }
19296 /^X\/\(\/\/\)$/{
19297 s//\1/
19298 q
19299 }
19300 /^X\/\(\/\).*/{
19301 s//\1/
19302 q
19303 }
19304 s/.*/./; q'`
c6b750e1 19305
c6b750e1
DJ
19306# Avoid depending upon Character Ranges.
19307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19310as_cr_digits='0123456789'
19311as_cr_alnum=$as_cr_Letters$as_cr_digits
19312
81ecdfbb
RW
19313ECHO_C= ECHO_N= ECHO_T=
19314case `echo -n x` in #(((((
19315-n*)
19316 case `echo 'xy\c'` in
19317 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19318 xy) ECHO_C='\c';;
19319 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19320 ECHO_T=' ';;
19321 esac;;
19322*)
19323 ECHO_N='-n';;
c6b750e1
DJ
19324esac
19325
81ecdfbb
RW
19326rm -f conf$$ conf$$.exe conf$$.file
19327if test -d conf$$.dir; then
19328 rm -f conf$$.dir/conf$$.file
c6b750e1 19329else
81ecdfbb
RW
19330 rm -f conf$$.dir
19331 mkdir conf$$.dir 2>/dev/null
c6b750e1 19332fi
81ecdfbb
RW
19333if (echo >conf$$.file) 2>/dev/null; then
19334 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 19335 as_ln_s='ln -s'
81ecdfbb
RW
19336 # ... but there are two gotchas:
19337 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19338 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 19339 # In both cases, we have to default to `cp -pR'.
81ecdfbb 19340 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 19341 as_ln_s='cp -pR'
81ecdfbb
RW
19342 elif ln conf$$.file conf$$ 2>/dev/null; then
19343 as_ln_s=ln
19344 else
d0ac1c44 19345 as_ln_s='cp -pR'
c6b750e1 19346 fi
c6b750e1 19347else
d0ac1c44 19348 as_ln_s='cp -pR'
c6b750e1 19349fi
81ecdfbb
RW
19350rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19351rmdir conf$$.dir 2>/dev/null
19352
19353
19354# as_fn_mkdir_p
19355# -------------
19356# Create "$as_dir" as a directory, including parents if necessary.
19357as_fn_mkdir_p ()
19358{
19359
19360 case $as_dir in #(
19361 -*) as_dir=./$as_dir;;
19362 esac
19363 test -d "$as_dir" || eval $as_mkdir_p || {
19364 as_dirs=
19365 while :; do
19366 case $as_dir in #(
19367 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19368 *) as_qdir=$as_dir;;
19369 esac
19370 as_dirs="'$as_qdir' $as_dirs"
19371 as_dir=`$as_dirname -- "$as_dir" ||
19372$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19373 X"$as_dir" : 'X\(//\)[^/]' \| \
19374 X"$as_dir" : 'X\(//\)$' \| \
19375 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19376$as_echo X"$as_dir" |
19377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19378 s//\1/
19379 q
19380 }
19381 /^X\(\/\/\)[^/].*/{
19382 s//\1/
19383 q
19384 }
19385 /^X\(\/\/\)$/{
19386 s//\1/
19387 q
19388 }
19389 /^X\(\/\).*/{
19390 s//\1/
19391 q
19392 }
19393 s/.*/./; q'`
19394 test -d "$as_dir" && break
19395 done
19396 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 19397 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 19398
c6b750e1 19399
81ecdfbb 19400} # as_fn_mkdir_p
c6b750e1 19401if mkdir -p . 2>/dev/null; then
81ecdfbb 19402 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
19403else
19404 test -d ./-p && rmdir ./-p
19405 as_mkdir_p=false
19406fi
19407
d0ac1c44
SM
19408
19409# as_fn_executable_p FILE
19410# -----------------------
19411# Test if FILE is an executable regular file.
19412as_fn_executable_p ()
19413{
19414 test -f "$1" && test -x "$1"
19415} # as_fn_executable_p
19416as_test_x='test -x'
19417as_executable_p=as_fn_executable_p
c6b750e1
DJ
19418
19419# Sed expression to map a string onto a valid CPP name.
19420as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19421
19422# Sed expression to map a string onto a valid variable name.
19423as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19424
19425
c6b750e1 19426exec 6>&1
81ecdfbb
RW
19427## ----------------------------------- ##
19428## Main body of $CONFIG_STATUS script. ##
19429## ----------------------------------- ##
19430_ASEOF
19431test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19432
19433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19434# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 19435# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
19436# values after options handling.
19437ac_log="
c6b750e1 19438This file was extended by $as_me, which was
d0ac1c44 19439generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
19440
19441 CONFIG_FILES = $CONFIG_FILES
19442 CONFIG_HEADERS = $CONFIG_HEADERS
19443 CONFIG_LINKS = $CONFIG_LINKS
19444 CONFIG_COMMANDS = $CONFIG_COMMANDS
19445 $ $0 $@
19446
81ecdfbb
RW
19447on `(hostname || uname -n) 2>/dev/null | sed 1q`
19448"
19449
c6b750e1
DJ
19450_ACEOF
19451
81ecdfbb
RW
19452case $ac_config_files in *"
19453"*) set x $ac_config_files; shift; ac_config_files=$*;;
19454esac
c6b750e1 19455
c6b750e1 19456
c6b750e1 19457
81ecdfbb
RW
19458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19459# Files that config.status was made for.
19460config_files="$ac_config_files"
c6b750e1 19461
81ecdfbb 19462_ACEOF
c6b750e1 19463
81ecdfbb 19464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19465ac_cs_usage="\
81ecdfbb
RW
19466\`$as_me' instantiates files and other configuration actions
19467from templates according to the current configuration. Unless the files
19468and actions are specified as TAGs, all are instantiated by default.
c6b750e1 19469
81ecdfbb 19470Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
19471
19472 -h, --help print this help, then exit
81ecdfbb 19473 -V, --version print version number and configuration settings, then exit
d0ac1c44 19474 --config print configuration, then exit
81ecdfbb
RW
19475 -q, --quiet, --silent
19476 do not print progress messages
c6b750e1
DJ
19477 -d, --debug don't remove temporary files
19478 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
19479 --file=FILE[:TEMPLATE]
19480 instantiate the configuration file FILE
c6b750e1
DJ
19481
19482Configuration files:
19483$config_files
19484
81ecdfbb 19485Report bugs to the package provider."
c6b750e1 19486
81ecdfbb
RW
19487_ACEOF
19488cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19489ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
19490ac_cs_version="\\
19491config.status
d0ac1c44
SM
19492configured by $0, generated by GNU Autoconf 2.69,
19493 with options \\"\$ac_cs_config\\"
c6b750e1 19494
d0ac1c44 19495Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
19496This config.status script is free software; the Free Software Foundation
19497gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
19498
19499ac_pwd='$ac_pwd'
19500srcdir='$srcdir'
19501INSTALL='$INSTALL'
8e957354 19502AWK='$AWK'
81ecdfbb 19503test -n "\$AWK" || AWK=awk
c6b750e1
DJ
19504_ACEOF
19505
81ecdfbb
RW
19506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19507# The default lists apply if the user does not specify any file.
c6b750e1
DJ
19508ac_need_defaults=:
19509while test $# != 0
a0da8069 19510do
c6b750e1 19511 case $1 in
d0ac1c44 19512 --*=?*)
81ecdfbb
RW
19513 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19514 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
19515 ac_shift=:
19516 ;;
d0ac1c44
SM
19517 --*=)
19518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19519 ac_optarg=
19520 ac_shift=:
19521 ;;
81ecdfbb 19522 *)
c6b750e1
DJ
19523 ac_option=$1
19524 ac_optarg=$2
19525 ac_shift=shift
19526 ;;
c6b750e1
DJ
19527 esac
19528
19529 case $ac_option in
19530 # Handling of the options.
a0da8069 19531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 19532 ac_cs_recheck=: ;;
81ecdfbb
RW
19533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19534 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
19535 --config | --confi | --conf | --con | --co | --c )
19536 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 19537 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
19538 debug=: ;;
19539 --file | --fil | --fi | --f )
19540 $ac_shift
81ecdfbb
RW
19541 case $ac_optarg in
19542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 19543 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
19544 esac
19545 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 19546 ac_need_defaults=false;;
81ecdfbb
RW
19547 --he | --h | --help | --hel | -h )
19548 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
19549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19550 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19551 ac_cs_silent=: ;;
19552
19553 # This is an error.
d0ac1c44 19554 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 19555Try \`$0 --help' for more information." ;;
c6b750e1 19556
81ecdfbb
RW
19557 *) as_fn_append ac_config_targets " $1"
19558 ac_need_defaults=false ;;
c6b750e1 19559
376a0e54 19560 esac
c6b750e1 19561 shift
376a0e54
CM
19562done
19563
c6b750e1 19564ac_configure_extra_args=
376a0e54 19565
c6b750e1
DJ
19566if $ac_cs_silent; then
19567 exec 6>/dev/null
19568 ac_configure_extra_args="$ac_configure_extra_args --silent"
19569fi
376a0e54 19570
c6b750e1 19571_ACEOF
81ecdfbb 19572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 19573if \$ac_cs_recheck; then
d0ac1c44 19574 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
19575 shift
19576 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19577 CONFIG_SHELL='$SHELL'
19578 export CONFIG_SHELL
19579 exec "\$@"
c6b750e1
DJ
19580fi
19581
19582_ACEOF
81ecdfbb
RW
19583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19584exec 5>>config.log
19585{
19586 echo
19587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19588## Running $as_me. ##
19589_ASBOX
19590 $as_echo "$ac_log"
19591} >&5
c6b750e1 19592
81ecdfbb
RW
19593_ACEOF
19594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
19595#
19596# INIT-COMMANDS
19597#
19598extrasub_build="$extrasub_build"
19599 extrasub_host="$extrasub_host"
19600 extrasub_target="$extrasub_target"
19601
81ecdfbb 19602_ACEOF
c6b750e1 19603
81ecdfbb 19604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19605
81ecdfbb 19606# Handling of arguments.
c6b750e1
DJ
19607for ac_config_target in $ac_config_targets
19608do
81ecdfbb
RW
19609 case $ac_config_target in
19610 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19611
d0ac1c44 19612 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
19613 esac
19614done
19615
81ecdfbb 19616
c6b750e1
DJ
19617# If the user did not use the arguments to specify the items to instantiate,
19618# then the envvar interface is used. Set only those that are not.
19619# We use the long form for the default assignment because of an extremely
19620# bizarre bug on SunOS 4.1.3.
19621if $ac_need_defaults; then
19622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19623fi
19624
19625# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 19626# simply because there is no reason against having it here, and in addition,
c6b750e1 19627# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
19628# Hook for its removal unless debugging.
19629# Note that there is a small window in which the directory will not be cleaned:
19630# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
19631$debug ||
19632{
d0ac1c44 19633 tmp= ac_tmp=
81ecdfbb 19634 trap 'exit_status=$?
d0ac1c44
SM
19635 : "${ac_tmp:=$tmp}"
19636 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
19637' 0
19638 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 19639}
c6b750e1
DJ
19640# Create a (secure) tmp directory for tmp files.
19641
19642{
81ecdfbb 19643 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 19644 test -d "$tmp"
c6b750e1
DJ
19645} ||
19646{
81ecdfbb
RW
19647 tmp=./conf$$-$RANDOM
19648 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
19649} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19650ac_tmp=$tmp
81ecdfbb
RW
19651
19652# Set up the scripts for CONFIG_FILES section.
19653# No need to generate them if there are no CONFIG_FILES.
19654# This happens for instance with `./config.status config.h'.
19655if test -n "$CONFIG_FILES"; then
19656
19657if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19658 ac_cs_awk_getline=:
19659 ac_cs_awk_pipe_init=
19660 ac_cs_awk_read_file='
19661 while ((getline aline < (F[key])) > 0)
19662 print(aline)
19663 close(F[key])'
19664 ac_cs_awk_pipe_fini=
19665else
19666 ac_cs_awk_getline=false
19667 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19668 ac_cs_awk_read_file='
19669 print "|#_!!_#|"
19670 print "cat " F[key] " &&"
19671 '$ac_cs_awk_pipe_init
19672 # The final `:' finishes the AND list.
19673 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19674fi
19675ac_cr=`echo X | tr X '\015'`
19676# On cygwin, bash can eat \r inside `` if the user requested igncr.
19677# But we know of no other shell where ac_cr would be empty at this
19678# point, so we can use a bashism as a fallback.
19679if test "x$ac_cr" = x; then
19680 eval ac_cr=\$\'\\r\'
19681fi
19682ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19683if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 19684 ac_cs_awk_cr='\\r'
81ecdfbb
RW
19685else
19686 ac_cs_awk_cr=$ac_cr
19687fi
19688
d0ac1c44 19689echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
19690_ACEOF
19691
19692# Create commands to substitute file output variables.
c6b750e1 19693{
81ecdfbb 19694 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 19695 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
19696 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19697 echo "_ACAWK" &&
19698 echo "_ACEOF"
19699} >conf$$files.sh &&
19700. ./conf$$files.sh ||
d0ac1c44 19701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19702rm -f conf$$files.sh
c6b750e1 19703
81ecdfbb
RW
19704{
19705 echo "cat >conf$$subs.awk <<_ACEOF" &&
19706 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19707 echo "_ACEOF"
19708} >conf$$subs.sh ||
d0ac1c44
SM
19709 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19710ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
19711ac_delim='%!_!# '
19712for ac_last_try in false false false false false :; do
19713 . ./conf$$subs.sh ||
d0ac1c44 19714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19715
19716 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19717 if test $ac_delim_n = $ac_delim_num; then
19718 break
19719 elif $ac_last_try; then
d0ac1c44 19720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19721 else
19722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19723 fi
19724done
19725rm -f conf$$subs.sh
19726
19727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19728cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 19729_ACEOF
81ecdfbb
RW
19730sed -n '
19731h
19732s/^/S["/; s/!.*/"]=/
19733p
19734g
19735s/^[^!]*!//
19736:repl
19737t repl
19738s/'"$ac_delim"'$//
19739t delim
19740:nl
19741h
d0ac1c44 19742s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19743t more1
19744s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19745p
19746n
19747b repl
19748:more1
19749s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19750p
19751g
19752s/.\{148\}//
19753t nl
19754:delim
19755h
d0ac1c44 19756s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19757t more2
19758s/["\\]/\\&/g; s/^/"/; s/$/"/
19759p
19760b
19761:more2
19762s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19763p
19764g
19765s/.\{148\}//
19766t delim
19767' <conf$$subs.awk | sed '
19768/^[^""]/{
19769 N
19770 s/\n//
19771}
19772' >>$CONFIG_STATUS || ac_write_fail=1
19773rm -f conf$$subs.awk
19774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19775_ACAWK
d0ac1c44 19776cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
19777 for (key in S) S_is_set[key] = 1
19778 FS = "\a"
19779 \$ac_cs_awk_pipe_init
19780}
19781{
19782 line = $ 0
19783 nfields = split(line, field, "@")
19784 substed = 0
19785 len = length(field[1])
19786 for (i = 2; i < nfields; i++) {
19787 key = field[i]
19788 keylen = length(key)
19789 if (S_is_set[key]) {
19790 value = S[key]
19791 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19792 len += length(value) + length(field[++i])
19793 substed = 1
19794 } else
19795 len += 1 + keylen
19796 }
19797 if (nfields == 3 && !substed) {
19798 key = field[2]
19799 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19800 \$ac_cs_awk_read_file
19801 next
19802 }
19803 }
19804 print line
19805}
19806\$ac_cs_awk_pipe_fini
19807_ACAWK
19808_ACEOF
19809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19810if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19812else
19813 cat
d0ac1c44
SM
19814fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
19816_ACEOF
19817
d0ac1c44
SM
19818# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19819# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19820# trailing colons and then remove the whole line if VPATH becomes empty
19821# (actually we leave an empty line to preserve line numbers).
19822if test "x$srcdir" = x.; then
d0ac1c44
SM
19823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19824h
19825s///
19826s/^/:/
19827s/[ ]*$/:/
19828s/:\$(srcdir):/:/g
19829s/:\${srcdir}:/:/g
19830s/:@srcdir@:/:/g
19831s/^:*//
81ecdfbb 19832s/:*$//
d0ac1c44
SM
19833x
19834s/\(=[ ]*\).*/\1/
19835G
19836s/\n//
81ecdfbb
RW
19837s/^[^=]*=[ ]*$//
19838}'
19839fi
c6b750e1 19840
81ecdfbb
RW
19841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19842fi # test -n "$CONFIG_FILES"
c6b750e1 19843
c6b750e1 19844
81ecdfbb
RW
19845eval set X " :F $CONFIG_FILES "
19846shift
19847for ac_tag
19848do
19849 case $ac_tag in
19850 :[FHLC]) ac_mode=$ac_tag; continue;;
19851 esac
19852 case $ac_mode$ac_tag in
19853 :[FHL]*:*);;
d0ac1c44 19854 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19855 :[FH]-) ac_tag=-:-;;
19856 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19857 esac
19858 ac_save_IFS=$IFS
19859 IFS=:
19860 set x $ac_tag
19861 IFS=$ac_save_IFS
19862 shift
19863 ac_file=$1
19864 shift
252b5132 19865
81ecdfbb
RW
19866 case $ac_mode in
19867 :L) ac_source=$1;;
19868 :[FH])
19869 ac_file_inputs=
19870 for ac_f
19871 do
19872 case $ac_f in
d0ac1c44 19873 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19874 *) # Look for the file first in the build tree, then in the source tree
19875 # (if the path is not absolute). The absolute path cannot be DOS-style,
19876 # because $ac_f cannot contain `:'.
19877 test -f "$ac_f" ||
19878 case $ac_f in
19879 [\\/$]*) false;;
19880 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19881 esac ||
d0ac1c44 19882 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19883 esac
19884 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19885 as_fn_append ac_file_inputs " '$ac_f'"
19886 done
c6b750e1 19887
81ecdfbb
RW
19888 # Let's still pretend it is `configure' which instantiates (i.e., don't
19889 # use $as_me), people would be surprised to read:
19890 # /* config.h. Generated by config.status. */
19891 configure_input='Generated from '`
19892 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19893 `' by configure.'
19894 if test x"$ac_file" != x-; then
19895 configure_input="$ac_file. $configure_input"
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19897$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 19898 fi
81ecdfbb
RW
19899 # Neutralize special characters interpreted by sed in replacement strings.
19900 case $configure_input in #(
19901 *\&* | *\|* | *\\* )
19902 ac_sed_conf_input=`$as_echo "$configure_input" |
19903 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19904 *) ac_sed_conf_input=$configure_input;;
19905 esac
cac3d6c4 19906
81ecdfbb 19907 case $ac_tag in
d0ac1c44
SM
19908 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19910 esac
19911 ;;
a0da8069 19912 esac
252b5132 19913
81ecdfbb 19914 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
19915$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19916 X"$ac_file" : 'X\(//\)[^/]' \| \
19917 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19918 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19919$as_echo X"$ac_file" |
19920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19921 s//\1/
19922 q
19923 }
19924 /^X\(\/\/\)[^/].*/{
19925 s//\1/
19926 q
19927 }
19928 /^X\(\/\/\)$/{
19929 s//\1/
19930 q
19931 }
19932 /^X\(\/\).*/{
19933 s//\1/
19934 q
19935 }
19936 s/.*/./; q'`
19937 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 19938 ac_builddir=.
252b5132 19939
81ecdfbb
RW
19940case "$ac_dir" in
19941.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19942*)
19943 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19944 # A ".." for each directory in $ac_dir_suffix.
19945 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19946 case $ac_top_builddir_sub in
19947 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19948 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19949 esac ;;
19950esac
19951ac_abs_top_builddir=$ac_pwd
19952ac_abs_builddir=$ac_pwd$ac_dir_suffix
19953# for backward compatibility:
19954ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
19955
19956case $srcdir in
81ecdfbb 19957 .) # We are building in place.
c6b750e1 19958 ac_srcdir=.
81ecdfbb
RW
19959 ac_top_srcdir=$ac_top_builddir_sub
19960 ac_abs_top_srcdir=$ac_pwd ;;
19961 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 19962 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19963 ac_top_srcdir=$srcdir
19964 ac_abs_top_srcdir=$srcdir ;;
19965 *) # Relative name.
19966 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19967 ac_top_srcdir=$ac_top_build_prefix$srcdir
19968 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 19969esac
81ecdfbb 19970ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 19971
252b5132 19972
81ecdfbb
RW
19973 case $ac_mode in
19974 :F)
19975 #
19976 # CONFIG_FILE
19977 #
c6b750e1
DJ
19978
19979 case $INSTALL in
19980 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 19981 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 19982 esac
81ecdfbb 19983_ACEOF
252b5132 19984
81ecdfbb
RW
19985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19986# If the template does not know about datarootdir, expand it.
19987# FIXME: This hack should be removed a few years after 2.60.
19988ac_datarootdir_hack=; ac_datarootdir_seen=
19989ac_sed_dataroot='
19990/datarootdir/ {
19991 p
19992 q
19993}
19994/@datadir@/p
19995/@docdir@/p
19996/@infodir@/p
19997/@localedir@/p
19998/@mandir@/p'
19999case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20000*datarootdir*) ac_datarootdir_seen=yes;;
20001*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20003$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 20004_ACEOF
81ecdfbb
RW
20005cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20006 ac_datarootdir_hack='
20007 s&@datadir@&$datadir&g
20008 s&@docdir@&$docdir&g
20009 s&@infodir@&$infodir&g
20010 s&@localedir@&$localedir&g
20011 s&@mandir@&$mandir&g
20012 s&\\\${datarootdir}&$datarootdir&g' ;;
20013esac
20014_ACEOF
20015
20016# Neutralize VPATH when `$srcdir' = `.'.
20017# Shell code in configure.ac might set extrasub.
20018# FIXME: do we really want to maintain this feature?
20019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20020ac_sed_extra="$ac_vpsub
c6b750e1
DJ
20021$extrasub
20022_ACEOF
81ecdfbb 20023cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
20024:t
20025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
20026s|@configure_input@|$ac_sed_conf_input|;t t
20027s&@top_builddir@&$ac_top_builddir_sub&;t t
20028s&@top_build_prefix@&$ac_top_build_prefix&;t t
20029s&@srcdir@&$ac_srcdir&;t t
20030s&@abs_srcdir@&$ac_abs_srcdir&;t t
20031s&@top_srcdir@&$ac_top_srcdir&;t t
20032s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20033s&@builddir@&$ac_builddir&;t t
20034s&@abs_builddir@&$ac_abs_builddir&;t t
20035s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20036s&@INSTALL@&$ac_INSTALL&;t t
20037$ac_datarootdir_hack
20038"
20039eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20040if $ac_cs_awk_getline; then
d0ac1c44 20041 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 20042else
d0ac1c44
SM
20043 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20044fi \
20045 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
20046
20047test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
20048 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20049 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20050 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 20051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 20052which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 20053$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 20054which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 20055
d0ac1c44 20056 rm -f "$ac_tmp/stdin"
81ecdfbb 20057 case $ac_file in
d0ac1c44
SM
20058 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20059 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 20060 esac \
d0ac1c44 20061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 20062 ;;
c148b4cb 20063
c148b4cb 20064
c148b4cb 20065
81ecdfbb
RW
20066 esac
20067
06a51eac
RW
20068
20069 case $ac_file$ac_mode in
20070 "Makefile":F) sed "$extrasub_build" Makefile |
20071 sed "$extrasub_host" |
20072 sed "$extrasub_target" > mf$$
20073 mv -f mf$$ Makefile ;;
20074
20075 esac
81ecdfbb
RW
20076done # for ac_tag
20077
20078
20079as_fn_exit 0
c6b750e1 20080_ACEOF
c6b750e1
DJ
20081ac_clean_files=$ac_clean_files_save
20082
81ecdfbb 20083test $ac_write_fail = 0 ||
d0ac1c44 20084 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20085
c6b750e1
DJ
20086
20087# configure is writing to config.log, and then calls config.status.
20088# config.status does its own redirection, appending to config.log.
20089# Unfortunately, on DOS this fails, as config.log is still kept open
20090# by configure, so config.status won't be able to write to it; its
20091# output is simply discarded. So we exec the FD to /dev/null,
20092# effectively closing config.log, so it can be properly (re)opened and
20093# appended to by config.status. When coming back to configure, we
20094# need to make the FD available again.
20095if test "$no_create" != yes; then
20096 ac_cs_success=:
20097 ac_config_status_args=
20098 test "$silent" = yes &&
20099 ac_config_status_args="$ac_config_status_args --quiet"
20100 exec 5>/dev/null
20101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20102 exec 5>>config.log
20103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20104 # would make configure fail if this is the last instruction.
d0ac1c44 20105 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20106fi
20107if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20109$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 20110fi
c148b4cb 20111