]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
kvx: New port.
[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
19e559f1 2832host_libs="intl 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
PI
3970 kvx-*-*)
3971 noconfigdirs="$noconfigdirs gdb sim"
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.
c6b750e1 10115baseargs=
65b4571a 10116tbaseargs=
c6b750e1
DJ
10117keep_next=no
10118skip_next=no
10119eval "set -- $ac_configure_args"
18f6b6ee
PB
10120for ac_arg
10121do
c6b750e1
DJ
10122 if test X"$skip_next" = X"yes"; then
10123 skip_next=no
10124 continue
10125 fi
10126 if test X"$keep_next" = X"yes"; then
10127 case $ac_arg in
10128 *\'*)
10129 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10130 esac
10131 baseargs="$baseargs '$ac_arg'"
65b4571a 10132 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
10133 keep_next=no
10134 continue
10135 fi
10136
10137 # Handle separated arguments. Based on the logic generated by
10138 # autoconf 2.59.
10139 case $ac_arg in
10140 *=* | --config-cache | -C | -disable-* | --disable-* \
10141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
10142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
10143 | -with-* | --with-* | -without-* | --without-* | --x)
10144 separate_arg=no
10145 ;;
10146 -*)
10147 separate_arg=yes
10148 ;;
10149 *)
10150 separate_arg=no
10151 ;;
10152 esac
10153
65b4571a
AO
10154 skip_targ=no
10155 case $ac_arg in
10156
10157 --with-* | --without-*)
10158 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10159
10160 case $libopt in
10161 *[-_]include)
10162 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10163 ;;
10164 *[-_]lib)
10165 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10166 ;;
10167 *)
10168 lib=$libopt
10169 ;;
10170 esac
10171
10172
10173 case $lib in
1b6c0831 10174 mpc | mpfr | gmp | isl)
65b4571a
AO
10175 # If we're processing --with-$lib, --with-$lib-include or
10176 # --with-$lib-lib, for one of the libs above, and target is
10177 # different from host, don't pass the current argument to any
10178 # target library's configure.
10179 if test x$is_cross_compiler = xyes; then
10180 skip_targ=yes
10181 fi
10182 ;;
10183 esac
10184 ;;
10185 esac
10186
c6b750e1 10187 case "$ac_arg" in
30167e0a
NC
10188 --cache-file=/dev/null | \
10189 -cache-file=/dev/null )
10190 # Handled here to avoid the test to skip args below.
10191 baseargs="$baseargs '$ac_arg'"
65b4571a 10192 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
10193 # Assert: $separate_arg should always be no.
10194 keep_next=$separate_arg
10195 ;;
c6b750e1
DJ
10196 --no*)
10197 continue
10198 ;;
10199 --c* | \
10200 --sr* | \
10201 --ho* | \
10202 --bu* | \
10203 --t* | \
10204 --program-* | \
10205 -cache_file* | \
10206 -srcdir* | \
10207 -host* | \
10208 -build* | \
10209 -target* | \
10210 -program-prefix* | \
10211 -program-suffix* | \
10212 -program-transform-name* )
10213 skip_next=$separate_arg
10214 continue
10215 ;;
10216 -*)
10217 # An option. Add it.
10218 case $ac_arg in
10219 *\'*)
10220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10221 esac
10222 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
10223 if test X"$skip_targ" = Xno; then
10224 tbaseargs="$tbaseargs '$ac_arg'"
10225 fi
c6b750e1
DJ
10226 keep_next=$separate_arg
10227 ;;
10228 *)
10229 # Either a variable assignment, or a nonopt (triplet). Don't
10230 # pass it down; let the Makefile handle this.
10231 continue
10232 ;;
10233 esac
10234done
10235# Remove the initial space we just introduced and, as these will be
10236# expanded by make, quote '$'.
10237baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 10238
f27d4f92
DJ
10239# Add in --program-transform-name, after --program-prefix and
10240# --program-suffix have been applied to it. Autoconf has already
10241# doubled dollar signs and backslashes in program_transform_name; we want
10242# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 10243# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
10244# Also, because we want to override the logic in subdir configure scripts to
10245# choose program_transform_name, replace any s,x,x, with s,y,y,.
10246sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10247${program_transform_name}
10248EOF_SED
10249gcc_transform_name=`cat conftestsed.out`
10250rm -f conftestsed.out
10251baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 10252tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
10253if test "$silent" = yes; then
10254 baseargs="$baseargs --silent"
65b4571a 10255 tbaseargs="$tbaseargs --silent"
2444379b 10256fi
e5f2f7d9 10257
34a0f3cf 10258baseargs="$baseargs --disable-option-checking"
65b4571a 10259tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 10260
e5f2f7d9
LM
10261if test "$enable_year2038" = no; then
10262 baseargs="$baseargs --disable-year2038"
10263 tbaseargs="$tbaseargs --disable-year2038"
10264fi
10265
4074d5f2
RW
10266# Record and document user additions to sub configure arguments.
10267
10268
10269
10270
a0da8069
NN
10271# For the build-side libraries, we just need to pretend we're native,
10272# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
10273# desired. We can't even use the same cache file for all build-side
10274# libraries, as they're compiled differently; some with C, some with
10275# C++ or with different feature-enabling options.
10276build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
10277
10278# For host modules, accept cache file option, or specification as blank.
10279case "${cache_file}" in
10280"") # empty
10281 cache_file_option="" ;;
10282/* | [A-Za-z]:[\\/]* ) # absolute path
10283 cache_file_option="--cache-file=${cache_file}" ;;
10284*) # relative path
10285 cache_file_option="--cache-file=../${cache_file}" ;;
10286esac
10287
82252c06
NN
10288# Host dirs don't like to share a cache file either, horribly enough.
10289# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 10290host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 10291
65b4571a 10292target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
10293
10294# Passing a --with-cross-host argument lets the target libraries know
10295# whether they are being built with a cross-compiler or being built
10296# native. However, it would be better to use other mechanisms to make the
10297# sorts of decisions they want to make on this basis. Please consider
10298# this option to be deprecated. FIXME.
10299if test x${is_cross_compiler} = xyes ; then
c6b750e1 10300 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
10301fi
10302
afc0578d 10303# Special user-friendly check for native x86_64-linux build, if
10304# multilib is not explicitly enabled.
10305case "$target:$have_compiler:$host:$target:$enable_multilib" in
10306 x86_64-*linux*:yes:$build:$build:)
ce6c656d 10307 # Make sure we have a development environment that handles 32-bit
afc0578d 10308 dev64=no
10309 echo "int main () { return 0; }" > conftest.c
10310 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10311 if test $? = 0 ; then
10312 if test -s conftest || test -s conftest.exe ; then
10313 dev64=yes
10314 fi
10315 fi
10316 rm -f conftest*
10317 if test x${dev64} != xyes ; then
d0ac1c44 10318 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 10319 fi
10320 ;;
10321esac
10322
938d2b74
RW
10323# Default to --enable-multilib.
10324if test x${enable_multilib} = x ; then
a0da8069 10325 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 10326fi
a0da8069
NN
10327
10328# Pass --with-newlib if appropriate. Note that target_configdirs has
10329# changed from the earlier setting of with_newlib.
10330if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10331 target_configargs="--with-newlib ${target_configargs}"
10332fi
10333
95036d20
NN
10334# Different target subdirs use different values of certain variables
10335# (notably CXX). Worse, multilibs use *lots* of different values.
10336# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10337# it doesn't automatically accept command-line overrides of them.
10338# This means it's not safe for target subdirs to share a cache file,
10339# which is disgusting, but there you have it. Hopefully this can be
10340# fixed in future. It's still worthwhile to use a cache file for each
10341# directory. I think.
10342
ae380b45
MS
10343# Pass the appropriate --build, --host, --target and --cache-file arguments.
10344# We need to pass --target, as newer autoconf's requires consistency
10345# for target_alias and gcc doesn't manage it consistently.
4b900473 10346target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 10347
a0da8069
NN
10348FLAGS_FOR_TARGET=
10349case " $target_configdirs " in
10350 *" newlib "*)
10351 case " $target_configargs " in
10352 *" --with-newlib "*)
10353 case "$target" in
1f53ca9a 10354 *-cygwin*)
6d94c122 10355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 10356 ;;
a0da8069
NN
10357 esac
10358
10359 # If we're not building GCC, don't discard standard headers.
10360 if test -d ${srcdir}/gcc; then
10361 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10362
10363 if test "${build}" != "${host}"; then
10364 # On Canadian crosses, CC_FOR_TARGET will have already been set
10365 # by `configure', so we won't have an opportunity to add -Bgcc/
10366 # to it. This is right: we don't want to search that directory
10367 # for binaries, but we want the header files in there, so add
10368 # them explicitly.
e552509b 10369 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
10370
10371 # Someone might think of using the pre-installed headers on
10372 # Canadian crosses, in case the installed compiler is not fully
10373 # compatible with the compiler being built. In this case, it
10374 # would be better to flag an error than risking having
10375 # incompatible object files being constructed. We can't
10376 # guarantee that an error will be flagged, but let's hope the
10377 # compiler will do it, when presented with incompatible header
10378 # files.
10379 fi
10380 fi
10381
10382 case "${target}-${is_cross_compiler}" in
ec11bdc6 10383 i[3456789]86-*-linux*-no)
a0da8069
NN
10384 # Here host == target, so we don't need to build gcc,
10385 # so we don't want to discard standard headers.
10386 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10387 ;;
10388 *)
10389 # If we're building newlib, use its generic headers last, but search
10390 # for any libc-related directories first (so make it the last -B
10391 # switch).
10392 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
10393
10394 # If we're building libgloss, find the startup file, simulator library
10395 # and linker script.
10396 case " $target_configdirs " in
10397 *" libgloss "*)
10398 # Look for startup file, simulator library and maybe linker script.
10399 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10400 # Look for libnosys.a in case the target needs it.
10401 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10402 # Most targets have the linker script in the source directory.
10403 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10404 ;;
10405 esac
a0da8069
NN
10406 ;;
10407 esac
10408 ;;
10409 esac
10410 ;;
10411esac
1f53ca9a 10412
45055374 10413case "$target" in
1f53ca9a
AO
10414 x86_64-*mingw* | *-w64-mingw*)
10415 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10416 # however, use a symlink named 'mingw' in ${prefix} .
10417 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10418 ;;
10419 *-mingw*)
10420 # MinGW can't be handled as Cygwin above since it does not use newlib.
10421 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'
10422 ;;
45055374 10423esac
a0da8069 10424
5fbad20a
DD
10425# Allow the user to override the flags for
10426# our build compiler if desired.
c66487f8
NC
10427if test x"${build}" = x"${host}" ; then
10428 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
e472ec9f 10429 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
c66487f8
NC
10430 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10431 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10432fi
5fbad20a 10433
a0da8069
NN
10434# On Canadian crosses, we'll be searching the right directories for
10435# the previously-installed cross compiler, so don't bother to add
10436# flags for directories within the install tree of the compiler
10437# being built; programs in there won't even run.
10438if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10439 # Search for pre-installed headers if nothing else fits.
bba45b8b 10440 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
10441fi
10442
10443if test "x${use_gnu_ld}" = x &&
10444 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10445 # Arrange for us to find uninstalled linker scripts.
b00612cc 10446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
10447fi
10448
a481dbb7
DD
10449# Search for other target-specific linker scripts and such.
10450case "${target}" in
4e206d7e
DB
10451 mep*)
10452 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10453 ;;
228cf97d
AM
10454 # The VxWorks support for shared libraries is getting in
10455 # incrementally. Make sure it doesn't get activated implicitly:
10456 *vxworks*)
10457 if test "${enable_shared-unset}" = unset ; then
10458 enable_shared=no
10459 # So the build of libraries knows ...
10460 target_configargs="${target_configargs} --disable-shared"
10461 # So gcc knows ...
10462 host_configargs="${host_configargs} --disable-shared"
10463 fi
10464 ;;
4e206d7e
DB
10465esac
10466
a0da8069 10467# Makefile fragments.
3e707e94
PB
10468for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10469do
10470 eval fragval=\$$frag
10471 if test $fragval != /dev/null; then
10472 eval $frag=${srcdir}/$fragval
10473 fi
10474done
a0da8069
NN
10475
10476
10477
10478
10479
10480# Miscellanea: directories, flags, etc.
10481
10482
10483
10484
10485
10486
10487
3bbd2f8f 10488
6a9cf61e 10489# Build module lists & subconfigure args.
a0da8069
NN
10490
10491
10492
be01d343
PB
10493# Host module lists & subconfigure args.
10494
10495
10496
911e63d0 10497
be01d343
PB
10498# Target module lists & subconfigure args.
10499
10500
10501
10502# Build tools.
10503
10504
10505
1576798e
PB
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
e472ec9f 10519
228cf97d
AM
10520
10521
10522
be01d343
PB
10523# Generate default definitions for YACC, M4, LEX and other programs that run
10524# on the build machine. These are used if the Makefile can't locate these
10525# programs in objdir.
10526MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10527
10528for ac_prog in 'bison -y' byacc yacc
10529do
c6b750e1 10530 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10531set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10534if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 10535 $as_echo_n "(cached) " >&6
be01d343
PB
10536else
10537 if test -n "$YACC"; then
10538 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10539else
c6b750e1
DJ
10540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541for as_dir in $PATH
10542do
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
81ecdfbb 10545 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10547 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10549 break 2
10550 fi
10551done
81ecdfbb
RW
10552 done
10553IFS=$as_save_IFS
c6b750e1 10554
be01d343
PB
10555fi
10556fi
c6b750e1 10557YACC=$ac_cv_prog_YACC
be01d343 10558if test -n "$YACC"; then
81ecdfbb
RW
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10560$as_echo "$YACC" >&6; }
be01d343 10561else
81ecdfbb
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563$as_echo "no" >&6; }
be01d343
PB
10564fi
10565
81ecdfbb 10566
c6b750e1 10567 test -n "$YACC" && break
be01d343
PB
10568done
10569test -n "$YACC" || YACC="$MISSING bison -y"
10570
10571case " $build_configdirs " in
10572 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
10573esac
10574
10575for ac_prog in bison
10576do
c6b750e1 10577 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10578set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10580$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10581if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 10582 $as_echo_n "(cached) " >&6
be01d343
PB
10583else
10584 if test -n "$BISON"; then
10585 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10586else
c6b750e1
DJ
10587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10588for as_dir in $PATH
10589do
10590 IFS=$as_save_IFS
10591 test -z "$as_dir" && as_dir=.
81ecdfbb 10592 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10594 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 10595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10596 break 2
10597 fi
10598done
81ecdfbb
RW
10599 done
10600IFS=$as_save_IFS
c6b750e1 10601
be01d343
PB
10602fi
10603fi
c6b750e1 10604BISON=$ac_cv_prog_BISON
be01d343 10605if test -n "$BISON"; then
81ecdfbb
RW
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10607$as_echo "$BISON" >&6; }
be01d343 10608else
81ecdfbb
RW
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610$as_echo "no" >&6; }
be01d343
PB
10611fi
10612
81ecdfbb 10613
c6b750e1 10614 test -n "$BISON" && break
be01d343
PB
10615done
10616test -n "$BISON" || BISON="$MISSING bison"
10617
10618case " $build_configdirs " in
10619 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10620esac
10621
10622for ac_prog in gm4 gnum4 m4
10623do
c6b750e1 10624 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10625set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10627$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10628if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 10629 $as_echo_n "(cached) " >&6
be01d343
PB
10630else
10631 if test -n "$M4"; then
10632 ac_cv_prog_M4="$M4" # Let the user override the test.
10633else
c6b750e1
DJ
10634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10635for as_dir in $PATH
10636do
10637 IFS=$as_save_IFS
10638 test -z "$as_dir" && as_dir=.
81ecdfbb 10639 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10641 ac_cv_prog_M4="$ac_prog"
81ecdfbb 10642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10643 break 2
10644 fi
10645done
81ecdfbb
RW
10646 done
10647IFS=$as_save_IFS
c6b750e1 10648
be01d343
PB
10649fi
10650fi
c6b750e1 10651M4=$ac_cv_prog_M4
be01d343 10652if test -n "$M4"; then
81ecdfbb
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10654$as_echo "$M4" >&6; }
be01d343 10655else
81ecdfbb
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10657$as_echo "no" >&6; }
be01d343
PB
10658fi
10659
81ecdfbb 10660
c6b750e1 10661 test -n "$M4" && break
be01d343
PB
10662done
10663test -n "$M4" || M4="$MISSING m4"
10664
10665case " $build_configdirs " in
10666 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10667esac
10668
10669for ac_prog in flex lex
10670do
c6b750e1 10671 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10672set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10674$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10675if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 10676 $as_echo_n "(cached) " >&6
be01d343
PB
10677else
10678 if test -n "$LEX"; then
10679 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10680else
c6b750e1
DJ
10681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682for as_dir in $PATH
10683do
10684 IFS=$as_save_IFS
10685 test -z "$as_dir" && as_dir=.
81ecdfbb 10686 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10688 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 10689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10690 break 2
10691 fi
10692done
81ecdfbb
RW
10693 done
10694IFS=$as_save_IFS
c6b750e1 10695
be01d343
PB
10696fi
10697fi
c6b750e1 10698LEX=$ac_cv_prog_LEX
be01d343 10699if test -n "$LEX"; then
81ecdfbb
RW
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10701$as_echo "$LEX" >&6; }
be01d343 10702else
81ecdfbb
RW
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10704$as_echo "no" >&6; }
be01d343
PB
10705fi
10706
81ecdfbb 10707
c6b750e1 10708 test -n "$LEX" && break
be01d343
PB
10709done
10710test -n "$LEX" || LEX="$MISSING flex"
10711
10712case " $build_configdirs " in
10713 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10714 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10715esac
10716
10717for ac_prog in flex
10718do
c6b750e1 10719 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10720set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10723if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 10724 $as_echo_n "(cached) " >&6
be01d343
PB
10725else
10726 if test -n "$FLEX"; then
10727 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10728else
c6b750e1
DJ
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
81ecdfbb 10734 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10736 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10738 break 2
10739 fi
10740done
81ecdfbb
RW
10741 done
10742IFS=$as_save_IFS
c6b750e1 10743
be01d343
PB
10744fi
10745fi
c6b750e1 10746FLEX=$ac_cv_prog_FLEX
be01d343 10747if test -n "$FLEX"; then
81ecdfbb
RW
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10749$as_echo "$FLEX" >&6; }
be01d343 10750else
81ecdfbb
RW
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
be01d343
PB
10753fi
10754
81ecdfbb 10755
c6b750e1 10756 test -n "$FLEX" && break
be01d343
PB
10757done
10758test -n "$FLEX" || FLEX="$MISSING flex"
10759
10760case " $build_configdirs " in
10761 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10762esac
10763
10764for ac_prog in makeinfo
10765do
c6b750e1 10766 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10767set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10770if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 10771 $as_echo_n "(cached) " >&6
be01d343
PB
10772else
10773 if test -n "$MAKEINFO"; then
10774 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10775else
c6b750e1
DJ
10776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777for as_dir in $PATH
10778do
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
81ecdfbb 10781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10783 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10785 break 2
10786 fi
10787done
81ecdfbb
RW
10788 done
10789IFS=$as_save_IFS
c6b750e1 10790
be01d343
PB
10791fi
10792fi
c6b750e1 10793MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 10794if test -n "$MAKEINFO"; then
81ecdfbb
RW
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10796$as_echo "$MAKEINFO" >&6; }
be01d343 10797else
81ecdfbb
RW
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10799$as_echo "no" >&6; }
be01d343
PB
10800fi
10801
81ecdfbb 10802
c6b750e1 10803 test -n "$MAKEINFO" && break
be01d343
PB
10804done
10805test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10806
10807case " $build_configdirs " in
10808 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10809 *)
10810
10ad8ef3 10811 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
10812 # higher, else we use the "missing" dummy.
10813 if ${MAKEINFO} --version \
10ad8ef3 10814 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
10815 :
10816 else
10817 MAKEINFO="$MISSING makeinfo"
10818 fi
10819 ;;
10820
10821esac
a0da8069 10822
be01d343 10823# FIXME: expect and dejagnu may become build tools?
a0da8069 10824
be01d343
PB
10825for ac_prog in expect
10826do
c6b750e1 10827 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10828set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10831if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 10832 $as_echo_n "(cached) " >&6
be01d343
PB
10833else
10834 if test -n "$EXPECT"; then
10835 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10836else
c6b750e1
DJ
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
81ecdfbb 10842 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10844 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10846 break 2
10847 fi
10848done
81ecdfbb
RW
10849 done
10850IFS=$as_save_IFS
c6b750e1 10851
be01d343
PB
10852fi
10853fi
c6b750e1 10854EXPECT=$ac_cv_prog_EXPECT
be01d343 10855if test -n "$EXPECT"; then
81ecdfbb
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10857$as_echo "$EXPECT" >&6; }
be01d343 10858else
81ecdfbb
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
be01d343 10861fi
a0da8069 10862
81ecdfbb 10863
c6b750e1 10864 test -n "$EXPECT" && break
be01d343
PB
10865done
10866test -n "$EXPECT" || EXPECT="expect"
a0da8069 10867
be01d343
PB
10868case " $configdirs " in
10869 *" expect "*)
10870 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10871 ;;
10872esac
a0da8069 10873
be01d343
PB
10874for ac_prog in runtest
10875do
c6b750e1 10876 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10877set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10880if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 10881 $as_echo_n "(cached) " >&6
be01d343
PB
10882else
10883 if test -n "$RUNTEST"; then
10884 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10885else
c6b750e1
DJ
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
81ecdfbb 10891 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10893 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10895 break 2
10896 fi
10897done
81ecdfbb
RW
10898 done
10899IFS=$as_save_IFS
c6b750e1 10900
be01d343
PB
10901fi
10902fi
c6b750e1 10903RUNTEST=$ac_cv_prog_RUNTEST
be01d343 10904if test -n "$RUNTEST"; then
81ecdfbb
RW
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10906$as_echo "$RUNTEST" >&6; }
be01d343 10907else
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
be01d343 10910fi
a0da8069 10911
81ecdfbb 10912
c6b750e1 10913 test -n "$RUNTEST" && break
be01d343
PB
10914done
10915test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 10916
be01d343
PB
10917case " $configdirs " in
10918 *" dejagnu "*)
6b89cc21 10919 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
10920 ;;
10921esac
a0da8069
NN
10922
10923
a0da8069 10924# Host tools.
859789af
AC
10925ncn_tool_prefix=
10926test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10927ncn_target_tool_prefix=
10928test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10929
9a819804
AO
10930
10931
10932if test -n "$AR"; then
10933 ac_cv_prog_AR=$AR
10934elif test -n "$ac_cv_prog_AR"; then
10935 AR=$ac_cv_prog_AR
10936fi
10937
10938if test -n "$ac_cv_prog_AR"; then
10939 for ncn_progname in ar; do
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10941set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10944if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10945 $as_echo_n "(cached) " >&6
9a819804
AO
10946else
10947 if test -n "$AR"; then
10948 ac_cv_prog_AR="$AR" # Let the user override the test.
10949else
10950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $PATH
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
81ecdfbb 10955 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10957 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10959 break 2
10960 fi
10961done
81ecdfbb
RW
10962 done
10963IFS=$as_save_IFS
9a819804
AO
10964
10965fi
10966fi
10967AR=$ac_cv_prog_AR
10968if test -n "$AR"; then
81ecdfbb
RW
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10970$as_echo "$AR" >&6; }
9a819804 10971else
81ecdfbb
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10973$as_echo "no" >&6; }
9a819804
AO
10974fi
10975
81ecdfbb 10976
9a819804
AO
10977 done
10978fi
10979
10980for ncn_progname in ar; do
05cbd757
PB
10981 if test -n "$ncn_tool_prefix"; then
10982 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10983set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10985$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10986if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10987 $as_echo_n "(cached) " >&6
859789af
AC
10988else
10989 if test -n "$AR"; then
10990 ac_cv_prog_AR="$AR" # Let the user override the test.
10991else
c6b750e1
DJ
10992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $PATH
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
81ecdfbb 10997 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10999 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11001 break 2
11002 fi
11003done
81ecdfbb
RW
11004 done
11005IFS=$as_save_IFS
c6b750e1 11006
859789af
AC
11007fi
11008fi
c6b750e1 11009AR=$ac_cv_prog_AR
859789af 11010if test -n "$AR"; then
81ecdfbb
RW
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11012$as_echo "$AR" >&6; }
859789af 11013else
81ecdfbb
RW
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11015$as_echo "no" >&6; }
859789af
AC
11016fi
11017
81ecdfbb 11018
05cbd757
PB
11019 fi
11020 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11022set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11025if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 11026 $as_echo_n "(cached) " >&6
859789af 11027else
05cbd757
PB
11028 if test -n "$AR"; then
11029 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 11030else
c6b750e1
DJ
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
81ecdfbb 11036 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11038 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11040 break 2
11041 fi
11042done
81ecdfbb
RW
11043 done
11044IFS=$as_save_IFS
c6b750e1 11045
859789af
AC
11046fi
11047fi
c6b750e1 11048AR=$ac_cv_prog_AR
05cbd757 11049if test -n "$AR"; then
81ecdfbb
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11051$as_echo "$AR" >&6; }
859789af 11052else
81ecdfbb
RW
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054$as_echo "no" >&6; }
859789af 11055fi
c6b750e1 11056
81ecdfbb 11057
05cbd757
PB
11058 fi
11059 test -n "$ac_cv_prog_AR" && break
11060done
11061
11062if test -z "$ac_cv_prog_AR" ; then
11063 set dummy ar
11064 if test $build = $host ; then
11065 AR="$2"
859789af 11066 else
05cbd757 11067 AR="${ncn_tool_prefix}$2"
859789af 11068 fi
859789af
AC
11069fi
11070
9a819804
AO
11071
11072
11073if test -n "$AS"; then
11074 ac_cv_prog_AS=$AS
11075elif test -n "$ac_cv_prog_AS"; then
11076 AS=$ac_cv_prog_AS
11077fi
11078
11079if test -n "$ac_cv_prog_AS"; then
11080 for ncn_progname in as; do
11081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11085if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11086 $as_echo_n "(cached) " >&6
9a819804
AO
11087else
11088 if test -n "$AS"; then
11089 ac_cv_prog_AS="$AS" # Let the user override the test.
11090else
11091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
81ecdfbb 11096 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11098 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11100 break 2
11101 fi
11102done
81ecdfbb
RW
11103 done
11104IFS=$as_save_IFS
9a819804
AO
11105
11106fi
11107fi
11108AS=$ac_cv_prog_AS
11109if test -n "$AS"; then
81ecdfbb
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11111$as_echo "$AS" >&6; }
9a819804 11112else
81ecdfbb
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
9a819804
AO
11115fi
11116
81ecdfbb 11117
9a819804
AO
11118 done
11119fi
11120
11121for ncn_progname in as; do
05cbd757
PB
11122 if test -n "$ncn_tool_prefix"; then
11123 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11124set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11127if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11128 $as_echo_n "(cached) " >&6
859789af
AC
11129else
11130 if test -n "$AS"; then
11131 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
11132else
11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134for as_dir in $PATH
11135do
11136 IFS=$as_save_IFS
11137 test -z "$as_dir" && as_dir=.
81ecdfbb 11138 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11140 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11142 break 2
11143 fi
11144done
81ecdfbb
RW
11145 done
11146IFS=$as_save_IFS
c6b750e1 11147
859789af
AC
11148fi
11149fi
c6b750e1 11150AS=$ac_cv_prog_AS
859789af 11151if test -n "$AS"; then
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11153$as_echo "$AS" >&6; }
859789af 11154else
81ecdfbb
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
859789af
AC
11157fi
11158
81ecdfbb 11159
05cbd757
PB
11160 fi
11161 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11166if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 11167 $as_echo_n "(cached) " >&6
859789af 11168else
05cbd757
PB
11169 if test -n "$AS"; then
11170 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 11171else
c6b750e1
DJ
11172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173for as_dir in $PATH
11174do
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
81ecdfbb 11177 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11179 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11181 break 2
11182 fi
11183done
81ecdfbb
RW
11184 done
11185IFS=$as_save_IFS
c6b750e1 11186
859789af
AC
11187fi
11188fi
c6b750e1 11189AS=$ac_cv_prog_AS
05cbd757 11190if test -n "$AS"; then
81ecdfbb
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11192$as_echo "$AS" >&6; }
859789af 11193else
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
859789af 11196fi
c6b750e1 11197
81ecdfbb 11198
05cbd757
PB
11199 fi
11200 test -n "$ac_cv_prog_AS" && break
11201done
11202
11203if test -z "$ac_cv_prog_AS" ; then
11204 set dummy as
11205 if test $build = $host ; then
11206 AS="$2"
859789af 11207 else
05cbd757 11208 AS="${ncn_tool_prefix}$2"
859789af 11209 fi
859789af
AC
11210fi
11211
9a819804
AO
11212
11213
11214if test -n "$DLLTOOL"; then
11215 ac_cv_prog_DLLTOOL=$DLLTOOL
11216elif test -n "$ac_cv_prog_DLLTOOL"; then
11217 DLLTOOL=$ac_cv_prog_DLLTOOL
11218fi
11219
11220if test -n "$ac_cv_prog_DLLTOOL"; then
11221 for ncn_progname in dlltool; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11226if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11227 $as_echo_n "(cached) " >&6
9a819804
AO
11228else
11229 if test -n "$DLLTOOL"; then
11230 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
81ecdfbb 11237 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11239 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11241 break 2
11242 fi
11243done
81ecdfbb
RW
11244 done
11245IFS=$as_save_IFS
9a819804
AO
11246
11247fi
11248fi
11249DLLTOOL=$ac_cv_prog_DLLTOOL
11250if test -n "$DLLTOOL"; then
81ecdfbb
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11252$as_echo "$DLLTOOL" >&6; }
9a819804 11253else
81ecdfbb
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
9a819804
AO
11256fi
11257
81ecdfbb 11258
9a819804
AO
11259 done
11260fi
11261
11262for ncn_progname in dlltool; do
05cbd757
PB
11263 if test -n "$ncn_tool_prefix"; then
11264 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11265set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11268if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11269 $as_echo_n "(cached) " >&6
859789af
AC
11270else
11271 if test -n "$DLLTOOL"; then
11272 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11273else
c6b750e1
DJ
11274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
81ecdfbb 11279 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11281 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11283 break 2
11284 fi
11285done
81ecdfbb
RW
11286 done
11287IFS=$as_save_IFS
c6b750e1 11288
859789af
AC
11289fi
11290fi
c6b750e1 11291DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 11292if test -n "$DLLTOOL"; then
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11294$as_echo "$DLLTOOL" >&6; }
859789af 11295else
81ecdfbb
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297$as_echo "no" >&6; }
859789af
AC
11298fi
11299
81ecdfbb 11300
05cbd757
PB
11301 fi
11302 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11303 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11304set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11307if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11308 $as_echo_n "(cached) " >&6
859789af 11309else
05cbd757
PB
11310 if test -n "$DLLTOOL"; then
11311 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 11312else
c6b750e1
DJ
11313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
81ecdfbb 11318 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11320 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11322 break 2
11323 fi
11324done
81ecdfbb
RW
11325 done
11326IFS=$as_save_IFS
c6b750e1 11327
859789af
AC
11328fi
11329fi
c6b750e1 11330DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 11331if test -n "$DLLTOOL"; then
81ecdfbb
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11333$as_echo "$DLLTOOL" >&6; }
859789af 11334else
81ecdfbb
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
859789af 11337fi
c6b750e1 11338
81ecdfbb 11339
05cbd757
PB
11340 fi
11341 test -n "$ac_cv_prog_DLLTOOL" && break
11342done
11343
11344if test -z "$ac_cv_prog_DLLTOOL" ; then
11345 set dummy dlltool
11346 if test $build = $host ; then
11347 DLLTOOL="$2"
859789af 11348 else
05cbd757 11349 DLLTOOL="${ncn_tool_prefix}$2"
859789af 11350 fi
859789af
AC
11351fi
11352
9a819804
AO
11353
11354
228cf97d
AM
11355if test -n "$DSYMUTIL"; then
11356 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11357elif test -n "$ac_cv_prog_DSYMUTIL"; then
11358 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11359fi
11360
11361if test -n "$ac_cv_prog_DSYMUTIL"; then
11362 for ncn_progname in dsymutil; do
11363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364set dummy ${ncn_progname}; ac_word=$2
11365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11366$as_echo_n "checking for $ac_word... " >&6; }
11367if ${ac_cv_prog_DSYMUTIL+:} false; then :
11368 $as_echo_n "(cached) " >&6
11369else
11370 if test -n "$DSYMUTIL"; then
11371 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11372else
11373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374for as_dir in $PATH
11375do
11376 IFS=$as_save_IFS
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11382 break 2
11383 fi
11384done
11385 done
11386IFS=$as_save_IFS
11387
11388fi
11389fi
11390DSYMUTIL=$ac_cv_prog_DSYMUTIL
11391if test -n "$DSYMUTIL"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11393$as_echo "$DSYMUTIL" >&6; }
11394else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396$as_echo "no" >&6; }
11397fi
11398
11399
11400 done
11401fi
11402
11403for ncn_progname in dsymutil; do
11404 if test -n "$ncn_tool_prefix"; then
11405 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11406set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11408$as_echo_n "checking for $ac_word... " >&6; }
11409if ${ac_cv_prog_DSYMUTIL+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411else
11412 if test -n "$DSYMUTIL"; then
11413 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11414else
11415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416for as_dir in $PATH
11417do
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11422 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11425 fi
11426done
11427 done
11428IFS=$as_save_IFS
11429
11430fi
11431fi
11432DSYMUTIL=$ac_cv_prog_DSYMUTIL
11433if test -n "$DSYMUTIL"; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11435$as_echo "$DSYMUTIL" >&6; }
11436else
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438$as_echo "no" >&6; }
11439fi
11440
11441
11442 fi
11443 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11444 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11445set dummy ${ncn_progname}; ac_word=$2
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447$as_echo_n "checking for $ac_word... " >&6; }
11448if ${ac_cv_prog_DSYMUTIL+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450else
11451 if test -n "$DSYMUTIL"; then
11452 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11453else
11454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455for as_dir in $PATH
11456do
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 break 2
11464 fi
11465done
11466 done
11467IFS=$as_save_IFS
11468
11469fi
11470fi
11471DSYMUTIL=$ac_cv_prog_DSYMUTIL
11472if test -n "$DSYMUTIL"; then
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11474$as_echo "$DSYMUTIL" >&6; }
11475else
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
11478fi
11479
11480
11481 fi
11482 test -n "$ac_cv_prog_DSYMUTIL" && break
11483done
11484
11485if test -z "$ac_cv_prog_DSYMUTIL" ; then
11486 set dummy dsymutil
11487 if test $build = $host ; then
11488 DSYMUTIL="$2"
11489 else
11490 DSYMUTIL="${ncn_tool_prefix}$2"
11491 fi
11492fi
11493
11494
11495
9a819804
AO
11496if test -n "$LD"; then
11497 ac_cv_prog_LD=$LD
11498elif test -n "$ac_cv_prog_LD"; then
11499 LD=$ac_cv_prog_LD
11500fi
11501
11502if test -n "$ac_cv_prog_LD"; then
11503 for ncn_progname in ld; do
11504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11505set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11508if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11509 $as_echo_n "(cached) " >&6
9a819804
AO
11510else
11511 if test -n "$LD"; then
11512 ac_cv_prog_LD="$LD" # Let the user override the test.
11513else
11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515for as_dir in $PATH
11516do
11517 IFS=$as_save_IFS
11518 test -z "$as_dir" && as_dir=.
81ecdfbb 11519 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11521 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11523 break 2
11524 fi
11525done
81ecdfbb
RW
11526 done
11527IFS=$as_save_IFS
9a819804
AO
11528
11529fi
11530fi
11531LD=$ac_cv_prog_LD
11532if test -n "$LD"; then
81ecdfbb
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11534$as_echo "$LD" >&6; }
9a819804 11535else
81ecdfbb
RW
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537$as_echo "no" >&6; }
9a819804
AO
11538fi
11539
81ecdfbb 11540
9a819804
AO
11541 done
11542fi
11543
11544for ncn_progname in ld; do
05cbd757
PB
11545 if test -n "$ncn_tool_prefix"; then
11546 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11547set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11550if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11551 $as_echo_n "(cached) " >&6
859789af
AC
11552else
11553 if test -n "$LD"; then
11554 ac_cv_prog_LD="$LD" # Let the user override the test.
11555else
c6b750e1
DJ
11556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557for as_dir in $PATH
11558do
11559 IFS=$as_save_IFS
11560 test -z "$as_dir" && as_dir=.
81ecdfbb 11561 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11563 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11565 break 2
11566 fi
11567done
81ecdfbb
RW
11568 done
11569IFS=$as_save_IFS
c6b750e1 11570
859789af
AC
11571fi
11572fi
c6b750e1 11573LD=$ac_cv_prog_LD
859789af 11574if test -n "$LD"; then
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11576$as_echo "$LD" >&6; }
859789af 11577else
81ecdfbb
RW
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579$as_echo "no" >&6; }
859789af
AC
11580fi
11581
81ecdfbb 11582
05cbd757
PB
11583 fi
11584 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11585 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11586set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11589if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11590 $as_echo_n "(cached) " >&6
859789af 11591else
05cbd757
PB
11592 if test -n "$LD"; then
11593 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 11594else
c6b750e1
DJ
11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596for as_dir in $PATH
11597do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
81ecdfbb 11600 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11602 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11604 break 2
11605 fi
11606done
81ecdfbb
RW
11607 done
11608IFS=$as_save_IFS
c6b750e1 11609
859789af
AC
11610fi
11611fi
c6b750e1 11612LD=$ac_cv_prog_LD
05cbd757 11613if test -n "$LD"; then
81ecdfbb
RW
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11615$as_echo "$LD" >&6; }
859789af 11616else
81ecdfbb
RW
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618$as_echo "no" >&6; }
859789af 11619fi
c6b750e1 11620
81ecdfbb 11621
05cbd757
PB
11622 fi
11623 test -n "$ac_cv_prog_LD" && break
11624done
11625
11626if test -z "$ac_cv_prog_LD" ; then
11627 set dummy ld
11628 if test $build = $host ; then
11629 LD="$2"
859789af 11630 else
05cbd757 11631 LD="${ncn_tool_prefix}$2"
859789af 11632 fi
859789af
AC
11633fi
11634
9a819804
AO
11635
11636
11637if test -n "$LIPO"; then
11638 ac_cv_prog_LIPO=$LIPO
11639elif test -n "$ac_cv_prog_LIPO"; then
11640 LIPO=$ac_cv_prog_LIPO
11641fi
11642
11643if test -n "$ac_cv_prog_LIPO"; then
11644 for ncn_progname in lipo; do
11645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11646set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11649if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11650 $as_echo_n "(cached) " >&6
9a819804
AO
11651else
11652 if test -n "$LIPO"; then
11653 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11654else
11655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656for as_dir in $PATH
11657do
11658 IFS=$as_save_IFS
11659 test -z "$as_dir" && as_dir=.
81ecdfbb 11660 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11662 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11664 break 2
11665 fi
11666done
81ecdfbb
RW
11667 done
11668IFS=$as_save_IFS
9a819804
AO
11669
11670fi
11671fi
11672LIPO=$ac_cv_prog_LIPO
11673if test -n "$LIPO"; then
81ecdfbb
RW
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11675$as_echo "$LIPO" >&6; }
9a819804 11676else
81ecdfbb
RW
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678$as_echo "no" >&6; }
9a819804
AO
11679fi
11680
81ecdfbb 11681
9a819804
AO
11682 done
11683fi
11684
11685for ncn_progname in lipo; do
be01d343
PB
11686 if test -n "$ncn_tool_prefix"; then
11687 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11688set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11691if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11692 $as_echo_n "(cached) " >&6
be01d343
PB
11693else
11694 if test -n "$LIPO"; then
11695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11696else
c6b750e1
DJ
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
81ecdfbb 11702 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11704 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11706 break 2
11707 fi
11708done
81ecdfbb
RW
11709 done
11710IFS=$as_save_IFS
c6b750e1 11711
be01d343
PB
11712fi
11713fi
c6b750e1 11714LIPO=$ac_cv_prog_LIPO
be01d343 11715if test -n "$LIPO"; then
81ecdfbb
RW
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11717$as_echo "$LIPO" >&6; }
be01d343 11718else
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
be01d343
PB
11721fi
11722
81ecdfbb 11723
be01d343
PB
11724 fi
11725 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11726 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11727set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11730if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11731 $as_echo_n "(cached) " >&6
be01d343
PB
11732else
11733 if test -n "$LIPO"; then
11734 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11735else
c6b750e1
DJ
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
81ecdfbb 11741 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11743 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11745 break 2
11746 fi
11747done
81ecdfbb
RW
11748 done
11749IFS=$as_save_IFS
c6b750e1 11750
be01d343
PB
11751fi
11752fi
c6b750e1 11753LIPO=$ac_cv_prog_LIPO
be01d343 11754if test -n "$LIPO"; then
81ecdfbb
RW
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11756$as_echo "$LIPO" >&6; }
be01d343 11757else
81ecdfbb
RW
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
be01d343 11760fi
c6b750e1 11761
81ecdfbb 11762
be01d343
PB
11763 fi
11764 test -n "$ac_cv_prog_LIPO" && break
11765done
11766
11767if test -z "$ac_cv_prog_LIPO" ; then
11768 set dummy lipo
11769 if test $build = $host ; then
11770 LIPO="$2"
11771 else
11772 LIPO="${ncn_tool_prefix}$2"
11773 fi
11774fi
11775
9a819804
AO
11776
11777
11778if test -n "$NM"; then
11779 ac_cv_prog_NM=$NM
11780elif test -n "$ac_cv_prog_NM"; then
11781 NM=$ac_cv_prog_NM
11782fi
11783
11784if test -n "$ac_cv_prog_NM"; then
11785 for ncn_progname in nm; do
11786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11790if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11791 $as_echo_n "(cached) " >&6
859789af
AC
11792else
11793 if test -n "$NM"; then
11794 ac_cv_prog_NM="$NM" # Let the user override the test.
11795else
c6b750e1
DJ
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
81ecdfbb 11801 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11803 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11805 break 2
11806 fi
11807done
81ecdfbb
RW
11808 done
11809IFS=$as_save_IFS
c6b750e1 11810
859789af
AC
11811fi
11812fi
c6b750e1 11813NM=$ac_cv_prog_NM
859789af 11814if test -n "$NM"; then
81ecdfbb
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11816$as_echo "$NM" >&6; }
859789af 11817else
81ecdfbb
RW
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
859789af
AC
11820fi
11821
81ecdfbb 11822
9a819804
AO
11823 done
11824fi
11825
11826for ncn_progname in nm; do
11827 if test -n "$ncn_tool_prefix"; then
11828 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11829set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11831$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11832if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11833 $as_echo_n "(cached) " >&6
859789af 11834else
05cbd757
PB
11835 if test -n "$NM"; then
11836 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 11837else
c6b750e1
DJ
11838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11839for as_dir in $PATH
11840do
11841 IFS=$as_save_IFS
11842 test -z "$as_dir" && as_dir=.
81ecdfbb 11843 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11845 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11847 break 2
11848 fi
11849done
81ecdfbb
RW
11850 done
11851IFS=$as_save_IFS
c6b750e1 11852
859789af
AC
11853fi
11854fi
c6b750e1 11855NM=$ac_cv_prog_NM
05cbd757 11856if test -n "$NM"; then
81ecdfbb
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11858$as_echo "$NM" >&6; }
859789af 11859else
81ecdfbb
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
859789af 11862fi
c6b750e1 11863
81ecdfbb 11864
05cbd757 11865 fi
9a819804
AO
11866 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11868set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11871if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11872 $as_echo_n "(cached) " >&6
9a819804
AO
11873else
11874 if test -n "$NM"; then
11875 ac_cv_prog_NM="$NM" # Let the user override the test.
11876else
11877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878for as_dir in $PATH
11879do
11880 IFS=$as_save_IFS
11881 test -z "$as_dir" && as_dir=.
81ecdfbb 11882 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11884 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11886 break 2
11887 fi
11888done
81ecdfbb
RW
11889 done
11890IFS=$as_save_IFS
9a819804
AO
11891
11892fi
11893fi
11894NM=$ac_cv_prog_NM
11895if test -n "$NM"; then
81ecdfbb
RW
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11897$as_echo "$NM" >&6; }
9a819804 11898else
81ecdfbb
RW
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900$as_echo "no" >&6; }
9a819804
AO
11901fi
11902
81ecdfbb 11903
9a819804
AO
11904 fi
11905 test -n "$ac_cv_prog_NM" && break
11906done
11907
11908if test -z "$ac_cv_prog_NM" ; then
11909 set dummy nm
11910 if test $build = $host ; then
11911 NM="$2"
11912 else
11913 NM="${ncn_tool_prefix}$2"
11914 fi
11915fi
11916
11917
11918
11919if test -n "$RANLIB"; then
11920 ac_cv_prog_RANLIB=$RANLIB
11921elif test -n "$ac_cv_prog_RANLIB"; then
11922 RANLIB=$ac_cv_prog_RANLIB
11923fi
11924
11925if test -n "$ac_cv_prog_RANLIB"; then
11926 for ncn_progname in ranlib; do
11927 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11928set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11931if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11932 $as_echo_n "(cached) " >&6
9a819804
AO
11933else
11934 if test -n "$RANLIB"; then
11935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940 IFS=$as_save_IFS
11941 test -z "$as_dir" && as_dir=.
81ecdfbb 11942 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11944 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11946 break 2
11947 fi
11948done
81ecdfbb
RW
11949 done
11950IFS=$as_save_IFS
9a819804
AO
11951
11952fi
11953fi
11954RANLIB=$ac_cv_prog_RANLIB
11955if test -n "$RANLIB"; then
81ecdfbb
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11957$as_echo "$RANLIB" >&6; }
9a819804 11958else
81ecdfbb
RW
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11960$as_echo "no" >&6; }
9a819804
AO
11961fi
11962
81ecdfbb 11963
9a819804
AO
11964 done
11965fi
859789af 11966
9a819804 11967for ncn_progname in ranlib; do
05cbd757
PB
11968 if test -n "$ncn_tool_prefix"; then
11969 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11970set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11973if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11974 $as_echo_n "(cached) " >&6
859789af
AC
11975else
11976 if test -n "$RANLIB"; then
11977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11978else
c6b750e1
DJ
11979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980for as_dir in $PATH
11981do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
81ecdfbb 11984 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11986 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11988 break 2
11989 fi
11990done
81ecdfbb
RW
11991 done
11992IFS=$as_save_IFS
c6b750e1 11993
859789af
AC
11994fi
11995fi
c6b750e1 11996RANLIB=$ac_cv_prog_RANLIB
859789af 11997if test -n "$RANLIB"; then
81ecdfbb
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11999$as_echo "$RANLIB" >&6; }
859789af 12000else
81ecdfbb
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002$as_echo "no" >&6; }
859789af
AC
12003fi
12004
81ecdfbb 12005
05cbd757
PB
12006 fi
12007 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12009set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12012if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 12013 $as_echo_n "(cached) " >&6
859789af 12014else
05cbd757
PB
12015 if test -n "$RANLIB"; then
12016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 12017else
c6b750e1
DJ
12018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
81ecdfbb 12023 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12025 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12027 break 2
12028 fi
12029done
81ecdfbb
RW
12030 done
12031IFS=$as_save_IFS
c6b750e1 12032
859789af
AC
12033fi
12034fi
c6b750e1 12035RANLIB=$ac_cv_prog_RANLIB
05cbd757 12036if test -n "$RANLIB"; then
81ecdfbb
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12038$as_echo "$RANLIB" >&6; }
859789af 12039else
81ecdfbb
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
859789af 12042fi
c6b750e1 12043
81ecdfbb 12044
859789af 12045 fi
05cbd757
PB
12046 test -n "$ac_cv_prog_RANLIB" && break
12047done
12048
12049if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 12050 RANLIB="true"
859789af
AC
12051fi
12052
9a819804
AO
12053
12054
12055if test -n "$STRIP"; then
12056 ac_cv_prog_STRIP=$STRIP
12057elif test -n "$ac_cv_prog_STRIP"; then
12058 STRIP=$ac_cv_prog_STRIP
12059fi
12060
12061if test -n "$ac_cv_prog_STRIP"; then
12062 for ncn_progname in strip; do
12063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12064set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12066$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12067if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12068 $as_echo_n "(cached) " >&6
9a819804
AO
12069else
12070 if test -n "$STRIP"; then
12071 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12072else
12073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074for as_dir in $PATH
12075do
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
81ecdfbb 12078 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12080 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 12081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12082 break 2
12083 fi
12084done
81ecdfbb
RW
12085 done
12086IFS=$as_save_IFS
9a819804
AO
12087
12088fi
12089fi
12090STRIP=$ac_cv_prog_STRIP
12091if test -n "$STRIP"; then
81ecdfbb
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12093$as_echo "$STRIP" >&6; }
9a819804 12094else
81ecdfbb
RW
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
9a819804
AO
12097fi
12098
81ecdfbb 12099
9a819804
AO
12100 done
12101fi
12102
12103for ncn_progname in strip; do
be01d343
PB
12104 if test -n "$ncn_tool_prefix"; then
12105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12106set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12109if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12110 $as_echo_n "(cached) " >&6
be01d343
PB
12111else
12112 if test -n "$STRIP"; then
12113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12114else
c6b750e1
DJ
12115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116for as_dir in $PATH
12117do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
81ecdfbb 12120 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12122 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12124 break 2
12125 fi
12126done
81ecdfbb
RW
12127 done
12128IFS=$as_save_IFS
c6b750e1 12129
be01d343
PB
12130fi
12131fi
c6b750e1 12132STRIP=$ac_cv_prog_STRIP
be01d343 12133if test -n "$STRIP"; then
81ecdfbb
RW
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12135$as_echo "$STRIP" >&6; }
be01d343 12136else
81ecdfbb
RW
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138$as_echo "no" >&6; }
be01d343
PB
12139fi
12140
81ecdfbb 12141
be01d343
PB
12142 fi
12143 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12145set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12148if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 12149 $as_echo_n "(cached) " >&6
be01d343
PB
12150else
12151 if test -n "$STRIP"; then
12152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12153else
c6b750e1
DJ
12154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155for as_dir in $PATH
12156do
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
81ecdfbb 12159 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12161 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12163 break 2
12164 fi
12165done
81ecdfbb
RW
12166 done
12167IFS=$as_save_IFS
c6b750e1 12168
be01d343
PB
12169fi
12170fi
c6b750e1 12171STRIP=$ac_cv_prog_STRIP
be01d343 12172if test -n "$STRIP"; then
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12174$as_echo "$STRIP" >&6; }
be01d343 12175else
81ecdfbb
RW
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177$as_echo "no" >&6; }
be01d343 12178fi
c6b750e1 12179
81ecdfbb 12180
be01d343
PB
12181 fi
12182 test -n "$ac_cv_prog_STRIP" && break
12183done
12184
12185if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 12186 STRIP="true"
be01d343
PB
12187fi
12188
9a819804
AO
12189
12190
12191if test -n "$WINDRES"; then
12192 ac_cv_prog_WINDRES=$WINDRES
12193elif test -n "$ac_cv_prog_WINDRES"; then
12194 WINDRES=$ac_cv_prog_WINDRES
12195fi
12196
12197if test -n "$ac_cv_prog_WINDRES"; then
12198 for ncn_progname in windres; do
12199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12200set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12203if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12204 $as_echo_n "(cached) " >&6
9a819804
AO
12205else
12206 if test -n "$WINDRES"; then
12207 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12208else
12209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210for as_dir in $PATH
12211do
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
81ecdfbb 12214 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12216 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12218 break 2
12219 fi
12220done
81ecdfbb
RW
12221 done
12222IFS=$as_save_IFS
9a819804
AO
12223
12224fi
12225fi
12226WINDRES=$ac_cv_prog_WINDRES
12227if test -n "$WINDRES"; then
81ecdfbb
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12229$as_echo "$WINDRES" >&6; }
9a819804 12230else
81ecdfbb
RW
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232$as_echo "no" >&6; }
9a819804
AO
12233fi
12234
81ecdfbb 12235
9a819804
AO
12236 done
12237fi
12238
12239for ncn_progname in windres; do
05cbd757
PB
12240 if test -n "$ncn_tool_prefix"; then
12241 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12242set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12245if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12246 $as_echo_n "(cached) " >&6
859789af
AC
12247else
12248 if test -n "$WINDRES"; then
12249 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12250else
c6b750e1
DJ
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
81ecdfbb 12256 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12258 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12260 break 2
12261 fi
12262done
81ecdfbb
RW
12263 done
12264IFS=$as_save_IFS
c6b750e1 12265
859789af
AC
12266fi
12267fi
c6b750e1 12268WINDRES=$ac_cv_prog_WINDRES
859789af 12269if test -n "$WINDRES"; then
81ecdfbb
RW
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12271$as_echo "$WINDRES" >&6; }
859789af 12272else
81ecdfbb
RW
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
859789af
AC
12275fi
12276
81ecdfbb 12277
05cbd757
PB
12278 fi
12279 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12281set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12284if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12285 $as_echo_n "(cached) " >&6
859789af 12286else
05cbd757
PB
12287 if test -n "$WINDRES"; then
12288 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 12289else
c6b750e1
DJ
12290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291for as_dir in $PATH
12292do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
81ecdfbb 12295 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12297 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12299 break 2
12300 fi
12301done
81ecdfbb
RW
12302 done
12303IFS=$as_save_IFS
c6b750e1 12304
859789af
AC
12305fi
12306fi
c6b750e1 12307WINDRES=$ac_cv_prog_WINDRES
05cbd757 12308if test -n "$WINDRES"; then
81ecdfbb
RW
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12310$as_echo "$WINDRES" >&6; }
859789af 12311else
81ecdfbb
RW
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
859789af 12314fi
c6b750e1 12315
81ecdfbb 12316
05cbd757
PB
12317 fi
12318 test -n "$ac_cv_prog_WINDRES" && break
12319done
12320
12321if test -z "$ac_cv_prog_WINDRES" ; then
12322 set dummy windres
12323 if test $build = $host ; then
12324 WINDRES="$2"
859789af 12325 else
05cbd757 12326 WINDRES="${ncn_tool_prefix}$2"
859789af 12327 fi
859789af
AC
12328fi
12329
9a819804
AO
12330
12331
0c24b341
NC
12332if test -n "$WINDMC"; then
12333 ac_cv_prog_WINDMC=$WINDMC
12334elif test -n "$ac_cv_prog_WINDMC"; then
12335 WINDMC=$ac_cv_prog_WINDMC
12336fi
12337
12338if test -n "$ac_cv_prog_WINDMC"; then
12339 for ncn_progname in windmc; do
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12344if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12345 $as_echo_n "(cached) " >&6
0c24b341
NC
12346else
12347 if test -n "$WINDMC"; then
12348 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
81ecdfbb 12355 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12357 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12359 break 2
12360 fi
12361done
81ecdfbb
RW
12362 done
12363IFS=$as_save_IFS
0c24b341
NC
12364
12365fi
12366fi
12367WINDMC=$ac_cv_prog_WINDMC
12368if test -n "$WINDMC"; then
81ecdfbb
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12370$as_echo "$WINDMC" >&6; }
0c24b341 12371else
81ecdfbb
RW
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
0c24b341
NC
12374fi
12375
81ecdfbb 12376
0c24b341
NC
12377 done
12378fi
12379
12380for ncn_progname in windmc; do
12381 if test -n "$ncn_tool_prefix"; then
12382 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12383set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12386if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12387 $as_echo_n "(cached) " >&6
0c24b341
NC
12388else
12389 if test -n "$WINDMC"; then
12390 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12391else
12392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393for as_dir in $PATH
12394do
12395 IFS=$as_save_IFS
12396 test -z "$as_dir" && as_dir=.
81ecdfbb 12397 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12399 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12401 break 2
12402 fi
12403done
81ecdfbb
RW
12404 done
12405IFS=$as_save_IFS
0c24b341
NC
12406
12407fi
12408fi
12409WINDMC=$ac_cv_prog_WINDMC
12410if test -n "$WINDMC"; then
81ecdfbb
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12412$as_echo "$WINDMC" >&6; }
0c24b341 12413else
81ecdfbb
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415$as_echo "no" >&6; }
0c24b341
NC
12416fi
12417
81ecdfbb 12418
0c24b341
NC
12419 fi
12420 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12422set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12424$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12425if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12426 $as_echo_n "(cached) " >&6
0c24b341
NC
12427else
12428 if test -n "$WINDMC"; then
12429 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12430else
12431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12432for as_dir in $PATH
12433do
12434 IFS=$as_save_IFS
12435 test -z "$as_dir" && as_dir=.
81ecdfbb 12436 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12438 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12440 break 2
12441 fi
12442done
81ecdfbb
RW
12443 done
12444IFS=$as_save_IFS
0c24b341
NC
12445
12446fi
12447fi
12448WINDMC=$ac_cv_prog_WINDMC
12449if test -n "$WINDMC"; then
81ecdfbb
RW
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12451$as_echo "$WINDMC" >&6; }
0c24b341 12452else
81ecdfbb
RW
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454$as_echo "no" >&6; }
0c24b341
NC
12455fi
12456
81ecdfbb 12457
0c24b341
NC
12458 fi
12459 test -n "$ac_cv_prog_WINDMC" && break
12460done
12461
12462if test -z "$ac_cv_prog_WINDMC" ; then
12463 set dummy windmc
12464 if test $build = $host ; then
12465 WINDMC="$2"
12466 else
12467 WINDMC="${ncn_tool_prefix}$2"
12468 fi
12469fi
12470
12471
12472
9a819804
AO
12473if test -n "$OBJCOPY"; then
12474 ac_cv_prog_OBJCOPY=$OBJCOPY
12475elif test -n "$ac_cv_prog_OBJCOPY"; then
12476 OBJCOPY=$ac_cv_prog_OBJCOPY
12477fi
12478
12479if test -n "$ac_cv_prog_OBJCOPY"; then
12480 for ncn_progname in objcopy; do
12481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12482set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12485if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 12486 $as_echo_n "(cached) " >&6
9a819804
AO
12487else
12488 if test -n "$OBJCOPY"; then
12489 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12490else
12491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in $PATH
12493do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
81ecdfbb 12496 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12498 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12500 break 2
12501 fi
12502done
81ecdfbb
RW
12503 done
12504IFS=$as_save_IFS
9a819804
AO
12505
12506fi
12507fi
228cf97d
AM
12508OBJCOPY=$ac_cv_prog_OBJCOPY
12509if test -n "$OBJCOPY"; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12511$as_echo "$OBJCOPY" >&6; }
12512else
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514$as_echo "no" >&6; }
12515fi
12516
12517
12518 done
12519fi
12520
12521for ncn_progname in objcopy; do
12522 if test -n "$ncn_tool_prefix"; then
12523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12524set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12526$as_echo_n "checking for $ac_word... " >&6; }
12527if ${ac_cv_prog_OBJCOPY+:} false; then :
12528 $as_echo_n "(cached) " >&6
12529else
12530 if test -n "$OBJCOPY"; then
12531 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12532else
12533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12534for as_dir in $PATH
12535do
12536 IFS=$as_save_IFS
12537 test -z "$as_dir" && as_dir=.
12538 for ac_exec_ext in '' $ac_executable_extensions; do
12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12540 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12542 break 2
12543 fi
12544done
12545 done
12546IFS=$as_save_IFS
12547
12548fi
12549fi
12550OBJCOPY=$ac_cv_prog_OBJCOPY
12551if test -n "$OBJCOPY"; then
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12553$as_echo "$OBJCOPY" >&6; }
12554else
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556$as_echo "no" >&6; }
12557fi
12558
12559
12560 fi
12561 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12563set dummy ${ncn_progname}; ac_word=$2
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12565$as_echo_n "checking for $ac_word... " >&6; }
12566if ${ac_cv_prog_OBJCOPY+:} false; then :
12567 $as_echo_n "(cached) " >&6
12568else
12569 if test -n "$OBJCOPY"; then
12570 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12571else
12572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12573for as_dir in $PATH
12574do
12575 IFS=$as_save_IFS
12576 test -z "$as_dir" && as_dir=.
12577 for ac_exec_ext in '' $ac_executable_extensions; do
12578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12579 ac_cv_prog_OBJCOPY="${ncn_progname}"
12580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 break 2
12582 fi
12583done
12584 done
12585IFS=$as_save_IFS
12586
12587fi
12588fi
12589OBJCOPY=$ac_cv_prog_OBJCOPY
12590if test -n "$OBJCOPY"; then
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12592$as_echo "$OBJCOPY" >&6; }
12593else
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12595$as_echo "no" >&6; }
12596fi
12597
12598
12599 fi
12600 test -n "$ac_cv_prog_OBJCOPY" && break
12601done
12602
12603if test -z "$ac_cv_prog_OBJCOPY" ; then
12604 set dummy objcopy
12605 if test $build = $host ; then
12606 OBJCOPY="$2"
12607 else
12608 OBJCOPY="${ncn_tool_prefix}$2"
12609 fi
12610fi
12611
12612
12613
12614if test -n "$OBJDUMP"; then
12615 ac_cv_prog_OBJDUMP=$OBJDUMP
12616elif test -n "$ac_cv_prog_OBJDUMP"; then
12617 OBJDUMP=$ac_cv_prog_OBJDUMP
12618fi
12619
12620if test -n "$ac_cv_prog_OBJDUMP"; then
12621 for ncn_progname in objdump; do
12622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12623set dummy ${ncn_progname}; ac_word=$2
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625$as_echo_n "checking for $ac_word... " >&6; }
12626if ${ac_cv_prog_OBJDUMP+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628else
12629 if test -n "$OBJDUMP"; then
12630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12631else
12632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633for as_dir in $PATH
12634do
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
12637 for ac_exec_ext in '' $ac_executable_extensions; do
12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12639 ac_cv_prog_OBJDUMP="${ncn_progname}"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12641 break 2
12642 fi
12643done
12644 done
12645IFS=$as_save_IFS
12646
12647fi
12648fi
12649OBJDUMP=$ac_cv_prog_OBJDUMP
12650if test -n "$OBJDUMP"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12652$as_echo "$OBJDUMP" >&6; }
9a819804 12653else
81ecdfbb
RW
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655$as_echo "no" >&6; }
9a819804
AO
12656fi
12657
81ecdfbb 12658
9a819804
AO
12659 done
12660fi
12661
228cf97d 12662for ncn_progname in objdump; do
05cbd757
PB
12663 if test -n "$ncn_tool_prefix"; then
12664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12665set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12668if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12669 $as_echo_n "(cached) " >&6
859789af 12670else
228cf97d
AM
12671 if test -n "$OBJDUMP"; then
12672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12673else
c6b750e1
DJ
12674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675for as_dir in $PATH
12676do
12677 IFS=$as_save_IFS
12678 test -z "$as_dir" && as_dir=.
81ecdfbb 12679 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12681 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12683 break 2
12684 fi
12685done
81ecdfbb
RW
12686 done
12687IFS=$as_save_IFS
c6b750e1 12688
859789af
AC
12689fi
12690fi
228cf97d
AM
12691OBJDUMP=$ac_cv_prog_OBJDUMP
12692if test -n "$OBJDUMP"; then
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12694$as_echo "$OBJDUMP" >&6; }
859789af 12695else
81ecdfbb
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12697$as_echo "no" >&6; }
859789af
AC
12698fi
12699
81ecdfbb 12700
05cbd757 12701 fi
228cf97d 12702 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
05cbd757
PB
12703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12704set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12706$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12707if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12708 $as_echo_n "(cached) " >&6
859789af 12709else
228cf97d
AM
12710 if test -n "$OBJDUMP"; then
12711 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12712else
c6b750e1
DJ
12713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714for as_dir in $PATH
12715do
12716 IFS=$as_save_IFS
12717 test -z "$as_dir" && as_dir=.
81ecdfbb 12718 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12720 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 12721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12722 break 2
12723 fi
12724done
81ecdfbb
RW
12725 done
12726IFS=$as_save_IFS
c6b750e1 12727
859789af
AC
12728fi
12729fi
228cf97d
AM
12730OBJDUMP=$ac_cv_prog_OBJDUMP
12731if test -n "$OBJDUMP"; then
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12733$as_echo "$OBJDUMP" >&6; }
859789af 12734else
81ecdfbb
RW
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
859789af 12737fi
c6b750e1 12738
81ecdfbb 12739
05cbd757 12740 fi
228cf97d 12741 test -n "$ac_cv_prog_OBJDUMP" && break
05cbd757
PB
12742done
12743
228cf97d
AM
12744if test -z "$ac_cv_prog_OBJDUMP" ; then
12745 set dummy objdump
05cbd757 12746 if test $build = $host ; then
228cf97d 12747 OBJDUMP="$2"
859789af 12748 else
228cf97d 12749 OBJDUMP="${ncn_tool_prefix}$2"
859789af 12750 fi
859789af
AC
12751fi
12752
9a819804
AO
12753
12754
228cf97d
AM
12755if test -n "$OTOOL"; then
12756 ac_cv_prog_OTOOL=$OTOOL
12757elif test -n "$ac_cv_prog_OTOOL"; then
12758 OTOOL=$ac_cv_prog_OTOOL
9a819804
AO
12759fi
12760
228cf97d
AM
12761if test -n "$ac_cv_prog_OTOOL"; then
12762 for ncn_progname in otool; do
9a819804
AO
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12764set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12767if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12768 $as_echo_n "(cached) " >&6
9a819804 12769else
228cf97d
AM
12770 if test -n "$OTOOL"; then
12771 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9a819804
AO
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
81ecdfbb 12778 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12780 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12782 break 2
12783 fi
12784done
81ecdfbb
RW
12785 done
12786IFS=$as_save_IFS
9a819804
AO
12787
12788fi
12789fi
228cf97d
AM
12790OTOOL=$ac_cv_prog_OTOOL
12791if test -n "$OTOOL"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12793$as_echo "$OTOOL" >&6; }
9a819804 12794else
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
9a819804
AO
12797fi
12798
81ecdfbb 12799
9a819804
AO
12800 done
12801fi
12802
228cf97d 12803for ncn_progname in otool; do
05cbd757
PB
12804 if test -n "$ncn_tool_prefix"; then
12805 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12806set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12809if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12810 $as_echo_n "(cached) " >&6
859789af 12811else
228cf97d
AM
12812 if test -n "$OTOOL"; then
12813 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12814else
c6b750e1
DJ
12815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12816for as_dir in $PATH
12817do
12818 IFS=$as_save_IFS
12819 test -z "$as_dir" && as_dir=.
81ecdfbb 12820 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12822 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12824 break 2
12825 fi
12826done
81ecdfbb
RW
12827 done
12828IFS=$as_save_IFS
c6b750e1 12829
859789af
AC
12830fi
12831fi
228cf97d
AM
12832OTOOL=$ac_cv_prog_OTOOL
12833if test -n "$OTOOL"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12835$as_echo "$OTOOL" >&6; }
859789af 12836else
81ecdfbb
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
859789af
AC
12839fi
12840
81ecdfbb 12841
05cbd757 12842 fi
228cf97d 12843 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
05cbd757
PB
12844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12845set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12848if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12849 $as_echo_n "(cached) " >&6
859789af 12850else
228cf97d
AM
12851 if test -n "$OTOOL"; then
12852 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12853else
c6b750e1
DJ
12854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855for as_dir in $PATH
12856do
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
81ecdfbb 12859 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12861 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12863 break 2
12864 fi
12865done
81ecdfbb
RW
12866 done
12867IFS=$as_save_IFS
c6b750e1 12868
859789af
AC
12869fi
12870fi
228cf97d
AM
12871OTOOL=$ac_cv_prog_OTOOL
12872if test -n "$OTOOL"; then
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12874$as_echo "$OTOOL" >&6; }
859789af 12875else
81ecdfbb
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877$as_echo "no" >&6; }
859789af 12878fi
c6b750e1 12879
81ecdfbb 12880
05cbd757 12881 fi
228cf97d 12882 test -n "$ac_cv_prog_OTOOL" && break
05cbd757
PB
12883done
12884
228cf97d
AM
12885if test -z "$ac_cv_prog_OTOOL" ; then
12886 set dummy otool
05cbd757 12887 if test $build = $host ; then
228cf97d 12888 OTOOL="$2"
859789af 12889 else
228cf97d 12890 OTOOL="${ncn_tool_prefix}$2"
859789af 12891 fi
859789af
AC
12892fi
12893
a0da8069
NN
12894
12895
b121d7d4
DD
12896if test -n "$READELF"; then
12897 ac_cv_prog_READELF=$READELF
12898elif test -n "$ac_cv_prog_READELF"; then
12899 READELF=$ac_cv_prog_READELF
12900fi
12901
12902if test -n "$ac_cv_prog_READELF"; then
12903 for ncn_progname in readelf; do
12904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12905set dummy ${ncn_progname}; ac_word=$2
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12907$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12908if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12909 $as_echo_n "(cached) " >&6
12910else
12911 if test -n "$READELF"; then
12912 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12913else
12914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915for as_dir in $PATH
12916do
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12921 ac_cv_prog_READELF="${ncn_progname}"
12922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12924 fi
12925done
12926 done
12927IFS=$as_save_IFS
12928
12929fi
12930fi
12931READELF=$ac_cv_prog_READELF
12932if test -n "$READELF"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12934$as_echo "$READELF" >&6; }
12935else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937$as_echo "no" >&6; }
12938fi
12939
12940
12941 done
12942fi
12943
12944for ncn_progname in readelf; do
12945 if test -n "$ncn_tool_prefix"; then
12946 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12947set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12950if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12951 $as_echo_n "(cached) " >&6
12952else
12953 if test -n "$READELF"; then
12954 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12955else
12956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $PATH
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
12961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12963 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 break 2
12966 fi
12967done
12968 done
12969IFS=$as_save_IFS
12970
12971fi
12972fi
12973READELF=$ac_cv_prog_READELF
12974if test -n "$READELF"; then
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12976$as_echo "$READELF" >&6; }
12977else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
12980fi
12981
12982
12983 fi
12984 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12986set dummy ${ncn_progname}; ac_word=$2
12987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12988$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12989if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12990 $as_echo_n "(cached) " >&6
12991else
12992 if test -n "$READELF"; then
12993 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12994else
12995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12996for as_dir in $PATH
12997do
12998 IFS=$as_save_IFS
12999 test -z "$as_dir" && as_dir=.
13000 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
13002 ac_cv_prog_READELF="${ncn_progname}"
13003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13004 break 2
13005 fi
13006done
13007 done
13008IFS=$as_save_IFS
13009
13010fi
13011fi
13012READELF=$ac_cv_prog_READELF
13013if test -n "$READELF"; then
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13015$as_echo "$READELF" >&6; }
13016else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018$as_echo "no" >&6; }
13019fi
13020
13021
13022 fi
13023 test -n "$ac_cv_prog_READELF" && break
13024done
13025
13026if test -z "$ac_cv_prog_READELF" ; then
13027 set dummy readelf
13028 if test $build = $host ; then
13029 READELF="$2"
13030 else
13031 READELF="${ncn_tool_prefix}$2"
13032 fi
13033fi
13034
13035
13036
a0da8069
NN
13037
13038
13039
de83289e 13040
6a6859cb 13041GDCFLAGS=${GDCFLAGS-${CFLAGS}}
228cf97d 13042
9e65489a 13043
50ad1254
L
13044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
13045$as_echo_n "checking for -plugin option... " >&6; }
13046
13047plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
13048plugin_option=
13049for plugin in $plugin_names; do
13050 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13051 if test x$plugin_so = x$plugin; then
13052 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13053 fi
13054 if test x$plugin_so != x$plugin; then
13055 plugin_option="--plugin $plugin_so"
13056 break
13057 fi
13058done
03c02f31
L
13059if test -n "$ac_tool_prefix"; then
13060 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13061set dummy ${ac_tool_prefix}ar; ac_word=$2
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063$as_echo_n "checking for $ac_word... " >&6; }
13064if ${ac_cv_prog_AR+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066else
13067 if test -n "$AR"; then
13068 ac_cv_prog_AR="$AR" # Let the user override the test.
13069else
13070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071for as_dir in $PATH
13072do
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13077 ac_cv_prog_AR="${ac_tool_prefix}ar"
13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13079 break 2
13080 fi
13081done
13082 done
13083IFS=$as_save_IFS
13084
13085fi
13086fi
13087AR=$ac_cv_prog_AR
13088if test -n "$AR"; then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13090$as_echo "$AR" >&6; }
13091else
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093$as_echo "no" >&6; }
13094fi
13095
13096
13097fi
13098if test -z "$ac_cv_prog_AR"; then
13099 ac_ct_AR=$AR
13100 # Extract the first word of "ar", so it can be a program name with args.
13101set dummy ar; ac_word=$2
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103$as_echo_n "checking for $ac_word... " >&6; }
13104if ${ac_cv_prog_ac_ct_AR+:} false; then :
13105 $as_echo_n "(cached) " >&6
13106else
13107 if test -n "$ac_ct_AR"; then
13108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13109else
13110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111for as_dir in $PATH
13112do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13117 ac_cv_prog_ac_ct_AR="ar"
13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 break 2
13120 fi
13121done
13122 done
13123IFS=$as_save_IFS
13124
13125fi
13126fi
13127ac_ct_AR=$ac_cv_prog_ac_ct_AR
13128if test -n "$ac_ct_AR"; then
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13130$as_echo "$ac_ct_AR" >&6; }
13131else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
13134fi
13135
13136 if test "x$ac_ct_AR" = x; then
13137 AR=""
13138 else
13139 case $cross_compiling:$ac_tool_warned in
13140yes:)
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13143ac_tool_warned=yes ;;
13144esac
13145 AR=$ac_ct_AR
13146 fi
13147else
13148 AR="$ac_cv_prog_AR"
13149fi
13150
13151if test "${AR}" = "" ; then
13152 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
13153fi
13154touch conftest.c
13155${AR} $plugin_option rc conftest.a conftest.c
13156if test "$?" != 0; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
13158$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
13159 plugin_option=
13160fi
13161rm -f conftest.*
50ad1254
L
13162if test -n "$plugin_option"; then
13163 PLUGIN_OPTION="$plugin_option"
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
13165$as_echo "$plugin_option" >&6; }
13166else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13168$as_echo "no" >&6; }
13169fi
13170
13171AR_PLUGIN_OPTION=
13172RANLIB_PLUGIN_OPTION=
13173if test -n "$PLUGIN_OPTION"; then
13174 if $AR --help 2>&1 | grep -q "\--plugin"; then
13175 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13176 fi
13177 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
13178 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13179 fi
13180fi
13181
13182
13183
be01d343 13184# Target tools.
c6b750e1 13185
81ecdfbb
RW
13186# Check whether --with-build-time-tools was given.
13187if test "${with_build_time_tools+set}" = set; then :
13188 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
13189 x/*) ;;
13190 *)
13191 with_build_time_tools=
81ecdfbb
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
13193$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
13194 ;;
13195 esac
859789af 13196else
2429c060 13197 with_build_time_tools=
81ecdfbb
RW
13198fi
13199
859789af 13200
9a819804
AO
13201
13202
13203if test -n "$CC_FOR_TARGET"; then
13204 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13205elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13206 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13207fi
13208
13209if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13210 for ncn_progname in cc gcc; do
13211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13212set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13214$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13215if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13216 $as_echo_n "(cached) " >&6
9a819804
AO
13217else
13218 if test -n "$CC_FOR_TARGET"; then
13219 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13220else
13221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222for as_dir in $PATH
13223do
13224 IFS=$as_save_IFS
13225 test -z "$as_dir" && as_dir=.
81ecdfbb 13226 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13228 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13230 break 2
13231 fi
13232done
81ecdfbb
RW
13233 done
13234IFS=$as_save_IFS
9a819804
AO
13235
13236fi
13237fi
13238CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13239if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13241$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 13242else
81ecdfbb
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244$as_echo "no" >&6; }
9a819804
AO
13245fi
13246
81ecdfbb 13247
9a819804
AO
13248 done
13249fi
13250
13251if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13252 for ncn_progname in cc gcc; do
81ecdfbb
RW
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13254$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13255 if test -x $with_build_time_tools/${ncn_progname}; then
13256 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258$as_echo "yes" >&6; }
cac3d6c4 13259 break
2429c060 13260 else
81ecdfbb
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
cac3d6c4
CM
13263 fi
13264 done
55db4b87
PB
13265fi
13266
2429c060
PB
13267if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13268 for ncn_progname in cc gcc; do
13269 if test -n "$ncn_target_tool_prefix"; then
13270 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13271set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13273$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13274if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13275 $as_echo_n "(cached) " >&6
55db4b87
PB
13276else
13277 if test -n "$CC_FOR_TARGET"; then
13278 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13279else
c6b750e1
DJ
13280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13281for as_dir in $PATH
13282do
13283 IFS=$as_save_IFS
13284 test -z "$as_dir" && as_dir=.
81ecdfbb 13285 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13287 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13289 break 2
13290 fi
13291done
81ecdfbb
RW
13292 done
13293IFS=$as_save_IFS
c6b750e1 13294
55db4b87
PB
13295fi
13296fi
c6b750e1 13297CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 13298if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13300$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13301else
81ecdfbb
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13303$as_echo "no" >&6; }
55db4b87
PB
13304fi
13305
81ecdfbb 13306
2429c060
PB
13307 fi
13308 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13310set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13313if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13314 $as_echo_n "(cached) " >&6
55db4b87 13315else
05cbd757
PB
13316 if test -n "$CC_FOR_TARGET"; then
13317 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 13318else
c6b750e1
DJ
13319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320for as_dir in $PATH
13321do
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
81ecdfbb 13324 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13326 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13328 break 2
13329 fi
13330done
81ecdfbb
RW
13331 done
13332IFS=$as_save_IFS
c6b750e1 13333
55db4b87
PB
13334fi
13335fi
c6b750e1 13336CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 13337if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13339$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13340else
81ecdfbb
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342$as_echo "no" >&6; }
55db4b87 13343fi
c6b750e1 13344
81ecdfbb 13345
2429c060
PB
13346 fi
13347 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13348 done
13349fi
c6b750e1 13350
05cbd757
PB
13351if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13352 set dummy cc gcc
13353 if test $build = $target ; then
13354 CC_FOR_TARGET="$2"
55db4b87 13355 else
05cbd757 13356 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13357 fi
d3f5afc4
MS
13358else
13359 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
13360fi
13361
9a819804
AO
13362
13363
13364if test -n "$CXX_FOR_TARGET"; then
13365 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13366elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13367 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13368fi
13369
13370if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13371 for ncn_progname in c++ g++ cxx gxx; do
13372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13373set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13375$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13376if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13377 $as_echo_n "(cached) " >&6
9a819804
AO
13378else
13379 if test -n "$CXX_FOR_TARGET"; then
13380 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13381else
13382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383for as_dir in $PATH
13384do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
81ecdfbb 13387 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13389 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13391 break 2
13392 fi
13393done
81ecdfbb
RW
13394 done
13395IFS=$as_save_IFS
9a819804
AO
13396
13397fi
13398fi
13399CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13400if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13402$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 13403else
81ecdfbb
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405$as_echo "no" >&6; }
9a819804
AO
13406fi
13407
81ecdfbb 13408
9a819804
AO
13409 done
13410fi
13411
13412if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13413 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13416 if test -x $with_build_time_tools/${ncn_progname}; then
13417 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13419$as_echo "yes" >&6; }
2429c060
PB
13420 break
13421 else
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
2429c060
PB
13424 fi
13425 done
13426fi
13427
13428if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13429 for ncn_progname in c++ g++ cxx gxx; do
13430 if test -n "$ncn_target_tool_prefix"; then
13431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13434$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13435if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13436 $as_echo_n "(cached) " >&6
55db4b87
PB
13437else
13438 if test -n "$CXX_FOR_TARGET"; then
13439 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13440else
c6b750e1
DJ
13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442for as_dir in $PATH
13443do
13444 IFS=$as_save_IFS
13445 test -z "$as_dir" && as_dir=.
81ecdfbb 13446 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13448 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13450 break 2
13451 fi
13452done
81ecdfbb
RW
13453 done
13454IFS=$as_save_IFS
c6b750e1 13455
55db4b87
PB
13456fi
13457fi
c6b750e1 13458CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 13459if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13461$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13462else
81ecdfbb
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13464$as_echo "no" >&6; }
55db4b87
PB
13465fi
13466
81ecdfbb 13467
2429c060
PB
13468 fi
13469 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13471set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13474if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13475 $as_echo_n "(cached) " >&6
55db4b87 13476else
05cbd757
PB
13477 if test -n "$CXX_FOR_TARGET"; then
13478 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 13479else
c6b750e1
DJ
13480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
81ecdfbb 13485 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13487 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13489 break 2
13490 fi
13491done
81ecdfbb
RW
13492 done
13493IFS=$as_save_IFS
c6b750e1 13494
55db4b87
PB
13495fi
13496fi
c6b750e1 13497CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 13498if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13500$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13501else
81ecdfbb
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13503$as_echo "no" >&6; }
55db4b87 13504fi
c6b750e1 13505
81ecdfbb 13506
2429c060
PB
13507 fi
13508 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13509 done
13510fi
c6b750e1 13511
05cbd757
PB
13512if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13513 set dummy c++ g++ cxx gxx
13514 if test $build = $target ; then
13515 CXX_FOR_TARGET="$2"
55db4b87 13516 else
05cbd757 13517 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13518 fi
d3f5afc4
MS
13519else
13520 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
13521fi
13522
9a819804
AO
13523
13524
13525if test -n "$GCC_FOR_TARGET"; then
13526 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13527elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13528 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13529fi
13530
13531if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13532 for ncn_progname in gcc; do
13533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13534set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13537if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13538 $as_echo_n "(cached) " >&6
9a819804
AO
13539else
13540 if test -n "$GCC_FOR_TARGET"; then
13541 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13542else
13543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544for as_dir in $PATH
13545do
13546 IFS=$as_save_IFS
13547 test -z "$as_dir" && as_dir=.
81ecdfbb 13548 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13550 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13552 break 2
13553 fi
13554done
81ecdfbb
RW
13555 done
13556IFS=$as_save_IFS
9a819804
AO
13557
13558fi
13559fi
13560GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13561if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13563$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 13564else
81ecdfbb
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566$as_echo "no" >&6; }
9a819804
AO
13567fi
13568
81ecdfbb 13569
9a819804
AO
13570 done
13571fi
13572
13573if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13574 for ncn_progname in gcc; do
81ecdfbb
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13576$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13577 if test -x $with_build_time_tools/${ncn_progname}; then
13578 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13580$as_echo "yes" >&6; }
2429c060
PB
13581 break
13582 else
81ecdfbb
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584$as_echo "no" >&6; }
2429c060
PB
13585 fi
13586 done
13587fi
13588
13589if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13590 for ncn_progname in gcc; do
13591 if test -n "$ncn_target_tool_prefix"; then
13592 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13593set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13595$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13596if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13597 $as_echo_n "(cached) " >&6
859789af 13598else
2429c060
PB
13599 if test -n "$GCC_FOR_TARGET"; then
13600 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13601else
c6b750e1
DJ
13602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13603for as_dir in $PATH
13604do
13605 IFS=$as_save_IFS
13606 test -z "$as_dir" && as_dir=.
81ecdfbb 13607 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13609 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13611 break 2
13612 fi
13613done
81ecdfbb
RW
13614 done
13615IFS=$as_save_IFS
c6b750e1 13616
55db4b87
PB
13617fi
13618fi
c6b750e1 13619GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 13620if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13622$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13623else
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625$as_echo "no" >&6; }
55db4b87
PB
13626fi
13627
81ecdfbb 13628
2429c060
PB
13629 fi
13630 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13632set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13634$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13635if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13636 $as_echo_n "(cached) " >&6
55db4b87 13637else
05cbd757
PB
13638 if test -n "$GCC_FOR_TARGET"; then
13639 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13640else
c6b750e1
DJ
13641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13642for as_dir in $PATH
13643do
13644 IFS=$as_save_IFS
13645 test -z "$as_dir" && as_dir=.
81ecdfbb 13646 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13648 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13650 break 2
13651 fi
13652done
81ecdfbb
RW
13653 done
13654IFS=$as_save_IFS
c6b750e1 13655
55db4b87
PB
13656fi
13657fi
c6b750e1 13658GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 13659if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13661$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13662else
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664$as_echo "no" >&6; }
55db4b87 13665fi
c6b750e1 13666
81ecdfbb 13667
2429c060
PB
13668 fi
13669 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13670 done
13671fi
c6b750e1 13672
05cbd757
PB
13673if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13674 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
13675else
13676 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
13677fi
13678
9a819804
AO
13679
13680
9a819804
AO
13681if test -n "$GFORTRAN_FOR_TARGET"; then
13682 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13683elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13684 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
13685fi
13686
9a819804
AO
13687if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13688 for ncn_progname in gfortran; do
13689 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13690set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13693if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13694 $as_echo_n "(cached) " >&6
55db4b87 13695else
9a819804
AO
13696 if test -n "$GFORTRAN_FOR_TARGET"; then
13697 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 13698else
c6b750e1
DJ
13699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700for as_dir in $PATH
13701do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
81ecdfbb 13704 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13706 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13708 break 2
13709 fi
13710done
81ecdfbb
RW
13711 done
13712IFS=$as_save_IFS
c6b750e1 13713
55db4b87
PB
13714fi
13715fi
9a819804
AO
13716GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13717if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13719$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 13720else
81ecdfbb
RW
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
55db4b87 13723fi
c6b750e1 13724
81ecdfbb 13725
2429c060
PB
13726 done
13727fi
c6b750e1 13728
9a819804 13729if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13730 for ncn_progname in gfortran; do
81ecdfbb
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13732$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13733 if test -x $with_build_time_tools/${ncn_progname}; then
13734 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13736$as_echo "yes" >&6; }
2429c060
PB
13737 break
13738 else
81ecdfbb
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13740$as_echo "no" >&6; }
2429c060
PB
13741 fi
13742 done
13743fi
13744
13745if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13746 for ncn_progname in gfortran; do
13747 if test -n "$ncn_target_tool_prefix"; then
13748 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13749set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13752if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13753 $as_echo_n "(cached) " >&6
55db4b87 13754else
228cf97d
AM
13755 if test -n "$GFORTRAN_FOR_TARGET"; then
13756 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13757else
13758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13767 break 2
13768 fi
13769done
13770 done
13771IFS=$as_save_IFS
13772
13773fi
13774fi
13775GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13776if test -n "$GFORTRAN_FOR_TARGET"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13778$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13779else
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781$as_echo "no" >&6; }
13782fi
13783
13784
13785 fi
13786 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13788set dummy ${ncn_progname}; ac_word=$2
13789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13790$as_echo_n "checking for $ac_word... " >&6; }
13791if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13792 $as_echo_n "(cached) " >&6
13793else
13794 if test -n "$GFORTRAN_FOR_TARGET"; then
13795 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13796else
13797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798for as_dir in $PATH
13799do
13800 IFS=$as_save_IFS
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13806 break 2
13807 fi
13808done
13809 done
13810IFS=$as_save_IFS
13811
13812fi
13813fi
13814GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13815if test -n "$GFORTRAN_FOR_TARGET"; then
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13817$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13818else
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
13821fi
13822
13823
13824 fi
13825 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13826 done
13827fi
13828
13829if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13830 set dummy gfortran
13831 if test $build = $target ; then
13832 GFORTRAN_FOR_TARGET="$2"
13833 else
13834 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13835 fi
13836else
13837 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13838fi
13839
13840
13841
13842if test -n "$GOC_FOR_TARGET"; then
13843 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13844elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13845 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13846fi
13847
13848if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13849 for ncn_progname in gccgo; do
13850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13851set dummy ${ncn_progname}; ac_word=$2
13852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13853$as_echo_n "checking for $ac_word... " >&6; }
13854if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13855 $as_echo_n "(cached) " >&6
13856else
13857 if test -n "$GOC_FOR_TARGET"; then
13858 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13859else
13860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13861for as_dir in $PATH
13862do
13863 IFS=$as_save_IFS
13864 test -z "$as_dir" && as_dir=.
13865 for ac_exec_ext in '' $ac_executable_extensions; do
13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13867 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13869 break 2
13870 fi
13871done
13872 done
13873IFS=$as_save_IFS
13874
13875fi
13876fi
13877GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13878if test -n "$GOC_FOR_TARGET"; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13880$as_echo "$GOC_FOR_TARGET" >&6; }
13881else
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13883$as_echo "no" >&6; }
13884fi
13885
13886
13887 done
13888fi
13889
13890if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13891 for ncn_progname in gccgo; do
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13893$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13894 if test -x $with_build_time_tools/${ncn_progname}; then
13895 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13897$as_echo "yes" >&6; }
13898 break
13899 else
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13901$as_echo "no" >&6; }
13902 fi
13903 done
13904fi
13905
13906if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13907 for ncn_progname in gccgo; do
13908 if test -n "$ncn_target_tool_prefix"; then
13909 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13910set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13912$as_echo_n "checking for $ac_word... " >&6; }
13913if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13914 $as_echo_n "(cached) " >&6
13915else
13916 if test -n "$GOC_FOR_TARGET"; then
13917 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
55db4b87 13918else
c6b750e1
DJ
13919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920for as_dir in $PATH
13921do
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
81ecdfbb 13924 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13926 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13928 break 2
13929 fi
13930done
81ecdfbb
RW
13931 done
13932IFS=$as_save_IFS
c6b750e1 13933
55db4b87
PB
13934fi
13935fi
228cf97d
AM
13936GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13937if test -n "$GOC_FOR_TARGET"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13939$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 13940else
81ecdfbb
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13942$as_echo "no" >&6; }
55db4b87
PB
13943fi
13944
81ecdfbb 13945
2429c060 13946 fi
228cf97d 13947 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
2429c060 13948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13949set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13951$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 13952if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
81ecdfbb 13953 $as_echo_n "(cached) " >&6
55db4b87 13954else
228cf97d
AM
13955 if test -n "$GOC_FOR_TARGET"; then
13956 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13957else
13958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13959for as_dir in $PATH
13960do
13961 IFS=$as_save_IFS
13962 test -z "$as_dir" && as_dir=.
81ecdfbb 13963 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13965 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13967 break 2
13968 fi
13969done
81ecdfbb
RW
13970 done
13971IFS=$as_save_IFS
c6b750e1 13972
55db4b87
PB
13973fi
13974fi
228cf97d
AM
13975GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13976if test -n "$GOC_FOR_TARGET"; then
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13978$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 13979else
81ecdfbb
RW
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13981$as_echo "no" >&6; }
55db4b87 13982fi
c6b750e1 13983
81ecdfbb 13984
2429c060 13985 fi
228cf97d 13986 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
2429c060
PB
13987 done
13988fi
c6b750e1 13989
228cf97d
AM
13990if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13991 set dummy gccgo
05cbd757 13992 if test $build = $target ; then
228cf97d 13993 GOC_FOR_TARGET="$2"
55db4b87 13994 else
228cf97d 13995 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13996 fi
d3f5afc4 13997else
228cf97d 13998 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
859789af
AC
13999fi
14000
2429c060
PB
14001
14002
228cf97d
AM
14003if test -n "$GDC_FOR_TARGET"; then
14004 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
14005elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14006 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
e552509b
ILT
14007fi
14008
228cf97d
AM
14009if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
14010 for ncn_progname in gdc; do
e552509b
ILT
14011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14012set dummy ${ncn_progname}; ac_word=$2
14013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14014$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14015if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14016 $as_echo_n "(cached) " >&6
14017else
228cf97d
AM
14018 if test -n "$GDC_FOR_TARGET"; then
14019 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14020else
14021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022for as_dir in $PATH
14023do
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14028 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
14029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14030 break 2
14031 fi
14032done
14033 done
14034IFS=$as_save_IFS
14035
14036fi
14037fi
228cf97d
AM
14038GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14039if test -n "$GDC_FOR_TARGET"; then
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14041$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14042else
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14044$as_echo "no" >&6; }
14045fi
14046
14047
14048 done
14049fi
14050
228cf97d
AM
14051if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14052 for ncn_progname in gdc; do
e552509b
ILT
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14054$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14055 if test -x $with_build_time_tools/${ncn_progname}; then
228cf97d 14056 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
e552509b
ILT
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14058$as_echo "yes" >&6; }
14059 break
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
14063 fi
14064 done
14065fi
14066
228cf97d
AM
14067if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14068 for ncn_progname in gdc; do
e552509b
ILT
14069 if test -n "$ncn_target_tool_prefix"; then
14070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14071set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14073$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14074if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14075 $as_echo_n "(cached) " >&6
14076else
228cf97d
AM
14077 if test -n "$GDC_FOR_TARGET"; then
14078 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14079else
14080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14081for as_dir in $PATH
14082do
14083 IFS=$as_save_IFS
14084 test -z "$as_dir" && as_dir=.
14085 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14087 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
e552509b
ILT
14088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14089 break 2
14090 fi
14091done
14092 done
14093IFS=$as_save_IFS
14094
14095fi
14096fi
228cf97d
AM
14097GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14098if test -n "$GDC_FOR_TARGET"; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14100$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14101else
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103$as_echo "no" >&6; }
14104fi
14105
14106
14107 fi
228cf97d 14108 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
e552509b
ILT
14109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14110set dummy ${ncn_progname}; ac_word=$2
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14112$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 14113if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
14114 $as_echo_n "(cached) " >&6
14115else
228cf97d
AM
14116 if test -n "$GDC_FOR_TARGET"; then
14117 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
14118else
14119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14120for as_dir in $PATH
14121do
14122 IFS=$as_save_IFS
14123 test -z "$as_dir" && as_dir=.
14124 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 14126 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
14127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14128 break 2
14129 fi
14130done
14131 done
14132IFS=$as_save_IFS
14133
14134fi
14135fi
228cf97d
AM
14136GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14137if test -n "$GDC_FOR_TARGET"; then
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
14139$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
14140else
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142$as_echo "no" >&6; }
14143fi
14144
14145
14146 fi
228cf97d 14147 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
e552509b
ILT
14148 done
14149fi
14150
228cf97d
AM
14151if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14152 set dummy gdc
e552509b 14153 if test $build = $target ; then
228cf97d 14154 GDC_FOR_TARGET="$2"
e552509b 14155 else
228cf97d 14156 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
e552509b
ILT
14157 fi
14158else
228cf97d 14159 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
e552509b
ILT
14160fi
14161
14162
14163
6a6859cb
AM
14164if test -n "$GM2_FOR_TARGET"; then
14165 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14166elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14167 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14168fi
14169
14170if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14171 for ncn_progname in gm2; do
14172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14173set dummy ${ncn_progname}; ac_word=$2
14174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175$as_echo_n "checking for $ac_word... " >&6; }
14176if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178else
14179 if test -n "$GM2_FOR_TARGET"; then
14180 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14181else
14182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183for as_dir in $PATH
14184do
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14189 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14192 fi
14193done
14194 done
14195IFS=$as_save_IFS
14196
14197fi
14198fi
14199GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14200if test -n "$GM2_FOR_TARGET"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14202$as_echo "$GM2_FOR_TARGET" >&6; }
14203else
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205$as_echo "no" >&6; }
14206fi
14207
14208
14209 done
14210fi
14211
14212if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14213 for ncn_progname in gm2; do
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14215$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14216 if test -x $with_build_time_tools/${ncn_progname}; then
14217 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14219$as_echo "yes" >&6; }
14220 break
14221 else
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14223$as_echo "no" >&6; }
14224 fi
14225 done
14226fi
14227
14228if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14229 for ncn_progname in gm2; do
14230 if test -n "$ncn_target_tool_prefix"; then
14231 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14232set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14234$as_echo_n "checking for $ac_word... " >&6; }
14235if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14236 $as_echo_n "(cached) " >&6
14237else
14238 if test -n "$GM2_FOR_TARGET"; then
14239 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14240else
14241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14242for as_dir in $PATH
14243do
14244 IFS=$as_save_IFS
14245 test -z "$as_dir" && as_dir=.
14246 for ac_exec_ext in '' $ac_executable_extensions; do
14247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14250 break 2
14251 fi
14252done
14253 done
14254IFS=$as_save_IFS
14255
14256fi
14257fi
14258GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14259if test -n "$GM2_FOR_TARGET"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14261$as_echo "$GM2_FOR_TARGET" >&6; }
14262else
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264$as_echo "no" >&6; }
14265fi
14266
14267
14268 fi
14269 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14271set dummy ${ncn_progname}; ac_word=$2
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14273$as_echo_n "checking for $ac_word... " >&6; }
14274if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276else
14277 if test -n "$GM2_FOR_TARGET"; then
14278 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14279else
14280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281for as_dir in $PATH
14282do
14283 IFS=$as_save_IFS
14284 test -z "$as_dir" && as_dir=.
14285 for ac_exec_ext in '' $ac_executable_extensions; do
14286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14287 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14289 break 2
14290 fi
14291done
14292 done
14293IFS=$as_save_IFS
14294
14295fi
14296fi
14297GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14298if test -n "$GM2_FOR_TARGET"; then
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GM2_FOR_TARGET" >&5
14300$as_echo "$GM2_FOR_TARGET" >&6; }
14301else
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14303$as_echo "no" >&6; }
14304fi
14305
14306
14307 fi
14308 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14309 done
14310fi
14311
14312if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14313 set dummy gm2
14314 if test $build = $target ; then
14315 GM2_FOR_TARGET="$2"
14316 else
14317 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14318 fi
14319else
14320 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14321fi
14322
14323
14324
2429c060
PB
14325cat > conftest.c << \EOF
14326#ifdef __GNUC__
14327 gcc_yay;
14328#endif
14329EOF
14330if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14331 have_gcc_for_target=yes
859789af 14332else
2429c060
PB
14333 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14334 have_gcc_for_target=no
859789af 14335fi
2429c060
PB
14336rm conftest.c
14337
14338
14339
859789af 14340
2429c060
PB
14341if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14342 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
14344$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14345 if test -x $with_build_time_tools/ar; then
14346 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14347 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
14349$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 14350 else
81ecdfbb
RW
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352$as_echo "no" >&6; }
3a35eeb3 14353 fi
2429c060
PB
14354 elif test $build != $host && test $have_gcc_for_target = yes; then
14355 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
14356 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14357 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 14358 fi
2429c060 14359fi
c6b750e1 14360if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14361 # Extract the first word of "ar", so it can be a program name with args.
14362set dummy ar; ac_word=$2
81ecdfbb
RW
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14364$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14365if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 14366 $as_echo_n "(cached) " >&6
859789af 14367else
c6b750e1
DJ
14368 case $AR_FOR_TARGET in
14369 [\\/]* | ?:[\\/]*)
2429c060
PB
14370 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14371 ;;
2429c060 14372 *)
c6b750e1
DJ
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374for as_dir in $gcc_cv_tool_dirs
14375do
14376 IFS=$as_save_IFS
14377 test -z "$as_dir" && as_dir=.
81ecdfbb 14378 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14380 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14382 break 2
14383 fi
14384done
81ecdfbb
RW
14385 done
14386IFS=$as_save_IFS
c6b750e1 14387
2429c060
PB
14388 ;;
14389esac
859789af 14390fi
c6b750e1 14391AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 14392if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14394$as_echo "$AR_FOR_TARGET" >&6; }
859789af 14395else
81ecdfbb
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14397$as_echo "no" >&6; }
859789af 14398fi
05cbd757 14399
81ecdfbb 14400
2429c060
PB
14401fi
14402if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
14403
14404
14405if test -n "$AR_FOR_TARGET"; then
14406 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14407elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14408 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14409fi
14410
14411if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14412 for ncn_progname in ar; do
14413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14414set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14417if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14418 $as_echo_n "(cached) " >&6
9a819804
AO
14419else
14420 if test -n "$AR_FOR_TARGET"; then
14421 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14422else
14423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424for as_dir in $PATH
14425do
14426 IFS=$as_save_IFS
14427 test -z "$as_dir" && as_dir=.
81ecdfbb 14428 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14430 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14432 break 2
14433 fi
14434done
81ecdfbb
RW
14435 done
14436IFS=$as_save_IFS
9a819804
AO
14437
14438fi
14439fi
14440AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14441if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14443$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 14444else
81ecdfbb
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446$as_echo "no" >&6; }
9a819804
AO
14447fi
14448
81ecdfbb 14449
9a819804
AO
14450 done
14451fi
14452
14453if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14454 for ncn_progname in ar; do
81ecdfbb
RW
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14456$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14457 if test -x $with_build_time_tools/${ncn_progname}; then
14458 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14460$as_echo "yes" >&6; }
2429c060
PB
14461 break
14462 else
81ecdfbb
RW
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14464$as_echo "no" >&6; }
2429c060
PB
14465 fi
14466 done
859789af
AC
14467fi
14468
2429c060
PB
14469if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14470 for ncn_progname in ar; do
14471 if test -n "$ncn_target_tool_prefix"; then
14472 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 14473set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14476if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14477 $as_echo_n "(cached) " >&6
7e0f7140 14478else
2429c060
PB
14479 if test -n "$AR_FOR_TARGET"; then
14480 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 14481else
c6b750e1
DJ
14482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14483for as_dir in $PATH
14484do
14485 IFS=$as_save_IFS
14486 test -z "$as_dir" && as_dir=.
81ecdfbb 14487 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14489 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14491 break 2
14492 fi
14493done
81ecdfbb
RW
14494 done
14495IFS=$as_save_IFS
c6b750e1 14496
7e0f7140
GK
14497fi
14498fi
c6b750e1 14499AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14500if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14502$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14503else
81ecdfbb
RW
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14505$as_echo "no" >&6; }
7e0f7140
GK
14506fi
14507
81ecdfbb 14508
2429c060
PB
14509 fi
14510 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14511 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 14512set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14514$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14515if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14516 $as_echo_n "(cached) " >&6
7e0f7140 14517else
2429c060
PB
14518 if test -n "$AR_FOR_TARGET"; then
14519 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 14520else
c6b750e1
DJ
14521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522for as_dir in $PATH
14523do
14524 IFS=$as_save_IFS
14525 test -z "$as_dir" && as_dir=.
81ecdfbb 14526 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14528 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14530 break 2
14531 fi
14532done
81ecdfbb
RW
14533 done
14534IFS=$as_save_IFS
c6b750e1 14535
7e0f7140
GK
14536fi
14537fi
c6b750e1 14538AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14539if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14541$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14542else
81ecdfbb
RW
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544$as_echo "no" >&6; }
7e0f7140 14545fi
c6b750e1 14546
81ecdfbb 14547
2429c060
PB
14548 fi
14549 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14550 done
14551fi
c6b750e1 14552
2429c060
PB
14553if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14554 set dummy ar
7e0f7140 14555 if test $build = $target ; then
2429c060 14556 AR_FOR_TARGET="$2"
7e0f7140 14557 else
2429c060 14558 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 14559 fi
d3f5afc4
MS
14560else
14561 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
14562fi
14563
3a35eeb3
PB
14564else
14565 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
14566fi
14567
14568
14569
14570
14571if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14572 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14574$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14575 if test -x $with_build_time_tools/as; then
14576 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14577 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14579$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 14580 else
81ecdfbb
RW
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582$as_echo "no" >&6; }
3a35eeb3 14583 fi
2429c060
PB
14584 elif test $build != $host && test $have_gcc_for_target = yes; then
14585 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
14586 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14587 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
14588 fi
14589fi
c6b750e1 14590if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14591 # Extract the first word of "as", so it can be a program name with args.
14592set dummy as; ac_word=$2
81ecdfbb
RW
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14595if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 14596 $as_echo_n "(cached) " >&6
2429c060 14597else
c6b750e1
DJ
14598 case $AS_FOR_TARGET in
14599 [\\/]* | ?:[\\/]*)
2429c060
PB
14600 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14601 ;;
2429c060 14602 *)
c6b750e1
DJ
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604for as_dir in $gcc_cv_tool_dirs
14605do
14606 IFS=$as_save_IFS
14607 test -z "$as_dir" && as_dir=.
81ecdfbb 14608 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14610 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14612 break 2
14613 fi
14614done
81ecdfbb
RW
14615 done
14616IFS=$as_save_IFS
c6b750e1 14617
2429c060
PB
14618 ;;
14619esac
14620fi
c6b750e1 14621AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 14622if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14624$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14625else
81ecdfbb
RW
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627$as_echo "no" >&6; }
2429c060
PB
14628fi
14629
81ecdfbb 14630
2429c060
PB
14631fi
14632if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
14633
14634
14635if test -n "$AS_FOR_TARGET"; then
14636 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14637elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14638 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14639fi
14640
14641if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14642 for ncn_progname in as; do
14643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14644set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14647if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14648 $as_echo_n "(cached) " >&6
9a819804
AO
14649else
14650 if test -n "$AS_FOR_TARGET"; then
14651 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14652else
14653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654for as_dir in $PATH
14655do
14656 IFS=$as_save_IFS
14657 test -z "$as_dir" && as_dir=.
81ecdfbb 14658 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14660 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14662 break 2
14663 fi
14664done
81ecdfbb
RW
14665 done
14666IFS=$as_save_IFS
9a819804
AO
14667
14668fi
14669fi
14670AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14671if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14673$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 14674else
81ecdfbb
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14676$as_echo "no" >&6; }
9a819804
AO
14677fi
14678
81ecdfbb 14679
9a819804
AO
14680 done
14681fi
14682
14683if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14684 for ncn_progname in as; do
81ecdfbb
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14686$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14687 if test -x $with_build_time_tools/${ncn_progname}; then
14688 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14690$as_echo "yes" >&6; }
2429c060
PB
14691 break
14692 else
81ecdfbb
RW
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14694$as_echo "no" >&6; }
2429c060
PB
14695 fi
14696 done
14697fi
14698
14699if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14700 for ncn_progname in as; do
14701 if test -n "$ncn_target_tool_prefix"; then
14702 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14703set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14705$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14706if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14707 $as_echo_n "(cached) " >&6
2429c060
PB
14708else
14709 if test -n "$AS_FOR_TARGET"; then
14710 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14711else
c6b750e1
DJ
14712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14713for as_dir in $PATH
14714do
14715 IFS=$as_save_IFS
14716 test -z "$as_dir" && as_dir=.
81ecdfbb 14717 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14719 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14721 break 2
14722 fi
14723done
81ecdfbb
RW
14724 done
14725IFS=$as_save_IFS
c6b750e1 14726
2429c060
PB
14727fi
14728fi
c6b750e1 14729AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14730if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14732$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14733else
81ecdfbb
RW
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735$as_echo "no" >&6; }
2429c060
PB
14736fi
14737
81ecdfbb 14738
2429c060
PB
14739 fi
14740 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14742set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14745if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14746 $as_echo_n "(cached) " >&6
2429c060
PB
14747else
14748 if test -n "$AS_FOR_TARGET"; then
14749 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14750else
c6b750e1
DJ
14751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14752for as_dir in $PATH
14753do
14754 IFS=$as_save_IFS
14755 test -z "$as_dir" && as_dir=.
81ecdfbb 14756 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14758 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14760 break 2
14761 fi
14762done
81ecdfbb
RW
14763 done
14764IFS=$as_save_IFS
c6b750e1 14765
2429c060
PB
14766fi
14767fi
c6b750e1 14768AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14769if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14771$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14772else
81ecdfbb
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774$as_echo "no" >&6; }
2429c060 14775fi
c6b750e1 14776
81ecdfbb 14777
2429c060
PB
14778 fi
14779 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14780 done
14781fi
c6b750e1 14782
2429c060
PB
14783if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14784 set dummy as
14785 if test $build = $target ; then
14786 AS_FOR_TARGET="$2"
14787 else
14788 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14789 fi
d3f5afc4
MS
14790else
14791 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
14792fi
14793
3a35eeb3
PB
14794else
14795 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
14796fi
14797
14798
14799
14800
14801if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14802 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14804$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14805 if test -x $with_build_time_tools/dlltool; then
14806 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14807 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14809$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 14810 else
81ecdfbb
RW
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14812$as_echo "no" >&6; }
3a35eeb3 14813 fi
2429c060
PB
14814 elif test $build != $host && test $have_gcc_for_target = yes; then
14815 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
14816 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14817 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
14818 fi
14819fi
c6b750e1 14820if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14821 # Extract the first word of "dlltool", so it can be a program name with args.
14822set dummy dlltool; ac_word=$2
81ecdfbb
RW
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14824$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14825if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14826 $as_echo_n "(cached) " >&6
2429c060 14827else
c6b750e1
DJ
14828 case $DLLTOOL_FOR_TARGET in
14829 [\\/]* | ?:[\\/]*)
2429c060
PB
14830 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14831 ;;
2429c060 14832 *)
c6b750e1
DJ
14833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14834for as_dir in $gcc_cv_tool_dirs
14835do
14836 IFS=$as_save_IFS
14837 test -z "$as_dir" && as_dir=.
81ecdfbb 14838 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14840 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14842 break 2
14843 fi
14844done
81ecdfbb
RW
14845 done
14846IFS=$as_save_IFS
c6b750e1 14847
2429c060
PB
14848 ;;
14849esac
14850fi
c6b750e1 14851DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 14852if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14854$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14855else
81ecdfbb
RW
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14857$as_echo "no" >&6; }
2429c060
PB
14858fi
14859
81ecdfbb 14860
2429c060
PB
14861fi
14862if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
14863
14864
14865if test -n "$DLLTOOL_FOR_TARGET"; then
14866 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14867elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14868 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14869fi
14870
14871if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14872 for ncn_progname in dlltool; do
14873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14874set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14877if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14878 $as_echo_n "(cached) " >&6
9a819804
AO
14879else
14880 if test -n "$DLLTOOL_FOR_TARGET"; then
14881 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14882else
14883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884for as_dir in $PATH
14885do
14886 IFS=$as_save_IFS
14887 test -z "$as_dir" && as_dir=.
81ecdfbb 14888 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14890 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14892 break 2
14893 fi
14894done
81ecdfbb
RW
14895 done
14896IFS=$as_save_IFS
9a819804
AO
14897
14898fi
14899fi
14900DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14901if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14903$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 14904else
81ecdfbb
RW
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906$as_echo "no" >&6; }
9a819804
AO
14907fi
14908
81ecdfbb 14909
9a819804
AO
14910 done
14911fi
14912
14913if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14914 for ncn_progname in dlltool; do
81ecdfbb
RW
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14916$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14917 if test -x $with_build_time_tools/${ncn_progname}; then
14918 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14920$as_echo "yes" >&6; }
2429c060
PB
14921 break
14922 else
81ecdfbb
RW
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924$as_echo "no" >&6; }
2429c060
PB
14925 fi
14926 done
14927fi
14928
14929if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14930 for ncn_progname in dlltool; do
14931 if test -n "$ncn_target_tool_prefix"; then
14932 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14933set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14935$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14936if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14937 $as_echo_n "(cached) " >&6
2429c060
PB
14938else
14939 if test -n "$DLLTOOL_FOR_TARGET"; then
14940 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14941else
c6b750e1
DJ
14942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14943for as_dir in $PATH
14944do
14945 IFS=$as_save_IFS
14946 test -z "$as_dir" && as_dir=.
81ecdfbb 14947 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14949 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14951 break 2
14952 fi
14953done
81ecdfbb
RW
14954 done
14955IFS=$as_save_IFS
c6b750e1 14956
2429c060
PB
14957fi
14958fi
c6b750e1 14959DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 14960if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14962$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14963else
81ecdfbb
RW
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14965$as_echo "no" >&6; }
2429c060
PB
14966fi
14967
81ecdfbb 14968
2429c060
PB
14969 fi
14970 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14972set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14975if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14976 $as_echo_n "(cached) " >&6
2429c060
PB
14977else
14978 if test -n "$DLLTOOL_FOR_TARGET"; then
14979 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14980else
c6b750e1
DJ
14981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982for as_dir in $PATH
14983do
14984 IFS=$as_save_IFS
14985 test -z "$as_dir" && as_dir=.
81ecdfbb 14986 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14988 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 14989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14990 break 2
14991 fi
14992done
81ecdfbb
RW
14993 done
14994IFS=$as_save_IFS
c6b750e1 14995
2429c060
PB
14996fi
14997fi
c6b750e1 14998DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 14999if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
15001$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 15002else
81ecdfbb
RW
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15004$as_echo "no" >&6; }
2429c060 15005fi
c6b750e1 15006
81ecdfbb 15007
2429c060 15008 fi
228cf97d
AM
15009 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15010 done
15011fi
15012
15013if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15014 set dummy dlltool
15015 if test $build = $target ; then
15016 DLLTOOL_FOR_TARGET="$2"
15017 else
15018 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15019 fi
15020else
15021 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15022fi
15023
15024else
15025 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15026fi
15027
15028
15029
15030
15031if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15032 if test -n "$with_build_time_tools"; then
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
15034$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
15035 if test -x $with_build_time_tools/dsymutil; then
15036 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15037 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15039$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15040 else
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15042$as_echo "no" >&6; }
15043 fi
15044 elif test $build != $host && test $have_gcc_for_target = yes; then
15045 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15046 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15047 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15048 fi
15049fi
15050if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15051 # Extract the first word of "dsymutil", so it can be a program name with args.
15052set dummy dsymutil; ac_word=$2
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15054$as_echo_n "checking for $ac_word... " >&6; }
15055if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15056 $as_echo_n "(cached) " >&6
15057else
15058 case $DSYMUTIL_FOR_TARGET in
15059 [\\/]* | ?:[\\/]*)
15060 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15061 ;;
15062 *)
15063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15064for as_dir in $gcc_cv_tool_dirs
15065do
15066 IFS=$as_save_IFS
15067 test -z "$as_dir" && as_dir=.
15068 for ac_exec_ext in '' $ac_executable_extensions; do
15069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15070 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15072 break 2
15073 fi
15074done
15075 done
15076IFS=$as_save_IFS
15077
15078 ;;
15079esac
15080fi
15081DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15082if test -n "$DSYMUTIL_FOR_TARGET"; then
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15084$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15085else
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087$as_echo "no" >&6; }
15088fi
15089
15090
15091fi
15092if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15093
15094
15095if test -n "$DSYMUTIL_FOR_TARGET"; then
15096 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15097elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15098 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15099fi
15100
15101if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15102 for ncn_progname in dsymutil; do
15103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15104set dummy ${ncn_progname}; ac_word=$2
15105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106$as_echo_n "checking for $ac_word... " >&6; }
15107if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109else
15110 if test -n "$DSYMUTIL_FOR_TARGET"; then
15111 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15112else
15113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114for as_dir in $PATH
15115do
15116 IFS=$as_save_IFS
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15122 break 2
15123 fi
15124done
15125 done
15126IFS=$as_save_IFS
15127
15128fi
15129fi
15130DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15131if test -n "$DSYMUTIL_FOR_TARGET"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15133$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15134else
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136$as_echo "no" >&6; }
15137fi
15138
15139
15140 done
15141fi
15142
15143if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15144 for ncn_progname in dsymutil; do
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15146$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15147 if test -x $with_build_time_tools/${ncn_progname}; then
15148 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15150$as_echo "yes" >&6; }
15151 break
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154$as_echo "no" >&6; }
15155 fi
15156 done
15157fi
15158
15159if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15160 for ncn_progname in dsymutil; do
15161 if test -n "$ncn_target_tool_prefix"; then
15162 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15163set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15165$as_echo_n "checking for $ac_word... " >&6; }
15166if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15167 $as_echo_n "(cached) " >&6
15168else
15169 if test -n "$DSYMUTIL_FOR_TARGET"; then
15170 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15171else
15172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173for as_dir in $PATH
15174do
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 for ac_exec_ext in '' $ac_executable_extensions; do
15178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15179 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15181 break 2
15182 fi
15183done
15184 done
15185IFS=$as_save_IFS
15186
15187fi
15188fi
15189DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15190if test -n "$DSYMUTIL_FOR_TARGET"; then
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15192$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15193else
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15195$as_echo "no" >&6; }
15196fi
15197
15198
15199 fi
15200 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15202set dummy ${ncn_progname}; ac_word=$2
15203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15204$as_echo_n "checking for $ac_word... " >&6; }
15205if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207else
15208 if test -n "$DSYMUTIL_FOR_TARGET"; then
15209 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15210else
15211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212for as_dir in $PATH
15213do
15214 IFS=$as_save_IFS
15215 test -z "$as_dir" && as_dir=.
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15220 break 2
15221 fi
15222done
15223 done
15224IFS=$as_save_IFS
15225
15226fi
15227fi
15228DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15229if test -n "$DSYMUTIL_FOR_TARGET"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
15231$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15232else
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234$as_echo "no" >&6; }
15235fi
15236
15237
15238 fi
15239 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
2429c060
PB
15240 done
15241fi
c6b750e1 15242
228cf97d
AM
15243if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15244 set dummy dsymutil
2429c060 15245 if test $build = $target ; then
228cf97d 15246 DSYMUTIL_FOR_TARGET="$2"
2429c060 15247 else
228cf97d 15248 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
2429c060 15249 fi
d3f5afc4 15250else
228cf97d 15251 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
2429c060
PB
15252fi
15253
3a35eeb3 15254else
228cf97d 15255 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
2429c060
PB
15256fi
15257
15258
15259
15260
15261if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15262 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
15264$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15265 if test -x $with_build_time_tools/ld; then
15266 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15267 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
15269$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 15270 else
81ecdfbb
RW
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15272$as_echo "no" >&6; }
3a35eeb3 15273 fi
2429c060
PB
15274 elif test $build != $host && test $have_gcc_for_target = yes; then
15275 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
15276 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15277 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
15278 fi
15279fi
c6b750e1 15280if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15281 # Extract the first word of "ld", so it can be a program name with args.
15282set dummy ld; ac_word=$2
81ecdfbb
RW
15283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15285if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 15286 $as_echo_n "(cached) " >&6
2429c060 15287else
c6b750e1
DJ
15288 case $LD_FOR_TARGET in
15289 [\\/]* | ?:[\\/]*)
2429c060
PB
15290 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15291 ;;
2429c060 15292 *)
c6b750e1
DJ
15293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294for as_dir in $gcc_cv_tool_dirs
15295do
15296 IFS=$as_save_IFS
15297 test -z "$as_dir" && as_dir=.
81ecdfbb 15298 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15300 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15302 break 2
15303 fi
15304done
81ecdfbb
RW
15305 done
15306IFS=$as_save_IFS
c6b750e1 15307
2429c060
PB
15308 ;;
15309esac
15310fi
c6b750e1 15311LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 15312if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15314$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15315else
81ecdfbb
RW
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15317$as_echo "no" >&6; }
2429c060
PB
15318fi
15319
81ecdfbb 15320
2429c060
PB
15321fi
15322if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
15323
15324
15325if test -n "$LD_FOR_TARGET"; then
15326 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15327elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15328 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15329fi
15330
15331if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15332 for ncn_progname in ld; do
15333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15334set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15336$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15337if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15338 $as_echo_n "(cached) " >&6
9a819804
AO
15339else
15340 if test -n "$LD_FOR_TARGET"; then
15341 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15342else
15343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344for as_dir in $PATH
15345do
15346 IFS=$as_save_IFS
15347 test -z "$as_dir" && as_dir=.
81ecdfbb 15348 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15350 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15352 break 2
15353 fi
15354done
81ecdfbb
RW
15355 done
15356IFS=$as_save_IFS
9a819804
AO
15357
15358fi
15359fi
15360LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15361if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15363$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 15364else
81ecdfbb
RW
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366$as_echo "no" >&6; }
9a819804
AO
15367fi
15368
81ecdfbb 15369
9a819804
AO
15370 done
15371fi
15372
15373if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15374 for ncn_progname in ld; do
81ecdfbb
RW
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15376$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15377 if test -x $with_build_time_tools/${ncn_progname}; then
15378 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15380$as_echo "yes" >&6; }
2429c060
PB
15381 break
15382 else
81ecdfbb
RW
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15384$as_echo "no" >&6; }
2429c060
PB
15385 fi
15386 done
15387fi
15388
15389if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15390 for ncn_progname in ld; do
15391 if test -n "$ncn_target_tool_prefix"; then
15392 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15393set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15395$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15396if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15397 $as_echo_n "(cached) " >&6
2429c060
PB
15398else
15399 if test -n "$LD_FOR_TARGET"; then
15400 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15401else
c6b750e1
DJ
15402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15403for as_dir in $PATH
15404do
15405 IFS=$as_save_IFS
15406 test -z "$as_dir" && as_dir=.
81ecdfbb 15407 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15409 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15411 break 2
15412 fi
15413done
81ecdfbb
RW
15414 done
15415IFS=$as_save_IFS
c6b750e1 15416
2429c060
PB
15417fi
15418fi
c6b750e1 15419LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15420if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15422$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15423else
81ecdfbb
RW
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15425$as_echo "no" >&6; }
2429c060
PB
15426fi
15427
81ecdfbb 15428
2429c060
PB
15429 fi
15430 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15432set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15434$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15435if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15436 $as_echo_n "(cached) " >&6
2429c060
PB
15437else
15438 if test -n "$LD_FOR_TARGET"; then
15439 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15440else
c6b750e1
DJ
15441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15442for as_dir in $PATH
15443do
15444 IFS=$as_save_IFS
15445 test -z "$as_dir" && as_dir=.
81ecdfbb 15446 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15448 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15450 break 2
15451 fi
15452done
81ecdfbb
RW
15453 done
15454IFS=$as_save_IFS
c6b750e1 15455
2429c060
PB
15456fi
15457fi
c6b750e1 15458LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15459if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15461$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15462else
81ecdfbb
RW
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15464$as_echo "no" >&6; }
2429c060 15465fi
c6b750e1 15466
81ecdfbb 15467
2429c060
PB
15468 fi
15469 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15470 done
15471fi
c6b750e1 15472
2429c060
PB
15473if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15474 set dummy ld
15475 if test $build = $target ; then
15476 LD_FOR_TARGET="$2"
15477 else
15478 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15479 fi
d3f5afc4
MS
15480else
15481 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
15482fi
15483
3a35eeb3
PB
15484else
15485 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
15486fi
15487
15488
15489
15490
15491if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15492 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15494$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15495 if test -x $with_build_time_tools/lipo; then
15496 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15497 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15499$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 15500 else
81ecdfbb
RW
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15502$as_echo "no" >&6; }
3a35eeb3 15503 fi
2429c060
PB
15504 elif test $build != $host && test $have_gcc_for_target = yes; then
15505 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
15506 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15507 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
15508 fi
15509fi
9a819804
AO
15510if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15511 # Extract the first word of "lipo", so it can be a program name with args.
15512set dummy lipo; ac_word=$2
81ecdfbb
RW
15513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15514$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15515if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15516 $as_echo_n "(cached) " >&6
9a819804
AO
15517else
15518 case $LIPO_FOR_TARGET in
15519 [\\/]* | ?:[\\/]*)
15520 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15521 ;;
15522 *)
15523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15524for as_dir in $gcc_cv_tool_dirs
15525do
15526 IFS=$as_save_IFS
15527 test -z "$as_dir" && as_dir=.
81ecdfbb 15528 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15530 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15532 break 2
15533 fi
15534done
81ecdfbb
RW
15535 done
15536IFS=$as_save_IFS
9a819804
AO
15537
15538 ;;
15539esac
15540fi
15541LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 15542if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15544$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 15545else
81ecdfbb
RW
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15547$as_echo "no" >&6; }
9a819804
AO
15548fi
15549
81ecdfbb 15550
9a819804
AO
15551fi
15552if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15553
15554
15555if test -n "$LIPO_FOR_TARGET"; then
15556 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15557elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15558 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15559fi
15560
15561if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15562 for ncn_progname in lipo; do
15563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15564set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15567if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15568 $as_echo_n "(cached) " >&6
2429c060 15569else
9a819804
AO
15570 if test -n "$LIPO_FOR_TARGET"; then
15571 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15572else
15573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574for as_dir in $PATH
c6b750e1
DJ
15575do
15576 IFS=$as_save_IFS
15577 test -z "$as_dir" && as_dir=.
81ecdfbb 15578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15580 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15582 break 2
15583 fi
15584done
81ecdfbb
RW
15585 done
15586IFS=$as_save_IFS
c6b750e1 15587
2429c060 15588fi
9a819804
AO
15589fi
15590LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15591if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15593$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15594else
81ecdfbb
RW
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596$as_echo "no" >&6; }
2429c060
PB
15597fi
15598
81ecdfbb 15599
9a819804 15600 done
2429c060 15601fi
9a819804
AO
15602
15603if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15604 for ncn_progname in lipo; do
81ecdfbb
RW
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15606$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15607 if test -x $with_build_time_tools/${ncn_progname}; then
15608 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15610$as_echo "yes" >&6; }
2429c060
PB
15611 break
15612 else
81ecdfbb
RW
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15614$as_echo "no" >&6; }
2429c060
PB
15615 fi
15616 done
15617fi
15618
15619if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15620 for ncn_progname in lipo; do
15621 if test -n "$ncn_target_tool_prefix"; then
15622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15625$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15626if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15627 $as_echo_n "(cached) " >&6
2429c060
PB
15628else
15629 if test -n "$LIPO_FOR_TARGET"; then
15630 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15631else
c6b750e1
DJ
15632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633for as_dir in $PATH
15634do
15635 IFS=$as_save_IFS
15636 test -z "$as_dir" && as_dir=.
81ecdfbb 15637 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15639 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15641 break 2
15642 fi
15643done
81ecdfbb
RW
15644 done
15645IFS=$as_save_IFS
c6b750e1 15646
2429c060
PB
15647fi
15648fi
c6b750e1 15649LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15650if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15652$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15653else
81ecdfbb
RW
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655$as_echo "no" >&6; }
2429c060
PB
15656fi
15657
81ecdfbb 15658
2429c060
PB
15659 fi
15660 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15662set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15664$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15665if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15666 $as_echo_n "(cached) " >&6
2429c060
PB
15667else
15668 if test -n "$LIPO_FOR_TARGET"; then
15669 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15670else
c6b750e1
DJ
15671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672for as_dir in $PATH
15673do
15674 IFS=$as_save_IFS
15675 test -z "$as_dir" && as_dir=.
81ecdfbb 15676 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15678 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15680 break 2
15681 fi
15682done
81ecdfbb
RW
15683 done
15684IFS=$as_save_IFS
c6b750e1 15685
2429c060
PB
15686fi
15687fi
c6b750e1 15688LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15689if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15691$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15692else
81ecdfbb
RW
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15694$as_echo "no" >&6; }
2429c060 15695fi
c6b750e1 15696
81ecdfbb 15697
2429c060
PB
15698 fi
15699 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15700 done
15701fi
c6b750e1 15702
2429c060
PB
15703if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15704 set dummy lipo
15705 if test $build = $target ; then
15706 LIPO_FOR_TARGET="$2"
15707 else
15708 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15709 fi
d3f5afc4
MS
15710else
15711 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
15712fi
15713
3a35eeb3
PB
15714else
15715 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
15716fi
15717
15718
15719
15720
15721if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15722 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15724$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15725 if test -x $with_build_time_tools/nm; then
15726 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15727 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15729$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 15730 else
81ecdfbb
RW
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15732$as_echo "no" >&6; }
3a35eeb3 15733 fi
2429c060
PB
15734 elif test $build != $host && test $have_gcc_for_target = yes; then
15735 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
15736 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15737 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
15738 fi
15739fi
c6b750e1 15740if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15741 # Extract the first word of "nm", so it can be a program name with args.
15742set dummy nm; ac_word=$2
81ecdfbb
RW
15743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15745if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 15746 $as_echo_n "(cached) " >&6
2429c060 15747else
c6b750e1
DJ
15748 case $NM_FOR_TARGET in
15749 [\\/]* | ?:[\\/]*)
2429c060
PB
15750 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15751 ;;
2429c060 15752 *)
c6b750e1
DJ
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754for as_dir in $gcc_cv_tool_dirs
15755do
15756 IFS=$as_save_IFS
15757 test -z "$as_dir" && as_dir=.
81ecdfbb 15758 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15760 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15762 break 2
15763 fi
15764done
81ecdfbb
RW
15765 done
15766IFS=$as_save_IFS
c6b750e1 15767
2429c060
PB
15768 ;;
15769esac
15770fi
c6b750e1 15771NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 15772if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15774$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 15775else
81ecdfbb
RW
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777$as_echo "no" >&6; }
2429c060
PB
15778fi
15779
81ecdfbb 15780
2429c060
PB
15781fi
15782if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
15783
15784
15785if test -n "$NM_FOR_TARGET"; then
15786 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15787elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15788 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15789fi
15790
15791if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15792 for ncn_progname in nm; do
15793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15794set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15797if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15798 $as_echo_n "(cached) " >&6
9a819804
AO
15799else
15800 if test -n "$NM_FOR_TARGET"; then
15801 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15802else
15803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804for as_dir in $PATH
15805do
15806 IFS=$as_save_IFS
15807 test -z "$as_dir" && as_dir=.
81ecdfbb 15808 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15810 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15812 break 2
15813 fi
15814done
81ecdfbb
RW
15815 done
15816IFS=$as_save_IFS
9a819804
AO
15817
15818fi
15819fi
15820NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15821if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15823$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 15824else
81ecdfbb
RW
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826$as_echo "no" >&6; }
9a819804
AO
15827fi
15828
81ecdfbb 15829
9a819804
AO
15830 done
15831fi
15832
15833if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15834 for ncn_progname in nm; do
81ecdfbb
RW
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15836$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15837 if test -x $with_build_time_tools/${ncn_progname}; then
15838 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15840$as_echo "yes" >&6; }
2429c060
PB
15841 break
15842 else
81ecdfbb
RW
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15844$as_echo "no" >&6; }
2429c060
PB
15845 fi
15846 done
15847fi
15848
15849if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15850 for ncn_progname in nm; do
15851 if test -n "$ncn_target_tool_prefix"; then
15852 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 15853set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15855$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15856if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15857 $as_echo_n "(cached) " >&6
859789af 15858else
55db4b87
PB
15859 if test -n "$NM_FOR_TARGET"; then
15860 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15861else
c6b750e1
DJ
15862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863for as_dir in $PATH
15864do
15865 IFS=$as_save_IFS
15866 test -z "$as_dir" && as_dir=.
81ecdfbb 15867 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15869 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15871 break 2
15872 fi
15873done
81ecdfbb
RW
15874 done
15875IFS=$as_save_IFS
c6b750e1 15876
859789af
AC
15877fi
15878fi
c6b750e1 15879NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 15880if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15882$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15883else
81ecdfbb
RW
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885$as_echo "no" >&6; }
859789af
AC
15886fi
15887
81ecdfbb 15888
2429c060
PB
15889 fi
15890 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 15892set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15894$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15895if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15896 $as_echo_n "(cached) " >&6
859789af 15897else
05cbd757
PB
15898 if test -n "$NM_FOR_TARGET"; then
15899 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15900else
c6b750e1
DJ
15901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15902for as_dir in $PATH
15903do
15904 IFS=$as_save_IFS
15905 test -z "$as_dir" && as_dir=.
81ecdfbb 15906 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15908 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15910 break 2
15911 fi
15912done
81ecdfbb
RW
15913 done
15914IFS=$as_save_IFS
c6b750e1 15915
859789af
AC
15916fi
15917fi
c6b750e1 15918NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 15919if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15921$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15922else
81ecdfbb
RW
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15924$as_echo "no" >&6; }
859789af 15925fi
c6b750e1 15926
81ecdfbb 15927
2429c060
PB
15928 fi
15929 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15930 done
15931fi
c6b750e1 15932
05cbd757
PB
15933if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15934 set dummy nm
15935 if test $build = $target ; then
15936 NM_FOR_TARGET="$2"
859789af 15937 else
05cbd757 15938 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 15939 fi
d3f5afc4
MS
15940else
15941 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
15942fi
15943
3a35eeb3
PB
15944else
15945 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
15946fi
15947
15948
15949
15950
6b91c541
AP
15951if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15952 if test -n "$with_build_time_tools"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15954$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15955 if test -x $with_build_time_tools/objcopy; then
15956 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15957 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15959$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15960 else
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15962$as_echo "no" >&6; }
15963 fi
15964 elif test $build != $host && test $have_gcc_for_target = yes; then
15965 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15966 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15967 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15968 fi
15969fi
15970if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15971 # Extract the first word of "objcopy", so it can be a program name with args.
15972set dummy objcopy; ac_word=$2
15973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15974$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15975if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
15976 $as_echo_n "(cached) " >&6
15977else
15978 case $OBJCOPY_FOR_TARGET in
15979 [\\/]* | ?:[\\/]*)
15980 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15981 ;;
15982 *)
15983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15984for as_dir in $gcc_cv_tool_dirs
15985do
15986 IFS=$as_save_IFS
15987 test -z "$as_dir" && as_dir=.
15988 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
15990 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15992 break 2
15993 fi
15994done
15995 done
15996IFS=$as_save_IFS
15997
15998 ;;
15999esac
16000fi
16001OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16002if test -n "$OBJCOPY_FOR_TARGET"; then
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16004$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16005else
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16007$as_echo "no" >&6; }
16008fi
16009
16010
16011fi
16012if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16013
16014
16015if test -n "$OBJCOPY_FOR_TARGET"; then
16016 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16017elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16018 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16019fi
16020
16021if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16022 for ncn_progname in objcopy; do
16023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16024set dummy ${ncn_progname}; ac_word=$2
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16026$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16027if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16028 $as_echo_n "(cached) " >&6
16029else
16030 if test -n "$OBJCOPY_FOR_TARGET"; then
16031 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16032else
16033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034for as_dir in $PATH
16035do
16036 IFS=$as_save_IFS
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16040 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16042 break 2
16043 fi
16044done
16045 done
16046IFS=$as_save_IFS
16047
16048fi
16049fi
16050OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16051if test -n "$OBJCOPY_FOR_TARGET"; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16053$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16054else
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056$as_echo "no" >&6; }
16057fi
16058
16059
16060 done
16061fi
16062
16063if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16064 for ncn_progname in objcopy; do
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16066$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16067 if test -x $with_build_time_tools/${ncn_progname}; then
16068 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16070$as_echo "yes" >&6; }
16071 break
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074$as_echo "no" >&6; }
16075 fi
16076 done
16077fi
16078
16079if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16080 for ncn_progname in objcopy; do
16081 if test -n "$ncn_target_tool_prefix"; then
16082 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16083set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16085$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16086if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16087 $as_echo_n "(cached) " >&6
16088else
16089 if test -n "$OBJCOPY_FOR_TARGET"; then
16090 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16091else
16092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16093for as_dir in $PATH
16094do
16095 IFS=$as_save_IFS
16096 test -z "$as_dir" && as_dir=.
16097 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16099 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16101 break 2
16102 fi
16103done
16104 done
16105IFS=$as_save_IFS
16106
16107fi
16108fi
16109OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16110if test -n "$OBJCOPY_FOR_TARGET"; then
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16112$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16113else
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115$as_echo "no" >&6; }
16116fi
16117
16118
16119 fi
16120 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16122set dummy ${ncn_progname}; ac_word=$2
16123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16124$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16125if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
16126 $as_echo_n "(cached) " >&6
16127else
16128 if test -n "$OBJCOPY_FOR_TARGET"; then
16129 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16130else
16131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16132for as_dir in $PATH
16133do
16134 IFS=$as_save_IFS
16135 test -z "$as_dir" && as_dir=.
16136 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
16138 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16140 break 2
16141 fi
16142done
16143 done
16144IFS=$as_save_IFS
16145
16146fi
16147fi
16148OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16149if test -n "$OBJCOPY_FOR_TARGET"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
16151$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16152else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16154$as_echo "no" >&6; }
16155fi
16156
16157
16158 fi
16159 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16160 done
16161fi
16162
16163if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16164 set dummy objcopy
16165 if test $build = $target ; then
16166 OBJCOPY_FOR_TARGET="$2"
16167 else
16168 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16169 fi
16170else
16171 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16172fi
16173
16174else
16175 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16176fi
16177
16178
16179
16180
2429c060
PB
16181if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16182 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
16184$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16185 if test -x $with_build_time_tools/objdump; then
16186 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16187 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16189$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 16190 else
81ecdfbb
RW
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192$as_echo "no" >&6; }
3a35eeb3 16193 fi
2429c060
PB
16194 elif test $build != $host && test $have_gcc_for_target = yes; then
16195 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
16196 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16197 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
16198 fi
16199fi
c6b750e1 16200if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16201 # Extract the first word of "objdump", so it can be a program name with args.
16202set dummy objdump; ac_word=$2
81ecdfbb
RW
16203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16204$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16205if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16206 $as_echo_n "(cached) " >&6
2429c060 16207else
c6b750e1
DJ
16208 case $OBJDUMP_FOR_TARGET in
16209 [\\/]* | ?:[\\/]*)
2429c060
PB
16210 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16211 ;;
2429c060 16212 *)
c6b750e1
DJ
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214for as_dir in $gcc_cv_tool_dirs
16215do
16216 IFS=$as_save_IFS
16217 test -z "$as_dir" && as_dir=.
81ecdfbb 16218 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16220 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16222 break 2
16223 fi
16224done
81ecdfbb
RW
16225 done
16226IFS=$as_save_IFS
c6b750e1 16227
2429c060
PB
16228 ;;
16229esac
16230fi
c6b750e1 16231OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 16232if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16234$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 16235else
81ecdfbb
RW
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16237$as_echo "no" >&6; }
2429c060
PB
16238fi
16239
81ecdfbb 16240
2429c060
PB
16241fi
16242if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
16243
16244
16245if test -n "$OBJDUMP_FOR_TARGET"; then
16246 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16247elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16248 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16249fi
16250
16251if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16252 for ncn_progname in objdump; do
16253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16254set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16257if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16258 $as_echo_n "(cached) " >&6
9a819804
AO
16259else
16260 if test -n "$OBJDUMP_FOR_TARGET"; then
16261 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16262else
16263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264for as_dir in $PATH
16265do
16266 IFS=$as_save_IFS
16267 test -z "$as_dir" && as_dir=.
81ecdfbb 16268 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16270 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16272 break 2
16273 fi
16274done
81ecdfbb
RW
16275 done
16276IFS=$as_save_IFS
9a819804
AO
16277
16278fi
16279fi
16280OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16281if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16283$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 16284else
81ecdfbb
RW
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286$as_echo "no" >&6; }
9a819804
AO
16287fi
16288
81ecdfbb 16289
9a819804
AO
16290 done
16291fi
16292
16293if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16294 for ncn_progname in objdump; do
81ecdfbb
RW
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16296$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16297 if test -x $with_build_time_tools/${ncn_progname}; then
16298 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16300$as_echo "yes" >&6; }
2429c060
PB
16301 break
16302 else
81ecdfbb
RW
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16304$as_echo "no" >&6; }
2429c060
PB
16305 fi
16306 done
16307fi
16308
16309if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16310 for ncn_progname in objdump; do
16311 if test -n "$ncn_target_tool_prefix"; then
16312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 16313set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16315$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16316if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16317 $as_echo_n "(cached) " >&6
5ae72758
DJ
16318else
16319 if test -n "$OBJDUMP_FOR_TARGET"; then
16320 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16321else
c6b750e1
DJ
16322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16323for as_dir in $PATH
16324do
16325 IFS=$as_save_IFS
16326 test -z "$as_dir" && as_dir=.
81ecdfbb 16327 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16329 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16331 break 2
16332 fi
16333done
81ecdfbb
RW
16334 done
16335IFS=$as_save_IFS
c6b750e1 16336
5ae72758
DJ
16337fi
16338fi
c6b750e1 16339OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 16340if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16342$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 16343else
81ecdfbb
RW
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16345$as_echo "no" >&6; }
5ae72758
DJ
16346fi
16347
81ecdfbb 16348
2429c060
PB
16349 fi
16350 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 16352set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16354$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16355if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 16356 $as_echo_n "(cached) " >&6
5ae72758
DJ
16357else
16358 if test -n "$OBJDUMP_FOR_TARGET"; then
16359 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16360else
c6b750e1
DJ
16361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16362for as_dir in $PATH
16363do
16364 IFS=$as_save_IFS
16365 test -z "$as_dir" && as_dir=.
81ecdfbb 16366 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16368 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16370 break 2
16371 fi
16372done
81ecdfbb
RW
16373 done
16374IFS=$as_save_IFS
c6b750e1 16375
5ae72758
DJ
16376fi
16377fi
c6b750e1 16378OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 16379if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
16381$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 16382else
81ecdfbb
RW
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384$as_echo "no" >&6; }
5ae72758 16385fi
c6b750e1 16386
81ecdfbb 16387
2429c060
PB
16388 fi
16389 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16390 done
16391fi
c6b750e1 16392
5ae72758
DJ
16393if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16394 set dummy objdump
16395 if test $build = $target ; then
16396 OBJDUMP_FOR_TARGET="$2"
16397 else
16398 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16399 fi
d3f5afc4
MS
16400else
16401 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
16402fi
16403
3a35eeb3
PB
16404else
16405 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
16406fi
16407
16408
16409
16410
228cf97d
AM
16411if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16412 if test -n "$with_build_time_tools"; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16414$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16415 if test -x $with_build_time_tools/otool; then
16416 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16417 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16419$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16420 else
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422$as_echo "no" >&6; }
16423 fi
16424 elif test $build != $host && test $have_gcc_for_target = yes; then
16425 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16426 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16427 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16428 fi
16429fi
16430if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16431 # Extract the first word of "otool", so it can be a program name with args.
16432set dummy otool; ac_word=$2
16433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16434$as_echo_n "checking for $ac_word... " >&6; }
16435if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16436 $as_echo_n "(cached) " >&6
16437else
16438 case $OTOOL_FOR_TARGET in
16439 [\\/]* | ?:[\\/]*)
16440 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16441 ;;
16442 *)
16443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16444for as_dir in $gcc_cv_tool_dirs
16445do
16446 IFS=$as_save_IFS
16447 test -z "$as_dir" && as_dir=.
16448 for ac_exec_ext in '' $ac_executable_extensions; do
16449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16450 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16452 break 2
16453 fi
16454done
16455 done
16456IFS=$as_save_IFS
16457
16458 ;;
16459esac
16460fi
16461OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16462if test -n "$OTOOL_FOR_TARGET"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16464$as_echo "$OTOOL_FOR_TARGET" >&6; }
16465else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467$as_echo "no" >&6; }
16468fi
16469
16470
16471fi
16472if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16473
16474
16475if test -n "$OTOOL_FOR_TARGET"; then
16476 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16477elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16478 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16479fi
16480
16481if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16482 for ncn_progname in otool; do
16483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16484set dummy ${ncn_progname}; ac_word=$2
16485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16486$as_echo_n "checking for $ac_word... " >&6; }
16487if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16488 $as_echo_n "(cached) " >&6
16489else
16490 if test -n "$OTOOL_FOR_TARGET"; then
16491 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16492else
16493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16494for as_dir in $PATH
16495do
16496 IFS=$as_save_IFS
16497 test -z "$as_dir" && as_dir=.
16498 for ac_exec_ext in '' $ac_executable_extensions; do
16499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16502 break 2
16503 fi
16504done
16505 done
16506IFS=$as_save_IFS
16507
16508fi
16509fi
16510OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16511if test -n "$OTOOL_FOR_TARGET"; then
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16513$as_echo "$OTOOL_FOR_TARGET" >&6; }
16514else
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516$as_echo "no" >&6; }
16517fi
16518
16519
16520 done
16521fi
16522
16523if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16524 for ncn_progname in otool; do
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16526$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16527 if test -x $with_build_time_tools/${ncn_progname}; then
16528 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530$as_echo "yes" >&6; }
16531 break
16532 else
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534$as_echo "no" >&6; }
16535 fi
16536 done
16537fi
16538
16539if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16540 for ncn_progname in otool; do
16541 if test -n "$ncn_target_tool_prefix"; then
16542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16543set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16545$as_echo_n "checking for $ac_word... " >&6; }
16546if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16547 $as_echo_n "(cached) " >&6
16548else
16549 if test -n "$OTOOL_FOR_TARGET"; then
16550 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16551else
16552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16553for as_dir in $PATH
16554do
16555 IFS=$as_save_IFS
16556 test -z "$as_dir" && as_dir=.
16557 for ac_exec_ext in '' $ac_executable_extensions; do
16558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16559 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16561 break 2
16562 fi
16563done
16564 done
16565IFS=$as_save_IFS
16566
16567fi
16568fi
16569OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16570if test -n "$OTOOL_FOR_TARGET"; then
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16572$as_echo "$OTOOL_FOR_TARGET" >&6; }
16573else
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16575$as_echo "no" >&6; }
16576fi
16577
16578
16579 fi
16580 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16582set dummy ${ncn_progname}; ac_word=$2
16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16584$as_echo_n "checking for $ac_word... " >&6; }
16585if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587else
16588 if test -n "$OTOOL_FOR_TARGET"; then
16589 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16590else
16591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592for as_dir in $PATH
16593do
16594 IFS=$as_save_IFS
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16600 break 2
16601 fi
16602done
16603 done
16604IFS=$as_save_IFS
16605
16606fi
16607fi
16608OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16609if test -n "$OTOOL_FOR_TARGET"; then
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16611$as_echo "$OTOOL_FOR_TARGET" >&6; }
16612else
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16614$as_echo "no" >&6; }
16615fi
16616
16617
16618 fi
16619 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16620 done
16621fi
16622
16623if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16624 set dummy otool
16625 if test $build = $target ; then
16626 OTOOL_FOR_TARGET="$2"
16627 else
16628 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16629 fi
16630else
16631 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16632fi
16633
16634else
16635 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16636fi
16637
16638
16639
16640
2429c060
PB
16641if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16642 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16644$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16645 if test -x $with_build_time_tools/ranlib; then
16646 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16647 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16649$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 16650 else
81ecdfbb
RW
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16652$as_echo "no" >&6; }
3a35eeb3 16653 fi
2429c060
PB
16654 elif test $build != $host && test $have_gcc_for_target = yes; then
16655 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
16656 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16657 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
16658 fi
16659fi
c6b750e1 16660if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16661 # Extract the first word of "ranlib", so it can be a program name with args.
16662set dummy ranlib; ac_word=$2
81ecdfbb
RW
16663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16664$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16665if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16666 $as_echo_n "(cached) " >&6
2429c060 16667else
c6b750e1
DJ
16668 case $RANLIB_FOR_TARGET in
16669 [\\/]* | ?:[\\/]*)
2429c060
PB
16670 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16671 ;;
2429c060 16672 *)
c6b750e1
DJ
16673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16674for as_dir in $gcc_cv_tool_dirs
16675do
16676 IFS=$as_save_IFS
16677 test -z "$as_dir" && as_dir=.
81ecdfbb 16678 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16680 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16682 break 2
16683 fi
16684done
81ecdfbb
RW
16685 done
16686IFS=$as_save_IFS
c6b750e1 16687
2429c060
PB
16688 ;;
16689esac
16690fi
c6b750e1 16691RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 16692if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16694$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 16695else
81ecdfbb
RW
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697$as_echo "no" >&6; }
2429c060
PB
16698fi
16699
81ecdfbb 16700
2429c060
PB
16701fi
16702if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
16703
16704
16705if test -n "$RANLIB_FOR_TARGET"; then
16706 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16707elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16708 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16709fi
16710
16711if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16712 for ncn_progname in ranlib; do
16713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16714set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16716$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16717if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16718 $as_echo_n "(cached) " >&6
9a819804
AO
16719else
16720 if test -n "$RANLIB_FOR_TARGET"; then
16721 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16722else
16723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724for as_dir in $PATH
16725do
16726 IFS=$as_save_IFS
16727 test -z "$as_dir" && as_dir=.
81ecdfbb 16728 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16730 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16732 break 2
16733 fi
16734done
81ecdfbb
RW
16735 done
16736IFS=$as_save_IFS
9a819804
AO
16737
16738fi
16739fi
16740RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16741if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16743$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 16744else
81ecdfbb
RW
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16746$as_echo "no" >&6; }
9a819804
AO
16747fi
16748
81ecdfbb 16749
9a819804
AO
16750 done
16751fi
16752
16753if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16754 for ncn_progname in ranlib; do
81ecdfbb
RW
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16756$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16757 if test -x $with_build_time_tools/${ncn_progname}; then
16758 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16760$as_echo "yes" >&6; }
2429c060
PB
16761 break
16762 else
81ecdfbb
RW
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764$as_echo "no" >&6; }
2429c060
PB
16765 fi
16766 done
16767fi
16768
16769if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16770 for ncn_progname in ranlib; do
16771 if test -n "$ncn_target_tool_prefix"; then
16772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 16773set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16775$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16776if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16777 $as_echo_n "(cached) " >&6
859789af 16778else
55db4b87
PB
16779 if test -n "$RANLIB_FOR_TARGET"; then
16780 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16781else
c6b750e1
DJ
16782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16783for as_dir in $PATH
16784do
16785 IFS=$as_save_IFS
16786 test -z "$as_dir" && as_dir=.
81ecdfbb 16787 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16789 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16791 break 2
16792 fi
16793done
81ecdfbb
RW
16794 done
16795IFS=$as_save_IFS
c6b750e1 16796
859789af
AC
16797fi
16798fi
c6b750e1 16799RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 16800if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16802$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16803else
81ecdfbb
RW
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805$as_echo "no" >&6; }
859789af
AC
16806fi
16807
81ecdfbb 16808
2429c060
PB
16809 fi
16810 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 16812set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16814$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16815if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16816 $as_echo_n "(cached) " >&6
859789af 16817else
05cbd757
PB
16818 if test -n "$RANLIB_FOR_TARGET"; then
16819 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16820else
c6b750e1
DJ
16821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16822for as_dir in $PATH
16823do
16824 IFS=$as_save_IFS
16825 test -z "$as_dir" && as_dir=.
81ecdfbb 16826 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16828 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16830 break 2
16831 fi
16832done
81ecdfbb
RW
16833 done
16834IFS=$as_save_IFS
c6b750e1 16835
859789af
AC
16836fi
16837fi
c6b750e1 16838RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 16839if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16841$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16842else
81ecdfbb
RW
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844$as_echo "no" >&6; }
859789af 16845fi
c6b750e1 16846
81ecdfbb 16847
2429c060
PB
16848 fi
16849 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16850 done
16851fi
c6b750e1 16852
2429c060
PB
16853if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16854 set dummy ranlib
16855 if test $build = $target ; then
16856 RANLIB_FOR_TARGET="$2"
16857 else
16858 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 16859 fi
d3f5afc4
MS
16860else
16861 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 16862fi
05cbd757 16863
3a35eeb3
PB
16864else
16865 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
16866fi
16867
2429c060
PB
16868
16869
16870
b121d7d4
DD
16871if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16872 if test -n "$with_build_time_tools"; then
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16874$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16875 if test -x $with_build_time_tools/readelf; then
16876 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16877 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16879$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16880 else
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16882$as_echo "no" >&6; }
16883 fi
16884 elif test $build != $host && test $have_gcc_for_target = yes; then
16885 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16886 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16887 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16888 fi
16889fi
16890if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16891 # Extract the first word of "readelf", so it can be a program name with args.
16892set dummy readelf; ac_word=$2
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16894$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16895if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16896 $as_echo_n "(cached) " >&6
16897else
16898 case $READELF_FOR_TARGET in
16899 [\\/]* | ?:[\\/]*)
16900 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16901 ;;
16902 *)
16903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16904for as_dir in $gcc_cv_tool_dirs
16905do
16906 IFS=$as_save_IFS
16907 test -z "$as_dir" && as_dir=.
16908 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16910 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16912 break 2
16913 fi
16914done
16915 done
16916IFS=$as_save_IFS
16917
16918 ;;
16919esac
16920fi
16921READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16922if test -n "$READELF_FOR_TARGET"; then
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16924$as_echo "$READELF_FOR_TARGET" >&6; }
16925else
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16927$as_echo "no" >&6; }
16928fi
16929
16930
16931fi
16932if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16933
16934
16935if test -n "$READELF_FOR_TARGET"; then
16936 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16937elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16938 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16939fi
16940
16941if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16942 for ncn_progname in readelf; do
16943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16944set dummy ${ncn_progname}; ac_word=$2
16945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16946$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16947if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16948 $as_echo_n "(cached) " >&6
16949else
16950 if test -n "$READELF_FOR_TARGET"; then
16951 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16952else
16953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954for as_dir in $PATH
16955do
16956 IFS=$as_save_IFS
16957 test -z "$as_dir" && as_dir=.
16958 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16960 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16962 break 2
16963 fi
16964done
16965 done
16966IFS=$as_save_IFS
16967
16968fi
16969fi
16970READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16971if test -n "$READELF_FOR_TARGET"; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16973$as_echo "$READELF_FOR_TARGET" >&6; }
16974else
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976$as_echo "no" >&6; }
16977fi
16978
16979
16980 done
16981fi
16982
16983if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16984 for ncn_progname in readelf; do
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16986$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16987 if test -x $with_build_time_tools/${ncn_progname}; then
16988 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16990$as_echo "yes" >&6; }
16991 break
16992 else
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16994$as_echo "no" >&6; }
16995 fi
16996 done
16997fi
16998
16999if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
17000 for ncn_progname in readelf; do
17001 if test -n "$ncn_target_tool_prefix"; then
17002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17003set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17005$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17006if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17007 $as_echo_n "(cached) " >&6
17008else
17009 if test -n "$READELF_FOR_TARGET"; then
17010 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17011else
17012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013for as_dir in $PATH
17014do
17015 IFS=$as_save_IFS
17016 test -z "$as_dir" && as_dir=.
17017 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17019 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17021 break 2
17022 fi
17023done
17024 done
17025IFS=$as_save_IFS
17026
17027fi
17028fi
17029READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17030if test -n "$READELF_FOR_TARGET"; then
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17032$as_echo "$READELF_FOR_TARGET" >&6; }
17033else
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035$as_echo "no" >&6; }
17036fi
17037
17038
17039 fi
17040 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17042set dummy ${ncn_progname}; ac_word=$2
17043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17044$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17045if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
17046 $as_echo_n "(cached) " >&6
17047else
17048 if test -n "$READELF_FOR_TARGET"; then
17049 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17050else
17051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052for as_dir in $PATH
17053do
17054 IFS=$as_save_IFS
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
17058 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17060 break 2
17061 fi
17062done
17063 done
17064IFS=$as_save_IFS
17065
17066fi
17067fi
17068READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17069if test -n "$READELF_FOR_TARGET"; then
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
17071$as_echo "$READELF_FOR_TARGET" >&6; }
17072else
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17074$as_echo "no" >&6; }
17075fi
17076
17077
17078 fi
17079 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17080 done
17081fi
17082
17083if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17084 set dummy readelf
17085 if test $build = $target ; then
17086 READELF_FOR_TARGET="$2"
17087 else
17088 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17089 fi
17090else
17091 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17092fi
17093
17094else
17095 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17096fi
17097
17098
17099
17100
2429c060
PB
17101if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17102 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
17104$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17105 if test -x $with_build_time_tools/strip; then
17106 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17107 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
17109$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 17110 else
81ecdfbb
RW
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17112$as_echo "no" >&6; }
3a35eeb3 17113 fi
2429c060
PB
17114 elif test $build != $host && test $have_gcc_for_target = yes; then
17115 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
17116 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17117 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
17118 fi
17119fi
c6b750e1 17120if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
17121 # Extract the first word of "strip", so it can be a program name with args.
17122set dummy strip; ac_word=$2
81ecdfbb
RW
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17124$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17125if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17126 $as_echo_n "(cached) " >&6
2429c060 17127else
c6b750e1
DJ
17128 case $STRIP_FOR_TARGET in
17129 [\\/]* | ?:[\\/]*)
2429c060
PB
17130 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17131 ;;
2429c060 17132 *)
c6b750e1
DJ
17133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17134for as_dir in $gcc_cv_tool_dirs
17135do
17136 IFS=$as_save_IFS
17137 test -z "$as_dir" && as_dir=.
81ecdfbb 17138 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17140 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17142 break 2
17143 fi
17144done
81ecdfbb
RW
17145 done
17146IFS=$as_save_IFS
c6b750e1 17147
2429c060
PB
17148 ;;
17149esac
17150fi
c6b750e1 17151STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 17152if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17154$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 17155else
81ecdfbb
RW
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17157$as_echo "no" >&6; }
2429c060
PB
17158fi
17159
81ecdfbb 17160
2429c060
PB
17161fi
17162if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
17163
17164
17165if test -n "$STRIP_FOR_TARGET"; then
17166 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17167elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17168 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17169fi
17170
17171if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17172 for ncn_progname in strip; do
17173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17174set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17176$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17177if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17178 $as_echo_n "(cached) " >&6
9a819804
AO
17179else
17180 if test -n "$STRIP_FOR_TARGET"; then
17181 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17182else
17183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17184for as_dir in $PATH
17185do
17186 IFS=$as_save_IFS
17187 test -z "$as_dir" && as_dir=.
81ecdfbb 17188 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17190 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 17191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17192 break 2
17193 fi
17194done
81ecdfbb
RW
17195 done
17196IFS=$as_save_IFS
9a819804
AO
17197
17198fi
17199fi
17200STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17201if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17203$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 17204else
81ecdfbb
RW
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206$as_echo "no" >&6; }
9a819804
AO
17207fi
17208
81ecdfbb 17209
9a819804
AO
17210 done
17211fi
17212
17213if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17214 for ncn_progname in strip; do
81ecdfbb
RW
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17216$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17217 if test -x $with_build_time_tools/${ncn_progname}; then
17218 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17220$as_echo "yes" >&6; }
2429c060
PB
17221 break
17222 else
81ecdfbb
RW
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224$as_echo "no" >&6; }
2429c060
PB
17225 fi
17226 done
17227fi
17228
17229if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17230 for ncn_progname in strip; do
17231 if test -n "$ncn_target_tool_prefix"; then
17232 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 17233set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17235$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17236if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17237 $as_echo_n "(cached) " >&6
7e0f7140
GK
17238else
17239 if test -n "$STRIP_FOR_TARGET"; then
17240 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
17241else
17242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17243for as_dir in $PATH
17244do
17245 IFS=$as_save_IFS
17246 test -z "$as_dir" && as_dir=.
81ecdfbb 17247 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17249 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17251 break 2
17252 fi
17253done
81ecdfbb
RW
17254 done
17255IFS=$as_save_IFS
c6b750e1 17256
7e0f7140
GK
17257fi
17258fi
c6b750e1 17259STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 17260if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17262$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 17263else
81ecdfbb
RW
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265$as_echo "no" >&6; }
7e0f7140
GK
17266fi
17267
81ecdfbb 17268
2429c060
PB
17269 fi
17270 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 17272set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17274$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17275if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 17276 $as_echo_n "(cached) " >&6
7e0f7140
GK
17277else
17278 if test -n "$STRIP_FOR_TARGET"; then
17279 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17280else
c6b750e1
DJ
17281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282for as_dir in $PATH
17283do
17284 IFS=$as_save_IFS
17285 test -z "$as_dir" && as_dir=.
81ecdfbb 17286 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17288 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 17289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17290 break 2
17291 fi
17292done
81ecdfbb
RW
17293 done
17294IFS=$as_save_IFS
c6b750e1 17295
7e0f7140
GK
17296fi
17297fi
c6b750e1 17298STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 17299if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
17301$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 17302else
81ecdfbb
RW
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17304$as_echo "no" >&6; }
7e0f7140 17305fi
c6b750e1 17306
81ecdfbb 17307
2429c060
PB
17308 fi
17309 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17310 done
17311fi
c6b750e1 17312
7e0f7140
GK
17313if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17314 set dummy strip
17315 if test $build = $target ; then
17316 STRIP_FOR_TARGET="$2"
17317 else
17318 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17319 fi
d3f5afc4
MS
17320else
17321 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
17322fi
17323
3a35eeb3
PB
17324else
17325 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
17326fi
17327
17328
17329
17330
17331if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17332 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
17334$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17335 if test -x $with_build_time_tools/windres; then
17336 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17337 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17339$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 17340 else
81ecdfbb
RW
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342$as_echo "no" >&6; }
3a35eeb3 17343 fi
2429c060
PB
17344 elif test $build != $host && test $have_gcc_for_target = yes; then
17345 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
17346 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17347 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
17348 fi
17349fi
c6b750e1 17350if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
17351 # Extract the first word of "windres", so it can be a program name with args.
17352set dummy windres; ac_word=$2
81ecdfbb
RW
17353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17354$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17355if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17356 $as_echo_n "(cached) " >&6
2429c060 17357else
c6b750e1
DJ
17358 case $WINDRES_FOR_TARGET in
17359 [\\/]* | ?:[\\/]*)
2429c060
PB
17360 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17361 ;;
2429c060 17362 *)
c6b750e1
DJ
17363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17364for as_dir in $gcc_cv_tool_dirs
17365do
17366 IFS=$as_save_IFS
17367 test -z "$as_dir" && as_dir=.
81ecdfbb 17368 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17370 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17372 break 2
17373 fi
17374done
81ecdfbb
RW
17375 done
17376IFS=$as_save_IFS
c6b750e1 17377
2429c060
PB
17378 ;;
17379esac
17380fi
c6b750e1 17381WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 17382if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17384$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 17385else
81ecdfbb
RW
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17387$as_echo "no" >&6; }
2429c060
PB
17388fi
17389
81ecdfbb 17390
2429c060
PB
17391fi
17392if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
17393
17394
17395if test -n "$WINDRES_FOR_TARGET"; then
17396 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17397elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17398 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17399fi
17400
17401if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17402 for ncn_progname in windres; do
17403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17404set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17406$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17407if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17408 $as_echo_n "(cached) " >&6
9a819804
AO
17409else
17410 if test -n "$WINDRES_FOR_TARGET"; then
17411 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17412else
17413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17414for as_dir in $PATH
17415do
17416 IFS=$as_save_IFS
17417 test -z "$as_dir" && as_dir=.
81ecdfbb 17418 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17420 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17422 break 2
17423 fi
17424done
81ecdfbb
RW
17425 done
17426IFS=$as_save_IFS
9a819804
AO
17427
17428fi
17429fi
17430WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17431if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17433$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 17434else
81ecdfbb
RW
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436$as_echo "no" >&6; }
9a819804
AO
17437fi
17438
81ecdfbb 17439
9a819804
AO
17440 done
17441fi
17442
17443if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17444 for ncn_progname in windres; do
81ecdfbb
RW
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17446$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17447 if test -x $with_build_time_tools/${ncn_progname}; then
17448 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17450$as_echo "yes" >&6; }
2429c060
PB
17451 break
17452 else
81ecdfbb
RW
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17454$as_echo "no" >&6; }
2429c060
PB
17455 fi
17456 done
17457fi
17458
17459if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17460 for ncn_progname in windres; do
17461 if test -n "$ncn_target_tool_prefix"; then
17462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 17463set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17465$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17466if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17467 $as_echo_n "(cached) " >&6
859789af 17468else
55db4b87
PB
17469 if test -n "$WINDRES_FOR_TARGET"; then
17470 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17471else
c6b750e1
DJ
17472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17473for as_dir in $PATH
17474do
17475 IFS=$as_save_IFS
17476 test -z "$as_dir" && as_dir=.
81ecdfbb 17477 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17479 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17481 break 2
17482 fi
17483done
81ecdfbb
RW
17484 done
17485IFS=$as_save_IFS
c6b750e1 17486
859789af
AC
17487fi
17488fi
c6b750e1 17489WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 17490if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17492$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17493else
81ecdfbb
RW
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495$as_echo "no" >&6; }
859789af
AC
17496fi
17497
81ecdfbb 17498
2429c060
PB
17499 fi
17500 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 17502set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17504$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17505if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17506 $as_echo_n "(cached) " >&6
859789af 17507else
05cbd757
PB
17508 if test -n "$WINDRES_FOR_TARGET"; then
17509 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17510else
c6b750e1
DJ
17511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512for as_dir in $PATH
17513do
17514 IFS=$as_save_IFS
17515 test -z "$as_dir" && as_dir=.
81ecdfbb 17516 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17518 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17520 break 2
17521 fi
17522done
81ecdfbb
RW
17523 done
17524IFS=$as_save_IFS
c6b750e1 17525
859789af
AC
17526fi
17527fi
c6b750e1 17528WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 17529if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17531$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17532else
81ecdfbb
RW
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17534$as_echo "no" >&6; }
859789af 17535fi
c6b750e1 17536
81ecdfbb 17537
2429c060
PB
17538 fi
17539 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17540 done
17541fi
c6b750e1 17542
05cbd757
PB
17543if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17544 set dummy windres
17545 if test $build = $target ; then
17546 WINDRES_FOR_TARGET="$2"
859789af 17547 else
05cbd757 17548 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 17549 fi
d3f5afc4
MS
17550else
17551 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
17552fi
17553
3a35eeb3
PB
17554else
17555 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
17556fi
17557
852e5f18 17558
0c24b341
NC
17559
17560
17561if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17562 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17564$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
17565 if test -x $with_build_time_tools/windmc; then
17566 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17567 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17569$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 17570 else
81ecdfbb
RW
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17572$as_echo "no" >&6; }
0c24b341
NC
17573 fi
17574 elif test $build != $host && test $have_gcc_for_target = yes; then
17575 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17576 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17577 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17578 fi
17579fi
17580if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17581 # Extract the first word of "windmc", so it can be a program name with args.
17582set dummy windmc; ac_word=$2
81ecdfbb
RW
17583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17584$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17585if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17586 $as_echo_n "(cached) " >&6
0c24b341
NC
17587else
17588 case $WINDMC_FOR_TARGET in
17589 [\\/]* | ?:[\\/]*)
17590 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17591 ;;
17592 *)
17593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594for as_dir in $gcc_cv_tool_dirs
17595do
17596 IFS=$as_save_IFS
17597 test -z "$as_dir" && as_dir=.
81ecdfbb 17598 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17600 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17602 break 2
17603 fi
17604done
81ecdfbb
RW
17605 done
17606IFS=$as_save_IFS
0c24b341
NC
17607
17608 ;;
17609esac
17610fi
17611WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 17612if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17614$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17615else
81ecdfbb
RW
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617$as_echo "no" >&6; }
0c24b341
NC
17618fi
17619
81ecdfbb 17620
0c24b341
NC
17621fi
17622if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17623
17624
17625if test -n "$WINDMC_FOR_TARGET"; then
17626 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17627elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17628 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17629fi
17630
17631if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17632 for ncn_progname in windmc; do
17633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17634set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17636$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17637if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17638 $as_echo_n "(cached) " >&6
0c24b341
NC
17639else
17640 if test -n "$WINDMC_FOR_TARGET"; then
17641 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17642else
17643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17644for as_dir in $PATH
17645do
17646 IFS=$as_save_IFS
17647 test -z "$as_dir" && as_dir=.
81ecdfbb 17648 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17650 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17652 break 2
17653 fi
17654done
81ecdfbb
RW
17655 done
17656IFS=$as_save_IFS
0c24b341
NC
17657
17658fi
17659fi
17660WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17661if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17663$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17664else
81ecdfbb
RW
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666$as_echo "no" >&6; }
0c24b341
NC
17667fi
17668
81ecdfbb 17669
0c24b341
NC
17670 done
17671fi
17672
17673if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17674 for ncn_progname in windmc; do
81ecdfbb
RW
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17676$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
17677 if test -x $with_build_time_tools/${ncn_progname}; then
17678 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17680$as_echo "yes" >&6; }
0c24b341
NC
17681 break
17682 else
81ecdfbb
RW
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17684$as_echo "no" >&6; }
0c24b341
NC
17685 fi
17686 done
17687fi
17688
17689if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17690 for ncn_progname in windmc; do
17691 if test -n "$ncn_target_tool_prefix"; then
17692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17693set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17695$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17696if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17697 $as_echo_n "(cached) " >&6
0c24b341
NC
17698else
17699 if test -n "$WINDMC_FOR_TARGET"; then
17700 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17701else
17702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17703for as_dir in $PATH
17704do
17705 IFS=$as_save_IFS
17706 test -z "$as_dir" && as_dir=.
81ecdfbb 17707 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17709 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17711 break 2
17712 fi
17713done
81ecdfbb
RW
17714 done
17715IFS=$as_save_IFS
0c24b341
NC
17716
17717fi
17718fi
17719WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17720if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17722$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17723else
81ecdfbb
RW
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17725$as_echo "no" >&6; }
0c24b341
NC
17726fi
17727
81ecdfbb 17728
0c24b341
NC
17729 fi
17730 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17732set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17734$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17735if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17736 $as_echo_n "(cached) " >&6
0c24b341
NC
17737else
17738 if test -n "$WINDMC_FOR_TARGET"; then
17739 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17740else
17741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742for as_dir in $PATH
17743do
17744 IFS=$as_save_IFS
17745 test -z "$as_dir" && as_dir=.
81ecdfbb 17746 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17748 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17750 break 2
17751 fi
17752done
81ecdfbb
RW
17753 done
17754IFS=$as_save_IFS
0c24b341
NC
17755
17756fi
17757fi
17758WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17759if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17761$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17762else
81ecdfbb
RW
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17764$as_echo "no" >&6; }
0c24b341
NC
17765fi
17766
81ecdfbb 17767
0c24b341
NC
17768 fi
17769 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17770 done
17771fi
17772
17773if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17774 set dummy windmc
17775 if test $build = $target ; then
17776 WINDMC_FOR_TARGET="$2"
17777 else
17778 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17779 fi
17780else
17781 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17782fi
17783
17784else
17785 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17786fi
17787
17788
be01d343
PB
17789RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17790
81ecdfbb
RW
17791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17792$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 17793if test "x${build}" != "x${host}" ; then
2429c060
PB
17794 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17795 # We already found the complete path
b8025f34 17796 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17798$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17799 else
17800 # Canadian cross, just use what we found
81ecdfbb
RW
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17802$as_echo "pre-installed" >&6; }
2429c060 17803 fi
be01d343
PB
17804else
17805 ok=yes
17806 case " ${configdirs} " in
17807 *" binutils "*) ;;
17808 *) ok=no ;;
17809 esac
c6b750e1 17810
be01d343
PB
17811 if test $ok = yes; then
17812 # An in-tree tool is available and we can use it
17813 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17815$as_echo "just compiled" >&6; }
2429c060
PB
17816 elif 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; }
be01d343
PB
17821 elif test "x$target" = "x$host"; then
17822 # We can use an host tool
17823 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17825$as_echo "host tool" >&6; }
be01d343
PB
17826 else
17827 # We need a cross tool
81ecdfbb
RW
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17829$as_echo "pre-installed" >&6; }
be01d343
PB
17830 fi
17831fi
4b900473 17832
81ecdfbb
RW
17833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17834$as_echo_n "checking where to find the target as... " >&6; }
be01d343 17835if test "x${build}" != "x${host}" ; then
2429c060
PB
17836 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17837 # We already found the complete path
b8025f34 17838 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17840$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17841 else
17842 # Canadian cross, just use what we found
81ecdfbb
RW
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17844$as_echo "pre-installed" >&6; }
2429c060 17845 fi
be01d343
PB
17846else
17847 ok=yes
17848 case " ${configdirs} " in
17849 *" gas "*) ;;
17850 *) ok=no ;;
17851 esac
c6b750e1 17852
be01d343
PB
17853 if test $ok = yes; then
17854 # An in-tree tool is available and we can use it
17855 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17857$as_echo "just compiled" >&6; }
2429c060
PB
17858 elif 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; }
be01d343
PB
17863 elif test "x$target" = "x$host"; then
17864 # We can use an host tool
17865 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17867$as_echo "host tool" >&6; }
be01d343
PB
17868 else
17869 # We need a cross tool
81ecdfbb
RW
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17871$as_echo "pre-installed" >&6; }
be01d343
PB
17872 fi
17873fi
4b900473 17874
81ecdfbb
RW
17875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17876$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 17877if test "x${build}" != "x${host}" ; then
2429c060
PB
17878 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17879 # We already found the complete path
b8025f34 17880 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17882$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17883 else
17884 # Canadian cross, just use what we found
81ecdfbb
RW
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886$as_echo "pre-installed" >&6; }
2429c060 17887 fi
be01d343
PB
17888else
17889 ok=yes
17890 case " ${configdirs} " in
17891 *" gcc "*) ;;
17892 *) ok=no ;;
17893 esac
c6b750e1 17894
be01d343
PB
17895 if test $ok = yes; then
17896 # An in-tree tool is available and we can use it
17897 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17899$as_echo "just compiled" >&6; }
2429c060
PB
17900 elif 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; }
be01d343
PB
17905 elif test "x$target" = "x$host"; then
17906 # We can use an host tool
17907 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17909$as_echo "host tool" >&6; }
be01d343
PB
17910 else
17911 # We need a cross tool
81ecdfbb
RW
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17913$as_echo "pre-installed" >&6; }
be01d343
PB
17914 fi
17915fi
4b900473 17916
81ecdfbb
RW
17917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17918$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 17919if test "x${build}" != "x${host}" ; then
2429c060
PB
17920 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17921 # We already found the complete path
b8025f34 17922 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17924$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17925 else
17926 # Canadian cross, just use what we found
81ecdfbb
RW
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928$as_echo "pre-installed" >&6; }
2429c060 17929 fi
be01d343
PB
17930else
17931 ok=yes
17932 case " ${configdirs} " in
17933 *" gcc "*) ;;
17934 *) ok=no ;;
17935 esac
17936 case ,${enable_languages}, in
17937 *,c++,*) ;;
17938 *) ok=no ;;
17939 esac
17940 if test $ok = yes; then
17941 # An in-tree tool is available and we can use it
95e43135 17942 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
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17944$as_echo "just compiled" >&6; }
2429c060
PB
17945 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17946 # We already found the complete path
b8025f34 17947 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17949$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17950 elif test "x$target" = "x$host"; then
17951 # We can use an host tool
17952 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17954$as_echo "host tool" >&6; }
be01d343
PB
17955 else
17956 # We need a cross tool
81ecdfbb
RW
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17958$as_echo "pre-installed" >&6; }
be01d343
PB
17959 fi
17960fi
4b900473 17961
81ecdfbb
RW
17962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17963$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 17964if test "x${build}" != "x${host}" ; then
2429c060
PB
17965 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17966 # We already found the complete path
b8025f34 17967 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17969$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17970 else
17971 # Canadian cross, just use what we found
81ecdfbb
RW
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17973$as_echo "pre-installed" >&6; }
2429c060 17974 fi
be01d343
PB
17975else
17976 ok=yes
17977 case " ${configdirs} " in
17978 *" gcc "*) ;;
17979 *) ok=no ;;
17980 esac
17981 case ,${enable_languages}, in
17982 *,c++,*) ;;
17983 *) ok=no ;;
17984 esac
17985 if test $ok = yes; then
17986 # An in-tree tool is available and we can use it
95e43135 17987 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
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17989$as_echo "just compiled" >&6; }
2429c060
PB
17990 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17991 # We already found the complete path
b8025f34 17992 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17994$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17995 elif test "x$target" = "x$host"; then
17996 # We can use an host tool
17997 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17999$as_echo "host tool" >&6; }
be01d343
PB
18000 else
18001 # We need a cross tool
81ecdfbb
RW
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18003$as_echo "pre-installed" >&6; }
be01d343
PB
18004 fi
18005fi
4b900473 18006
81ecdfbb
RW
18007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
18008$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 18009if test "x${build}" != "x${host}" ; then
2429c060
PB
18010 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
18011 # We already found the complete path
b8025f34 18012 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18014$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18015 else
18016 # Canadian cross, just use what we found
81ecdfbb
RW
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18018$as_echo "pre-installed" >&6; }
2429c060 18019 fi
be01d343
PB
18020else
18021 ok=yes
18022 case " ${configdirs} " in
18023 *" binutils "*) ;;
18024 *) ok=no ;;
18025 esac
c6b750e1 18026
be01d343
PB
18027 if test $ok = yes; then
18028 # An in-tree tool is available and we can use it
18029 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18031$as_echo "just compiled" >&6; }
2429c060
PB
18032 elif 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; }
be01d343
PB
18037 elif test "x$target" = "x$host"; then
18038 # We can use an host tool
18039 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18041$as_echo "host tool" >&6; }
be01d343
PB
18042 else
18043 # We need a cross tool
81ecdfbb
RW
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18045$as_echo "pre-installed" >&6; }
be01d343
PB
18046 fi
18047fi
4b900473 18048
228cf97d
AM
18049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
18050$as_echo_n "checking where to find the target dsymutil... " >&6; }
18051if test "x${build}" != "x${host}" ; then
18052 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18056$as_echo "pre-installed in $ac_dir" >&6; }
18057 else
18058 # Canadian cross, just use what we found
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18060$as_echo "pre-installed" >&6; }
18061 fi
18062else
18063 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
18064 # We already found the complete path
18065 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18067$as_echo "pre-installed in $ac_dir" >&6; }
18068 elif test "x$target" = "x$host"; then
18069 # We can use an host tool
18070 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18072$as_echo "host tool" >&6; }
18073 else
18074 # We need a cross tool
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18076$as_echo "pre-installed" >&6; }
18077 fi
18078fi
18079
81ecdfbb
RW
18080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
18081$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 18082if test "x${build}" != "x${host}" ; then
2429c060
PB
18083 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
18084 # We already found the complete path
b8025f34 18085 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18087$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18088 else
18089 # Canadian cross, just use what we found
81ecdfbb
RW
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18091$as_echo "pre-installed" >&6; }
2429c060 18092 fi
be01d343
PB
18093else
18094 ok=yes
18095 case " ${configdirs} " in
18096 *" gcc "*) ;;
18097 *) ok=no ;;
18098 esac
c6b750e1 18099
be01d343
PB
18100 if test $ok = yes; then
18101 # An in-tree tool is available and we can use it
18102 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18104$as_echo "just compiled" >&6; }
2429c060
PB
18105 elif 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; }
be01d343
PB
18110 elif test "x$target" = "x$host"; then
18111 # We can use an host tool
18112 GCC_FOR_TARGET='$()'
81ecdfbb
RW
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18114$as_echo "host tool" >&6; }
be01d343
PB
18115 else
18116 # We need a cross tool
81ecdfbb
RW
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18118$as_echo "pre-installed" >&6; }
be01d343
PB
18119 fi
18120fi
4b900473 18121
81ecdfbb
RW
18122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
18123$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 18124if test "x${build}" != "x${host}" ; then
2429c060
PB
18125 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18126 # We already found the complete path
b8025f34 18127 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18129$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18130 else
18131 # Canadian cross, just use what we found
81ecdfbb
RW
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18133$as_echo "pre-installed" >&6; }
2429c060 18134 fi
be01d343
PB
18135else
18136 ok=yes
18137 case " ${configdirs} " in
18138 *" gcc "*) ;;
18139 *) ok=no ;;
18140 esac
18141 case ,${enable_languages}, in
18142 *,fortran,*) ;;
18143 *) ok=no ;;
18144 esac
18145 if test $ok = yes; then
18146 # An in-tree tool is available and we can use it
18147 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18149$as_echo "just compiled" >&6; }
2429c060
PB
18150 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
18151 # We already found the complete path
b8025f34 18152 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18154$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18155 elif test "x$target" = "x$host"; then
18156 # We can use an host tool
18157 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18159$as_echo "host tool" >&6; }
be01d343
PB
18160 else
18161 # We need a cross tool
81ecdfbb
RW
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18163$as_echo "pre-installed" >&6; }
be01d343
PB
18164 fi
18165fi
4b900473 18166
e552509b
ILT
18167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
18168$as_echo_n "checking where to find the target gccgo... " >&6; }
18169if test "x${build}" != "x${host}" ; then
18170 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18171 # We already found the complete path
18172 ac_dir=`dirname $GOC_FOR_TARGET`
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18174$as_echo "pre-installed in $ac_dir" >&6; }
18175 else
18176 # Canadian cross, just use what we found
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18178$as_echo "pre-installed" >&6; }
18179 fi
18180else
18181 ok=yes
18182 case " ${configdirs} " in
18183 *" gcc "*) ;;
18184 *) ok=no ;;
18185 esac
18186 case ,${enable_languages}, in
18187 *,go,*) ;;
18188 *) ok=no ;;
18189 esac
18190 if test $ok = yes; then
18191 # An in-tree tool is available and we can use it
18192 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18194$as_echo "just compiled" >&6; }
18195 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
18196 # We already found the complete path
18197 ac_dir=`dirname $GOC_FOR_TARGET`
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18199$as_echo "pre-installed in $ac_dir" >&6; }
18200 elif test "x$target" = "x$host"; then
18201 # We can use an host tool
18202 GOC_FOR_TARGET='$(GOC)'
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18204$as_echo "host tool" >&6; }
18205 else
18206 # We need a cross tool
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18208$as_echo "pre-installed" >&6; }
18209 fi
18210fi
18211
228cf97d
AM
18212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
18213$as_echo_n "checking where to find the target gdc... " >&6; }
18214if test "x${build}" != "x${host}" ; then
18215 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18216 # We already found the complete path
18217 ac_dir=`dirname $GDC_FOR_TARGET`
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18219$as_echo "pre-installed in $ac_dir" >&6; }
18220 else
18221 # Canadian cross, just use what we found
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18223$as_echo "pre-installed" >&6; }
18224 fi
18225else
18226 ok=yes
18227 case " ${configdirs} " in
18228 *" gcc "*) ;;
18229 *) ok=no ;;
18230 esac
18231 case ,${enable_languages}, in
18232 *,d,*) ;;
18233 *) ok=no ;;
18234 esac
18235 if test $ok = yes; then
18236 # An in-tree tool is available and we can use it
18237 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18239$as_echo "just compiled" >&6; }
18240 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
18241 # We already found the complete path
18242 ac_dir=`dirname $GDC_FOR_TARGET`
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18244$as_echo "pre-installed in $ac_dir" >&6; }
18245 elif test "x$target" = "x$host"; then
18246 # We can use an host tool
18247 GDC_FOR_TARGET='$(GDC)'
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18249$as_echo "host tool" >&6; }
18250 else
18251 # We need a cross tool
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18253$as_echo "pre-installed" >&6; }
18254 fi
18255fi
18256
6a6859cb
AM
18257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gm2" >&5
18258$as_echo_n "checking where to find the target gm2... " >&6; }
18259if test "x${build}" != "x${host}" ; then
18260 if expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18261 # We already found the complete path
18262 ac_dir=`dirname $GM2_FOR_TARGET`
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18264$as_echo "pre-installed in $ac_dir" >&6; }
18265 else
18266 # Canadian cross, just use what we found
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18268$as_echo "pre-installed" >&6; }
18269 fi
18270else
18271 ok=yes
18272 case " ${configdirs} " in
18273 *" gcc "*) ;;
18274 *) ok=no ;;
18275 esac
18276 case ,${enable_languages}, in
18277 *,m2,*) ;;
18278 *) ok=no ;;
18279 esac
18280 if test $ok = yes; then
18281 # An in-tree tool is available and we can use it
18282 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18284$as_echo "just compiled" >&6; }
18285 elif expr "x$GM2_FOR_TARGET" : "x/" > /dev/null; then
18286 # We already found the complete path
18287 ac_dir=`dirname $GM2_FOR_TARGET`
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18289$as_echo "pre-installed in $ac_dir" >&6; }
18290 elif test "x$target" = "x$host"; then
18291 # We can use an host tool
18292 GM2_FOR_TARGET='$(GM2)'
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18294$as_echo "host tool" >&6; }
18295 else
18296 # We need a cross tool
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18298$as_echo "pre-installed" >&6; }
18299 fi
18300fi
18301
81ecdfbb
RW
18302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
18303$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 18304if test "x${build}" != "x${host}" ; then
2429c060
PB
18305 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
18306 # We already found the complete path
b8025f34 18307 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18309$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18310 else
18311 # Canadian cross, just use what we found
81ecdfbb
RW
18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18313$as_echo "pre-installed" >&6; }
2429c060 18314 fi
be01d343
PB
18315else
18316 ok=yes
18317 case " ${configdirs} " in
18318 *" ld "*) ;;
18319 *) ok=no ;;
18320 esac
c6b750e1 18321
be01d343
PB
18322 if test $ok = yes; then
18323 # An in-tree tool is available and we can use it
18324 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18326$as_echo "just compiled" >&6; }
2429c060
PB
18327 elif 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; }
be01d343
PB
18332 elif test "x$target" = "x$host"; then
18333 # We can use an host tool
18334 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18336$as_echo "host tool" >&6; }
be01d343
PB
18337 else
18338 # We need a cross tool
81ecdfbb
RW
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18340$as_echo "pre-installed" >&6; }
be01d343
PB
18341 fi
18342fi
4b900473 18343
81ecdfbb
RW
18344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
18345$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 18346if test "x${build}" != "x${host}" ; then
2429c060
PB
18347 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18348 # We already found the complete path
b8025f34 18349 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18351$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18352 else
18353 # Canadian cross, just use what we found
81ecdfbb
RW
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18355$as_echo "pre-installed" >&6; }
2429c060 18356 fi
be01d343 18357else
2429c060
PB
18358 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
18359 # We already found the complete path
b8025f34 18360 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18362$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 18363 elif test "x$target" = "x$host"; then
be01d343
PB
18364 # We can use an host tool
18365 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18367$as_echo "host tool" >&6; }
be01d343
PB
18368 else
18369 # We need a cross tool
81ecdfbb
RW
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18371$as_echo "pre-installed" >&6; }
be01d343
PB
18372 fi
18373fi
4b900473 18374
81ecdfbb
RW
18375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
18376$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 18377if test "x${build}" != "x${host}" ; then
2429c060
PB
18378 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
18379 # We already found the complete path
b8025f34 18380 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18382$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18383 else
18384 # Canadian cross, just use what we found
81ecdfbb
RW
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18386$as_echo "pre-installed" >&6; }
2429c060 18387 fi
be01d343
PB
18388else
18389 ok=yes
18390 case " ${configdirs} " in
18391 *" binutils "*) ;;
18392 *) ok=no ;;
18393 esac
c6b750e1 18394
be01d343
PB
18395 if test $ok = yes; then
18396 # An in-tree tool is available and we can use it
18397 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18399$as_echo "just compiled" >&6; }
2429c060
PB
18400 elif 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; }
be01d343
PB
18405 elif test "x$target" = "x$host"; then
18406 # We can use an host tool
18407 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18409$as_echo "host tool" >&6; }
be01d343
PB
18410 else
18411 # We need a cross tool
81ecdfbb
RW
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18413$as_echo "pre-installed" >&6; }
be01d343
PB
18414 fi
18415fi
4b900473 18416
6b91c541
AP
18417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
18418$as_echo_n "checking where to find the target objcopy... " >&6; }
18419if test "x${build}" != "x${host}" ; then
18420 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
18421 # We already found the complete path
18422 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18424$as_echo "pre-installed in $ac_dir" >&6; }
18425 else
18426 # Canadian cross, just use what we found
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18428$as_echo "pre-installed" >&6; }
18429 fi
18430else
18431 ok=yes
18432 case " ${configdirs} " in
18433 *" binutils "*) ;;
18434 *) ok=no ;;
18435 esac
18436
18437 if test $ok = yes; then
18438 # An in-tree tool is available and we can use it
18439 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18441$as_echo "just compiled" >&6; }
18442 elif 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 elif test "x$target" = "x$host"; then
18448 # We can use an host tool
1b6c0831 18449 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18451$as_echo "host tool" >&6; }
18452 else
18453 # We need a cross tool
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18455$as_echo "pre-installed" >&6; }
18456 fi
18457fi
18458
81ecdfbb
RW
18459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18460$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 18461if test "x${build}" != "x${host}" ; then
2429c060
PB
18462 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18463 # We already found the complete path
b8025f34 18464 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18466$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18467 else
18468 # Canadian cross, just use what we found
81ecdfbb
RW
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18470$as_echo "pre-installed" >&6; }
2429c060 18471 fi
be01d343
PB
18472else
18473 ok=yes
18474 case " ${configdirs} " in
18475 *" binutils "*) ;;
18476 *) ok=no ;;
18477 esac
c6b750e1 18478
be01d343
PB
18479 if test $ok = yes; then
18480 # An in-tree tool is available and we can use it
18481 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18483$as_echo "just compiled" >&6; }
2429c060
PB
18484 elif 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; }
be01d343
PB
18489 elif test "x$target" = "x$host"; then
18490 # We can use an host tool
18491 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18493$as_echo "host tool" >&6; }
be01d343
PB
18494 else
18495 # We need a cross tool
81ecdfbb
RW
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18497$as_echo "pre-installed" >&6; }
be01d343
PB
18498 fi
18499fi
4b900473 18500
228cf97d
AM
18501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18502$as_echo_n "checking where to find the target otool... " >&6; }
18503if test "x${build}" != "x${host}" ; then
18504 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18505 # We already found the complete path
18506 ac_dir=`dirname $OTOOL_FOR_TARGET`
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18508$as_echo "pre-installed in $ac_dir" >&6; }
18509 else
18510 # Canadian cross, just use what we found
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18512$as_echo "pre-installed" >&6; }
18513 fi
18514else
18515 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18516 # We already found the complete path
18517 ac_dir=`dirname $OTOOL_FOR_TARGET`
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18519$as_echo "pre-installed in $ac_dir" >&6; }
18520 elif test "x$target" = "x$host"; then
18521 # We can use an host tool
18522 OTOOL_FOR_TARGET='$(OTOOL)'
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18524$as_echo "host tool" >&6; }
18525 else
18526 # We need a cross tool
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18528$as_echo "pre-installed" >&6; }
18529 fi
18530fi
18531
81ecdfbb
RW
18532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18533$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 18534if test "x${build}" != "x${host}" ; then
2429c060
PB
18535 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18536 # We already found the complete path
b8025f34 18537 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18539$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18540 else
18541 # Canadian cross, just use what we found
81ecdfbb
RW
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18543$as_echo "pre-installed" >&6; }
2429c060 18544 fi
be01d343
PB
18545else
18546 ok=yes
18547 case " ${configdirs} " in
18548 *" binutils "*) ;;
18549 *) ok=no ;;
18550 esac
c6b750e1 18551
be01d343
PB
18552 if test $ok = yes; then
18553 # An in-tree tool is available and we can use it
18554 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18556$as_echo "just compiled" >&6; }
2429c060
PB
18557 elif 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; }
be01d343
PB
18562 elif test "x$target" = "x$host"; then
18563 # We can use an host tool
18564 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18566$as_echo "host tool" >&6; }
be01d343
PB
18567 else
18568 # We need a cross tool
81ecdfbb
RW
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18570$as_echo "pre-installed" >&6; }
be01d343
PB
18571 fi
18572fi
4b900473 18573
b121d7d4
DD
18574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18575$as_echo_n "checking where to find the target readelf... " >&6; }
18576if test "x${build}" != "x${host}" ; then
18577 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18578 # We already found the complete path
18579 ac_dir=`dirname $READELF_FOR_TARGET`
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18581$as_echo "pre-installed in $ac_dir" >&6; }
18582 else
18583 # Canadian cross, just use what we found
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18585$as_echo "pre-installed" >&6; }
18586 fi
18587else
18588 ok=yes
18589 case " ${configdirs} " in
18590 *" binutils "*) ;;
18591 *) ok=no ;;
18592 esac
18593
18594 if test $ok = yes; then
18595 # An in-tree tool is available and we can use it
18596 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18598$as_echo "just compiled" >&6; }
18599 elif 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 elif test "x$target" = "x$host"; then
18605 # We can use an host tool
18606 READELF_FOR_TARGET='$(READELF)'
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18608$as_echo "host tool" >&6; }
18609 else
18610 # We need a cross tool
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18612$as_echo "pre-installed" >&6; }
18613 fi
18614fi
18615
81ecdfbb
RW
18616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18617$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 18618if test "x${build}" != "x${host}" ; then
2429c060
PB
18619 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18620 # We already found the complete path
b8025f34 18621 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18623$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18624 else
18625 # Canadian cross, just use what we found
81ecdfbb
RW
18626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18627$as_echo "pre-installed" >&6; }
2429c060 18628 fi
be01d343
PB
18629else
18630 ok=yes
18631 case " ${configdirs} " in
18632 *" binutils "*) ;;
18633 *) ok=no ;;
18634 esac
c6b750e1 18635
be01d343
PB
18636 if test $ok = yes; then
18637 # An in-tree tool is available and we can use it
9b980aa1 18638 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18640$as_echo "just compiled" >&6; }
2429c060
PB
18641 elif 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; }
be01d343
PB
18646 elif test "x$target" = "x$host"; then
18647 # We can use an host tool
18648 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18650$as_echo "host tool" >&6; }
be01d343
PB
18651 else
18652 # We need a cross tool
81ecdfbb
RW
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18654$as_echo "pre-installed" >&6; }
be01d343
PB
18655 fi
18656fi
4b900473 18657
81ecdfbb
RW
18658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18659$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 18660if test "x${build}" != "x${host}" ; then
2429c060
PB
18661 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18662 # We already found the complete path
b8025f34 18663 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18665$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18666 else
18667 # Canadian cross, just use what we found
81ecdfbb
RW
18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18669$as_echo "pre-installed" >&6; }
2429c060 18670 fi
be01d343
PB
18671else
18672 ok=yes
18673 case " ${configdirs} " in
18674 *" binutils "*) ;;
18675 *) ok=no ;;
18676 esac
c6b750e1 18677
be01d343
PB
18678 if test $ok = yes; then
18679 # An in-tree tool is available and we can use it
18680 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18682$as_echo "just compiled" >&6; }
2429c060
PB
18683 elif 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; }
be01d343
PB
18688 elif test "x$target" = "x$host"; then
18689 # We can use an host tool
18690 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18692$as_echo "host tool" >&6; }
be01d343
PB
18693 else
18694 # We need a cross tool
81ecdfbb
RW
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18696$as_echo "pre-installed" >&6; }
be01d343 18697 fi
a0da8069 18698fi
54752a6b 18699
81ecdfbb
RW
18700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18701$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
18702if test "x${build}" != "x${host}" ; then
18703 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18704 # We already found the complete path
18705 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18707$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18708 else
18709 # Canadian cross, just use what we found
81ecdfbb
RW
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18711$as_echo "pre-installed" >&6; }
0c24b341
NC
18712 fi
18713else
18714 ok=yes
18715 case " ${configdirs} " in
18716 *" binutils "*) ;;
18717 *) ok=no ;;
18718 esac
18719
18720 if test $ok = yes; then
18721 # An in-tree tool is available and we can use it
18722 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18724$as_echo "just compiled" >&6; }
0c24b341
NC
18725 elif 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 elif test "x$target" = "x$host"; then
18731 # We can use an host tool
18732 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18734$as_echo "host tool" >&6; }
0c24b341
NC
18735 else
18736 # We need a cross tool
81ecdfbb
RW
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18738$as_echo "pre-installed" >&6; }
0c24b341
NC
18739 fi
18740fi
18741
54752a6b
NN
18742
18743
be01d343 18744
4b900473 18745
a0da8069
NN
18746# Certain tools may need extra flags.
18747AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18748RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18749NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18750
be01d343
PB
18751# When building target libraries, except in a Canadian cross, we use
18752# the same toolchain as the compiler we just built.
18753COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18754COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18755COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18756if test $host = $build; then
18757 case " $configdirs " in
18758 *" gcc "*)
18759 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18760 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18761 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18762 ;;
18763 esac
18764fi
18765
18766
18767
18768
18769
81ecdfbb
RW
18770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18771$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18772# Check whether --enable-maintainer-mode was given.
18773if test "${enable_maintainer_mode+set}" = set; then :
18774 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
18775else
18776 USE_MAINTAINER_MODE=no
81ecdfbb
RW
18777fi
18778
18779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18780$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
18781
18782
18783if test "$USE_MAINTAINER_MODE" = yes; then
18784 MAINTAINER_MODE_TRUE=
18785 MAINTAINER_MODE_FALSE='#'
18786else
18787 MAINTAINER_MODE_TRUE='#'
18788 MAINTAINER_MODE_FALSE=
c6b750e1 18789fi
3d5e36ae
AO
18790MAINT=$MAINTAINER_MODE_TRUE
18791
1d39f329
NN
18792# ---------------------
18793# GCC bootstrap support
18794# ---------------------
18795
18796# Stage specific cflags for build.
18797stage1_cflags="-g"
18798case $build in
18799 vax-*-*)
18800 case ${GCC} in
18801 yes) stage1_cflags="-g -Wa,-J" ;;
18802 *) stage1_cflags="-g -J" ;;
18803 esac ;;
1d39f329
NN
18804esac
18805
1d89b610 18806
1d39f329 18807
8a0d8a5c 18808# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
18809# Check whether --enable-stage1-checking was given.
18810if test "${enable_stage1_checking+set}" = set; then :
18811 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 18812else
5566c1fa 18813 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
18814 # For --disable-checking or implicit --enable-checking=release, avoid
18815 # setting --enable-checking=gc in the default stage1 checking for LTO
18816 # bootstraps. See PR62077.
ce6c656d
L
18817 case $BUILD_CONFIG in
18818 *lto*)
05a13254
NC
18819 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18820 *)
18821 stage1_checking=--enable-checking=yes,types;;
ce6c656d 18822 esac
05a13254
NC
18823 if test "x$enable_checking" = x && \
18824 test -d ${srcdir}/gcc && \
18825 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18826 stage1_checking=--enable-checking=yes,types,extra
18827 fi
8a0d8a5c 18828else
5566c1fa 18829 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 18830fi
81ecdfbb 18831fi
8a0d8a5c
PB
18832
18833
c6b750e1 18834
81ecdfbb
RW
18835# Enable -Werror in bootstrap stage2 and later.
18836# Check whether --enable-werror was given.
18837if test "${enable_werror+set}" = set; then :
18838 enableval=$enable_werror;
1a6f2dc7
NN
18839case ${enable_werror} in
18840 yes) stage2_werror_flag="--enable-werror-always" ;;
18841 *) stage2_werror_flag="" ;;
1d39f329
NN
18842esac
18843
82033c9b 18844else
82033c9b 18845
bf41f30d
NC
18846if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18847 case $BUILD_CONFIG in
18848 bootstrap-debug)
18849 stage2_werror_flag="--enable-werror-always" ;;
18850 "")
18851 stage2_werror_flag="--enable-werror-always" ;;
18852 esac
18853fi
82033c9b 18854
bf41f30d 18855fi
82033c9b 18856
1b6c0831 18857
1b6c0831 18858
1b6c0831 18859
e8a5fa9c
RW
18860# Specify what files to not compare during bootstrap.
18861
18862compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
6a6859cb
AM
18863compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/M2Version*"
18864compare_exclusions="$compare_exclusions | gcc/m2/gm2-compiler-boot/SYSTEM*"
18865compare_exclusions="$compare_exclusions | gcc/m2/gm2version*"
e8a5fa9c
RW
18866case "$target" in
18867 hppa*64*-*-hpux*) ;;
228cf97d 18868 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
18869esac
18870
18871
81ecdfbb
RW
18872ac_config_files="$ac_config_files Makefile"
18873
c6b750e1 18874cat >confcache <<\_ACEOF
a0da8069
NN
18875# This file is a shell script that caches the results of configure
18876# tests run on this system so they can be shared between configure
c6b750e1
DJ
18877# scripts and configure runs, see configure's option --config-cache.
18878# It is not useful on other systems. If it contains results you don't
18879# want to keep, you may remove or edit it.
a0da8069 18880#
c6b750e1
DJ
18881# config.status only pays attention to the cache file if you give it
18882# the --recheck option to rerun configure.
a0da8069 18883#
c6b750e1
DJ
18884# `ac_cv_env_foo' variables (set or unset) will be overridden when
18885# loading this file, other *unset* `ac_cv_foo' will be assigned the
18886# following values.
18887
18888_ACEOF
18889
a0da8069
NN
18890# The following way of writing the cache mishandles newlines in values,
18891# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 18892# So, we kill variables containing newlines.
a0da8069
NN
18893# Ultrix sh set writes to stderr and can't be redirected directly,
18894# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
18895(
18896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18897 eval ac_val=\$$ac_var
18898 case $ac_val in #(
18899 *${as_nl}*)
18900 case $ac_var in #(
18901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18902$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18903 esac
18904 case $ac_var in #(
18905 _ | IFS | as_nl) ;; #(
18906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18907 *) { eval $ac_var=; unset $ac_var;} ;;
18908 esac ;;
18909 esac
18910 done
18911
c6b750e1 18912 (set) 2>&1 |
81ecdfbb
RW
18913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18914 *${as_nl}ac_space=\ *)
18915 # `set' does not quote correctly, so add quotes: double-quote
18916 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
18917 sed -n \
18918 "s/'/'\\\\''/g;
18919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 18920 ;; #(
c6b750e1
DJ
18921 *)
18922 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 18923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 18924 ;;
81ecdfbb
RW
18925 esac |
18926 sort
18927) |
c6b750e1 18928 sed '
81ecdfbb 18929 /^ac_cv_env_/b end
c6b750e1 18930 t clear
81ecdfbb 18931 :clear
c6b750e1
DJ
18932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18933 t end
81ecdfbb
RW
18934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18935 :end' >>confcache
18936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18937 if test -w "$cache_file"; then
d0ac1c44 18938 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18940$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
18941 if test ! -f "$cache_file" || test -h "$cache_file"; then
18942 cat confcache >"$cache_file"
18943 else
18944 case $cache_file in #(
18945 */* | ?:*)
18946 mv -f confcache "$cache_file"$$ &&
18947 mv -f "$cache_file"$$ "$cache_file" ;; #(
18948 *)
18949 mv -f confcache "$cache_file" ;;
18950 esac
18951 fi
18952 fi
a0da8069 18953 else
81ecdfbb
RW
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18955$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 18956 fi
852e5f18 18957fi
a0da8069 18958rm -f confcache
852e5f18 18959
a0da8069
NN
18960test "x$prefix" = xNONE && prefix=$ac_default_prefix
18961# Let make expand exec_prefix.
18962test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 18963
a0da8069
NN
18964# Transform confdefs.h into DEFS.
18965# Protect against shell expansion while executing Makefile rules.
18966# Protect against Makefile macro expansion.
c6b750e1
DJ
18967#
18968# If the first sed substitution is executed (which looks for macros that
81ecdfbb 18969# take arguments), then branch to the quote section. Otherwise,
c6b750e1 18970# look for a macro that doesn't take arguments.
81ecdfbb
RW
18971ac_script='
18972:mline
18973/\\$/{
18974 N
18975 s,\\\n,,
18976 b mline
18977}
c6b750e1 18978t clear
81ecdfbb
RW
18979:clear
18980s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 18981t quote
81ecdfbb 18982s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 18983t quote
81ecdfbb
RW
18984b any
18985:quote
18986s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18987s/\[/\\&/g
18988s/\]/\\&/g
18989s/\$/$$/g
18990H
18991:any
18992${
18993 g
18994 s/^\n//
18995 s/\n/ /g
18996 p
18997}
18998'
18999DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
19000
19001
19002ac_libobjs=
19003ac_ltlibobjs=
d0ac1c44 19004U=
c6b750e1
DJ
19005for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19006 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
19007 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19008 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19009 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19010 # will be set to the directory where LIBOBJS objects are built.
19011 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19012 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
19013done
19014LIBOBJS=$ac_libobjs
852e5f18 19015
c6b750e1 19016LTLIBOBJS=$ac_ltlibobjs
376a0e54 19017
cac3d6c4 19018
c6b750e1 19019
d0ac1c44 19020: "${CONFIG_STATUS=./config.status}"
81ecdfbb 19021ac_write_fail=0
c6b750e1
DJ
19022ac_clean_files_save=$ac_clean_files
19023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
19024{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19025$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19026as_write_fail=0
19027cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
19028#! $SHELL
19029# Generated by $as_me.
a0da8069 19030# Run this file to recreate the current configuration.
a0da8069 19031# Compiler output produced by configure, useful for debugging
c6b750e1 19032# configure, is in config.log if it exists.
376a0e54 19033
c6b750e1
DJ
19034debug=false
19035ac_cs_recheck=false
19036ac_cs_silent=false
c6b750e1 19037
81ecdfbb
RW
19038SHELL=\${CONFIG_SHELL-$SHELL}
19039export SHELL
19040_ASEOF
19041cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19042## -------------------- ##
19043## M4sh Initialization. ##
19044## -------------------- ##
19045
19046# Be more Bourne compatible
19047DUALCASE=1; export DUALCASE # for MKS sh
19048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
19049 emulate sh
19050 NULLCMD=:
81ecdfbb 19051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
19052 # is contrary to our usage. Disable this feature.
19053 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
19054 setopt NO_GLOB_SUBST
19055else
19056 case `(set -o) 2>/dev/null` in #(
19057 *posix*) :
19058 set -o posix ;; #(
19059 *) :
19060 ;;
19061esac
c6b750e1 19062fi
c6b750e1 19063
81ecdfbb
RW
19064
19065as_nl='
19066'
19067export as_nl
19068# Printing a long string crashes Solaris 7 /usr/bin/printf.
19069as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19072# Prefer a ksh shell builtin over an external printf program on Solaris,
19073# but without wasting forks for bash or zsh.
19074if test -z "$BASH_VERSION$ZSH_VERSION" \
19075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19076 as_echo='print -r --'
19077 as_echo_n='print -rn --'
19078elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19079 as_echo='printf %s\n'
19080 as_echo_n='printf %s'
19081else
19082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19084 as_echo_n='/usr/ucb/echo -n'
19085 else
19086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19087 as_echo_n_body='eval
19088 arg=$1;
19089 case $arg in #(
19090 *"$as_nl"*)
19091 expr "X$arg" : "X\\(.*\\)$as_nl";
19092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19093 esac;
19094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19095 '
19096 export as_echo_n_body
19097 as_echo_n='sh -c $as_echo_n_body as_echo'
19098 fi
19099 export as_echo_body
19100 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
19101fi
19102
81ecdfbb
RW
19103# The user is always right.
19104if test "${PATH_SEPARATOR+set}" != set; then
19105 PATH_SEPARATOR=:
19106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19108 PATH_SEPARATOR=';'
19109 }
19110fi
19111
19112
19113# IFS
19114# We need space, tab and new line, in precisely that order. Quoting is
19115# there to prevent editors from complaining about space-tab.
19116# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19117# splitting by setting IFS to empty value.)
19118IFS=" "" $as_nl"
19119
19120# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 19121as_myself=
81ecdfbb
RW
19122case $0 in #((
19123 *[\\/]* ) as_myself=$0 ;;
19124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125for as_dir in $PATH
19126do
19127 IFS=$as_save_IFS
19128 test -z "$as_dir" && as_dir=.
19129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19130 done
19131IFS=$as_save_IFS
19132
19133 ;;
19134esac
19135# We did not find ourselves, most probably we were run as `sh COMMAND'
19136# in which case we are not to be found in the path.
19137if test "x$as_myself" = x; then
19138 as_myself=$0
19139fi
19140if test ! -f "$as_myself"; then
19141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19142 exit 1
19143fi
c6b750e1 19144
81ecdfbb
RW
19145# Unset variables that we do not need and which cause bugs (e.g. in
19146# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19147# suppresses any "Segmentation fault" message there. '((' could
19148# trigger a bug in pdksh 5.2.14.
19149for as_var in BASH_ENV ENV MAIL MAILPATH
19150do eval test x\${$as_var+set} = xset \
19151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19152done
c6b750e1
DJ
19153PS1='$ '
19154PS2='> '
19155PS4='+ '
19156
19157# NLS nuisances.
81ecdfbb
RW
19158LC_ALL=C
19159export LC_ALL
19160LANGUAGE=C
19161export LANGUAGE
19162
19163# CDPATH.
19164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19165
19166
d0ac1c44
SM
19167# as_fn_error STATUS ERROR [LINENO LOG_FD]
19168# ----------------------------------------
81ecdfbb
RW
19169# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19170# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 19171# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
19172as_fn_error ()
19173{
d0ac1c44
SM
19174 as_status=$1; test $as_status -eq 0 && as_status=1
19175 if test "$4"; then
19176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 19178 fi
d0ac1c44 19179 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
19180 as_fn_exit $as_status
19181} # as_fn_error
19182
19183
19184# as_fn_set_status STATUS
19185# -----------------------
19186# Set $? to STATUS, without forking.
19187as_fn_set_status ()
19188{
19189 return $1
19190} # as_fn_set_status
19191
19192# as_fn_exit STATUS
19193# -----------------
19194# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19195as_fn_exit ()
19196{
19197 set +e
19198 as_fn_set_status $1
19199 exit $1
19200} # as_fn_exit
19201
19202# as_fn_unset VAR
19203# ---------------
19204# Portably unset VAR.
19205as_fn_unset ()
19206{
19207 { eval $1=; unset $1;}
19208}
19209as_unset=as_fn_unset
19210# as_fn_append VAR VALUE
19211# ----------------------
19212# Append the text in VALUE to the end of the definition contained in VAR. Take
19213# advantage of any shell optimizations that allow amortized linear growth over
19214# repeated appends, instead of the typical quadratic growth present in naive
19215# implementations.
19216if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19217 eval 'as_fn_append ()
19218 {
19219 eval $1+=\$2
19220 }'
19221else
19222 as_fn_append ()
19223 {
19224 eval $1=\$$1\$2
19225 }
19226fi # as_fn_append
19227
19228# as_fn_arith ARG...
19229# ------------------
19230# Perform arithmetic evaluation on the ARGs, and store the result in the
19231# global $as_val. Take advantage of shells that can avoid forks. The arguments
19232# must be portable across $(()) and expr.
19233if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19234 eval 'as_fn_arith ()
19235 {
19236 as_val=$(( $* ))
19237 }'
19238else
19239 as_fn_arith ()
19240 {
19241 as_val=`expr "$@" || test $? -eq 1`
19242 }
19243fi # as_fn_arith
19244
c6b750e1 19245
81ecdfbb
RW
19246if expr a : '\(a\)' >/dev/null 2>&1 &&
19247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
19248 as_expr=expr
19249else
19250 as_expr=false
19251fi
19252
81ecdfbb 19253if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
19254 as_basename=basename
19255else
19256 as_basename=false
19257fi
19258
81ecdfbb
RW
19259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19260 as_dirname=dirname
19261else
19262 as_dirname=false
19263fi
c6b750e1 19264
81ecdfbb 19265as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
19266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19267 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
19268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19269$as_echo X/"$0" |
19270 sed '/^.*\/\([^/][^/]*\)\/*$/{
19271 s//\1/
19272 q
19273 }
19274 /^X\/\(\/\/\)$/{
19275 s//\1/
19276 q
19277 }
19278 /^X\/\(\/\).*/{
19279 s//\1/
19280 q
19281 }
19282 s/.*/./; q'`
c6b750e1 19283
c6b750e1
DJ
19284# Avoid depending upon Character Ranges.
19285as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19287as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19288as_cr_digits='0123456789'
19289as_cr_alnum=$as_cr_Letters$as_cr_digits
19290
81ecdfbb
RW
19291ECHO_C= ECHO_N= ECHO_T=
19292case `echo -n x` in #(((((
19293-n*)
19294 case `echo 'xy\c'` in
19295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19296 xy) ECHO_C='\c';;
19297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19298 ECHO_T=' ';;
19299 esac;;
19300*)
19301 ECHO_N='-n';;
c6b750e1
DJ
19302esac
19303
81ecdfbb
RW
19304rm -f conf$$ conf$$.exe conf$$.file
19305if test -d conf$$.dir; then
19306 rm -f conf$$.dir/conf$$.file
c6b750e1 19307else
81ecdfbb
RW
19308 rm -f conf$$.dir
19309 mkdir conf$$.dir 2>/dev/null
c6b750e1 19310fi
81ecdfbb
RW
19311if (echo >conf$$.file) 2>/dev/null; then
19312 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 19313 as_ln_s='ln -s'
81ecdfbb
RW
19314 # ... but there are two gotchas:
19315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 19317 # In both cases, we have to default to `cp -pR'.
81ecdfbb 19318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 19319 as_ln_s='cp -pR'
81ecdfbb
RW
19320 elif ln conf$$.file conf$$ 2>/dev/null; then
19321 as_ln_s=ln
19322 else
d0ac1c44 19323 as_ln_s='cp -pR'
c6b750e1 19324 fi
c6b750e1 19325else
d0ac1c44 19326 as_ln_s='cp -pR'
c6b750e1 19327fi
81ecdfbb
RW
19328rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19329rmdir conf$$.dir 2>/dev/null
19330
19331
19332# as_fn_mkdir_p
19333# -------------
19334# Create "$as_dir" as a directory, including parents if necessary.
19335as_fn_mkdir_p ()
19336{
19337
19338 case $as_dir in #(
19339 -*) as_dir=./$as_dir;;
19340 esac
19341 test -d "$as_dir" || eval $as_mkdir_p || {
19342 as_dirs=
19343 while :; do
19344 case $as_dir in #(
19345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19346 *) as_qdir=$as_dir;;
19347 esac
19348 as_dirs="'$as_qdir' $as_dirs"
19349 as_dir=`$as_dirname -- "$as_dir" ||
19350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19351 X"$as_dir" : 'X\(//\)[^/]' \| \
19352 X"$as_dir" : 'X\(//\)$' \| \
19353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19354$as_echo X"$as_dir" |
19355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19356 s//\1/
19357 q
19358 }
19359 /^X\(\/\/\)[^/].*/{
19360 s//\1/
19361 q
19362 }
19363 /^X\(\/\/\)$/{
19364 s//\1/
19365 q
19366 }
19367 /^X\(\/\).*/{
19368 s//\1/
19369 q
19370 }
19371 s/.*/./; q'`
19372 test -d "$as_dir" && break
19373 done
19374 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 19375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 19376
c6b750e1 19377
81ecdfbb 19378} # as_fn_mkdir_p
c6b750e1 19379if mkdir -p . 2>/dev/null; then
81ecdfbb 19380 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
19381else
19382 test -d ./-p && rmdir ./-p
19383 as_mkdir_p=false
19384fi
19385
d0ac1c44
SM
19386
19387# as_fn_executable_p FILE
19388# -----------------------
19389# Test if FILE is an executable regular file.
19390as_fn_executable_p ()
19391{
19392 test -f "$1" && test -x "$1"
19393} # as_fn_executable_p
19394as_test_x='test -x'
19395as_executable_p=as_fn_executable_p
c6b750e1
DJ
19396
19397# Sed expression to map a string onto a valid CPP name.
19398as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19399
19400# Sed expression to map a string onto a valid variable name.
19401as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19402
19403
c6b750e1 19404exec 6>&1
81ecdfbb
RW
19405## ----------------------------------- ##
19406## Main body of $CONFIG_STATUS script. ##
19407## ----------------------------------- ##
19408_ASEOF
19409test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19410
19411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19412# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 19413# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
19414# values after options handling.
19415ac_log="
c6b750e1 19416This file was extended by $as_me, which was
d0ac1c44 19417generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
19418
19419 CONFIG_FILES = $CONFIG_FILES
19420 CONFIG_HEADERS = $CONFIG_HEADERS
19421 CONFIG_LINKS = $CONFIG_LINKS
19422 CONFIG_COMMANDS = $CONFIG_COMMANDS
19423 $ $0 $@
19424
81ecdfbb
RW
19425on `(hostname || uname -n) 2>/dev/null | sed 1q`
19426"
19427
c6b750e1
DJ
19428_ACEOF
19429
81ecdfbb
RW
19430case $ac_config_files in *"
19431"*) set x $ac_config_files; shift; ac_config_files=$*;;
19432esac
c6b750e1 19433
c6b750e1 19434
c6b750e1 19435
81ecdfbb
RW
19436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19437# Files that config.status was made for.
19438config_files="$ac_config_files"
c6b750e1 19439
81ecdfbb 19440_ACEOF
c6b750e1 19441
81ecdfbb 19442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19443ac_cs_usage="\
81ecdfbb
RW
19444\`$as_me' instantiates files and other configuration actions
19445from templates according to the current configuration. Unless the files
19446and actions are specified as TAGs, all are instantiated by default.
c6b750e1 19447
81ecdfbb 19448Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
19449
19450 -h, --help print this help, then exit
81ecdfbb 19451 -V, --version print version number and configuration settings, then exit
d0ac1c44 19452 --config print configuration, then exit
81ecdfbb
RW
19453 -q, --quiet, --silent
19454 do not print progress messages
c6b750e1
DJ
19455 -d, --debug don't remove temporary files
19456 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
19457 --file=FILE[:TEMPLATE]
19458 instantiate the configuration file FILE
c6b750e1
DJ
19459
19460Configuration files:
19461$config_files
19462
81ecdfbb 19463Report bugs to the package provider."
c6b750e1 19464
81ecdfbb
RW
19465_ACEOF
19466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19467ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
19468ac_cs_version="\\
19469config.status
d0ac1c44
SM
19470configured by $0, generated by GNU Autoconf 2.69,
19471 with options \\"\$ac_cs_config\\"
c6b750e1 19472
d0ac1c44 19473Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
19474This config.status script is free software; the Free Software Foundation
19475gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
19476
19477ac_pwd='$ac_pwd'
19478srcdir='$srcdir'
19479INSTALL='$INSTALL'
8e957354 19480AWK='$AWK'
81ecdfbb 19481test -n "\$AWK" || AWK=awk
c6b750e1
DJ
19482_ACEOF
19483
81ecdfbb
RW
19484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19485# The default lists apply if the user does not specify any file.
c6b750e1
DJ
19486ac_need_defaults=:
19487while test $# != 0
a0da8069 19488do
c6b750e1 19489 case $1 in
d0ac1c44 19490 --*=?*)
81ecdfbb
RW
19491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19492 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
19493 ac_shift=:
19494 ;;
d0ac1c44
SM
19495 --*=)
19496 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19497 ac_optarg=
19498 ac_shift=:
19499 ;;
81ecdfbb 19500 *)
c6b750e1
DJ
19501 ac_option=$1
19502 ac_optarg=$2
19503 ac_shift=shift
19504 ;;
c6b750e1
DJ
19505 esac
19506
19507 case $ac_option in
19508 # Handling of the options.
a0da8069 19509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 19510 ac_cs_recheck=: ;;
81ecdfbb
RW
19511 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19512 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
19513 --config | --confi | --conf | --con | --co | --c )
19514 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 19515 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
19516 debug=: ;;
19517 --file | --fil | --fi | --f )
19518 $ac_shift
81ecdfbb
RW
19519 case $ac_optarg in
19520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 19521 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
19522 esac
19523 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 19524 ac_need_defaults=false;;
81ecdfbb
RW
19525 --he | --h | --help | --hel | -h )
19526 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
19527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19529 ac_cs_silent=: ;;
19530
19531 # This is an error.
d0ac1c44 19532 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 19533Try \`$0 --help' for more information." ;;
c6b750e1 19534
81ecdfbb
RW
19535 *) as_fn_append ac_config_targets " $1"
19536 ac_need_defaults=false ;;
c6b750e1 19537
376a0e54 19538 esac
c6b750e1 19539 shift
376a0e54
CM
19540done
19541
c6b750e1 19542ac_configure_extra_args=
376a0e54 19543
c6b750e1
DJ
19544if $ac_cs_silent; then
19545 exec 6>/dev/null
19546 ac_configure_extra_args="$ac_configure_extra_args --silent"
19547fi
376a0e54 19548
c6b750e1 19549_ACEOF
81ecdfbb 19550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 19551if \$ac_cs_recheck; then
d0ac1c44 19552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
19553 shift
19554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19555 CONFIG_SHELL='$SHELL'
19556 export CONFIG_SHELL
19557 exec "\$@"
c6b750e1
DJ
19558fi
19559
19560_ACEOF
81ecdfbb
RW
19561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562exec 5>>config.log
19563{
19564 echo
19565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19566## Running $as_me. ##
19567_ASBOX
19568 $as_echo "$ac_log"
19569} >&5
c6b750e1 19570
81ecdfbb
RW
19571_ACEOF
19572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
19573#
19574# INIT-COMMANDS
19575#
19576extrasub_build="$extrasub_build"
19577 extrasub_host="$extrasub_host"
19578 extrasub_target="$extrasub_target"
19579
81ecdfbb 19580_ACEOF
c6b750e1 19581
81ecdfbb 19582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19583
81ecdfbb 19584# Handling of arguments.
c6b750e1
DJ
19585for ac_config_target in $ac_config_targets
19586do
81ecdfbb
RW
19587 case $ac_config_target in
19588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19589
d0ac1c44 19590 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
19591 esac
19592done
19593
81ecdfbb 19594
c6b750e1
DJ
19595# If the user did not use the arguments to specify the items to instantiate,
19596# then the envvar interface is used. Set only those that are not.
19597# We use the long form for the default assignment because of an extremely
19598# bizarre bug on SunOS 4.1.3.
19599if $ac_need_defaults; then
19600 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19601fi
19602
19603# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 19604# simply because there is no reason against having it here, and in addition,
c6b750e1 19605# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
19606# Hook for its removal unless debugging.
19607# Note that there is a small window in which the directory will not be cleaned:
19608# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
19609$debug ||
19610{
d0ac1c44 19611 tmp= ac_tmp=
81ecdfbb 19612 trap 'exit_status=$?
d0ac1c44
SM
19613 : "${ac_tmp:=$tmp}"
19614 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
19615' 0
19616 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 19617}
c6b750e1
DJ
19618# Create a (secure) tmp directory for tmp files.
19619
19620{
81ecdfbb 19621 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 19622 test -d "$tmp"
c6b750e1
DJ
19623} ||
19624{
81ecdfbb
RW
19625 tmp=./conf$$-$RANDOM
19626 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
19627} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19628ac_tmp=$tmp
81ecdfbb
RW
19629
19630# Set up the scripts for CONFIG_FILES section.
19631# No need to generate them if there are no CONFIG_FILES.
19632# This happens for instance with `./config.status config.h'.
19633if test -n "$CONFIG_FILES"; then
19634
19635if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19636 ac_cs_awk_getline=:
19637 ac_cs_awk_pipe_init=
19638 ac_cs_awk_read_file='
19639 while ((getline aline < (F[key])) > 0)
19640 print(aline)
19641 close(F[key])'
19642 ac_cs_awk_pipe_fini=
19643else
19644 ac_cs_awk_getline=false
19645 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19646 ac_cs_awk_read_file='
19647 print "|#_!!_#|"
19648 print "cat " F[key] " &&"
19649 '$ac_cs_awk_pipe_init
19650 # The final `:' finishes the AND list.
19651 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19652fi
19653ac_cr=`echo X | tr X '\015'`
19654# On cygwin, bash can eat \r inside `` if the user requested igncr.
19655# But we know of no other shell where ac_cr would be empty at this
19656# point, so we can use a bashism as a fallback.
19657if test "x$ac_cr" = x; then
19658 eval ac_cr=\$\'\\r\'
19659fi
19660ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19661if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 19662 ac_cs_awk_cr='\\r'
81ecdfbb
RW
19663else
19664 ac_cs_awk_cr=$ac_cr
19665fi
19666
d0ac1c44 19667echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
19668_ACEOF
19669
19670# Create commands to substitute file output variables.
c6b750e1 19671{
81ecdfbb 19672 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 19673 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
19674 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19675 echo "_ACAWK" &&
19676 echo "_ACEOF"
19677} >conf$$files.sh &&
19678. ./conf$$files.sh ||
d0ac1c44 19679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19680rm -f conf$$files.sh
c6b750e1 19681
81ecdfbb
RW
19682{
19683 echo "cat >conf$$subs.awk <<_ACEOF" &&
19684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19685 echo "_ACEOF"
19686} >conf$$subs.sh ||
d0ac1c44
SM
19687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19688ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
19689ac_delim='%!_!# '
19690for ac_last_try in false false false false false :; do
19691 . ./conf$$subs.sh ||
d0ac1c44 19692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19693
19694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19695 if test $ac_delim_n = $ac_delim_num; then
19696 break
19697 elif $ac_last_try; then
d0ac1c44 19698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19699 else
19700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19701 fi
19702done
19703rm -f conf$$subs.sh
19704
19705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19706cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 19707_ACEOF
81ecdfbb
RW
19708sed -n '
19709h
19710s/^/S["/; s/!.*/"]=/
19711p
19712g
19713s/^[^!]*!//
19714:repl
19715t repl
19716s/'"$ac_delim"'$//
19717t delim
19718:nl
19719h
d0ac1c44 19720s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19721t more1
19722s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19723p
19724n
19725b repl
19726:more1
19727s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19728p
19729g
19730s/.\{148\}//
19731t nl
19732:delim
19733h
d0ac1c44 19734s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19735t more2
19736s/["\\]/\\&/g; s/^/"/; s/$/"/
19737p
19738b
19739:more2
19740s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19741p
19742g
19743s/.\{148\}//
19744t delim
19745' <conf$$subs.awk | sed '
19746/^[^""]/{
19747 N
19748 s/\n//
19749}
19750' >>$CONFIG_STATUS || ac_write_fail=1
19751rm -f conf$$subs.awk
19752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19753_ACAWK
d0ac1c44 19754cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
19755 for (key in S) S_is_set[key] = 1
19756 FS = "\a"
19757 \$ac_cs_awk_pipe_init
19758}
19759{
19760 line = $ 0
19761 nfields = split(line, field, "@")
19762 substed = 0
19763 len = length(field[1])
19764 for (i = 2; i < nfields; i++) {
19765 key = field[i]
19766 keylen = length(key)
19767 if (S_is_set[key]) {
19768 value = S[key]
19769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19770 len += length(value) + length(field[++i])
19771 substed = 1
19772 } else
19773 len += 1 + keylen
19774 }
19775 if (nfields == 3 && !substed) {
19776 key = field[2]
19777 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19778 \$ac_cs_awk_read_file
19779 next
19780 }
19781 }
19782 print line
19783}
19784\$ac_cs_awk_pipe_fini
19785_ACAWK
19786_ACEOF
19787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19788if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19790else
19791 cat
d0ac1c44
SM
19792fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
19794_ACEOF
19795
d0ac1c44
SM
19796# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19797# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19798# trailing colons and then remove the whole line if VPATH becomes empty
19799# (actually we leave an empty line to preserve line numbers).
19800if test "x$srcdir" = x.; then
d0ac1c44
SM
19801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19802h
19803s///
19804s/^/:/
19805s/[ ]*$/:/
19806s/:\$(srcdir):/:/g
19807s/:\${srcdir}:/:/g
19808s/:@srcdir@:/:/g
19809s/^:*//
81ecdfbb 19810s/:*$//
d0ac1c44
SM
19811x
19812s/\(=[ ]*\).*/\1/
19813G
19814s/\n//
81ecdfbb
RW
19815s/^[^=]*=[ ]*$//
19816}'
19817fi
c6b750e1 19818
81ecdfbb
RW
19819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19820fi # test -n "$CONFIG_FILES"
c6b750e1 19821
c6b750e1 19822
81ecdfbb
RW
19823eval set X " :F $CONFIG_FILES "
19824shift
19825for ac_tag
19826do
19827 case $ac_tag in
19828 :[FHLC]) ac_mode=$ac_tag; continue;;
19829 esac
19830 case $ac_mode$ac_tag in
19831 :[FHL]*:*);;
d0ac1c44 19832 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19833 :[FH]-) ac_tag=-:-;;
19834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19835 esac
19836 ac_save_IFS=$IFS
19837 IFS=:
19838 set x $ac_tag
19839 IFS=$ac_save_IFS
19840 shift
19841 ac_file=$1
19842 shift
252b5132 19843
81ecdfbb
RW
19844 case $ac_mode in
19845 :L) ac_source=$1;;
19846 :[FH])
19847 ac_file_inputs=
19848 for ac_f
19849 do
19850 case $ac_f in
d0ac1c44 19851 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19852 *) # Look for the file first in the build tree, then in the source tree
19853 # (if the path is not absolute). The absolute path cannot be DOS-style,
19854 # because $ac_f cannot contain `:'.
19855 test -f "$ac_f" ||
19856 case $ac_f in
19857 [\\/$]*) false;;
19858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19859 esac ||
d0ac1c44 19860 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19861 esac
19862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19863 as_fn_append ac_file_inputs " '$ac_f'"
19864 done
c6b750e1 19865
81ecdfbb
RW
19866 # Let's still pretend it is `configure' which instantiates (i.e., don't
19867 # use $as_me), people would be surprised to read:
19868 # /* config.h. Generated by config.status. */
19869 configure_input='Generated from '`
19870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19871 `' by configure.'
19872 if test x"$ac_file" != x-; then
19873 configure_input="$ac_file. $configure_input"
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19875$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 19876 fi
81ecdfbb
RW
19877 # Neutralize special characters interpreted by sed in replacement strings.
19878 case $configure_input in #(
19879 *\&* | *\|* | *\\* )
19880 ac_sed_conf_input=`$as_echo "$configure_input" |
19881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19882 *) ac_sed_conf_input=$configure_input;;
19883 esac
cac3d6c4 19884
81ecdfbb 19885 case $ac_tag in
d0ac1c44
SM
19886 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19888 esac
19889 ;;
a0da8069 19890 esac
252b5132 19891
81ecdfbb 19892 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
19893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19894 X"$ac_file" : 'X\(//\)[^/]' \| \
19895 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19897$as_echo X"$ac_file" |
19898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19899 s//\1/
19900 q
19901 }
19902 /^X\(\/\/\)[^/].*/{
19903 s//\1/
19904 q
19905 }
19906 /^X\(\/\/\)$/{
19907 s//\1/
19908 q
19909 }
19910 /^X\(\/\).*/{
19911 s//\1/
19912 q
19913 }
19914 s/.*/./; q'`
19915 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 19916 ac_builddir=.
252b5132 19917
81ecdfbb
RW
19918case "$ac_dir" in
19919.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19920*)
19921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19922 # A ".." for each directory in $ac_dir_suffix.
19923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19924 case $ac_top_builddir_sub in
19925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19927 esac ;;
19928esac
19929ac_abs_top_builddir=$ac_pwd
19930ac_abs_builddir=$ac_pwd$ac_dir_suffix
19931# for backward compatibility:
19932ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
19933
19934case $srcdir in
81ecdfbb 19935 .) # We are building in place.
c6b750e1 19936 ac_srcdir=.
81ecdfbb
RW
19937 ac_top_srcdir=$ac_top_builddir_sub
19938 ac_abs_top_srcdir=$ac_pwd ;;
19939 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 19940 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19941 ac_top_srcdir=$srcdir
19942 ac_abs_top_srcdir=$srcdir ;;
19943 *) # Relative name.
19944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19945 ac_top_srcdir=$ac_top_build_prefix$srcdir
19946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 19947esac
81ecdfbb 19948ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 19949
252b5132 19950
81ecdfbb
RW
19951 case $ac_mode in
19952 :F)
19953 #
19954 # CONFIG_FILE
19955 #
c6b750e1
DJ
19956
19957 case $INSTALL in
19958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 19959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 19960 esac
81ecdfbb 19961_ACEOF
252b5132 19962
81ecdfbb
RW
19963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19964# If the template does not know about datarootdir, expand it.
19965# FIXME: This hack should be removed a few years after 2.60.
19966ac_datarootdir_hack=; ac_datarootdir_seen=
19967ac_sed_dataroot='
19968/datarootdir/ {
19969 p
19970 q
19971}
19972/@datadir@/p
19973/@docdir@/p
19974/@infodir@/p
19975/@localedir@/p
19976/@mandir@/p'
19977case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19978*datarootdir*) ac_datarootdir_seen=yes;;
19979*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19981$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 19982_ACEOF
81ecdfbb
RW
19983cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19984 ac_datarootdir_hack='
19985 s&@datadir@&$datadir&g
19986 s&@docdir@&$docdir&g
19987 s&@infodir@&$infodir&g
19988 s&@localedir@&$localedir&g
19989 s&@mandir@&$mandir&g
19990 s&\\\${datarootdir}&$datarootdir&g' ;;
19991esac
19992_ACEOF
19993
19994# Neutralize VPATH when `$srcdir' = `.'.
19995# Shell code in configure.ac might set extrasub.
19996# FIXME: do we really want to maintain this feature?
19997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19998ac_sed_extra="$ac_vpsub
c6b750e1
DJ
19999$extrasub
20000_ACEOF
81ecdfbb 20001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
20002:t
20003/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
20004s|@configure_input@|$ac_sed_conf_input|;t t
20005s&@top_builddir@&$ac_top_builddir_sub&;t t
20006s&@top_build_prefix@&$ac_top_build_prefix&;t t
20007s&@srcdir@&$ac_srcdir&;t t
20008s&@abs_srcdir@&$ac_abs_srcdir&;t t
20009s&@top_srcdir@&$ac_top_srcdir&;t t
20010s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20011s&@builddir@&$ac_builddir&;t t
20012s&@abs_builddir@&$ac_abs_builddir&;t t
20013s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20014s&@INSTALL@&$ac_INSTALL&;t t
20015$ac_datarootdir_hack
20016"
20017eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20018if $ac_cs_awk_getline; then
d0ac1c44 20019 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 20020else
d0ac1c44
SM
20021 $AWK -f "$ac_tmp/subs.awk" | $SHELL
20022fi \
20023 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
20024
20025test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
20026 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20027 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20028 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 20029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 20030which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 20031$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 20032which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 20033
d0ac1c44 20034 rm -f "$ac_tmp/stdin"
81ecdfbb 20035 case $ac_file in
d0ac1c44
SM
20036 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20037 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 20038 esac \
d0ac1c44 20039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 20040 ;;
c148b4cb 20041
c148b4cb 20042
c148b4cb 20043
81ecdfbb
RW
20044 esac
20045
06a51eac
RW
20046
20047 case $ac_file$ac_mode in
20048 "Makefile":F) sed "$extrasub_build" Makefile |
20049 sed "$extrasub_host" |
20050 sed "$extrasub_target" > mf$$
20051 mv -f mf$$ Makefile ;;
20052
20053 esac
81ecdfbb
RW
20054done # for ac_tag
20055
20056
20057as_fn_exit 0
c6b750e1 20058_ACEOF
c6b750e1
DJ
20059ac_clean_files=$ac_clean_files_save
20060
81ecdfbb 20061test $ac_write_fail = 0 ||
d0ac1c44 20062 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 20063
c6b750e1
DJ
20064
20065# configure is writing to config.log, and then calls config.status.
20066# config.status does its own redirection, appending to config.log.
20067# Unfortunately, on DOS this fails, as config.log is still kept open
20068# by configure, so config.status won't be able to write to it; its
20069# output is simply discarded. So we exec the FD to /dev/null,
20070# effectively closing config.log, so it can be properly (re)opened and
20071# appended to by config.status. When coming back to configure, we
20072# need to make the FD available again.
20073if test "$no_create" != yes; then
20074 ac_cs_success=:
20075 ac_config_status_args=
20076 test "$silent" = yes &&
20077 ac_config_status_args="$ac_config_status_args --quiet"
20078 exec 5>/dev/null
20079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20080 exec 5>>config.log
20081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20082 # would make configure fail if this is the last instruction.
d0ac1c44 20083 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
20084fi
20085if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20087$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 20088fi
c148b4cb 20089