]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Update gcc sv.po
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5213506e 7#
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
22e05272 90as_myself=
5213506e
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
1c710c3c
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
5213506e
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
22e05272
JM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
5213506e
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
5213506e
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 211do
5213506e
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
22e05272
JM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
5213506e
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 266 else
5213506e
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
1c710c3c 271 fi
5213506e
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
1c710c3c 301
5213506e
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e
RW
356
357
358} # as_fn_mkdir_p
22e05272
JM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
5213506e
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
22e05272
JM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
5213506e
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 407# script with STATUS, using 1 if that was 0.
5213506e
RW
408as_fn_error ()
409{
22e05272
JM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5213506e 414 fi
22e05272 415 $as_echo "$as_me: error: $2" >&2
5213506e
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
5213506e 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
5213506e
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
1c710c3c 437
5213506e 438as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
5213506e
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
1c710c3c 456
2aeb72e9
DD
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 463
1c710c3c 464
5213506e
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
1c710c3c 474 sed '
5213506e
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
1c710c3c 479 N
5213506e
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 482 t loop
5213506e 483 s/-\n.*//
1c710c3c 484 ' >$as_me.lineno &&
5213506e
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c 487
22e05272
JM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
1c710c3c
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
1c710c3c
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
5213506e
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
1c710c3c
DJ
511esac
512
5213506e
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
1c710c3c 516else
5213506e
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
1c710c3c 519fi
5213506e
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 522 as_ln_s='ln -s'
5213506e
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 526 # In both cases, we have to default to `cp -pR'.
5213506e 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 528 as_ln_s='cp -pR'
5213506e
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
22e05272 532 as_ln_s='cp -pR'
2aeb72e9 533 fi
1c710c3c 534else
22e05272 535 as_ln_s='cp -pR'
1c710c3c 536fi
5213506e
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
539
540if mkdir -p . 2>/dev/null; then
5213506e 541 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
22e05272
JM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
0b0dc272 549
1c710c3c
DJ
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
22e05272
JM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
1c710c3c
DJ
559
560# Name of the host.
22e05272 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1c710c3c
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
1c710c3c
DJ
565#
566# Initializations.
567#
671aa708 568ac_default_prefix=/usr/local
5213506e 569ac_clean_files=
1c710c3c 570ac_config_libobj_dir=.
5213506e 571LIBOBJS=
1c710c3c
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
2aeb72e9 576
1c710c3c
DJ
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
5213506e 583PACKAGE_URL=
1c710c3c
DJ
584
585ac_unique_file="move-if-change"
5213506e
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
e7a82751 604READELF_FOR_TARGET
5213506e 605RANLIB_FOR_TARGET
e4a9a572 606OTOOL_FOR_TARGET
5213506e 607OBJDUMP_FOR_TARGET
9bccfdf5 608OBJCOPY_FOR_TARGET
5213506e
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
3b5e8ee4 612DSYMUTIL_FOR_TARGET
5213506e
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
b4c522fa 616GDC_FOR_TARGET
632e2a07 617GOC_FOR_TARGET
5213506e 618GFORTRAN_FOR_TARGET
5213506e
RW
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
5fee5ec3 622GDCFLAGS
e7a82751 623READELF
e4a9a572 624OTOOL
5213506e
RW
625OBJDUMP
626OBJCOPY
627WINDMC
628WINDRES
629STRIP
630RANLIB
631NM
632LIPO
633LD
3b5e8ee4 634DSYMUTIL
5213506e
RW
635DLLTOOL
636AS
637AR
638RUNTEST
639EXPECT
640MAKEINFO
641FLEX
642LEX
643M4
644BISON
645YACC
5213506e
RW
646WINDRES_FOR_BUILD
647WINDMC_FOR_BUILD
648RANLIB_FOR_BUILD
649NM_FOR_BUILD
650LD_FOR_BUILD
651LDFLAGS_FOR_BUILD
b4c522fa 652GDC_FOR_BUILD
632e2a07 653GOC_FOR_BUILD
5213506e 654GFORTRAN_FOR_BUILD
3b5e8ee4 655DSYMUTIL_FOR_BUILD
5213506e
RW
656DLLTOOL_FOR_BUILD
657CXX_FOR_BUILD
658CXXFLAGS_FOR_BUILD
84401ce5
RP
659CPPFLAGS_FOR_BUILD
660CPP_FOR_BUILD
5213506e
RW
661CFLAGS_FOR_BUILD
662CC_FOR_BUILD
663AS_FOR_BUILD
664AR_FOR_BUILD
aae29963 665target_configdirs
5213506e 666configdirs
5213506e 667build_configdirs
5213506e
RW
668INSTALL_GDB_TK
669GDB_TK
670CONFIGURE_GDB_TK
671build_tooldir
672tooldir
673GCC_SHLIB_SUBDIR
674RPATH_ENVVAR
ffedf511
RW
675target_configargs
676host_configargs
677build_configargs
e12c4094 678BUILD_CONFIG
6f57bdf6 679LDFLAGS_FOR_TARGET
5213506e
RW
680CXXFLAGS_FOR_TARGET
681CFLAGS_FOR_TARGET
682DEBUG_PREFIX_CFLAGS_FOR_TARGET
683SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 684get_gcc_base_ver
1c01ebf6 685extra_host_zlib_configure_flags
d7f09764 686extra_host_libiberty_configure_flags
fca38047 687stage1_languages
cdfee50a 688host_shared
45b3824d
TS
689extra_linker_plugin_flags
690extra_linker_plugin_configure_flags
33ad93b9 691islinc
eae1a5d4 692isllibs
5213506e 693poststage1_ldflags
ed2eaa9f 694poststage1_libs
5213506e 695stage1_ldflags
0b21f5d3 696stage1_libs
0ff2d841 697extra_isl_gmp_configure_flags
5213506e
RW
698extra_mpc_mpfr_configure_flags
699extra_mpc_gmp_configure_flags
700extra_mpfr_configure_flags
701gmpinc
702gmplibs
4a5e71f2
L
703PGO_BUILD_LTO_CFLAGS
704PGO_BUILD_USE_CFLAGS
705PGO_BUILD_GEN_CFLAGS
7ffcf5d6 706HAVE_CXX11_FOR_BUILD
ffac9597 707HAVE_CXX11
5213506e 708do_compare
5fee5ec3 709GDC
5213506e
RW
710GNATMAKE
711GNATBIND
712ac_ct_CXX
713CXXFLAGS
714CXX
715OBJEXT
716EXEEXT
717ac_ct_CC
718CPPFLAGS
719LDFLAGS
720CFLAGS
721CC
5f520819 722extra_liboffloadmic_configure_flags
5213506e
RW
723target_subdir
724host_subdir
725build_subdir
726build_libsubdir
87264276
PB
727AWK
728SED
5213506e
RW
729LN_S
730LN
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_os
735target_vendor
736target_cpu
737target
738host_os
739host_vendor
740host_cpu
741host
742target_noncanonical
743host_noncanonical
744build_noncanonical
745build_os
746build_vendor
747build_cpu
748build
749TOPLEVEL_CONFIGURE_ARGUMENTS
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
780PACKAGE_URL
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
788ac_subst_files='serialization_dependencies
789host_makefile_frag
790target_makefile_frag
791alphaieee_frag
792ospace_frag'
793ac_user_opts='
794enable_option_checking
795with_build_libsubdir
a05c2c75 796with_system_zlib
85c64bbe
BS
797enable_as_accelerator_for
798enable_offload_targets
fe5bfa67 799enable_offload_defaulted
5213506e 800enable_gold
21539e2e 801enable_ld
78edb32f 802enable_compressed_debug_sections
87e6d9dc
TB
803enable_libquadmath
804enable_libquadmath_support
5213506e
RW
805enable_libada
806enable_libssp
1873ec0c 807enable_libstdcxx
5f520819 808enable_liboffloadmic
ff3ac0f4 809enable_bootstrap
4a5e71f2 810enable_pgo_build
5213506e
RW
811with_mpc
812with_mpc_include
813with_mpc_lib
814with_mpfr_dir
815with_mpfr
816with_mpfr_include
817with_mpfr_lib
818with_gmp_dir
819with_gmp
820with_gmp_include
821with_gmp_lib
5213506e 822with_stage1_libs
aac9103b 823with_static_standard_libraries
0b21f5d3 824with_stage1_ldflags
5213506e 825with_boot_libs
ed2eaa9f 826with_boot_ldflags
33ad93b9
RG
827with_isl
828with_isl_include
829with_isl_lib
830enable_isl_version_check
d7f09764 831enable_lto
45b3824d
TS
832enable_linker_plugin_configure_flags
833enable_linker_plugin_flags
cdfee50a 834enable_host_shared
5213506e 835enable_stage1_languages
43c40f3e 836enable_objc_gc
114bf3f1
MK
837with_target_bdw_gc
838with_target_bdw_gc_include
839with_target_bdw_gc_lib
3c36aa6b 840with_gcc_major_version_only
5213506e
RW
841with_build_sysroot
842with_debug_prefix_map
5646b7b9 843with_build_config
beeda1d9 844enable_vtable_verify
5213506e
RW
845enable_serial_configure
846with_build_time_tools
847enable_maintainer_mode
848enable_stage1_checking
849enable_werror
5213506e
RW
850'
851 ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CXX
860CXXFLAGS
861CCC
ffedf511
RW
862build_configargs
863host_configargs
864target_configargs
5213506e
RW
865AR
866AS
867DLLTOOL
3b5e8ee4 868DSYMUTIL
5213506e
RW
869LD
870LIPO
871NM
872RANLIB
873STRIP
874WINDRES
875WINDMC
876OBJCOPY
877OBJDUMP
e4a9a572 878OTOOL
e7a82751 879READELF
5213506e
RW
880CC_FOR_TARGET
881CXX_FOR_TARGET
882GCC_FOR_TARGET
5213506e 883GFORTRAN_FOR_TARGET
632e2a07 884GOC_FOR_TARGET
b4c522fa 885GDC_FOR_TARGET
5213506e
RW
886AR_FOR_TARGET
887AS_FOR_TARGET
888DLLTOOL_FOR_TARGET
3b5e8ee4 889DSYMUTIL_FOR_TARGET
5213506e
RW
890LD_FOR_TARGET
891LIPO_FOR_TARGET
892NM_FOR_TARGET
9bccfdf5 893OBJCOPY_FOR_TARGET
5213506e 894OBJDUMP_FOR_TARGET
e4a9a572 895OTOOL_FOR_TARGET
5213506e 896RANLIB_FOR_TARGET
e7a82751 897READELF_FOR_TARGET
5213506e
RW
898STRIP_FOR_TARGET
899WINDRES_FOR_TARGET
900WINDMC_FOR_TARGET'
901
671aa708
NN
902
903# Initialize some variables set by options.
1c710c3c
DJ
904ac_init_help=
905ac_init_version=false
5213506e
RW
906ac_unrecognized_opts=
907ac_unrecognized_sep=
671aa708
NN
908# The variables have the same names as the options, with
909# dashes changed to underlines.
1c710c3c 910cache_file=/dev/null
671aa708 911exec_prefix=NONE
671aa708 912no_create=
671aa708
NN
913no_recursion=
914prefix=NONE
915program_prefix=NONE
916program_suffix=NONE
917program_transform_name=s,x,x,
918silent=
919site=
920srcdir=
671aa708
NN
921verbose=
922x_includes=NONE
923x_libraries=NONE
1c710c3c
DJ
924
925# Installation directory options.
926# These are left unexpanded so users can "make install exec_prefix=/foo"
927# and all the variables that are supposed to be based on exec_prefix
928# by default will actually change.
929# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 930# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
931bindir='${exec_prefix}/bin'
932sbindir='${exec_prefix}/sbin'
933libexecdir='${exec_prefix}/libexec'
5213506e
RW
934datarootdir='${prefix}/share'
935datadir='${datarootdir}'
671aa708
NN
936sysconfdir='${prefix}/etc'
937sharedstatedir='${prefix}/com'
938localstatedir='${prefix}/var'
671aa708
NN
939includedir='${prefix}/include'
940oldincludedir='/usr/include'
5213506e
RW
941docdir='${datarootdir}/doc/${PACKAGE}'
942infodir='${datarootdir}/info'
943htmldir='${docdir}'
944dvidir='${docdir}'
945pdfdir='${docdir}'
946psdir='${docdir}'
947libdir='${exec_prefix}/lib'
948localedir='${datarootdir}/locale'
949mandir='${datarootdir}/man'
79c06341 950
671aa708 951ac_prev=
5213506e 952ac_dashdash=
671aa708
NN
953for ac_option
954do
671aa708
NN
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
5213506e 957 eval $ac_prev=\$ac_option
671aa708
NN
958 ac_prev=
959 continue
960 fi
79c06341 961
5213506e 962 case $ac_option in
22e05272
JM
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
5213506e 966 esac
671aa708
NN
967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
5213506e
RW
970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
671aa708
NN
973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 977 bindir=$ac_optarg ;;
671aa708
NN
978
979 -build | --build | --buil | --bui | --bu)
1c710c3c 980 ac_prev=build_alias ;;
671aa708 981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 982 build_alias=$ac_optarg ;;
671aa708
NN
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
671aa708 993
5213506e 994 -datadir | --datadir | --datadi | --datad)
671aa708 995 ac_prev=datadir ;;
5213506e 996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 997 datadir=$ac_optarg ;;
671aa708 998
5213506e
RW
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
671aa708 1006 -disable-* | --disable-*)
5213506e 1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1008 # Reject names that are not valid shell variable names.
5213506e 1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1010 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1014 *"
1015"enable_$ac_useropt"
1016"*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1021
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1026
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
671aa708
NN
1031
1032 -enable-* | --enable-*)
5213506e 1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1034 # Reject names that are not valid shell variable names.
5213506e 1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1036 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1040 *"
1041"enable_$ac_useropt"
1042"*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
2aeb72e9 1045 esac
5213506e 1046 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1047
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1c710c3c 1055 exec_prefix=$ac_optarg ;;
671aa708
NN
1056
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1060
1c710c3c
DJ
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
671aa708
NN
1067
1068 -host | --host | --hos | --ho)
1c710c3c 1069 ac_prev=host_alias ;;
671aa708 1070 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1071 host_alias=$ac_optarg ;;
671aa708 1072
5213506e
RW
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1078
671aa708
NN
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1084 includedir=$ac_optarg ;;
671aa708
NN
1085
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1089 infodir=$ac_optarg ;;
671aa708
NN
1090
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1094 libdir=$ac_optarg ;;
671aa708
NN
1095
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1101 libexecdir=$ac_optarg ;;
671aa708 1102
5213506e
RW
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1107
671aa708 1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1109 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1113 localstatedir=$ac_optarg ;;
671aa708
NN
1114
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1118 mandir=$ac_optarg ;;
671aa708
NN
1119
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1123
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1125 | --no-cr | --no-c | -n)
671aa708
NN
1126 no_create=yes ;;
1127
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1131
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1139 oldincludedir=$ac_optarg ;;
671aa708
NN
1140
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1144 prefix=$ac_optarg ;;
671aa708
NN
1145
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1151 program_prefix=$ac_optarg ;;
671aa708
NN
1152
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1158 program_suffix=$ac_optarg ;;
671aa708
NN
1159
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1175 program_transform_name=$ac_optarg ;;
671aa708 1176
5213506e
RW
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1181
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1186
671aa708
NN
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1190
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1c710c3c 1195 sbindir=$ac_optarg ;;
671aa708
NN
1196
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1c710c3c 1206 sharedstatedir=$ac_optarg ;;
671aa708
NN
1207
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1c710c3c 1211 site=$ac_optarg ;;
671aa708
NN
1212
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1216 srcdir=$ac_optarg ;;
671aa708
NN
1217
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1223 sysconfdir=$ac_optarg ;;
671aa708
NN
1224
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1226 ac_prev=target_alias ;;
671aa708 1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1228 target_alias=$ac_optarg ;;
671aa708
NN
1229
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1232
1c710c3c
DJ
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
671aa708
NN
1235
1236 -with-* | --with-*)
5213506e 1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1238 # Reject names that are not valid shell variable names.
5213506e 1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1240 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1244 *"
1245"with_$ac_useropt"
1246"*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
2aeb72e9 1249 esac
5213506e 1250 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1251
1252 -without-* | --without-*)
5213506e 1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1254 # Reject names that are not valid shell variable names.
5213506e 1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1256 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
671aa708
NN
1267
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1271
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1277 x_includes=$ac_optarg ;;
671aa708
NN
1278
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1284 x_libraries=$ac_optarg ;;
671aa708 1285
22e05272
JM
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287Try \`$0 --help' for more information"
671aa708
NN
1288 ;;
1289
1c710c3c
DJ
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
5213506e
RW
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1298 export $ac_envvar ;;
1299
671aa708 1300 *)
1c710c3c 1301 # FIXME: should be removed in autoconf 3.0.
5213506e 1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1306 ;;
1307
1308 esac
1309done
1310
1311if test -n "$ac_prev"; then
1c710c3c 1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1313 as_fn_error $? "missing argument to $ac_option"
af71363e 1314fi
af71363e 1315
5213506e
RW
1316if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
22e05272 1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1321 esac
5213506e 1322fi
2aeb72e9 1323
5213506e
RW
1324# Check all directory arguments for consistency.
1325for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
2aeb72e9 1329do
5213506e
RW
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
2aeb72e9 1338 case $ac_val in
5213506e
RW
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1341 esac
22e05272 1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1343done
1344
1c710c3c
DJ
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
0b0dc272 1351
1c710c3c
DJ
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1c710c3c
DJ
1356 elif test "x$build_alias" != "x$host_alias"; then
1357 cross_compiling=yes
1358 fi
1359fi
1360
1361ac_tool_prefix=
1362test -n "$host_alias" && ac_tool_prefix=$host_alias-
1363
1364test "$silent" = yes && exec 6>/dev/null
671aa708 1365
671aa708 1366
5213506e
RW
1367ac_pwd=`pwd` && test -n "$ac_pwd" &&
1368ac_ls_di=`ls -di .` &&
1369ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1370 as_fn_error $? "working directory cannot be determined"
5213506e 1371test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1372 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1373
1374
671aa708
NN
1375# Find the source files, if location was not specified.
1376if test -z "$srcdir"; then
1377 ac_srcdir_defaulted=yes
5213506e
RW
1378 # Try the directory containing this script, then the parent directory.
1379 ac_confdir=`$as_dirname -- "$as_myself" ||
1380$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1381 X"$as_myself" : 'X\(//\)[^/]' \| \
1382 X"$as_myself" : 'X\(//\)$' \| \
1383 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1384$as_echo X"$as_myself" |
1385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\/\)[^/].*/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\).*/{
1398 s//\1/
1399 q
1400 }
1401 s/.*/./; q'`
671aa708 1402 srcdir=$ac_confdir
5213506e 1403 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1404 srcdir=..
1405 fi
1406else
1407 ac_srcdir_defaulted=no
1408fi
5213506e
RW
1409if test ! -r "$srcdir/$ac_unique_file"; then
1410 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1411 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1412fi
1413ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1414ac_abs_confdir=`(
22e05272 1415 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1416 pwd)`
1417# When building in place, set srcdir=.
1418if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 srcdir=.
1420fi
1421# Remove unnecessary trailing slashes from srcdir.
1422# Double slashes in file names in object file debugging info
1423# mess up M-x gdb in Emacs.
1424case $srcdir in
1425*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426esac
87841584
AM
1427case $srcdir in
1428 *" "*)
22e05272 1429 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1430 ;;
1431esac
ac9e6043
RW
1432ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1433
5213506e
RW
1434for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439done
1c710c3c
DJ
1440
1441#
1442# Report the --help message.
1443#
1444if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448\`configure' configures this package to adapt to many kinds of systems.
1449
1450Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455Defaults for the options are specified in brackets.
1456
1457Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
22e05272 1462 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
1c710c3c
DJ
1468Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1470 [$ac_default_prefix]
1c710c3c 1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1472 [PREFIX]
1c710c3c
DJ
1473
1474By default, \`make install' will install all the files in
1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477for instance \`--prefix=\$HOME'.
1478
1479For better control, use the options below.
1480
1481Fine tuning of the installation directories:
5213506e
RW
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1501_ACEOF
1502
1503 cat <<\_ACEOF
1504
1505Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 --target=TARGET configure for building compilers for TARGET [HOST]
1514_ACEOF
1515fi
1516
1517if test -n "$ac_init_help"; then
1518
1519 cat <<\_ACEOF
1520
1521Optional Features:
5213506e 1522 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1525 --enable-as-accelerator-for=ARG
1526 build as offload target compiler. Specify offload
1527 host triple by ARG
1528 --enable-offload-targets=LIST
1529 enable offloading to devices from comma-separated
1530 LIST of TARGET[=DIR]. Use optional path to find
1531 offload target compiler during the build
fe5bfa67
TB
1532 --enable-offload-defaulted
1533 If enabled, configured but not installed offload compilers and
1534 libgomp plugins are silently ignored. Useful for distribution
1535 compilers where those are in separate optional packages.
1536
21539e2e 1537 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1538 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1539 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1540 Enable compressed debug sections for gas, gold or ld
1541 by default
87e6d9dc
TB
1542 --disable-libquadmath do not build libquadmath directory
1543 --disable-libquadmath-support
1544 disable libquadmath support for Fortran
30b74385
RW
1545 --enable-libada build libada directory
1546 --enable-libssp build libssp directory
1873ec0c 1547 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1548 --enable-liboffloadmic=ARG
1549 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1550 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1551 --enable-pgo-build[=lto]
1552 enable the PGO build
33ad93b9 1553 --disable-isl-version-check
560d18d3 1554 disable check for isl version
d7f09764 1555 --enable-lto enable link time optimization support
45b3824d
TS
1556 --enable-linker-plugin-configure-flags=FLAGS
1557 additional flags for configuring linker plugins
1558 [none]
1559 --enable-linker-plugin-flags=FLAGS
1560 additional flags for configuring and building linker
1561 plugins [none]
cdfee50a 1562 --enable-host-shared build host code as shared libraries
33e39b66
AS
1563 --enable-stage1-languages[=all]
1564 choose additional languages to build during stage1.
1565 Mostly useful for compiler development
43c40f3e
RO
1566 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1567 Objective-C runtime
318a4e6d 1568 --enable-vtable-verify Enable vtable verification feature
30b74385 1569 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1570 force sequential configuration of sub-packages for
1571 the host, target or build machine, or all
1572 sub-packages
1573 --enable-maintainer-mode
1574 enable make rules and dependencies not useful (and
1575 sometimes confusing) to the casual installer
1576 --enable-stage1-checking[=all]
1577 choose additional checking for stage1 of the
1578 compiler
1c710c3c
DJ
1579 --enable-werror enable -Werror in bootstrap stage2 and later
1580
1581Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1585 --with-system-zlib use installed libz
33e39b66
AS
1586 --with-mpc=PATH specify prefix directory for installed MPC package.
1587 Equivalent to --with-mpc-include=PATH/include plus
1588 --with-mpc-lib=PATH/lib
1589 --with-mpc-include=PATH specify directory for installed MPC include files
1590 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1591 --with-mpfr-dir=PATH this option has been REMOVED
1592 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1593 Equivalent to --with-mpfr-include=PATH/include plus
1594 --with-mpfr-lib=PATH/lib
1c710c3c 1595 --with-mpfr-include=PATH
30b74385
RW
1596 specify directory for installed MPFR include files
1597 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1598 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1599 --with-gmp=PATH specify prefix directory for the installed GMP
1600 package. Equivalent to
1601 --with-gmp-include=PATH/include plus
1602 --with-gmp-lib=PATH/lib
30b74385
RW
1603 --with-gmp-include=PATH specify directory for installed GMP include files
1604 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1605 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1606 --with-static-standard-libraries
1607 use -static-libstdc++ and -static-libgcc
1608 (default=auto)
33e39b66
AS
1609 --with-stage1-ldflags=FLAGS
1610 linker flags for stage1
33e39b66
AS
1611 --with-boot-libs=LIBS libraries for stage2 and later
1612 --with-boot-ldflags=FLAGS
1613 linker flags for stage2 and later
e357a5e0 1614 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1615 package. Equivalent to
33ad93b9
RG
1616 --with-isl-include=PATH/include plus
1617 --with-isl-lib=PATH/lib
560d18d3
AK
1618 --with-isl-include=PATH Specify directory for installed isl include files
1619 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1620 --with-target-bdw-gc=PATHLIST
1621 specify prefix directory for installed bdw-gc
1622 package. Equivalent to
1623 --with-target-bdw-gc-include=PATH/include plus
1624 --with-target-bdw-gc-lib=PATH/lib
1625 --with-target-bdw-gc-include=PATHLIST
1626 specify directories for installed bdw-gc include
1627 files
1628 --with-target-bdw-gc-lib=PATHLIST
1629 specify directories for installed bdw-gc library
3c36aa6b
JJ
1630 --with-gcc-major-version-only
1631 use only GCC major number in filesystem paths
30b74385 1632 --with-build-sysroot=SYSROOT
1c710c3c 1633 use sysroot as the system root during the build
c8aea42c 1634 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1635 map A to B, C to D ... in debug information
1636 --with-build-config='NAME NAME2...'
1637 use config/NAME.mk build configuration
30b74385 1638 --with-build-time-tools=PATH
1c710c3c 1639 use given path to find target tools during the build
1c710c3c
DJ
1640
1641Some influential environment variables:
1642 CC C compiler command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1645 nonstandard directory <lib dir>
5213506e 1646 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1647 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1648 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1649 CXX C++ compiler command
1650 CXXFLAGS C++ compiler flags
ffedf511
RW
1651 build_configargs
1652 additional configure arguments for build directories
1653 host_configargs
1654 additional configure arguments for host directories
1655 target_configargs
1656 additional configure arguments for target directories
278a7a38
AO
1657 AR AR for the host
1658 AS AS for the host
1659 DLLTOOL DLLTOOL for the host
3b5e8ee4 1660 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1661 LD LD for the host
1662 LIPO LIPO for the host
1663 NM NM for the host
1664 RANLIB RANLIB for the host
1665 STRIP STRIP for the host
1666 WINDRES WINDRES for the host
901119ae 1667 WINDMC WINDMC for the host
278a7a38
AO
1668 OBJCOPY OBJCOPY for the host
1669 OBJDUMP OBJDUMP for the host
e4a9a572 1670 OTOOL OTOOL for the host
e7a82751 1671 READELF READELF for the host
278a7a38
AO
1672 CC_FOR_TARGET
1673 CC for the target
1674 CXX_FOR_TARGET
1675 CXX for the target
1676 GCC_FOR_TARGET
1677 GCC for the target
278a7a38
AO
1678 GFORTRAN_FOR_TARGET
1679 GFORTRAN for the target
632e2a07
ILT
1680 GOC_FOR_TARGET
1681 GOC for the target
b4c522fa
IB
1682 GDC_FOR_TARGET
1683 GDC for the target
278a7a38
AO
1684 AR_FOR_TARGET
1685 AR for the target
1686 AS_FOR_TARGET
1687 AS for the target
1688 DLLTOOL_FOR_TARGET
1689 DLLTOOL for the target
3b5e8ee4
IS
1690 DSYMUTIL_FOR_TARGET
1691 DSYMUTIL for the target
278a7a38
AO
1692 LD_FOR_TARGET
1693 LD for the target
1694 LIPO_FOR_TARGET
1695 LIPO for the target
1696 NM_FOR_TARGET
1697 NM for the target
9bccfdf5
AP
1698 OBJCOPY_FOR_TARGET
1699 OBJCOPY for the target
278a7a38
AO
1700 OBJDUMP_FOR_TARGET
1701 OBJDUMP for the target
e4a9a572
IS
1702 OTOOL_FOR_TARGET
1703 OTOOL for the target
278a7a38
AO
1704 RANLIB_FOR_TARGET
1705 RANLIB for the target
e7a82751
RM
1706 READELF_FOR_TARGET
1707 READELF for the target
278a7a38
AO
1708 STRIP_FOR_TARGET
1709 STRIP for the target
1710 WINDRES_FOR_TARGET
1711 WINDRES for the target
901119ae
KT
1712 WINDMC_FOR_TARGET
1713 WINDMC for the target
1c710c3c
DJ
1714
1715Use these variables to override the choices made by `configure' or to help
1716it to find libraries and programs with nonstandard names/locations.
1717
5213506e 1718Report bugs to the package provider.
1c710c3c 1719_ACEOF
5213506e 1720ac_status=$?
1c710c3c
DJ
1721fi
1722
1723if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1c710c3c 1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1c710c3c
DJ
1729 ac_builddir=.
1730
5213506e
RW
1731case "$ac_dir" in
1732.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733*)
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741esac
1742ac_abs_top_builddir=$ac_pwd
1743ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744# for backward compatibility:
1745ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1746
1747case $srcdir in
5213506e 1748 .) # We are building in place.
1c710c3c 1749 ac_srcdir=.
5213506e
RW
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1753 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1760esac
5213506e
RW
1761ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1771 else
5213506e
RW
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1775 done
1776fi
1777
5213506e 1778test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1779if $ac_init_version; then
1780 cat <<\_ACEOF
5213506e 1781configure
22e05272 1782generated by GNU Autoconf 2.69
1c710c3c 1783
22e05272 1784Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1785This configure script is free software; the Free Software Foundation
1786gives unlimited permission to copy, distribute and modify it.
1787_ACEOF
5213506e 1788 exit
0b0dc272 1789fi
5213506e
RW
1790
1791## ------------------------ ##
1792## Autoconf initialization. ##
1793## ------------------------ ##
1794
1795# ac_fn_c_try_compile LINENO
1796# --------------------------
1797# Try to compile conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_c_try_compile ()
1799{
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806esac
1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808$as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1815 fi
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
22e05272
JM
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
5213506e
RW
1830
1831} # ac_fn_c_try_compile
1832
1833# ac_fn_cxx_try_compile LINENO
1834# ----------------------------
1835# Try to compile conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_cxx_try_compile ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844esac
1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846$as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1853 fi
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860else
1861 $as_echo "$as_me: failed program was:" >&5
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
1864 ac_retval=1
1865fi
22e05272
JM
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
5213506e
RW
1868
1869} # ac_fn_cxx_try_compile
1870
0b21f5d3
EB
1871# ac_fn_cxx_try_link LINENO
1872# -------------------------
1873# Try to link conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_cxx_try_link ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882esac
1883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884$as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
22e05272 1898 test -x conftest$ac_exeext
0b21f5d3
EB
1899 }; then :
1900 ac_retval=0
1901else
1902 $as_echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905 ac_retval=1
1906fi
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
0b21f5d3
EB
1914
1915} # ac_fn_cxx_try_link
1916
5213506e
RW
1917# ac_fn_c_try_link LINENO
1918# -----------------------
1919# Try to link conftest.$ac_ext, and return whether this succeeded.
1920ac_fn_c_try_link ()
1921{
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
22e05272 1944 test -x conftest$ac_exeext
5213506e
RW
1945 }; then :
1946 ac_retval=0
1947else
1948 $as_echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_retval=1
1952fi
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
5213506e
RW
1960
1961} # ac_fn_c_try_link
1962cat >config.log <<_ACEOF
1c710c3c
DJ
1963This file contains any messages produced by compilers while
1964running configure, to aid debugging if configure makes a mistake.
1965
1966It was created by $as_me, which was
22e05272 1967generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1968
1969 $ $0 $@
1970
1971_ACEOF
5213506e 1972exec 5>>config.log
1c710c3c
DJ
1973{
1974cat <<_ASUNAME
1975## --------- ##
1976## Platform. ##
1977## --------- ##
1978
1979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983uname -v = `(uname -v) 2>/dev/null || echo unknown`
1984
1985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1987
1988/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1991/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1992/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1995
1996_ASUNAME
1997
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
5213506e
RW
2003 $as_echo "PATH: $as_dir"
2004 done
2005IFS=$as_save_IFS
1c710c3c
DJ
2006
2007} >&5
2008
2009cat >&5 <<_ACEOF
2010
2011
2012## ----------- ##
2013## Core tests. ##
2014## ----------- ##
2015
2016_ACEOF
2017
2018
2019# Keep a trace of the command line.
2020# Strip out --no-create and --no-recursion so they do not pile up.
2021# Strip out --silent because we don't want to record it for future runs.
2022# Also quote any args containing shell meta-characters.
2023# Make two passes to allow for proper duplicate-argument suppression.
2024ac_configure_args=
2025ac_configure_args0=
2026ac_configure_args1=
1c710c3c
DJ
2027ac_must_keep_next=false
2028for ac_pass in 1 2
2029do
2030 for ac_arg
2031 do
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
5213506e
RW
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2039 esac
2040 case $ac_pass in
5213506e 2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2042 2)
5213506e 2043 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2055 ;;
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2058 fi
5213506e 2059 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2060 ;;
2061 esac
2062 done
2063done
5213506e
RW
2064{ ac_configure_args0=; unset ac_configure_args0;}
2065{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2066
2067# When interrupted or exit'd, cleanup temporary files, and complete
2068# config.log. We remove comments because anyway the quotes in there
2069# would cause problems or look ugly.
5213506e
RW
2070# WARNING: Use '\'' to represent an apostrophe within the trap.
2071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2072trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2074 {
2075 echo
2076
22e05272 2077 $as_echo "## ---------------- ##
1c710c3c 2078## Cache variables. ##
22e05272 2079## ---------------- ##"
1c710c3c
DJ
2080 echo
2081 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2082(
2083 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2084 eval ac_val=\$$ac_var
2085 case $ac_val in #(
2086 *${as_nl}*)
2087 case $ac_var in #(
2088 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2089$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2090 esac
2091 case $ac_var in #(
2092 _ | IFS | as_nl) ;; #(
2093 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2094 *) { eval $ac_var=; unset $ac_var;} ;;
2095 esac ;;
2096 esac
2097 done
1c710c3c 2098 (set) 2>&1 |
5213506e
RW
2099 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2100 *${as_nl}ac_space=\ *)
1c710c3c 2101 sed -n \
5213506e
RW
2102 "s/'\''/'\''\\\\'\'''\''/g;
2103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2104 ;; #(
1c710c3c 2105 *)
5213506e 2106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2107 ;;
5213506e
RW
2108 esac |
2109 sort
2110)
1c710c3c
DJ
2111 echo
2112
22e05272 2113 $as_echo "## ----------------- ##
1c710c3c 2114## Output variables. ##
22e05272 2115## ----------------- ##"
1c710c3c
DJ
2116 echo
2117 for ac_var in $ac_subst_vars
2118 do
5213506e
RW
2119 eval ac_val=\$$ac_var
2120 case $ac_val in
2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2122 esac
2123 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2124 done | sort
2125 echo
2126
2127 if test -n "$ac_subst_files"; then
22e05272 2128 $as_echo "## ------------------- ##
5213506e 2129## File substitutions. ##
22e05272 2130## ------------------- ##"
1c710c3c
DJ
2131 echo
2132 for ac_var in $ac_subst_files
2133 do
5213506e
RW
2134 eval ac_val=\$$ac_var
2135 case $ac_val in
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2137 esac
2138 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2139 done | sort
2140 echo
2141 fi
2142
2143 if test -s confdefs.h; then
22e05272 2144 $as_echo "## ----------- ##
1c710c3c 2145## confdefs.h. ##
22e05272 2146## ----------- ##"
1c710c3c 2147 echo
5213506e 2148 cat confdefs.h
1c710c3c
DJ
2149 echo
2150 fi
2151 test "$ac_signal" != 0 &&
5213506e
RW
2152 $as_echo "$as_me: caught signal $ac_signal"
2153 $as_echo "$as_me: exit $exit_status"
1c710c3c 2154 } >&5
5213506e
RW
2155 rm -f core *.core core.conftest.* &&
2156 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2157 exit $exit_status
5213506e 2158' 0
1c710c3c 2159for ac_signal in 1 2 13 15; do
5213506e 2160 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2161done
2162ac_signal=0
2163
2164# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2165rm -f -r conftest* confdefs.h
2166
2167$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2168
2169# Predefined preprocessor variables.
2170
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_NAME "$PACKAGE_NAME"
2173_ACEOF
2174
1c710c3c
DJ
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2177_ACEOF
2178
1c710c3c
DJ
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_VERSION "$PACKAGE_VERSION"
2181_ACEOF
0b0dc272 2182
1c710c3c
DJ
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_STRING "$PACKAGE_STRING"
2185_ACEOF
2186
1c710c3c
DJ
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2189_ACEOF
2190
5213506e
RW
2191cat >>confdefs.h <<_ACEOF
2192#define PACKAGE_URL "$PACKAGE_URL"
2193_ACEOF
2194
1c710c3c
DJ
2195
2196# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2197# Prefer an explicitly selected file to automatically selected ones.
2198ac_site_file1=NONE
2199ac_site_file2=NONE
2200if test -n "$CONFIG_SITE"; then
22e05272
JM
2201 # We do not want a PATH search for config.site.
2202 case $CONFIG_SITE in #((
2203 -*) ac_site_file1=./$CONFIG_SITE;;
2204 */*) ac_site_file1=$CONFIG_SITE;;
2205 *) ac_site_file1=./$CONFIG_SITE;;
2206 esac
5213506e
RW
2207elif test "x$prefix" != xNONE; then
2208 ac_site_file1=$prefix/share/config.site
2209 ac_site_file2=$prefix/etc/config.site
2210else
2211 ac_site_file1=$ac_default_prefix/share/config.site
2212 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2213fi
5213506e
RW
2214for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2215do
2216 test "x$ac_site_file" = xNONE && continue
22e05272 2217 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2219$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2220 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2221 . "$ac_site_file" \
2222 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224as_fn_error $? "failed to load site script $ac_site_file
2225See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2226 fi
2227done
2228
2229if test -r "$cache_file"; then
22e05272
JM
2230 # Some versions of bash will fail to source /dev/null (special files
2231 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2232 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2234$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2235 case $cache_file in
5213506e
RW
2236 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2237 *) . "./$cache_file";;
1c710c3c
DJ
2238 esac
2239 fi
671aa708 2240else
5213506e
RW
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2242$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2243 >$cache_file
2244fi
2245
2246# Check that the precious variables saved in the cache have kept the same
2247# value.
2248ac_cache_corrupted=false
5213506e 2249for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2251 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2252 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2253 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2254 case $ac_old_set,$ac_new_set in
2255 set,)
5213506e
RW
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2257$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2258 ac_cache_corrupted=: ;;
2259 ,set)
5213506e
RW
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2261$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2262 ac_cache_corrupted=: ;;
2263 ,);;
2264 *)
2265 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2266 # differences in whitespace do not lead to failure.
2267 ac_old_val_w=`echo x $ac_old_val`
2268 ac_new_val_w=`echo x $ac_new_val`
2269 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2271$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2272 ac_cache_corrupted=:
2273 else
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2275$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2276 eval $ac_var=\$ac_old_val
2277 fi
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2279$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2281$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2282 fi;;
2283 esac
2284 # Pass precious variables to config.status.
2285 if test "$ac_new_set" = set; then
2286 case $ac_new_val in
5213506e 2287 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2288 *) ac_arg=$ac_var=$ac_new_val ;;
2289 esac
2290 case " $ac_configure_args " in
2291 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2292 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2293 esac
2294 fi
2295done
2296if $ac_cache_corrupted; then
5213506e
RW
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2300$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2301 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2302fi
5213506e
RW
2303## -------------------- ##
2304## Main body of script. ##
2305## -------------------- ##
671aa708 2306
2aeb72e9
DD
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312
1c710c3c
DJ
2313
2314
2315
1c710c3c
DJ
2316
2317
0115d4a3 2318
1c710c3c 2319
ad33ff57
RW
2320progname=$0
2321# if PWD already has a value, it is probably wrong.
2322if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2323
2324# Export original configure arguments for use by sub-configures.
2325# Quote arguments with shell meta charatcers.
2326TOPLEVEL_CONFIGURE_ARGUMENTS=
2327set -- "$progname" "$@"
2328for ac_arg
2329do
2330 case "$ac_arg" in
2331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2332 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2333 # if the argument is of the form -foo=baz, quote the baz part only
2334 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2335 *) ;;
2336 esac
2337 # Add the quoted argument to the list.
2338 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2339done
2340if test "$silent" = yes; then
2341 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2342fi
2343# Remove the initial space we just introduced and, as these will be
2344# expanded by make, quote '$'.
2345TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2346
1c710c3c
DJ
2347
2348# Find the build, host, and target systems.
671aa708 2349ac_aux_dir=
5213506e 2350for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2351 if test -f "$ac_dir/install-sh"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/install-sh -c"
2354 break
2355 elif test -f "$ac_dir/install.sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install.sh -c"
2358 break
2359 elif test -f "$ac_dir/shtool"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/shtool install -c"
2362 break
2363 fi
671aa708
NN
2364done
2365if test -z "$ac_aux_dir"; then
22e05272 2366 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2367fi
5213506e
RW
2368
2369# These three variables are undocumented and unsupported,
2370# and are intended to be withdrawn in a future Autoconf release.
2371# They can cause serious problems if a builder's source tree is in a directory
2372# whose full name contains unusual characters.
2373ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2374ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2375ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2376
671aa708 2377
1c710c3c 2378# Make sure we can run config.sub.
5213506e 2379$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2380 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2381
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2383$as_echo_n "checking build system type... " >&6; }
22e05272 2384if ${ac_cv_build+:} false; then :
5213506e
RW
2385 $as_echo_n "(cached) " >&6
2386else
2387 ac_build_alias=$build_alias
2388test "x$ac_build_alias" = x &&
2389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2390test "x$ac_build_alias" = x &&
22e05272 2391 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2392ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2393 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2394
2395fi
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2397$as_echo "$ac_cv_build" >&6; }
2398case $ac_cv_build in
2399*-*-*) ;;
22e05272 2400*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2401esac
1c710c3c 2402build=$ac_cv_build
5213506e
RW
2403ac_save_IFS=$IFS; IFS='-'
2404set x $ac_cv_build
2405shift
2406build_cpu=$1
2407build_vendor=$2
2408shift; shift
2409# Remember, the first character of IFS is used to create $*,
2410# except with old shells:
2411build_os=$*
2412IFS=$ac_save_IFS
2413case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2414
671aa708 2415
1c710c3c
DJ
2416 case ${build_alias} in
2417 "") build_noncanonical=${build} ;;
2418 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2419esac
2420
2421
af71363e 2422
1c710c3c
DJ
2423 case ${host_alias} in
2424 "") host_noncanonical=${build_noncanonical} ;;
2425 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2426esac
2427
af71363e 2428
1c710c3c
DJ
2429
2430 case ${target_alias} in
2431 "") target_noncanonical=${host_noncanonical} ;;
2432 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2433esac
2434
af71363e 2435
1c710c3c
DJ
2436
2437
2438test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2439 test "$program_prefix$program_suffix$program_transform_name" = \
2440 NONENONEs,x,x, &&
1c710c3c 2441 program_transform_name=s,y,y,
af71363e 2442
5213506e
RW
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2444$as_echo_n "checking host system type... " >&6; }
22e05272 2445if ${ac_cv_host+:} false; then :
5213506e 2446 $as_echo_n "(cached) " >&6
af71363e 2447else
5213506e
RW
2448 if test "x$host_alias" = x; then
2449 ac_cv_host=$ac_cv_build
2450else
2451 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2452 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2453fi
1c710c3c 2454
af71363e 2455fi
5213506e
RW
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2457$as_echo "$ac_cv_host" >&6; }
2458case $ac_cv_host in
2459*-*-*) ;;
22e05272 2460*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2461esac
1c710c3c 2462host=$ac_cv_host
5213506e
RW
2463ac_save_IFS=$IFS; IFS='-'
2464set x $ac_cv_host
2465shift
2466host_cpu=$1
2467host_vendor=$2
2468shift; shift
2469# Remember, the first character of IFS is used to create $*,
2470# except with old shells:
2471host_os=$*
2472IFS=$ac_save_IFS
2473case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2474
2475
5213506e
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2477$as_echo_n "checking target system type... " >&6; }
22e05272 2478if ${ac_cv_target+:} false; then :
5213506e 2479 $as_echo_n "(cached) " >&6
1c710c3c 2480else
5213506e
RW
2481 if test "x$target_alias" = x; then
2482 ac_cv_target=$ac_cv_host
2483else
2484 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2486fi
1c710c3c
DJ
2487
2488fi
5213506e
RW
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2490$as_echo "$ac_cv_target" >&6; }
2491case $ac_cv_target in
2492*-*-*) ;;
22e05272 2493*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2494esac
1c710c3c 2495target=$ac_cv_target
5213506e
RW
2496ac_save_IFS=$IFS; IFS='-'
2497set x $ac_cv_target
2498shift
2499target_cpu=$1
2500target_vendor=$2
2501shift; shift
2502# Remember, the first character of IFS is used to create $*,
2503# except with old shells:
2504target_os=$*
2505IFS=$ac_save_IFS
2506case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2507
2508
2509# The aliases save the names the user supplied, while $host etc.
2510# will get canonicalized.
2511test -n "$target_alias" &&
2512 test "$program_prefix$program_suffix$program_transform_name" = \
2513 NONENONEs,x,x, &&
2514 program_prefix=${target_alias}-
5213506e 2515
671aa708 2516test "$program_prefix" != NONE &&
5213506e 2517 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2518# Use a double $ so make ignores it.
2519test "$program_suffix" != NONE &&
5213506e
RW
2520 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2521# Double any \ or $.
1c710c3c 2522# By default was `s,x,x', remove it if useless.
5213506e
RW
2523ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2524program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2525
671aa708
NN
2526
2527
775956d0
NN
2528# Get 'install' or 'install-sh' and its variants.
2529# Find a good install program. We prefer a C program (faster),
2530# so one script is as good as another. But avoid the broken or
2531# incompatible versions:
2532# SysV /etc/install, /usr/sbin/install
2533# SunOS /usr/etc/install
2534# IRIX /sbin/install
2535# AIX /bin/install
1c710c3c 2536# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2540# OS/2's system install, which has a completely different semantic
775956d0 2541# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2542# Reject install programs that cannot install multiple files.
5213506e
RW
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2545if test -z "$INSTALL"; then
22e05272 2546if ${ac_cv_path_install+:} false; then :
5213506e 2547 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2548else
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552 IFS=$as_save_IFS
2553 test -z "$as_dir" && as_dir=.
5213506e
RW
2554 # Account for people who put trailing slashes in PATH elements.
2555case $as_dir/ in #((
2556 ./ | .// | /[cC]/* | \
1c710c3c 2557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2559 /usr/ucb/* ) ;;
2560 *)
2561 # OSF1 and SCO ODT 3.0 have their own names for install.
2562 # Don't use installbsd from OSF since it installs stuff as root
2563 # by default.
2564 for ac_prog in ginstall scoinst install; do
2565 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2566 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2567 if test $ac_prog = install &&
1c710c3c 2568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2569 # AIX install. It has an incompatible calling convention.
2570 :
1c710c3c
DJ
2571 elif test $ac_prog = install &&
2572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573 # program-specific install script used by HP pwplus--don't use.
2574 :
775956d0 2575 else
38d24731
RW
2576 rm -rf conftest.one conftest.two conftest.dir
2577 echo one > conftest.one
2578 echo two > conftest.two
2579 mkdir conftest.dir
2580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581 test -s conftest.one && test -s conftest.two &&
2582 test -s conftest.dir/conftest.one &&
2583 test -s conftest.dir/conftest.two
2584 then
2585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586 break 3
2587 fi
775956d0
NN
2588 fi
2589 fi
2590 done
1c710c3c
DJ
2591 done
2592 ;;
2593esac
5213506e
RW
2594
2595 done
2596IFS=$as_save_IFS
1c710c3c 2597
38d24731 2598rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2599
2600fi
2601 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2602 INSTALL=$ac_cv_path_install
775956d0 2603 else
38d24731
RW
2604 # As a last resort, use the slow shell script. Don't cache a
2605 # value for INSTALL within a source directory, because that will
775956d0 2606 # break other packages using the cache if that directory is
38d24731 2607 # removed, or if the value is a relative name.
1c710c3c 2608 INSTALL=$ac_install_sh
775956d0
NN
2609 fi
2610fi
5213506e
RW
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612$as_echo "$INSTALL" >&6; }
775956d0
NN
2613
2614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615# It thinks the first close brace ends the variable substitution.
2616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617
1c710c3c 2618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2619
2620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621
5213506e
RW
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2623$as_echo_n "checking whether ln works... " >&6; }
22e05272 2624if ${acx_cv_prog_LN+:} false; then :
5213506e 2625 $as_echo_n "(cached) " >&6
ad6717df
PB
2626else
2627 rm -f conftestdata_t
2628echo >conftestdata_f
2629if ln conftestdata_f conftestdata_t 2>/dev/null
2630then
2631 acx_cv_prog_LN=ln
2632else
2633 acx_cv_prog_LN=no
2634fi
2635rm -f conftestdata_f conftestdata_t
2636
2637fi
2638if test $acx_cv_prog_LN = no; then
2639 LN="cp"
5213506e
RW
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2641$as_echo "no, using $LN" >&6; }
ad6717df
PB
2642else
2643 LN="$acx_cv_prog_LN"
5213506e
RW
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2645$as_echo "yes" >&6; }
ad6717df
PB
2646fi
2647
5213506e
RW
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2649$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2650LN_S=$as_ln_s
2651if test "$LN_S" = "ln -s"; then
5213506e
RW
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653$as_echo "yes" >&6; }
fb0103e5 2654else
5213506e
RW
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2656$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2657fi
2658
87264276
PB
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2660$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2661if ${ac_cv_path_SED+:} false; then :
87264276
PB
2662 $as_echo_n "(cached) " >&6
2663else
2664 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2665 for ac_i in 1 2 3 4 5 6 7; do
2666 ac_script="$ac_script$as_nl$ac_script"
2667 done
2668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2669 { ac_script=; unset ac_script;}
2670 if test -z "$SED"; then
2671 ac_path_SED_found=false
2672 # Loop through the user's path and test for each of PROGNAME-LIST
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_prog in sed gsed; do
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2681 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2682# Check for GNU ac_path_SED and select it if it is found.
2683 # Check for GNU $ac_path_SED
2684case `"$ac_path_SED" --version 2>&1` in
2685*GNU*)
2686 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2687*)
2688 ac_count=0
2689 $as_echo_n 0123456789 >"conftest.in"
2690 while :
2691 do
2692 cat "conftest.in" "conftest.in" >"conftest.tmp"
2693 mv "conftest.tmp" "conftest.in"
2694 cp "conftest.in" "conftest.nl"
2695 $as_echo '' >> "conftest.nl"
2696 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2698 as_fn_arith $ac_count + 1 && ac_count=$as_val
2699 if test $ac_count -gt ${ac_path_SED_max-0}; then
2700 # Best one so far, save it but keep looking for a better one
2701 ac_cv_path_SED="$ac_path_SED"
2702 ac_path_SED_max=$ac_count
2703 fi
2704 # 10*(2^10) chars as input seems more than enough
2705 test $ac_count -gt 10 && break
2706 done
2707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2708esac
2709
2710 $ac_path_SED_found && break 3
2711 done
2712 done
2713 done
2714IFS=$as_save_IFS
2715 if test -z "$ac_cv_path_SED"; then
22e05272 2716 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2717 fi
2718else
2719 ac_cv_path_SED=$SED
2720fi
2721
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2724$as_echo "$ac_cv_path_SED" >&6; }
2725 SED="$ac_cv_path_SED"
2726 rm -f conftest.sed
2727
2728for ac_prog in gawk mawk nawk awk
2729do
2730 # Extract the first word of "$ac_prog", so it can be a program name with args.
2731set dummy $ac_prog; ac_word=$2
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2734if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2735 $as_echo_n "(cached) " >&6
2736else
2737 if test -n "$AWK"; then
2738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2747 ac_cv_prog_AWK="$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752 done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757AWK=$ac_cv_prog_AWK
2758if test -n "$AWK"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760$as_echo "$AWK" >&6; }
2761else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764fi
2765
2766
2767 test -n "$AWK" && break
2768done
2769
775956d0 2770
ee6a22df
L
2771srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2772
2773# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2774# a relative path.
2775if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2776 INSTALL="${srcpwd}/install-sh -c"
2777fi
2778
671aa708
NN
2779# Set srcdir to "." if that's what it is.
2780# This is important for multilib support.
2781pwd=`${PWDCMD-pwd}`
671aa708
NN
2782if test "${pwd}" = "${srcpwd}" ; then
2783 srcdir=.
79c06341
JL
2784fi
2785
671aa708 2786topsrcdir=$srcpwd
5d4a5ee6 2787
671aa708 2788extra_host_args=
afabd8e6 2789
671aa708
NN
2790### To add a new directory to the tree, first choose whether it is a target
2791### or a host dependent tool. Then put it into the appropriate list
2792### (library or tools, host or target), doing a dependency sort.
79c06341 2793
1c710c3c 2794# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2795# configdirs, or target_configdirs; see the serialization section below.
79c06341 2796
1c710c3c
DJ
2797# Dependency sorting is only needed when *configuration* must be done in
2798# a particular order. In all cases a dependency should be specified in
671aa708 2799# the Makefile, whether or not it's implicitly specified here.
79c06341 2800
671aa708
NN
2801# Double entries in build_configdirs, configdirs, or target_configdirs may
2802# cause circular dependencies and break everything horribly.
79c06341 2803
23f6b2f9
PB
2804# these library is used by various programs built for the build
2805# environment
2806#
929315a9 2807build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2808
2809# these tools are built for the build environment
85bfb75e 2810build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2811
671aa708 2812# these libraries are used by various programs built for the host environment
eae1a5d4 2813#f
36230329 2814host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2815
671aa708
NN
2816# these tools are built for the host environment
2817# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2818# know that we are building the simulator.
2819# binutils, gas and ld appear in that order because it makes sense to run
2820# "make check" in that particular order.
38e3d868 2821# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2822host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
671aa708 2823
671aa708
NN
2824# these libraries are built for the target environment, and are built after
2825# the host libraries and the host tools (which may be a cross compiler)
8499116a 2826# Note that libiberty is not a target library.
291f172e 2827target_libraries="target-libgcc \
eff02e4f 2828 target-libbacktrace \
671aa708
NN
2829 target-libgloss \
2830 target-newlib \
6d3b5aea 2831 target-libgomp \
5f520819 2832 target-liboffloadmic \
48310492 2833 target-libatomic \
0a35513e 2834 target-libitm \
cb543528 2835 target-libstdc++-v3 \
f35db108 2836 target-libsanitizer \
2077db1b 2837 target-libvtv \
77008252 2838 target-libssp \
1ec601bf 2839 target-libquadmath \
6de9cd9a 2840 target-libgfortran \
012447ea 2841 target-libffi \
d9cdb878 2842 target-libobjc \
632e2a07 2843 target-libada \
b4c522fa 2844 target-libgo \
bb50312e
IB
2845 target-libphobos \
2846 target-zlib"
671aa708 2847
4dbda6f0
NN
2848# these tools are built using the target libraries, and are intended to
2849# run only in the target environment
671aa708 2850#
4dbda6f0 2851# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2852# list belongs in this list.
671aa708 2853#
85bfb75e 2854target_tools="target-rda"
79c06341 2855
671aa708 2856################################################################################
79c06341 2857
671aa708
NN
2858## All tools belong in one of the four categories, and are assigned above
2859## We assign ${configdirs} this way to remove all embedded newlines. This
2860## is important because configure will choke if they ever get through.
2861## ${configdirs} is directories we build using the host tools.
2862## ${target_configdirs} is directories we build using the target tools.
671aa708 2863configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2864target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2865build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2866
ac9e6043
RW
2867
2868
671aa708 2869################################################################################
79c06341 2870
671aa708 2871srcname="gnu development package"
79c06341 2872
671aa708
NN
2873# This gets set non-empty for some net releases of packages.
2874appdirs=""
79c06341 2875
671aa708
NN
2876# Define is_cross_compiler to save on calls to 'test'.
2877is_cross_compiler=
2878if test x"${host}" = x"${target}" ; then
2879 is_cross_compiler=no
79c06341 2880else
671aa708 2881 is_cross_compiler=yes
1c710c3c 2882fi
79c06341 2883
b4acb5ef 2884# Find the build and target subdir names.
8b87bb96 2885
2e9e6f68
DJ
2886# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2887# have matching libraries, they should use host libraries: Makefile.tpl
2888# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2889# However, they still use the build modules, because the corresponding
2890# host modules (e.g. bison) are only built for the host when bootstrap
2891# finishes. So:
2892# - build_subdir is where we find build modules, and never changes.
2893# - build_libsubdir is where we find build libraries, and can be overridden.
2894
2895# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2896build_subdir="build-${build_noncanonical}"
1c710c3c 2897
5213506e
RW
2898# Check whether --with-build-libsubdir was given.
2899if test "${with_build_libsubdir+set}" = set; then :
2900 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2901else
2902 build_libsubdir="$build_subdir"
5213506e
RW
2903fi
2904
215c351a
PB
2905# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2906if ( test $srcdir = . && test -d gcc ) \
2907 || test -d $srcdir/../host-${host_noncanonical}; then
2908 host_subdir="host-${host_noncanonical}"
2909else
2910 host_subdir=.
2911fi
8b87bb96
NN
2912# No prefix.
2913target_subdir=${target_noncanonical}
1c710c3c 2914
0db770bd
RW
2915# Be sure to cover against remnants of an in-tree build.
2916if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2917 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2918Use a pristine source tree when building in a separate tree" "$LINENO" 5
2919fi
79c06341 2920
671aa708
NN
2921# Skipdirs are removed silently.
2922skipdirs=
2923# Noconfigdirs are removed loudly.
2924noconfigdirs=""
79c06341 2925
671aa708
NN
2926use_gnu_ld=
2927# Make sure we don't let GNU ld be added if we didn't want it.
2928if test x$with_gnu_ld = xno ; then
2929 use_gnu_ld=no
5afab7ad 2930 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2931fi
2932
671aa708
NN
2933use_gnu_as=
2934# Make sure we don't let GNU as be added if we didn't want it.
2935if test x$with_gnu_as = xno ; then
2936 use_gnu_as=no
2937 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2938fi
2939
d7f09764 2940use_included_zlib=
a05c2c75
L
2941
2942# Check whether --with-system-zlib was given.
2943if test "${with_system_zlib+set}" = set; then :
2944 withval=$with_system_zlib;
2945fi
2946
d7f09764
DN
2947# Make sure we don't let ZLIB be added if we didn't want it.
2948if test x$with_system_zlib = xyes ; then
2949 use_included_zlib=no
2950 noconfigdirs="$noconfigdirs zlib"
2951fi
2952
1c710c3c 2953# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2954# it's not even worth trying to configure, much less build, that tool.
79c06341 2955
671aa708
NN
2956case ${with_x} in
2957 yes | "") ;; # the default value for this tree is that X11 is available
2958 no)
b4f96efe 2959 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2960 # We won't be able to build gdbtk without X.
1c710c3c 2961 enable_gdbtk=no
671aa708
NN
2962 ;;
2963 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2964esac
79c06341 2965
1bcce263 2966# Some are only suitable for cross toolchains.
671aa708
NN
2967# Remove these if host=target.
2968cross_only="target-libgloss target-newlib target-opcodes"
2969
2970case $is_cross_compiler in
2971 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2972esac
79c06341 2973
671aa708
NN
2974# If both --with-headers and --with-libs are specified, default to
2975# --without-newlib.
ee6a22df
L
2976if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2977 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2978 if test x"${with_newlib}" = x ; then
2979 with_newlib=no
2980 fi
79c06341
JL
2981fi
2982
671aa708
NN
2983# Recognize --with-newlib/--without-newlib.
2984case ${with_newlib} in
2985 no) skipdirs="${skipdirs} target-newlib" ;;
2986 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2987esac
79c06341 2988
85c64bbe
BS
2989# Check whether --enable-as-accelerator-for was given.
2990if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2991 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2992fi
2993
2994
2995# Check whether --enable-offload-targets was given.
2996if test "${enable_offload_targets+set}" = set; then :
2997 enableval=$enable_offload_targets;
2998 if test x"$enable_offload_targets" = x; then
22e05272 2999 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
3000 fi
3001
3002else
3003 enable_offload_targets=
3004fi
3005
3006
fe5bfa67
TB
3007# Check whether --enable-offload-defaulted was given.
3008if test "${enable_offload_defaulted+set}" = set; then :
3009 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3010else
3011 enable_offload_defaulted=
3012fi
3013
3014
21539e2e
MK
3015# Handle --enable-gold, --enable-ld.
3016# --disable-gold [--enable-ld]
3017# Build only ld. Default option.
9580395f
L
3018# --enable-gold [--enable-ld]
3019# Build both gold and ld. Install gold as "ld.gold", install ld
3020# as "ld.bfd" and "ld".
3021# --enable-gold=default [--enable-ld]
21539e2e
MK
3022# Build both gold and ld. Install gold as "ld.gold" and "ld",
3023# install ld as "ld.bfd".
3024# --enable-gold[=default] --disable-ld
3025# Build only gold, which is then installed as both "ld.gold" and "ld".
3026# --enable-gold --enable-ld=default
9580395f
L
3027# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3028# and ld.bfd).
21539e2e
MK
3029# In other words, ld is default
3030# --enable-gold=default --enable-ld=default
3031# Error.
3032
3033default_ld=
5213506e
RW
3034# Check whether --enable-gold was given.
3035if test "${enable_gold+set}" = set; then :
3036 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3037else
3038 ENABLE_GOLD=no
5213506e
RW
3039fi
3040
21539e2e
MK
3041case "${ENABLE_GOLD}" in
3042 yes|default)
38e3d868
RM
3043 # Check for ELF target.
3044 is_elf=no
3045 case "${target}" in
3046 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3047 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3048 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3049 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3050 case "${target}" in
3051 *-*-linux*aout* | *-*-linux*oldld*)
3052 ;;
3053 *)
3054 is_elf=yes
3055 ;;
3056 esac
3057 esac
3058
3059 if test "$is_elf" = "yes"; then
3060 # Check for target supported by gold.
5afab7ad 3061 case "${target}" in
7705dfd1 3062 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3063 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3064 configdirs="$configdirs gold"
3065 if test x${ENABLE_GOLD} = xdefault; then
3066 default_ld=gold
3067 fi
38e3d868 3068 ENABLE_GOLD=yes
5afab7ad
ILT
3069 ;;
3070 esac
38e3d868
RM
3071 fi
3072 ;;
3073 no)
3074 ;;
3075 *)
22e05272 3076 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3077 ;;
21539e2e
MK
3078esac
3079
3080# Check whether --enable-ld was given.
3081if test "${enable_ld+set}" = set; then :
3082 enableval=$enable_ld; ENABLE_LD=$enableval
3083else
3084 ENABLE_LD=yes
3085fi
3086
3087
3088case "${ENABLE_LD}" in
3089 default)
9580395f 3090 if test x${default_ld} != x; then
22e05272 3091 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3092 fi
3093 ;;
3094 yes)
3095 ;;
3096 no)
3097 if test x${ENABLE_GOLD} != xyes; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3099$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3100 fi
3101 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3102 ;;
3103 *)
22e05272 3104 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3105 ;;
3106esac
5afab7ad 3107
78edb32f
L
3108# PR gas/19109
3109# Decide the default method for compressing debug sections.
3110# Provide a configure time option to override our default.
3111# Check whether --enable-compressed_debug_sections was given.
3112if test "${enable_compressed_debug_sections+set}" = set; then :
3113 enableval=$enable_compressed_debug_sections;
3114 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3115 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3116 fi
3117
3118else
3119 enable_compressed_debug_sections=
3120fi
3121
3122
671aa708 3123# Configure extra directories which are host specific
79c06341 3124
671aa708
NN
3125case "${host}" in
3126 *-cygwin*)
3127 configdirs="$configdirs libtermcap" ;;
3128esac
79c06341 3129
4fab7234
HPN
3130# A target can indicate whether a language isn't supported for some reason.
3131# Only spaces may be used in this macro; not newlines or tabs.
3132unsupported_languages=
3133
1c710c3c 3134# Remove more programs from consideration, based on the host or
671aa708
NN
3135# target this usually means that a port of the program doesn't
3136# exist yet.
ec8d6ddc 3137
671aa708 3138case "${host}" in
111eeb6e 3139 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3140 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3141 ;;
671aa708 3142esac
ec8d6ddc 3143
6de9cd9a 3144
87e6d9dc
TB
3145# Check whether --enable-libquadmath was given.
3146if test "${enable_libquadmath+set}" = set; then :
3147 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3148else
3149 ENABLE_LIBQUADMATH=yes
3150fi
3151
3152if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3153 noconfigdirs="$noconfigdirs target-libquadmath"
3154fi
3155
3156
3157# Check whether --enable-libquadmath-support was given.
3158if test "${enable_libquadmath_support+set}" = set; then :
3159 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3160else
3161 ENABLE_LIBQUADMATH_SUPPORT=yes
3162fi
3163
3164enable_libquadmath_support=
3165if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3166 enable_libquadmath_support=no
3167fi
3168
3169
5213506e
RW
3170# Check whether --enable-libada was given.
3171if test "${enable_libada+set}" = set; then :
3172 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3173else
3174 ENABLE_LIBADA=yes
5213506e
RW
3175fi
3176
d9cdb878 3177if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3178 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3179fi
3180
5213506e
RW
3181# Check whether --enable-libssp was given.
3182if test "${enable_libssp+set}" = set; then :
3183 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3184else
3185 ENABLE_LIBSSP=yes
5213506e
RW
3186fi
3187
ef0087a7 3188
1873ec0c
L
3189# Check whether --enable-libstdcxx was given.
3190if test "${enable_libstdcxx+set}" = set; then :
3191 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3192else
3193 ENABLE_LIBSTDCXX=default
3194fi
3195
3196if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3197 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3198fi
3199
5f520819
KY
3200# If this is accelerator compiler and its target is intelmic we enable
3201# target liboffloadmic by default. If this is compiler with offloading
3202# for intelmic we enable host liboffloadmic by default. Otherwise
3203# liboffloadmic is disabled by default.
3204# Check whether --enable-liboffloadmic was given.
3205if test "${enable_liboffloadmic+set}" = set; then :
3206 enableval=$enable_liboffloadmic; case "$enableval" in
3207 no | host | target)
3208 enable_liboffloadmic=$enableval ;;
3209 *)
22e05272 3210 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3211esac
3212else
4b4f2e35 3213 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3214 case "${target}" in
3215 *-intelmic-* | *-intelmicemul-*)
3216 enable_liboffloadmic=target
3217 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3218 ;;
3219 *)
3220 enable_liboffloadmic=no
3221 ;;
3222 esac
3223else
3224 case "${enable_offload_targets}" in
3225 *-intelmic-* | *-intelmicemul-*)
3226 enable_liboffloadmic=host
3227 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3228 ;;
3229 *)
3230 enable_liboffloadmic=no
3231 ;;
3232 esac
3233fi
3234fi
3235
3236
3237
44a7d18d 3238# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3239if test x$enable_libgomp = x ; then
953ff289 3240 case "${target}" in
416ac4d4 3241 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3242 ;;
8c6d158a 3243 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3244 ;;
b24513a1 3245 *-*-solaris2* | *-*-hpux11*)
953ff289 3246 ;;
cac90078 3247 *-*-darwin* | *-*-aix*)
953ff289 3248 ;;
29b1533a 3249 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3250 ;;
953ff289
DN
3251 *)
3252 noconfigdirs="$noconfigdirs target-libgomp"
3253 ;;
3254 esac
27079765 3255fi
953ff289 3256
48310492
RH
3257# Disable libatomic on unsupported systems.
3258if test -d ${srcdir}/libatomic; then
3259 if test x$enable_libatomic = x; then
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3261$as_echo_n "checking for libatomic support... " >&6; }
3262 if (srcdir=${srcdir}/libatomic; \
3263 . ${srcdir}/configure.tgt; \
3264 test -n "$UNSUPPORTED")
3265 then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267$as_echo "no" >&6; }
3268 noconfigdirs="$noconfigdirs target-libatomic"
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3271$as_echo "yes" >&6; }
3272 fi
3273 fi
3274fi
3275
5f520819
KY
3276# Disable liboffloadmic on unsupported systems.
3277if test -d ${srcdir}/liboffloadmic; then
3278 if test x$enable_liboffloadmic != xno; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3280$as_echo_n "checking for liboffloadmic support... " >&6; }
3281 if (srcdir=${srcdir}/liboffloadmic; \
3282 . ${srcdir}/configure.tgt; \
3283 test -n "$UNSUPPORTED")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-liboffloadmic"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290$as_echo "yes" >&6; }
3291 fi
3292 fi
3293fi
3294
e948157d
RH
3295# Disable libitm on unsupported systems.
3296if test -d ${srcdir}/libitm; then
3297 if test x$enable_libitm = x; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3299$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3300 if (srcdir=${srcdir}/libitm; \
3301 . ${srcdir}/configure.tgt; \
3302 test -n "$UNSUPPORTED")
3303 then
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3305$as_echo "no" >&6; }
e948157d
RH
3306 noconfigdirs="$noconfigdirs target-libitm"
3307 else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3309$as_echo "yes" >&6; }
e948157d
RH
3310 fi
3311 fi
0a35513e
AH
3312fi
3313
93bf5390
RH
3314# Disable libsanitizer on unsupported systems.
3315if test -d ${srcdir}/libsanitizer; then
3316 if test x$enable_libsanitizer = x; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3318$as_echo_n "checking for libsanitizer support... " >&6; }
3319 if (srcdir=${srcdir}/libsanitizer; \
3320 . ${srcdir}/configure.tgt; \
3321 test -n "$UNSUPPORTED")
3322 then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324$as_echo "no" >&6; }
3325 noconfigdirs="$noconfigdirs target-libsanitizer"
3326 else
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328$as_echo "yes" >&6; }
3329 fi
3330 fi
3331fi
3332
2077db1b
CT
3333# Disable libvtv on unsupported systems.
3334if test -d ${srcdir}/libvtv; then
3335 if test x$enable_libvtv = x; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3337$as_echo_n "checking for libvtv support... " >&6; }
3338 if (srcdir=${srcdir}/libvtv; \
3339 . ${srcdir}/configure.tgt; \
1e74b850 3340 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3341 then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343$as_echo "no" >&6; }
3344 noconfigdirs="$noconfigdirs target-libvtv"
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347$as_echo "yes" >&6; }
3348 fi
3349 fi
3350fi
3351
d91491e5
SE
3352# Disable libquadmath for some systems.
3353case "${target}" in
e7fae550
DE
3354 avr-*-*)
3355 noconfigdirs="$noconfigdirs target-libquadmath"
3356 ;;
d91491e5
SE
3357 # libquadmath is unused on AIX and libquadmath build process use of
3358 # LD_LIBRARY_PATH can break AIX bootstrap.
3359 powerpc-*-aix* | rs6000-*-aix*)
3360 noconfigdirs="$noconfigdirs target-libquadmath"
3361 ;;
3362esac
3363
1e9e0e23
JM
3364# Disable libssp for some systems.
3365case "${target}" in
3366 avr-*-*)
b318fb4b 3367 # No hosted I/O support.
1e9e0e23
JM
3368 noconfigdirs="$noconfigdirs target-libssp"
3369 ;;
91dfef96
JM
3370 bpf-*-*)
3371 noconfigdirs="$noconfigdirs target-libssp"
3372 ;;
1e9e0e23
JM
3373 powerpc-*-aix* | rs6000-*-aix*)
3374 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3375 ;;
8d2af3a2
DD
3376 pru-*-*)
3377 # No hosted I/O support.
3378 noconfigdirs="$noconfigdirs target-libssp"
3379 ;;
85b8555e 3380 rl78-*-*)
7cb62ef1
EB
3381 # libssp uses a misaligned load to trigger a fault, but the RL78
3382 # doesn't fault for those - instead, it gives a build-time error
3383 # for explicit misaligned loads.
85b8555e 3384 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3385 ;;
0969ec7d
EB
3386 visium-*-*)
3387 # No hosted I/O support.
3388 noconfigdirs="$noconfigdirs target-libssp"
3389 ;;
1e9e0e23
JM
3390esac
3391
1e9e0e23 3392# Disable libstdc++-v3 for some systems.
67a1cb2a 3393# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3394if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3395 case "${target}" in
3396 *-*-vxworks*)
3397 # VxWorks uses the Dinkumware C++ library.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
afa3d80e
TS
3400 amdgcn*-*-*)
3401 # Not ported/fails to build when using newlib.
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
1873ec0c
L
3404 arm*-wince-pe*)
3405 # the C++ libraries don't build on top of CE's C libraries
3406 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3407 ;;
3408 avr-*-*)
3409 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3410 ;;
91dfef96
JM
3411 bpf-*-*)
3412 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3413 ;;
fef939d6
JB
3414 ft32-*-*)
3415 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3416 ;;
1873ec0c
L
3417 esac
3418fi
1e9e0e23 3419
91dfef96
JM
3420# Disable C++ on systems where it is known to not work.
3421# For testing, you can override this with --enable-languages=c++.
3422case ,${enable_languages}, in
3423 *,c++,*)
3424 ;;
3425 *)
3426 case "${target}" in
3427 bpf-*-*)
3428 unsupported_languages="$unsupported_languages c++"
3429 ;;
3430 esac
3431 ;;
3432esac
3433
3434# Disable Objc on systems where it is known to not work.
3435# For testing, you can override this with --enable-languages=objc.
3436case ,${enable_languages}, in
3437 *,objc,*)
3438 ;;
3439 *)
3440 case "${target}" in
3441 bpf-*-*)
3442 unsupported_languages="$unsupported_languages objc"
3443 ;;
3444 esac
3445 ;;
3446esac
3447
260eedb9
IB
3448# Disable D on systems where it is known to not work.
3449# For testing, you can override this with --enable-languages=d.
3450case ,${enable_languages}, in
3451 *,d,*)
3452 ;;
3453 *)
3454 case "${target}" in
91dfef96 3455 bpf-*-*)
260eedb9
IB
3456 unsupported_languages="$unsupported_languages d"
3457 ;;
3458 esac
3459 ;;
3460esac
3461
3462# Disable libphobos on unsupported systems.
3463# For testing, you can override this with --enable-libphobos.
3464if test -d ${srcdir}/libphobos; then
3465 if test x$enable_libphobos = x; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3467$as_echo_n "checking for libphobos support... " >&6; }
3468 if (srcdir=${srcdir}/libphobos; \
3469 . ${srcdir}/configure.tgt; \
7d31d331 3470 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3471 then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473$as_echo "no" >&6; }
3474 noconfigdirs="$noconfigdirs target-libphobos"
3475 else
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3477$as_echo "yes" >&6; }
3478 fi
3479 fi
3480fi
3481
1e9e0e23
JM
3482# Disable Fortran for some systems.
3483case "${target}" in
3484 mmix-*-*)
3485 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3486 unsupported_languages="$unsupported_languages fortran"
3487 ;;
91dfef96
JM
3488 bpf-*-*)
3489 unsupported_languages="$unsupported_languages fortran"
3490 ;;
1e9e0e23
JM
3491esac
3492
012447ea
JJ
3493# Disable libffi for some systems.
3494case "${target}" in
3495 powerpc-*-darwin*)
3496 ;;
3497 i[3456789]86-*-darwin*)
3498 ;;
3499 x86_64-*-darwin[912]*)
3500 ;;
3501 *-*-darwin*)
3502 noconfigdirs="$noconfigdirs target-libffi"
3503 ;;
3504 *-*-netware*)
3505 noconfigdirs="$noconfigdirs target-libffi"
3506 ;;
3507 *-*-phoenix*)
3508 noconfigdirs="$noconfigdirs target-libffi"
3509 ;;
3510 *-*-rtems*)
3511 noconfigdirs="$noconfigdirs target-libffi"
3512 ;;
3513 *-*-tpf*)
3514 noconfigdirs="$noconfigdirs target-libffi"
3515 ;;
3516 *-*-uclinux*)
3517 noconfigdirs="$noconfigdirs target-libffi"
3518 ;;
3519 *-*-vxworks*)
3520 noconfigdirs="$noconfigdirs target-libffi"
3521 ;;
b20e7532
AT
3522 aarch64*-*-freebsd*)
3523 noconfigdirs="$noconfigdirs target-libffi"
3524 ;;
012447ea
JJ
3525 alpha*-*-*vms*)
3526 noconfigdirs="$noconfigdirs target-libffi"
3527 ;;
3528 arm*-*-freebsd*)
3529 noconfigdirs="$noconfigdirs target-libffi"
3530 ;;
3531 arm-wince-pe)
3532 noconfigdirs="$noconfigdirs target-libffi"
3533 ;;
3534 arm*-*-symbianelf*)
3535 noconfigdirs="$noconfigdirs target-libffi"
3536 ;;
91dfef96
JM
3537 bpf-*-*)
3538 noconfigdirs="$noconfigdirs target-libffi"
3539 ;;
012447ea
JJ
3540 cris-*-* | crisv32-*-*)
3541 case "${target}" in
3542 *-*-linux*)
3543 ;;
3544 *) # See PR46792 regarding target-libffi.
3545 noconfigdirs="$noconfigdirs target-libffi";;
3546 esac
3547 ;;
3548 hppa*64*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 hppa*-hp-hpux11*)
3552 ;;
3553 hppa*-*-hpux*)
3554 noconfigdirs="$noconfigdirs target-libffi"
3555 ;;
3556 ia64*-*-*vms*)
3557 noconfigdirs="$noconfigdirs target-libffi"
3558 ;;
3559 i[3456789]86-w64-mingw*)
3560 noconfigdirs="$noconfigdirs target-libffi"
3561 ;;
3562 i[3456789]86-*-mingw*)
3563 noconfigdirs="$noconfigdirs target-libffi"
3564 ;;
3565 x86_64-*-mingw*)
3566 noconfigdirs="$noconfigdirs target-libffi"
3567 ;;
3568 mmix-*-*)
3569 noconfigdirs="$noconfigdirs target-libffi"
3570 ;;
3571 powerpc-*-aix*)
012447ea
JJ
3572 ;;
3573 rs6000-*-aix*)
012447ea
JJ
3574 ;;
3575 ft32-*-*)
3576 noconfigdirs="$noconfigdirs target-libffi"
3577 ;;
3578 *-*-lynxos*)
3579 noconfigdirs="$noconfigdirs target-libffi"
3580 ;;
3581esac
3582
3583# Disable the go frontend on systems where it is known to not work. Please keep
3584# this in sync with contrib/config-list.mk.
3585case "${target}" in
91dfef96 3586*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3587 unsupported_languages="$unsupported_languages go"
3588 ;;
3589esac
3590
f9d09df0
TT
3591# Only allow gdbserver on some systems.
3592if test -d ${srcdir}/gdbserver; then
3593 if test x$enable_gdbserver = x; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3595$as_echo_n "checking for gdbserver support... " >&6; }
3596 if (srcdir=${srcdir}/gdbserver; \
3597 . ${srcdir}/configure.srv; \
3598 test -n "$UNSUPPORTED")
3599 then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601$as_echo "no" >&6; }
3602 noconfigdirs="$noconfigdirs gdbserver"
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3605$as_echo "yes" >&6; }
3606 fi
3607 fi
3608fi
3609
cdbc9e92
ILT
3610# Disable libgo for some systems where it is known to not work.
3611# For testing, you can easily override this with --enable-libgo.
3612if test x$enable_libgo = x; then
3613 case "${target}" in
3614 *-*-darwin*)
3615 # PR 46986
3616 noconfigdirs="$noconfigdirs target-libgo"
3617 ;;
3618 *-*-cygwin* | *-*-mingw*)
3619 noconfigdirs="$noconfigdirs target-libgo"
3620 ;;
91dfef96
JM
3621 bpf-*-*)
3622 noconfigdirs="$noconfigdirs target-libgo"
3623 ;;
cdbc9e92
ILT
3624 esac
3625fi
3626
c03353e2
RIL
3627# Default libgloss CPU subdirectory.
3628libgloss_dir="$target_cpu"
6de9cd9a 3629
fbcf0dca
JM
3630case "${target}" in
3631 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3632 libgloss_dir=wince
3633 ;;
4dddfc74
YZ
3634 aarch64*-*-* )
3635 libgloss_dir=aarch64
3636 ;;
fbcf0dca
JM
3637 arm*-*-*)
3638 libgloss_dir=arm
3639 ;;
3640 cris-*-* | crisv32-*-*)
3641 libgloss_dir=cris
3642 ;;
3643 hppa*-*-*)
3644 libgloss_dir=pa
3645 ;;
3646 i[3456789]86-*-*)
3647 libgloss_dir=i386
3648 ;;
3649 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3650 libgloss_dir=m68hc11
3651 ;;
3652 m68*-*-* | fido-*-*)
3653 libgloss_dir=m68k
3654 ;;
3655 mips*-*-*)
3656 libgloss_dir=mips
3657 ;;
3658 powerpc*-*-*)
3659 libgloss_dir=rs6000
3660 ;;
8d2af3a2
DD
3661 pru-*-*)
3662 libgloss_dir=pru
3663 ;;
fbcf0dca
JM
3664 sparc*-*-*)
3665 libgloss_dir=sparc
3666 ;;
3667esac
3668
6a789d5e 3669# Disable newlib and libgloss for various target OSes.
671aa708 3670case "${target}" in
6a789d5e
JM
3671 alpha*-dec-osf*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 i[3456789]86-*-linux*)
3675 # This section makes it possible to build newlib natively on linux.
3676 # If we are using a cross compiler then don't configure newlib.
3677 if test x${is_cross_compiler} != xno ; then
3678 noconfigdirs="$noconfigdirs target-newlib"
3679 fi
3680 noconfigdirs="$noconfigdirs target-libgloss"
3681 # If we are not using a cross compiler, do configure newlib.
3682 # Note however, that newlib will only be configured in this situation
3683 # if the --with-newlib option has been given, because otherwise
3684 # 'target-newlib' will appear in skipdirs.
3685 ;;
3686 i[3456789]86-*-rdos*)
3687 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3688 ;;
3689 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3690 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3691 ;;
3692 sparc-*-sunos4*)
3693 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3694 ;;
91dfef96
JM
3695 bpf-*-*)
3696 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3697 ;;
6a789d5e
JM
3698 *-*-aix*)
3699 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3700 ;;
3701 *-*-beos*)
3702 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3703 ;;
671aa708 3704 *-*-chorusos)
0036370f 3705 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3706 ;;
6a789d5e
JM
3707 *-*-dragonfly*)
3708 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 ;;
3710 *-*-freebsd*)
3711 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3712 ;;
3713 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3714 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3715 ;;
3716 *-*-lynxos*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 *-*-mingw*)
3720 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3721 ;;
3722 *-*-netbsd*)
3723 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3724 ;;
3725 *-*-netware*)
3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3727 ;;
3728 *-*-tpf*)
3729 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3730 ;;
3731 *-*-uclinux*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
3734 *-*-vxworks*)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737esac
3738
3739case "${target}" in
3740 *-*-chorusos)
3741 ;;
3be96231
TG
3742 aarch64-*-darwin*)
3743 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs="$noconfigdirs sim target-rda"
3745 ;;
7431c1a1
AS
3746 amdgcn*-*-*)
3747 ;;
3be96231
TG
3748 arm-*-darwin*)
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3751 ;;
75eeae1a 3752 powerpc-*-darwin*)
e1514c3f 3753 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3754 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3755 ;;
354ebf88
RW
3756 i[3456789]86-*-darwin*)
3757 noconfigdirs="$noconfigdirs ld gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3759 ;;
3760 x86_64-*-darwin[912]*)
0db3a858
TG
3761 noconfigdirs="$noconfigdirs ld gas gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3763 ;;
42c1cd8a
AT
3764 *-*-darwin*)
3765 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3766 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3767 ;;
8c6d158a 3768 *-*-dragonfly*)
8c6d158a 3769 ;;
c3f84f61 3770 *-*-freebsd*)
6de9cd9a 3771 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
c0d0a722 3772 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3773 && test -f /usr/local/include/gmp.h; then
3774 with_gmp=/usr/local
3775 fi
6de9cd9a 3776 ;;
ef4e7569
US
3777 *-*-kaos*)
3778 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3779 noconfigdirs="$noconfigdirs target-libgloss"
3780 ;;
671aa708 3781 *-*-netbsd*)
671aa708 3782 ;;
61fec9ff 3783 *-*-netware*)
671aa708 3784 ;;
fd6487af
JS
3785 *-*-phoenix*)
3786 noconfigdirs="$noconfigdirs target-libgloss"
3787 ;;
671aa708 3788 *-*-rtems*)
2909494b 3789 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3790 ;;
a8ba31f2
EC
3791 # The tpf target doesn't support gdb yet.
3792 *-*-tpf*)
6a789d5e 3793 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3794 ;;
5785c0ed 3795 *-*-uclinux*)
6a789d5e 3796 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3797 ;;
671aa708 3798 *-*-vxworks*)
671aa708
NN
3799 ;;
3800 alpha*-dec-osf*)
3801 # ld works, but does not support shared libraries.
671aa708 3802 # gas doesn't generate exception information.
6a789d5e 3803 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3804 ;;
3805 alpha*-*-*vms*)
2909494b 3806 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3807 ;;
671aa708
NN
3808 alpha*-*-*)
3809 # newlib is not 64 bit ready
2909494b 3810 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3811 ;;
91dfef96
JM
3812 bpf-*-*)
3813 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3814 ;;
671aa708 3815 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3816 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3817 ;;
2fd88f4f
AK
3818 arc*-*-*)
3819 noconfigdirs="$noconfigdirs sim"
3820 ;;
671aa708 3821 arm-*-pe*)
2909494b 3822 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3823 ;;
671aa708 3824 arm-*-riscix*)
0036370f 3825 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3826 ;;
b588ae30
GJL
3827 avr-*-*)
3828 if test x${with_avrlibc} != xno; then
3829 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3830 fi
3831 ;;
671aa708 3832 c4x-*-* | tic4x-*-*)
0036370f 3833 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3834 ;;
0036370f
JM
3835 tic54x-*-*)
3836 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3837 ;;
671aa708 3838 d10v-*-*)
0036370f 3839 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3840 ;;
3841 d30v-*-*)
0036370f 3842 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3843 ;;
3844 fr30-*-elf*)
2909494b 3845 noconfigdirs="$noconfigdirs gdb"
671aa708 3846 ;;
a05c2c75
L
3847 ft32-*-*)
3848 noconfigdirs="$noconfigdirs target-rda gprof"
3849 ;;
55f2d967 3850 moxie-*-*)
a05c2c75 3851 noconfigdirs="$noconfigdirs"
55f2d967 3852 ;;
671aa708 3853 h8300*-*-*)
2909494b 3854 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3855 ;;
3856 h8500-*-*)
0036370f 3857 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3858 ;;
ee6a22df 3859 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3860 ;;
a05c2c75
L
3861 hppa*64*-*-hpux*)
3862 noconfigdirs="$noconfigdirs gdb"
3863 ;;
3864 hppa*-*-hpux11*)
3865 noconfigdirs="$noconfigdirs gdb ld"
3866 ;;
4569f85e 3867 hppa*64*-*-linux*)
671aa708 3868 ;;
56f8587a 3869 hppa*-*-linux*)
3e732ba0 3870 ;;
671aa708 3871 hppa*-*-*elf* | \
671aa708
NN
3872 hppa*-*-lites* | \
3873 hppa*-*-openbsd* | \
3874 hppa*64*-*-*)
671aa708 3875 ;;
c03353e2 3876 hppa*-*-pro*)
c03353e2 3877 ;;
671aa708 3878 hppa*-*-*)
2909494b 3879 noconfigdirs="$noconfigdirs ld"
671aa708 3880 ;;
fb87ad5d 3881 i960-*-*)
0036370f 3882 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3883 ;;
671aa708
NN
3884 ia64*-*-elf*)
3885 # No gdb support yet.
1bcce263 3886 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3887 ;;
3888 ia64*-**-hpux*)
5a2931d1 3889 # No ld support yet.
a05c2c75 3890 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3891 ;;
52535a64 3892 ia64*-*-*vms*)
091fe9ca
TG
3893 # No ld support yet.
3894 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3895 ;;
ef4c4300 3896 i[3456789]86-w64-mingw*)
ef4c4300
KT
3897 ;;
3898 i[3456789]86-*-mingw*)
b91f0a41 3899 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3900 ;;
671aa708
NN
3901 *-*-cygwin*)
3902 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3903 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3904 # always build newlib if winsup directory is present.
b91f0a41 3905 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3906 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3907 elif test -d "$srcdir/newlib"; then
b91f0a41 3908 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3909 fi
1c710c3c 3910 ;;
f2a0e225 3911 i[3456789]86-*-pe)
ebb9f8b0 3912 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3913 ;;
f2a0e225 3914 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3915 # The linker does not yet know about weak symbols in COFF,
3916 # and is not configured to handle mixed ELF and COFF.
0036370f 3917 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3918 ;;
f2a0e225 3919 i[3456789]86-*-sco*)
0036370f 3920 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3921 ;;
fbdd5d87 3922 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3923 noconfigdirs="$noconfigdirs target-libgloss"
3924 ;;
f2a0e225 3925 i[3456789]86-*-sysv4*)
0036370f 3926 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3927 ;;
f2a0e225 3928 i[3456789]86-*-beos*)
6a789d5e 3929 noconfigdirs="$noconfigdirs gdb"
3aa83176 3930 ;;
d1f8db0c 3931 i[3456789]86-*-rdos*)
6a789d5e 3932 noconfigdirs="$noconfigdirs gdb"
c03353e2 3933 ;;
671aa708 3934 mmix-*-*)
2909494b 3935 noconfigdirs="$noconfigdirs gdb"
671aa708 3936 ;;
ab34901f 3937 mt-*-*)
79dd769c
AH
3938 noconfigdirs="$noconfigdirs sim"
3939 ;;
58b40a67
FT
3940 nfp-*-*)
3941 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3942 noconfigdirs="$noconfigdirs $target_libraries"
3943 ;;
e6cbe965
SC
3944 pdp11-*-*)
3945 noconfigdirs="$noconfigdirs gdb gprof"
3946 ;;
671aa708
NN
3947 powerpc-*-aix*)
3948 # copied from rs6000-*-* entry
6a789d5e 3949 noconfigdirs="$noconfigdirs gprof"
671aa708 3950 ;;
4569f85e 3951 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3952 target_configdirs="$target_configdirs target-winsup"
0036370f 3953 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3954 # always build newlib.
3955 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3956 ;;
3957 # This is temporary until we can link against shared libraries
3958 powerpcle-*-solaris*)
0036370f 3959 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3960 ;;
3961 powerpc-*-beos*)
6a789d5e 3962 noconfigdirs="$noconfigdirs gdb"
671aa708 3963 ;;
671aa708 3964 rs6000-*-lynxos*)
6a789d5e 3965 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3966 ;;
3967 rs6000-*-aix*)
6a789d5e 3968 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3969 ;;
3970 rs6000-*-*)
2909494b 3971 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3972 ;;
3973 m68k-apollo-*)
0036370f 3974 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3975 ;;
ca9fe997 3976 microblaze*)
2909494b 3977 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3978 ;;
d896cc4d 3979 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3980 if test x$with_newlib = xyes; then
3981 noconfigdirs="$noconfigdirs gprof"
3982 fi
d9dced13 3983 ;;
671aa708 3984 mips*-*-irix5*)
0036370f 3985 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3986 ;;
3987 mips*-*-irix6*)
2909494b 3988 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3989 ;;
671aa708 3990 mips*-*-bsd*)
bc98bcc4 3991 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3992 ;;
671aa708 3993 mips*-*-linux*)
671aa708 3994 ;;
bc98bcc4
JBG
3995 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3996 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3997 noconfigdirs="$noconfigdirs ld gas gprof"
3998 ;;
671aa708 3999 mips*-*-*)
2909494b 4000 noconfigdirs="$noconfigdirs gprof"
671aa708 4001 ;;
738f2522 4002 nvptx*-*-*)
738f2522
BS
4003 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4004 ;;
bc6d9014 4005 sh-*-*)
ea2002ba
CB
4006 case "${target}" in
4007 sh*-*-elf)
2909494b 4008 ;;
ea2002ba 4009 *)
2909494b 4010 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4011 esac
671aa708 4012 ;;
671aa708 4013 sparc-*-sunos4*)
6a789d5e 4014 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4015 use_gnu_ld=no
4016 fi
4017 ;;
b42f0d7e 4018 tic6x-*-*)
0d557ff8 4019 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4020 ;;
341c653c 4021 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4022 noconfigdirs="$noconfigdirs sim"
4023 ;;
671aa708 4024 v810-*-*)
0036370f 4025 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4026 ;;
4027 vax-*-*)
2909494b 4028 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4029 ;;
1fc1d82e
MR
4030 wasm32-*-*)
4031 noconfigdirs="$noconfigdirs ld"
4032 ;;
671aa708 4033esac
79c06341 4034
671aa708
NN
4035# If we aren't building newlib, then don't build libgloss, since libgloss
4036# depends upon some newlib header files.
4037case "${noconfigdirs}" in
4038 *target-libgloss*) ;;
4039 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4040esac
4041
671aa708 4042# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4043host_makefile_frag=/dev/null
4044if test -d ${srcdir}/config ; then
4045case "${host}" in
f2a0e225 4046 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4047 host_makefile_frag="config/mh-djgpp"
4048 ;;
4049 *-cygwin*)
2a79c47f 4050
5213506e
RW
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4052$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4053echo a >cygwin-cat-check
e25a8c82 4054if test `cat cygwin-cat-check` = a ; then
2a79c47f 4055 rm cygwin-cat-check
5213506e
RW
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4057$as_echo "yes" >&6; }
2a79c47f
NC
4058else
4059 rm cygwin-cat-check
5213506e
RW
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061$as_echo "no" >&6; }
22e05272 4062 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4063 Please either mount the build directory in binary mode or run the following
4064 commands before running any configure script:
4065set -o igncr
4066export SHELLOPTS
5213506e 4067 " "$LINENO" 5
2a79c47f
NC
4068fi
4069
671aa708
NN
4070 host_makefile_frag="config/mh-cygwin"
4071 ;;
c53a18d3 4072 *-mingw*)
1f5a6b84 4073 host_makefile_frag="config/mh-mingw"
95af8923 4074 ;;
cabb9d59 4075 alpha*-linux*)
13be44ed
UB
4076 host_makefile_frag="config/mh-alpha-linux"
4077 ;;
efd41714 4078 hppa*-hp-hpux10*)
efd41714 4079 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4080 ;;
111eeb6e 4081 hppa*-hp-hpux*)
efd41714
PB
4082 host_makefile_frag="config/mh-pa"
4083 ;;
4084 hppa*-*)
4085 host_makefile_frag="config/mh-pa"
4086 ;;
54258e22 4087 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4088 host_makefile_frag="config/mh-darwin"
be8fff81 4089 ;;
d19bca38
PB
4090 powerpc-*-aix*)
4091 host_makefile_frag="config/mh-ppc-aix"
4092 ;;
4093 rs6000-*-aix*)
4094 host_makefile_frag="config/mh-ppc-aix"
4095 ;;
671aa708
NN
4096esac
4097fi
4098
55ffb5ed 4099if test "${build}" != "${host}" ; then
0999159b
PB
4100 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4101 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4102 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4103 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4104 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4105 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4106 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4107 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4108 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4109 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4110 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4111 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4112 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4113 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4114 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4115else
4116 AR_FOR_BUILD="\$(AR)"
4117 AS_FOR_BUILD="\$(AS)"
fb0103e5 4118 CC_FOR_BUILD="\$(CC)"
0999159b 4119 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4120 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4121 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4122 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4123 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4124 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4125 LD_FOR_BUILD="\$(LD)"
4126 NM_FOR_BUILD="\$(NM)"
4127 RANLIB_FOR_BUILD="\$(RANLIB)"
4128 WINDRES_FOR_BUILD="\$(WINDRES)"
4129 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4130fi
4131
4132ac_ext=c
1c710c3c
DJ
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4139set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4142if ${ac_cv_prog_CC+:} false; then :
5213506e 4143 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4144else
4145 if test -n "$CC"; then
4146 ac_cv_prog_CC="$CC" # Let the user override the test.
4147else
4148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
5213506e 4153 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4157 break 2
4158 fi
4159done
5213506e
RW
4160 done
4161IFS=$as_save_IFS
1c710c3c
DJ
4162
4163fi
4164fi
4165CC=$ac_cv_prog_CC
4166if test -n "$CC"; then
5213506e
RW
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4168$as_echo "$CC" >&6; }
1c710c3c 4169else
5213506e
RW
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4171$as_echo "no" >&6; }
1c710c3c
DJ
4172fi
4173
5213506e 4174
1c710c3c
DJ
4175fi
4176if test -z "$ac_cv_prog_CC"; then
4177 ac_ct_CC=$CC
fb0103e5
RG
4178 # Extract the first word of "gcc", so it can be a program name with args.
4179set dummy gcc; ac_word=$2
5213506e
RW
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4182if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4183 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4184else
4185 if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
5213506e 4193 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4195 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4197 break 2
4198 fi
4199done
5213506e
RW
4200 done
4201IFS=$as_save_IFS
1c710c3c
DJ
4202
4203fi
4204fi
4205ac_ct_CC=$ac_cv_prog_ac_ct_CC
4206if test -n "$ac_ct_CC"; then
5213506e
RW
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4208$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4209else
5213506e
RW
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211$as_echo "no" >&6; }
1c710c3c
DJ
4212fi
4213
5213506e
RW
4214 if test "x$ac_ct_CC" = x; then
4215 CC=""
4216 else
4217 case $cross_compiling:$ac_tool_warned in
4218yes:)
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4221ac_tool_warned=yes ;;
4222esac
4223 CC=$ac_ct_CC
4224 fi
1c710c3c
DJ
4225else
4226 CC="$ac_cv_prog_CC"
4227fi
4228
4229if test -z "$CC"; then
5213506e
RW
4230 if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4232set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4235if ${ac_cv_prog_CC+:} false; then :
5213506e 4236 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4237else
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
4240else
1c710c3c
DJ
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
5213506e 4246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4248 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4250 break 2
4251 fi
4252done
5213506e
RW
4253 done
4254IFS=$as_save_IFS
1c710c3c 4255
0b0dc272 4256fi
0b0dc272 4257fi
1c710c3c 4258CC=$ac_cv_prog_CC
af71363e 4259if test -n "$CC"; then
5213506e
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261$as_echo "$CC" >&6; }
2aeb72e9 4262else
5213506e
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
2aeb72e9
DD
4265fi
4266
2aeb72e9 4267
5213506e 4268 fi
1c710c3c 4269fi
55ffb5ed
NN
4270if test -z "$CC"; then
4271 # Extract the first word of "cc", so it can be a program name with args.
4272set dummy cc; ac_word=$2
5213506e
RW
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4275if ${ac_cv_prog_CC+:} false; then :
5213506e 4276 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4277else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280else
0b0dc272 4281 ac_prog_rejected=no
1c710c3c
DJ
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
5213506e 4287 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4289 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4290 ac_prog_rejected=yes
4291 continue
4292 fi
4293 ac_cv_prog_CC="cc"
5213506e 4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4295 break 2
4296 fi
4297done
5213506e
RW
4298 done
4299IFS=$as_save_IFS
1c710c3c 4300
55ffb5ed
NN
4301if test $ac_prog_rejected = yes; then
4302 # We found a bogon in the path, so make sure we never use it.
4303 set dummy $ac_cv_prog_CC
4304 shift
1c710c3c 4305 if test $# != 0; then
55ffb5ed
NN
4306 # We chose a different compiler from the bogus one.
4307 # However, it has the same basename, so the bogon will be chosen
4308 # first if we set CC to just the basename; use the full file name.
4309 shift
1c710c3c 4310 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4311 fi
4312fi
4313fi
4314fi
1c710c3c 4315CC=$ac_cv_prog_CC
55ffb5ed 4316if test -n "$CC"; then
5213506e
RW
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318$as_echo "$CC" >&6; }
55ffb5ed 4319else
5213506e
RW
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321$as_echo "no" >&6; }
55ffb5ed
NN
4322fi
4323
5213506e 4324
1c710c3c
DJ
4325fi
4326if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
5213506e 4328 for ac_prog in cl.exe
1c710c3c
DJ
4329 do
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4334if ${ac_cv_prog_CC+:} false; then :
5213506e 4335 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4336else
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4339else
1c710c3c
DJ
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
5213506e 4345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4349 break 2
4350 fi
4351done
5213506e
RW
4352 done
4353IFS=$as_save_IFS
1c710c3c 4354
55ffb5ed
NN
4355fi
4356fi
1c710c3c 4357CC=$ac_cv_prog_CC
55ffb5ed 4358if test -n "$CC"; then
5213506e
RW
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4360$as_echo "$CC" >&6; }
a4b9e93e 4361else
5213506e
RW
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363$as_echo "no" >&6; }
fb0103e5 4364fi
af71363e 4365
5213506e 4366
1c710c3c
DJ
4367 test -n "$CC" && break
4368 done
af71363e 4369fi
1c710c3c
DJ
4370if test -z "$CC"; then
4371 ac_ct_CC=$CC
5213506e 4372 for ac_prog in cl.exe
1c710c3c
DJ
4373do
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375set dummy $ac_prog; ac_word=$2
5213506e
RW
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4378if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4379 $as_echo_n "(cached) " >&6
0b0dc272 4380else
1c710c3c
DJ
4381 if test -n "$ac_ct_CC"; then
4382 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4383else
1c710c3c
DJ
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
5213506e 4389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4391 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4393 break 2
4394 fi
4395done
5213506e
RW
4396 done
4397IFS=$as_save_IFS
1c710c3c 4398
af71363e
AS
4399fi
4400fi
1c710c3c
DJ
4401ac_ct_CC=$ac_cv_prog_ac_ct_CC
4402if test -n "$ac_ct_CC"; then
5213506e
RW
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4404$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4405else
5213506e
RW
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; }
af71363e 4408fi
0b0dc272 4409
5213506e 4410
1c710c3c
DJ
4411 test -n "$ac_ct_CC" && break
4412done
4413
5213506e
RW
4414 if test "x$ac_ct_CC" = x; then
4415 CC=""
4416 else
4417 case $cross_compiling:$ac_tool_warned in
4418yes:)
4419{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4421ac_tool_warned=yes ;;
4422esac
4423 CC=$ac_ct_CC
4424 fi
1c710c3c
DJ
4425fi
4426
4427fi
4428
4429
5213506e
RW
4430test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4432as_fn_error $? "no acceptable C compiler found in \$PATH
4433See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4434
4435# Provide some information about the compiler.
5213506e
RW
4436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4437set X $ac_compile
4438ac_compiler=$2
4439for ac_option in --version -v -V -qversion; do
4440 { { ac_try="$ac_compiler $ac_option >&5"
4441case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446$as_echo "$ac_try_echo"; } >&5
4447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4448 ac_status=$?
5213506e
RW
4449 if test -s conftest.err; then
4450 sed '10a\
4451... rest of stderr output deleted ...
4452 10q' conftest.err >conftest.er1
4453 cat conftest.er1 >&5
5213506e 4454 fi
22e05272 4455 rm -f conftest.er1 conftest.err
5213506e
RW
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }
4458done
1c710c3c 4459
5213506e 4460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4461/* end confdefs.h. */
4462
4463int
4464main ()
4465{
4466
4467 ;
4468 return 0;
4469}
4470_ACEOF
4471ac_clean_files_save=$ac_clean_files
22e05272 4472ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4473# Try to create an executable without -o first, disregard a.out.
4474# It will help us diagnose broken compilers, and finding out an intuition
4475# of exeext.
22e05272
JM
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4477$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4478ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4479
4480# The possible output files:
4481ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4482
4483ac_rmfiles=
4484for ac_file in $ac_files
4485do
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 esac
4490done
4491rm -f $ac_rmfiles
4492
4493if { { ac_try="$ac_link_default"
4494case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499$as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_link_default") 2>&5
1c710c3c 4501 ac_status=$?
5213506e
RW
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; then :
4504 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4505# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4506# in a Makefile. We should not override ac_cv_exeext if it was cached,
4507# so that the user can short-circuit this test for compilers unknown to
4508# Autoconf.
4509for ac_file in $ac_files ''
1c710c3c
DJ
4510do
4511 test -f "$ac_file" || continue
4512 case $ac_file in
5213506e 4513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4514 ;;
4515 [ab].out )
4516 # We found the default executable, but exeext='' is most
4517 # certainly right.
4518 break;;
4519 *.* )
5213506e
RW
4520 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4521 then :; else
4522 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4523 fi
4524 # We set ac_cv_exeext here because the later test for it is not
4525 # safe: cross compilers may not add the suffix if given an `-o'
4526 # argument, so we may need to know it at that point already.
4527 # Even if this section looks crufty: it has the advantage of
4528 # actually working.
1c710c3c
DJ
4529 break;;
4530 * )
4531 break;;
4532 esac
4533done
5213506e
RW
4534test "$ac_cv_exeext" = no && ac_cv_exeext=
4535
1c710c3c 4536else
5213506e
RW
4537 ac_file=''
4538fi
5213506e 4539if test -z "$ac_file"; then :
22e05272
JM
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4541$as_echo "no" >&6; }
4542$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4543sed 's/^/| /' conftest.$ac_ext >&5
4544
5213506e
RW
4545{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4547as_fn_error 77 "C compiler cannot create executables
4548See \`config.log' for more details" "$LINENO" 5; }
4549else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4551$as_echo "yes" >&6; }
1c710c3c 4552fi
22e05272
JM
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4554$as_echo_n "checking for C compiler default output file name... " >&6; }
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4556$as_echo "$ac_file" >&6; }
1c710c3c 4557ac_exeext=$ac_cv_exeext
1c710c3c 4558
22e05272 4559rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4560ac_clean_files=$ac_clean_files_save
5213506e
RW
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4562$as_echo_n "checking for suffix of executables... " >&6; }
4563if { { ac_try="$ac_link"
4564case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567esac
4568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569$as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
1c710c3c 4571 ac_status=$?
5213506e
RW
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; then :
1c710c3c
DJ
4574 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4575# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4576# work properly (i.e., refer to `conftest.exe'), while it won't with
4577# `rm'.
4578for ac_file in conftest.exe conftest conftest.*; do
4579 test -f "$ac_file" || continue
4580 case $ac_file in
5213506e 4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4582 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4583 break;;
4584 * ) break;;
4585 esac
4586done
af71363e 4587else
5213506e
RW
4588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4590as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4591See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4592fi
22e05272 4593rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4595$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4596
4597rm -f conftest.$ac_ext
4598EXEEXT=$ac_cv_exeext
4599ac_exeext=$EXEEXT
22e05272
JM
4600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
4602#include <stdio.h>
4603int
4604main ()
4605{
4606FILE *f = fopen ("conftest.out", "w");
4607 return ferror (f) || fclose (f) != 0;
4608
4609 ;
4610 return 0;
4611}
4612_ACEOF
4613ac_clean_files="$ac_clean_files conftest.out"
4614# Check that the compiler produces executables we can run. If not, either
4615# the compiler is broken, or we cross compile.
4616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4617$as_echo_n "checking whether we are cross compiling... " >&6; }
4618if test "$cross_compiling" != yes; then
4619 { { ac_try="$ac_link"
4620case "(($ac_try" in
4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4622 *) ac_try_echo=$ac_try;;
4623esac
4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625$as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_link") 2>&5
4627 ac_status=$?
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }
4630 if { ac_try='./conftest$ac_cv_exeext'
4631 { { case "(($ac_try" in
4632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633 *) ac_try_echo=$ac_try;;
4634esac
4635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636$as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_try") 2>&5
4638 ac_status=$?
4639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4640 test $ac_status = 0; }; }; then
4641 cross_compiling=no
4642 else
4643 if test "$cross_compiling" = maybe; then
4644 cross_compiling=yes
4645 else
4646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4648as_fn_error $? "cannot run C compiled programs.
4649If you meant to cross compile, use \`--host'.
4650See \`config.log' for more details" "$LINENO" 5; }
4651 fi
4652 fi
4653fi
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4655$as_echo "$cross_compiling" >&6; }
4656
4657rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4658ac_clean_files=$ac_clean_files_save
5213506e
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4660$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4661if ${ac_cv_objext+:} false; then :
5213506e 4662 $as_echo_n "(cached) " >&6
1c710c3c 4663else
5213506e 4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4665/* end confdefs.h. */
4666
4667int
4668main ()
4669{
4670
4671 ;
4672 return 0;
4673}
4674_ACEOF
4675rm -f conftest.o conftest.obj
5213506e
RW
4676if { { ac_try="$ac_compile"
4677case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680esac
4681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682$as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_compile") 2>&5
1c710c3c 4684 ac_status=$?
5213506e
RW
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }; then :
4687 for ac_file in conftest.o conftest.obj conftest.*; do
4688 test -f "$ac_file" || continue;
1c710c3c 4689 case $ac_file in
5213506e 4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 break;;
4693 esac
4694done
4695else
5213506e 4696 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4697sed 's/^/| /' conftest.$ac_ext >&5
4698
5213506e
RW
4699{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4701as_fn_error $? "cannot compute suffix of object files: cannot compile
4702See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4703fi
1c710c3c
DJ
4704rm -f conftest.$ac_cv_objext conftest.$ac_ext
4705fi
5213506e
RW
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4707$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4708OBJEXT=$ac_cv_objext
4709ac_objext=$OBJEXT
5213506e
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4712if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4713 $as_echo_n "(cached) " >&6
1c710c3c 4714else
5213506e 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4716/* end confdefs.h. */
4717
4718int
4719main ()
4720{
4721#ifndef __GNUC__
4722 choke me
4723#endif
4724
4725 ;
4726 return 0;
4727}
4728_ACEOF
5213506e 4729if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4730 ac_compiler_gnu=yes
4731else
5213506e 4732 ac_compiler_gnu=no
1c710c3c 4733fi
5213506e 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4735ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737fi
5213506e
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742else
4743 GCC=
4744fi
1c710c3c
DJ
4745ac_test_CFLAGS=${CFLAGS+set}
4746ac_save_CFLAGS=$CFLAGS
5213506e
RW
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4749if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4750 $as_echo_n "(cached) " >&6
4751else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4757/* end confdefs.h. */
4758
4759int
4760main ()
4761{
4762
4763 ;
4764 return 0;
4765}
4766_ACEOF
5213506e 4767if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4768 ac_cv_prog_cc_g=yes
4769else
5213506e
RW
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773
4774int
4775main ()
4776{
4777
4778 ;
4779 return 0;
4780}
4781_ACEOF
4782if ac_fn_c_try_compile "$LINENO"; then :
4783
4784else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h. */
af71363e 4789
5213506e
RW
4790int
4791main ()
4792{
4793
4794 ;
4795 return 0;
4796}
4797_ACEOF
4798if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4802fi
5213506e 4803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4804fi
5213506e
RW
4805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4807fi
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4810if test "$ac_test_CFLAGS" = set; then
1c710c3c 4811 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4812elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4817 fi
4818else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4823 fi
4824fi
5213506e
RW
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4827if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4828 $as_echo_n "(cached) " >&6
1c710c3c 4829else
5213506e 4830 ac_cv_prog_cc_c89=no
1c710c3c 4831ac_save_CC=$CC
5213506e 4832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4833/* end confdefs.h. */
4834#include <stdarg.h>
4835#include <stdio.h>
22e05272 4836struct stat;
1c710c3c
DJ
4837/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4838struct buf { int x; };
4839FILE * (*rcsopen) (struct buf *, struct stat *, int);
4840static char *e (p, i)
4841 char **p;
4842 int i;
4843{
4844 return p[i];
4845}
4846static char *f (char * (*g) (char **, int), char **p, ...)
4847{
4848 char *s;
4849 va_list v;
4850 va_start (v,p);
4851 s = g (p, va_arg (v,int));
4852 va_end (v);
4853 return s;
4854}
4855
4856/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4857 function prototypes and stuff, but not '\xHH' hex character constants.
4858 These don't provoke an error unfortunately, instead are silently treated
5213506e 4859 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4861 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4862 that's true only with -std. */
1c710c3c
DJ
4863int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4864
5213506e
RW
4865/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4866 inside strings and character constants. */
4867#define FOO(x) 'x'
4868int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4869
1c710c3c
DJ
4870int test (int i, double x);
4871struct s1 {int (*f) (int a);};
4872struct s2 {int (*f) (double a);};
4873int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4874int argc;
4875char **argv;
4876int
4877main ()
4878{
4879return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 ;
4881 return 0;
4882}
4883_ACEOF
5213506e
RW
4884for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4886do
4887 CC="$ac_save_CC $ac_arg"
5213506e
RW
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4890fi
5213506e
RW
4891rm -f core conftest.err conftest.$ac_objext
4892 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4893done
5213506e 4894rm -f conftest.$ac_ext
1c710c3c
DJ
4895CC=$ac_save_CC
4896
4897fi
5213506e
RW
4898# AC_CACHE_VAL
4899case "x$ac_cv_prog_cc_c89" in
4900 x)
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4902$as_echo "none needed" >&6; } ;;
4903 xno)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4905$as_echo "unsupported" >&6; } ;;
1c710c3c 4906 *)
5213506e
RW
4907 CC="$CC $ac_cv_prog_cc_c89"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4909$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4910esac
5213506e 4911if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4912
2aeb72e9
DD
4913fi
4914
2aeb72e9
DD
4915ac_ext=c
4916ac_cpp='$CPP $CPPFLAGS'
4917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919ac_compiler_gnu=$ac_cv_c_compiler_gnu
4920
91743432
NC
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4922$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4923if ${ac_cv_prog_cc_c99+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925else
4926 ac_cv_prog_cc_c99=no
4927ac_save_CC=$CC
4928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h. */
4930#include <stdarg.h>
4931#include <stdbool.h>
4932#include <stdlib.h>
4933#include <wchar.h>
4934#include <stdio.h>
4935
4936// Check varargs macros. These examples are taken from C99 6.10.3.5.
4937#define debug(...) fprintf (stderr, __VA_ARGS__)
4938#define showlist(...) puts (#__VA_ARGS__)
4939#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4940static void
4941test_varargs_macros (void)
4942{
4943 int x = 1234;
4944 int y = 5678;
4945 debug ("Flag");
4946 debug ("X = %d\n", x);
4947 showlist (The first, second, and third items.);
4948 report (x>y, "x is %d but y is %d", x, y);
4949}
4950
4951// Check long long types.
4952#define BIG64 18446744073709551615ull
4953#define BIG32 4294967295ul
4954#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4955#if !BIG_OK
4956 your preprocessor is broken;
4957#endif
4958#if BIG_OK
4959#else
4960 your preprocessor is broken;
4961#endif
4962static long long int bignum = -9223372036854775807LL;
4963static unsigned long long int ubignum = BIG64;
4964
4965struct incomplete_array
4966{
4967 int datasize;
4968 double data[];
4969};
4970
4971struct named_init {
4972 int number;
4973 const wchar_t *name;
4974 double average;
4975};
4976
4977typedef const char *ccp;
4978
4979static inline int
4980test_restrict (ccp restrict text)
4981{
4982 // See if C++-style comments work.
4983 // Iterate through items via the restricted pointer.
4984 // Also check for declarations in for loops.
4985 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4986 continue;
4987 return 0;
4988}
4989
4990// Check varargs and va_copy.
4991static void
4992test_varargs (const char *format, ...)
4993{
4994 va_list args;
4995 va_start (args, format);
4996 va_list args_copy;
4997 va_copy (args_copy, args);
4998
4999 const char *str;
5000 int number;
5001 float fnumber;
5002
5003 while (*format)
5004 {
5005 switch (*format++)
5006 {
5007 case 's': // string
5008 str = va_arg (args_copy, const char *);
5009 break;
5010 case 'd': // int
5011 number = va_arg (args_copy, int);
5012 break;
5013 case 'f': // float
5014 fnumber = va_arg (args_copy, double);
5015 break;
5016 default:
5017 break;
5018 }
5019 }
5020 va_end (args_copy);
5021 va_end (args);
5022}
5023
5024int
5025main ()
5026{
5027
5028 // Check bool.
5029 _Bool success = false;
5030
5031 // Check restrict.
5032 if (test_restrict ("String literal") == 0)
5033 success = true;
5034 char *restrict newvar = "Another string";
5035
5036 // Check varargs.
5037 test_varargs ("s, d' f .", "string", 65, 34.234);
5038 test_varargs_macros ();
5039
5040 // Check flexible array members.
5041 struct incomplete_array *ia =
5042 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5043 ia->datasize = 10;
5044 for (int i = 0; i < ia->datasize; ++i)
5045 ia->data[i] = i * 1.234;
5046
5047 // Check named initializers.
5048 struct named_init ni = {
5049 .number = 34,
5050 .name = L"Test wide string",
5051 .average = 543.34343,
5052 };
5053
5054 ni.number = 58;
5055
5056 int dynamic_array[ni.number];
5057 dynamic_array[ni.number - 1] = 543;
5058
5059 // work around unused variable warnings
5060 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5061 || dynamic_array[ni.number - 1] != 543);
5062
5063 ;
5064 return 0;
5065}
5066_ACEOF
5067for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5068do
5069 CC="$ac_save_CC $ac_arg"
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_prog_cc_c99=$ac_arg
5072fi
5073rm -f core conftest.err conftest.$ac_objext
5074 test "x$ac_cv_prog_cc_c99" != "xno" && break
5075done
5076rm -f conftest.$ac_ext
5077CC=$ac_save_CC
5078
5079fi
5080# AC_CACHE_VAL
5081case "x$ac_cv_prog_cc_c99" in
5082 x)
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5084$as_echo "none needed" >&6; } ;;
5085 xno)
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5087$as_echo "unsupported" >&6; } ;;
5088 *)
5089 CC="$CC $ac_cv_prog_cc_c99"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5091$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5092esac
5093if test "x$ac_cv_prog_cc_c99" != xno; then :
5094
5095fi
5096
5097
5213506e 5098ac_ext=cpp
2aeb72e9
DD
5099ac_cpp='$CXXCPP $CPPFLAGS'
5100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5103if test -z "$CXX"; then
5104 if test -n "$CCC"; then
5105 CXX=$CCC
5106 else
5107 if test -n "$ac_tool_prefix"; then
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5109 do
5110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5114if ${ac_cv_prog_CXX+:} false; then :
5213506e 5115 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5116else
5117 if test -n "$CXX"; then
5118 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5119else
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5213506e 5125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5129 break 2
5130 fi
5131done
5213506e
RW
5132 done
5133IFS=$as_save_IFS
55ffb5ed 5134
c3a86da9
DJ
5135fi
5136fi
5137CXX=$ac_cv_prog_CXX
5138if test -n "$CXX"; then
5213506e
RW
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5140$as_echo "$CXX" >&6; }
c3a86da9 5141else
5213506e
RW
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143$as_echo "no" >&6; }
c3a86da9
DJ
5144fi
5145
5213506e 5146
c3a86da9
DJ
5147 test -n "$CXX" && break
5148 done
5149fi
5150if test -z "$CXX"; then
5151 ac_ct_CXX=$CXX
5213506e 5152 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5153do
5154 # Extract the first word of "$ac_prog", so it can be a program name with args.
5155set dummy $ac_prog; ac_word=$2
5213506e
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5158if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5159 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5160else
5161 if test -n "$ac_ct_CXX"; then
5162 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5163else
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5213506e 5169 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5171 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5173 break 2
5174 fi
5175done
5213506e
RW
5176 done
5177IFS=$as_save_IFS
c3a86da9
DJ
5178
5179fi
5180fi
5181ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5182if test -n "$ac_ct_CXX"; then
5213506e
RW
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5184$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5185else
5213506e
RW
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
c3a86da9
DJ
5188fi
5189
5213506e 5190
c3a86da9
DJ
5191 test -n "$ac_ct_CXX" && break
5192done
c3a86da9 5193
5213506e
RW
5194 if test "x$ac_ct_CXX" = x; then
5195 CXX="g++"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198yes:)
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201ac_tool_warned=yes ;;
5202esac
5203 CXX=$ac_ct_CXX
5204 fi
c3a86da9
DJ
5205fi
5206
5213506e
RW
5207 fi
5208fi
c3a86da9 5209# Provide some information about the compiler.
5213506e
RW
5210$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5211set X $ac_compile
5212ac_compiler=$2
5213for ac_option in --version -v -V -qversion; do
5214 { { ac_try="$ac_compiler $ac_option >&5"
5215case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218esac
5219eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5220$as_echo "$ac_try_echo"; } >&5
5221 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5222 ac_status=$?
5213506e
RW
5223 if test -s conftest.err; then
5224 sed '10a\
5225... rest of stderr output deleted ...
5226 10q' conftest.err >conftest.er1
5227 cat conftest.er1 >&5
5213506e 5228 fi
22e05272 5229 rm -f conftest.er1 conftest.err
5213506e
RW
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; }
5232done
c3a86da9 5233
5213506e
RW
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5235$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5236if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5237 $as_echo_n "(cached) " >&6
c3a86da9 5238else
5213506e 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5240/* end confdefs.h. */
5241
5242int
5243main ()
5244{
5245#ifndef __GNUC__
5246 choke me
5247#endif
5248
5249 ;
5250 return 0;
5251}
5252_ACEOF
5213506e 5253if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5254 ac_compiler_gnu=yes
5255else
5213506e 5256 ac_compiler_gnu=no
c3a86da9 5257fi
5213506e 5258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5259ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5260
5261fi
5213506e
RW
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5263$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5264if test $ac_compiler_gnu = yes; then
5265 GXX=yes
5266else
5267 GXX=
5268fi
c3a86da9
DJ
5269ac_test_CXXFLAGS=${CXXFLAGS+set}
5270ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5272$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5273if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5274 $as_echo_n "(cached) " >&6
5275else
5276 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5277 ac_cxx_werror_flag=yes
5278 ac_cv_prog_cxx_g=no
5279 CXXFLAGS="-g"
5280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5281/* end confdefs.h. */
5282
5283int
5284main ()
5285{
5286
5287 ;
5288 return 0;
5289}
5290_ACEOF
5213506e 5291if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5292 ac_cv_prog_cxx_g=yes
5293else
5213506e
RW
5294 CXXFLAGS=""
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5296/* end confdefs.h. */
5213506e 5297
c3a86da9
DJ
5298int
5299main ()
5300{
5213506e 5301
c3a86da9
DJ
5302 ;
5303 return 0;
5304}
5305_ACEOF
5213506e 5306if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5307
5213506e
RW
5308else
5309 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5310 CXXFLAGS="-g"
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5312/* end confdefs.h. */
5213506e 5313
c3a86da9
DJ
5314int
5315main ()
5316{
5213506e 5317
c3a86da9
DJ
5318 ;
5319 return 0;
5320}
5321_ACEOF
5213506e
RW
5322if ac_fn_cxx_try_compile "$LINENO"; then :
5323 ac_cv_prog_cxx_g=yes
11a67599 5324fi
5213506e
RW
5325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326fi
5327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328fi
5329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5333$as_echo "$ac_cv_prog_cxx_g" >&6; }
5334if test "$ac_test_CXXFLAGS" = set; then
5335 CXXFLAGS=$ac_save_CXXFLAGS
5336elif test $ac_cv_prog_cxx_g = yes; then
5337 if test "$GXX" = yes; then
5338 CXXFLAGS="-g -O2"
5339 else
5340 CXXFLAGS="-g"
5341 fi
5342else
5343 if test "$GXX" = yes; then
5344 CXXFLAGS="-O2"
5345 else
5346 CXXFLAGS=
5347 fi
c3a86da9 5348fi
c3a86da9
DJ
5349ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354
5355
5356# We must set the default linker to the linker used by gcc for the correct
5357# operation of libtool. If LD is not defined and we are using gcc, try to
5358# set the LD default to the ld used by gcc.
5359if test -z "$LD"; then
5360 if test "$GCC" = yes; then
5361 case $build in
5362 *-*-mingw*)
5363 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5364 *)
5365 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5366 esac
5367 case $gcc_prog_ld in
5368 # Accept absolute paths.
5369 [\\/]* | [A-Za-z]:[\\/]*)
5370 LD="$gcc_prog_ld" ;;
5371 esac
5372 fi
23f6b2f9
PB
5373fi
5374
0b21f5d3
EB
5375# Check whether -static-libstdc++ -static-libgcc is supported.
5376have_static_libs=no
5377if test "$GCC" = yes; then
5378 saved_LDFLAGS="$LDFLAGS"
5379
5380 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5382$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5383 ac_ext=cpp
5384ac_cpp='$CXXCPP $CPPFLAGS'
5385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5388
5389
5390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391/* end confdefs.h. */
0d6414b2
EB
5392
5393#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5394#error -static-libstdc++ not implemented
5395#endif
0b21f5d3
EB
5396int main() {}
5397_ACEOF
5398if ac_fn_cxx_try_link "$LINENO"; then :
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5400$as_echo "yes" >&6; }; have_static_libs=yes
5401else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
5407 ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412
5413
5414 LDFLAGS="$saved_LDFLAGS"
5415fi
5416
23f6b2f9
PB
5417
5418
55ffb5ed 5419
1c710c3c
DJ
5420if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5422set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5425if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5426 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5427else
5428 if test -n "$GNATBIND"; then
5429 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5430else
1c710c3c
DJ
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5213506e 5436 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5438 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5440 break 2
5441 fi
5442done
5213506e
RW
5443 done
5444IFS=$as_save_IFS
1c710c3c 5445
55ffb5ed
NN
5446fi
5447fi
1c710c3c 5448GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5449if test -n "$GNATBIND"; then
5213506e
RW
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5451$as_echo "$GNATBIND" >&6; }
55ffb5ed 5452else
5213506e
RW
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454$as_echo "no" >&6; }
55ffb5ed
NN
5455fi
5456
5213506e 5457
1c710c3c 5458fi
55ffb5ed 5459if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5460 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5461 # Extract the first word of "gnatbind", so it can be a program name with args.
5462set dummy gnatbind; ac_word=$2
5213506e
RW
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5465if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5466 $as_echo_n "(cached) " >&6
55ffb5ed 5467else
1c710c3c
DJ
5468 if test -n "$ac_ct_GNATBIND"; then
5469 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5470else
1c710c3c
DJ
5471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5213506e 5476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5478 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5480 break 2
5481 fi
5482done
5213506e
RW
5483 done
5484IFS=$as_save_IFS
1c710c3c 5485
55ffb5ed
NN
5486fi
5487fi
1c710c3c
DJ
5488ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5489if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5491$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5492else
5213506e
RW
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494$as_echo "no" >&6; }
55ffb5ed
NN
5495fi
5496
5213506e
RW
5497 if test "x$ac_ct_GNATBIND" = x; then
5498 GNATBIND="no"
5499 else
5500 case $cross_compiling:$ac_tool_warned in
5501yes:)
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504ac_tool_warned=yes ;;
5505esac
5506 GNATBIND=$ac_ct_GNATBIND
5507 fi
55ffb5ed 5508else
1c710c3c 5509 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5510fi
5511
1c710c3c
DJ
5512if test -n "$ac_tool_prefix"; then
5513 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5514set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5517if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5518 $as_echo_n "(cached) " >&6
5305be7e
RG
5519else
5520 if test -n "$GNATMAKE"; then
5521 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5522else
1c710c3c
DJ
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5213506e 5528 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5530 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5532 break 2
5533 fi
5534done
5213506e
RW
5535 done
5536IFS=$as_save_IFS
1c710c3c 5537
5305be7e
RG
5538fi
5539fi
1c710c3c 5540GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5541if test -n "$GNATMAKE"; then
5213506e
RW
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5543$as_echo "$GNATMAKE" >&6; }
5305be7e 5544else
5213506e
RW
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5546$as_echo "no" >&6; }
5305be7e
RG
5547fi
5548
5213506e 5549
1c710c3c 5550fi
5305be7e 5551if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5552 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5553 # Extract the first word of "gnatmake", so it can be a program name with args.
5554set dummy gnatmake; ac_word=$2
5213506e
RW
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5557if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5558 $as_echo_n "(cached) " >&6
5305be7e 5559else
1c710c3c
DJ
5560 if test -n "$ac_ct_GNATMAKE"; then
5561 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5562else
1c710c3c
DJ
5563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564for as_dir in $PATH
5565do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5213506e 5568 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5570 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5572 break 2
5573 fi
5574done
5213506e
RW
5575 done
5576IFS=$as_save_IFS
1c710c3c 5577
5305be7e
RG
5578fi
5579fi
1c710c3c
DJ
5580ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5581if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5583$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5584else
5213506e
RW
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586$as_echo "no" >&6; }
5305be7e
RG
5587fi
5588
5213506e
RW
5589 if test "x$ac_ct_GNATMAKE" = x; then
5590 GNATMAKE="no"
5591 else
5592 case $cross_compiling:$ac_tool_warned in
5593yes:)
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5596ac_tool_warned=yes ;;
5597esac
5598 GNATMAKE=$ac_ct_GNATMAKE
5599 fi
5305be7e 5600else
1c710c3c 5601 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5602fi
5603
5213506e
RW
5604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5605$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5606if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5607 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5608else
5609 cat >conftest.adb <<EOF
5610procedure conftest is begin null; end conftest;
5611EOF
5612acx_cv_cc_gcc_supports_ada=no
5613# There is a bug in old released versions of GCC which causes the
5614# driver to exit successfully when the appropriate language module
5615# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5616# Therefore we must check for the error message as well as an
5617# unsuccessful exit.
1db673ca
RO
5618# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5619# given a .adb file, but produce no object file. So we must check
5620# if an object file was really produced to guard against this.
55ffb5ed 5621errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5622if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5623 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5624fi
5625rm -f conftest.*
5626fi
5213506e
RW
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5628$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5629
7cb62ef1 5630if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5631 have_gnat=yes
5632else
5633 have_gnat=no
5634fi
5635
5fee5ec3
IB
5636
5637
5638if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5640set dummy ${ac_tool_prefix}gdc; ac_word=$2
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642$as_echo_n "checking for $ac_word... " >&6; }
5643if ${ac_cv_prog_GDC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test -n "$GDC"; then
5647 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5648else
5649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650for as_dir in $PATH
5651do
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5659 fi
5660done
5661 done
5662IFS=$as_save_IFS
5663
5664fi
5665fi
5666GDC=$ac_cv_prog_GDC
5667if test -n "$GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5669$as_echo "$GDC" >&6; }
5670else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672$as_echo "no" >&6; }
5673fi
5674
5675
5676fi
5677if test -z "$ac_cv_prog_GDC"; then
5678 ac_ct_GDC=$GDC
5679 # Extract the first word of "gdc", so it can be a program name with args.
5680set dummy gdc; ac_word=$2
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682$as_echo_n "checking for $ac_word... " >&6; }
5683if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685else
5686 if test -n "$ac_ct_GDC"; then
5687 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5688else
5689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690for as_dir in $PATH
5691do
5692 IFS=$as_save_IFS
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5696 ac_cv_prog_ac_ct_GDC="gdc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 break 2
5699 fi
5700done
5701 done
5702IFS=$as_save_IFS
5703
5704fi
5705fi
5706ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5707if test -n "$ac_ct_GDC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5709$as_echo "$ac_ct_GDC" >&6; }
5710else
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712$as_echo "no" >&6; }
5713fi
5714
5715 if test "x$ac_ct_GDC" = x; then
5716 GDC="no"
5717 else
5718 case $cross_compiling:$ac_tool_warned in
5719yes:)
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722ac_tool_warned=yes ;;
5723esac
5724 GDC=$ac_ct_GDC
5725 fi
5726else
5727 GDC="$ac_cv_prog_GDC"
5728fi
5729
7c6ae994
IB
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5731$as_echo_n "checking whether the D compiler works... " >&6; }
5732if ${acx_cv_d_compiler_works+:} false; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 cat >conftest.d <<EOF
5736module conftest; int main() { return 0; }
5737EOF
5738acx_cv_d_compiler_works=no
5fee5ec3 5739if test "x$GDC" != xno; then
7c6ae994
IB
5740 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5741 if test x"$errors" = x && test -f conftest.$ac_objext; then
5742 acx_cv_d_compiler_works=yes
5743 fi
5744 rm -f conftest.*
5745fi
5746fi
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5748$as_echo "$acx_cv_d_compiler_works" >&6; }
5749if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5750 have_gdc=yes
5751else
5752 have_gdc=no
5753fi
5754
5213506e
RW
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5756$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5757if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5758 $as_echo_n "(cached) " >&6
a76494aa
PB
5759else
5760 echo abfoo >t1
5761 echo cdfoo >t2
b55e6680 5762 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5763 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5764 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5765 :
5766 else
5767 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5768 fi
5769 fi
a76494aa
PB
5770 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5771 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5772 :
a76494aa
PB
5773 else
5774 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5775 fi
5776 fi
5777 rm t1 t2
5778
5779fi
5213506e
RW
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5781$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5782do_compare="$gcc_cv_prog_cmp_skip"
5783
5784
55ffb5ed 5785
ff3ac0f4
ILT
5786# Check whether --enable-bootstrap was given.
5787if test "${enable_bootstrap+set}" = set; then :
5788 enableval=$enable_bootstrap;
5789else
5790 enable_bootstrap=default
5791fi
5792
5793
5794# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5795if test -r $srcdir/gcc/configure; then
5796 have_compiler=yes
5797else
5798 have_compiler=no
5799fi
ff3ac0f4
ILT
5800
5801case "$have_compiler:$host:$target:$enable_bootstrap" in
5802 *:*:*:no) ;;
5803
5804 # Default behavior. Enable bootstrap if we have a compiler
5805 # and we are in a native configuration.
5806 yes:$build:$build:default)
5807 enable_bootstrap=yes ;;
5808
5809 *:*:*:default)
5810 enable_bootstrap=no ;;
5811
5812 # We have a compiler and we are in a native configuration, bootstrap is ok
5813 yes:$build:$build:yes)
5814 ;;
5815
5816 # Other configurations, but we have a compiler. Assume the user knows
5817 # what he's doing.
5818 yes:*:*:yes)
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5820$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5821 ;;
5822
5823 # No compiler: if they passed --enable-bootstrap explicitly, fail
5824 no:*:*:yes)
22e05272 5825 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5826
5827 # Fail if wrong command line
5828 *)
22e05272 5829 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5830 ;;
5831esac
5832
5329b59a 5833# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5834# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5835# require C++11 (or higher).
46070488 5836if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5837 CXX="$CXX -std=c++11"
ffac9597
JM
5838elif test "$have_compiler" = yes; then
5839 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5840 ac_ext=cpp
5841ac_cpp='$CXXCPP $CPPFLAGS'
5842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5845 ac_success=no
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5848$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5849if ${ax_cv_cxx_compile_cxx11+:} false; then :
5850 $as_echo_n "(cached) " >&6
5851else
5852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853/* end confdefs.h. */
5854
5855
5856// If the compiler admits that it is not ready for C++11, why torture it?
5857// Hopefully, this will speed up the test.
5858
5859#ifndef __cplusplus
5860
5861#error "This is not a C++ compiler"
5862
5863#elif __cplusplus < 201103L
5864
5865#error "This is not a C++11 compiler"
5866
5867#else
5868
5869namespace cxx11
5870{
5871
5872 namespace test_static_assert
5873 {
5874
5875 template <typename T>
5876 struct check
5877 {
5878 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5879 };
5880
5881 }
5882
5883 namespace test_final_override
5884 {
5885
5886 struct Base
5887 {
5888 virtual ~Base() {}
5889 virtual void f() {}
5890 };
5891
5892 struct Derived : public Base
5893 {
5894 virtual ~Derived() override {}
5895 virtual void f() override {}
5896 };
5897
5898 }
5899
5900 namespace test_double_right_angle_brackets
5901 {
5902
5903 template < typename T >
5904 struct check {};
5905
5906 typedef check<void> single_type;
5907 typedef check<check<void>> double_type;
5908 typedef check<check<check<void>>> triple_type;
5909 typedef check<check<check<check<void>>>> quadruple_type;
5910
5911 }
5912
5913 namespace test_decltype
5914 {
5915
5916 int
5917 f()
5918 {
5919 int a = 1;
5920 decltype(a) b = 2;
5921 return a + b;
5922 }
5923
5924 }
5925
5926 namespace test_type_deduction
5927 {
5928
5929 template < typename T1, typename T2 >
5930 struct is_same
5931 {
5932 static const bool value = false;
5933 };
5934
5935 template < typename T >
5936 struct is_same<T, T>
5937 {
5938 static const bool value = true;
5939 };
5940
5941 template < typename T1, typename T2 >
5942 auto
5943 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5944 {
5945 return a1 + a2;
5946 }
5947
5948 int
5949 test(const int c, volatile int v)
5950 {
5951 static_assert(is_same<int, decltype(0)>::value == true, "");
5952 static_assert(is_same<int, decltype(c)>::value == false, "");
5953 static_assert(is_same<int, decltype(v)>::value == false, "");
5954 auto ac = c;
5955 auto av = v;
5956 auto sumi = ac + av + 'x';
5957 auto sumf = ac + av + 1.0;
5958 static_assert(is_same<int, decltype(ac)>::value == true, "");
5959 static_assert(is_same<int, decltype(av)>::value == true, "");
5960 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5961 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5962 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5963 return (sumf > 0.0) ? sumi : add(c, v);
5964 }
5965
5966 }
5967
5968 namespace test_noexcept
5969 {
5970
5971 int f() { return 0; }
5972 int g() noexcept { return 0; }
5973
5974 static_assert(noexcept(f()) == false, "");
5975 static_assert(noexcept(g()) == true, "");
5976
5977 }
5978
5979 namespace test_constexpr
5980 {
5981
5982 template < typename CharT >
5983 unsigned long constexpr
5984 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5985 {
5986 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5987 }
5988
5989 template < typename CharT >
5990 unsigned long constexpr
5991 strlen_c(const CharT *const s) noexcept
5992 {
5993 return strlen_c_r(s, 0UL);
5994 }
5995
5996 static_assert(strlen_c("") == 0UL, "");
5997 static_assert(strlen_c("1") == 1UL, "");
5998 static_assert(strlen_c("example") == 7UL, "");
5999 static_assert(strlen_c("another\0example") == 7UL, "");
6000
6001 }
6002
6003 namespace test_rvalue_references
6004 {
6005
6006 template < int N >
6007 struct answer
6008 {
6009 static constexpr int value = N;
6010 };
6011
6012 answer<1> f(int&) { return answer<1>(); }
6013 answer<2> f(const int&) { return answer<2>(); }
6014 answer<3> f(int&&) { return answer<3>(); }
6015
6016 void
6017 test()
6018 {
6019 int i = 0;
6020 const int c = 0;
6021 static_assert(decltype(f(i))::value == 1, "");
6022 static_assert(decltype(f(c))::value == 2, "");
6023 static_assert(decltype(f(0))::value == 3, "");
6024 }
6025
6026 }
6027
6028 namespace test_uniform_initialization
6029 {
6030
6031 struct test
6032 {
6033 static const int zero {};
6034 static const int one {1};
6035 };
6036
6037 static_assert(test::zero == 0, "");
6038 static_assert(test::one == 1, "");
6039
6040 }
6041
6042 namespace test_lambdas
6043 {
6044
6045 void
6046 test1()
6047 {
6048 auto lambda1 = [](){};
6049 auto lambda2 = lambda1;
6050 lambda1();
6051 lambda2();
6052 }
6053
6054 int
6055 test2()
6056 {
6057 auto a = [](int i, int j){ return i + j; }(1, 2);
6058 auto b = []() -> int { return '0'; }();
6059 auto c = [=](){ return a + b; }();
6060 auto d = [&](){ return c; }();
6061 auto e = [a, &b](int x) mutable {
6062 const auto identity = [](int y){ return y; };
6063 for (auto i = 0; i < a; ++i)
6064 a += b--;
6065 return x + identity(a + b);
6066 }(0);
6067 return a + b + c + d + e;
6068 }
6069
6070 int
6071 test3()
6072 {
6073 const auto nullary = [](){ return 0; };
6074 const auto unary = [](int x){ return x; };
6075 using nullary_t = decltype(nullary);
6076 using unary_t = decltype(unary);
6077 const auto higher1st = [](nullary_t f){ return f(); };
6078 const auto higher2nd = [unary](nullary_t f1){
6079 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6080 };
6081 return higher1st(nullary) + higher2nd(nullary)(unary);
6082 }
6083
6084 }
6085
6086 namespace test_variadic_templates
6087 {
6088
6089 template <int...>
6090 struct sum;
6091
6092 template <int N0, int... N1toN>
6093 struct sum<N0, N1toN...>
6094 {
6095 static constexpr auto value = N0 + sum<N1toN...>::value;
6096 };
6097
6098 template <>
6099 struct sum<>
6100 {
6101 static constexpr auto value = 0;
6102 };
6103
6104 static_assert(sum<>::value == 0, "");
6105 static_assert(sum<1>::value == 1, "");
6106 static_assert(sum<23>::value == 23, "");
6107 static_assert(sum<1, 2>::value == 3, "");
6108 static_assert(sum<5, 5, 11>::value == 21, "");
6109 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6110
6111 }
6112
6113 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6114 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6115 // because of this.
6116 namespace test_template_alias_sfinae
6117 {
6118
6119 struct foo {};
6120
6121 template<typename T>
6122 using member = typename T::member_type;
6123
6124 template<typename T>
6125 void func(...) {}
6126
6127 template<typename T>
6128 void func(member<T>*) {}
6129
6130 void test();
6131
6132 void test() { func<foo>(0); }
6133
6134 }
6135
6136} // namespace cxx11
6137
6138#endif // __cplusplus >= 201103L
6139
6140
6141
6142_ACEOF
6143if ac_fn_cxx_try_compile "$LINENO"; then :
6144 ax_cv_cxx_compile_cxx11=yes
6145else
6146 ax_cv_cxx_compile_cxx11=no
6147fi
6148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149fi
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6151$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6152 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6153 ac_success=yes
6154 fi
6155
6156 if test x$ac_success = xno; then
6157 for alternative in ${ax_cxx_compile_alternatives}; do
6158 switch="-std=gnu++${alternative}"
6159 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6161$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6162if eval \${$cachevar+:} false; then :
6163 $as_echo_n "(cached) " >&6
6164else
6165 ac_save_CXX="$CXX"
6166 CXX="$CXX $switch"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h. */
6169
6170
6171// If the compiler admits that it is not ready for C++11, why torture it?
6172// Hopefully, this will speed up the test.
6173
6174#ifndef __cplusplus
6175
6176#error "This is not a C++ compiler"
6177
6178#elif __cplusplus < 201103L
6179
6180#error "This is not a C++11 compiler"
6181
6182#else
6183
6184namespace cxx11
6185{
6186
6187 namespace test_static_assert
6188 {
6189
6190 template <typename T>
6191 struct check
6192 {
6193 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6194 };
6195
6196 }
6197
6198 namespace test_final_override
6199 {
6200
6201 struct Base
6202 {
6203 virtual ~Base() {}
6204 virtual void f() {}
6205 };
6206
6207 struct Derived : public Base
6208 {
6209 virtual ~Derived() override {}
6210 virtual void f() override {}
6211 };
6212
6213 }
6214
6215 namespace test_double_right_angle_brackets
6216 {
6217
6218 template < typename T >
6219 struct check {};
6220
6221 typedef check<void> single_type;
6222 typedef check<check<void>> double_type;
6223 typedef check<check<check<void>>> triple_type;
6224 typedef check<check<check<check<void>>>> quadruple_type;
6225
6226 }
6227
6228 namespace test_decltype
6229 {
6230
6231 int
6232 f()
6233 {
6234 int a = 1;
6235 decltype(a) b = 2;
6236 return a + b;
6237 }
6238
6239 }
6240
6241 namespace test_type_deduction
6242 {
6243
6244 template < typename T1, typename T2 >
6245 struct is_same
6246 {
6247 static const bool value = false;
6248 };
6249
6250 template < typename T >
6251 struct is_same<T, T>
6252 {
6253 static const bool value = true;
6254 };
6255
6256 template < typename T1, typename T2 >
6257 auto
6258 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6259 {
6260 return a1 + a2;
6261 }
6262
6263 int
6264 test(const int c, volatile int v)
6265 {
6266 static_assert(is_same<int, decltype(0)>::value == true, "");
6267 static_assert(is_same<int, decltype(c)>::value == false, "");
6268 static_assert(is_same<int, decltype(v)>::value == false, "");
6269 auto ac = c;
6270 auto av = v;
6271 auto sumi = ac + av + 'x';
6272 auto sumf = ac + av + 1.0;
6273 static_assert(is_same<int, decltype(ac)>::value == true, "");
6274 static_assert(is_same<int, decltype(av)>::value == true, "");
6275 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6276 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6277 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6278 return (sumf > 0.0) ? sumi : add(c, v);
6279 }
6280
6281 }
6282
6283 namespace test_noexcept
6284 {
6285
6286 int f() { return 0; }
6287 int g() noexcept { return 0; }
6288
6289 static_assert(noexcept(f()) == false, "");
6290 static_assert(noexcept(g()) == true, "");
6291
6292 }
6293
6294 namespace test_constexpr
6295 {
6296
6297 template < typename CharT >
6298 unsigned long constexpr
6299 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6300 {
6301 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6302 }
6303
6304 template < typename CharT >
6305 unsigned long constexpr
6306 strlen_c(const CharT *const s) noexcept
6307 {
6308 return strlen_c_r(s, 0UL);
6309 }
6310
6311 static_assert(strlen_c("") == 0UL, "");
6312 static_assert(strlen_c("1") == 1UL, "");
6313 static_assert(strlen_c("example") == 7UL, "");
6314 static_assert(strlen_c("another\0example") == 7UL, "");
6315
6316 }
6317
6318 namespace test_rvalue_references
6319 {
6320
6321 template < int N >
6322 struct answer
6323 {
6324 static constexpr int value = N;
6325 };
6326
6327 answer<1> f(int&) { return answer<1>(); }
6328 answer<2> f(const int&) { return answer<2>(); }
6329 answer<3> f(int&&) { return answer<3>(); }
6330
6331 void
6332 test()
6333 {
6334 int i = 0;
6335 const int c = 0;
6336 static_assert(decltype(f(i))::value == 1, "");
6337 static_assert(decltype(f(c))::value == 2, "");
6338 static_assert(decltype(f(0))::value == 3, "");
6339 }
6340
6341 }
6342
6343 namespace test_uniform_initialization
6344 {
6345
6346 struct test
6347 {
6348 static const int zero {};
6349 static const int one {1};
6350 };
6351
6352 static_assert(test::zero == 0, "");
6353 static_assert(test::one == 1, "");
6354
6355 }
6356
6357 namespace test_lambdas
6358 {
6359
6360 void
6361 test1()
6362 {
6363 auto lambda1 = [](){};
6364 auto lambda2 = lambda1;
6365 lambda1();
6366 lambda2();
6367 }
6368
6369 int
6370 test2()
6371 {
6372 auto a = [](int i, int j){ return i + j; }(1, 2);
6373 auto b = []() -> int { return '0'; }();
6374 auto c = [=](){ return a + b; }();
6375 auto d = [&](){ return c; }();
6376 auto e = [a, &b](int x) mutable {
6377 const auto identity = [](int y){ return y; };
6378 for (auto i = 0; i < a; ++i)
6379 a += b--;
6380 return x + identity(a + b);
6381 }(0);
6382 return a + b + c + d + e;
6383 }
6384
6385 int
6386 test3()
6387 {
6388 const auto nullary = [](){ return 0; };
6389 const auto unary = [](int x){ return x; };
6390 using nullary_t = decltype(nullary);
6391 using unary_t = decltype(unary);
6392 const auto higher1st = [](nullary_t f){ return f(); };
6393 const auto higher2nd = [unary](nullary_t f1){
6394 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6395 };
6396 return higher1st(nullary) + higher2nd(nullary)(unary);
6397 }
6398
6399 }
6400
6401 namespace test_variadic_templates
6402 {
6403
6404 template <int...>
6405 struct sum;
6406
6407 template <int N0, int... N1toN>
6408 struct sum<N0, N1toN...>
6409 {
6410 static constexpr auto value = N0 + sum<N1toN...>::value;
6411 };
6412
6413 template <>
6414 struct sum<>
6415 {
6416 static constexpr auto value = 0;
6417 };
6418
6419 static_assert(sum<>::value == 0, "");
6420 static_assert(sum<1>::value == 1, "");
6421 static_assert(sum<23>::value == 23, "");
6422 static_assert(sum<1, 2>::value == 3, "");
6423 static_assert(sum<5, 5, 11>::value == 21, "");
6424 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6425
6426 }
6427
6428 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6429 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6430 // because of this.
6431 namespace test_template_alias_sfinae
6432 {
6433
6434 struct foo {};
6435
6436 template<typename T>
6437 using member = typename T::member_type;
6438
6439 template<typename T>
6440 void func(...) {}
6441
6442 template<typename T>
6443 void func(member<T>*) {}
6444
6445 void test();
6446
6447 void test() { func<foo>(0); }
6448
6449 }
6450
6451} // namespace cxx11
6452
6453#endif // __cplusplus >= 201103L
6454
6455
6456
6457_ACEOF
6458if ac_fn_cxx_try_compile "$LINENO"; then :
6459 eval $cachevar=yes
6460else
6461 eval $cachevar=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 CXX="$ac_save_CXX"
6465fi
6466eval ac_res=\$$cachevar
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468$as_echo "$ac_res" >&6; }
6469 if eval test x\$$cachevar = xyes; then
6470 CXX="$CXX $switch"
6471 if test -n "$CXXCPP" ; then
6472 CXXCPP="$CXXCPP $switch"
6473 fi
6474 ac_success=yes
6475 break
6476 fi
6477 done
6478 fi
6479
6480 if test x$ac_success = xno; then
6481 for alternative in ${ax_cxx_compile_alternatives}; do
6482 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6483 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6485$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6486if eval \${$cachevar+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488else
6489 ac_save_CXX="$CXX"
6490 CXX="$CXX $switch"
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492/* end confdefs.h. */
6493
6494
6495// If the compiler admits that it is not ready for C++11, why torture it?
6496// Hopefully, this will speed up the test.
6497
6498#ifndef __cplusplus
6499
6500#error "This is not a C++ compiler"
6501
6502#elif __cplusplus < 201103L
6503
6504#error "This is not a C++11 compiler"
6505
6506#else
6507
6508namespace cxx11
6509{
6510
6511 namespace test_static_assert
6512 {
6513
6514 template <typename T>
6515 struct check
6516 {
6517 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6518 };
6519
6520 }
6521
6522 namespace test_final_override
6523 {
6524
6525 struct Base
6526 {
6527 virtual ~Base() {}
6528 virtual void f() {}
6529 };
6530
6531 struct Derived : public Base
6532 {
6533 virtual ~Derived() override {}
6534 virtual void f() override {}
6535 };
6536
6537 }
6538
6539 namespace test_double_right_angle_brackets
6540 {
6541
6542 template < typename T >
6543 struct check {};
6544
6545 typedef check<void> single_type;
6546 typedef check<check<void>> double_type;
6547 typedef check<check<check<void>>> triple_type;
6548 typedef check<check<check<check<void>>>> quadruple_type;
6549
6550 }
6551
6552 namespace test_decltype
6553 {
6554
6555 int
6556 f()
6557 {
6558 int a = 1;
6559 decltype(a) b = 2;
6560 return a + b;
6561 }
6562
6563 }
6564
6565 namespace test_type_deduction
6566 {
6567
6568 template < typename T1, typename T2 >
6569 struct is_same
6570 {
6571 static const bool value = false;
6572 };
6573
6574 template < typename T >
6575 struct is_same<T, T>
6576 {
6577 static const bool value = true;
6578 };
6579
6580 template < typename T1, typename T2 >
6581 auto
6582 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6583 {
6584 return a1 + a2;
6585 }
6586
6587 int
6588 test(const int c, volatile int v)
6589 {
6590 static_assert(is_same<int, decltype(0)>::value == true, "");
6591 static_assert(is_same<int, decltype(c)>::value == false, "");
6592 static_assert(is_same<int, decltype(v)>::value == false, "");
6593 auto ac = c;
6594 auto av = v;
6595 auto sumi = ac + av + 'x';
6596 auto sumf = ac + av + 1.0;
6597 static_assert(is_same<int, decltype(ac)>::value == true, "");
6598 static_assert(is_same<int, decltype(av)>::value == true, "");
6599 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6600 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6601 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6602 return (sumf > 0.0) ? sumi : add(c, v);
6603 }
6604
6605 }
6606
6607 namespace test_noexcept
6608 {
6609
6610 int f() { return 0; }
6611 int g() noexcept { return 0; }
6612
6613 static_assert(noexcept(f()) == false, "");
6614 static_assert(noexcept(g()) == true, "");
6615
6616 }
6617
6618 namespace test_constexpr
6619 {
6620
6621 template < typename CharT >
6622 unsigned long constexpr
6623 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6624 {
6625 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6626 }
6627
6628 template < typename CharT >
6629 unsigned long constexpr
6630 strlen_c(const CharT *const s) noexcept
6631 {
6632 return strlen_c_r(s, 0UL);
6633 }
6634
6635 static_assert(strlen_c("") == 0UL, "");
6636 static_assert(strlen_c("1") == 1UL, "");
6637 static_assert(strlen_c("example") == 7UL, "");
6638 static_assert(strlen_c("another\0example") == 7UL, "");
6639
6640 }
6641
6642 namespace test_rvalue_references
6643 {
6644
6645 template < int N >
6646 struct answer
6647 {
6648 static constexpr int value = N;
6649 };
6650
6651 answer<1> f(int&) { return answer<1>(); }
6652 answer<2> f(const int&) { return answer<2>(); }
6653 answer<3> f(int&&) { return answer<3>(); }
6654
6655 void
6656 test()
6657 {
6658 int i = 0;
6659 const int c = 0;
6660 static_assert(decltype(f(i))::value == 1, "");
6661 static_assert(decltype(f(c))::value == 2, "");
6662 static_assert(decltype(f(0))::value == 3, "");
6663 }
6664
6665 }
6666
6667 namespace test_uniform_initialization
6668 {
6669
6670 struct test
6671 {
6672 static const int zero {};
6673 static const int one {1};
6674 };
6675
6676 static_assert(test::zero == 0, "");
6677 static_assert(test::one == 1, "");
6678
6679 }
6680
6681 namespace test_lambdas
6682 {
6683
6684 void
6685 test1()
6686 {
6687 auto lambda1 = [](){};
6688 auto lambda2 = lambda1;
6689 lambda1();
6690 lambda2();
6691 }
6692
6693 int
6694 test2()
6695 {
6696 auto a = [](int i, int j){ return i + j; }(1, 2);
6697 auto b = []() -> int { return '0'; }();
6698 auto c = [=](){ return a + b; }();
6699 auto d = [&](){ return c; }();
6700 auto e = [a, &b](int x) mutable {
6701 const auto identity = [](int y){ return y; };
6702 for (auto i = 0; i < a; ++i)
6703 a += b--;
6704 return x + identity(a + b);
6705 }(0);
6706 return a + b + c + d + e;
6707 }
6708
6709 int
6710 test3()
6711 {
6712 const auto nullary = [](){ return 0; };
6713 const auto unary = [](int x){ return x; };
6714 using nullary_t = decltype(nullary);
6715 using unary_t = decltype(unary);
6716 const auto higher1st = [](nullary_t f){ return f(); };
6717 const auto higher2nd = [unary](nullary_t f1){
6718 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6719 };
6720 return higher1st(nullary) + higher2nd(nullary)(unary);
6721 }
6722
6723 }
6724
6725 namespace test_variadic_templates
6726 {
6727
6728 template <int...>
6729 struct sum;
6730
6731 template <int N0, int... N1toN>
6732 struct sum<N0, N1toN...>
6733 {
6734 static constexpr auto value = N0 + sum<N1toN...>::value;
6735 };
6736
6737 template <>
6738 struct sum<>
6739 {
6740 static constexpr auto value = 0;
6741 };
6742
6743 static_assert(sum<>::value == 0, "");
6744 static_assert(sum<1>::value == 1, "");
6745 static_assert(sum<23>::value == 23, "");
6746 static_assert(sum<1, 2>::value == 3, "");
6747 static_assert(sum<5, 5, 11>::value == 21, "");
6748 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6749
6750 }
6751
6752 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6753 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6754 // because of this.
6755 namespace test_template_alias_sfinae
6756 {
6757
6758 struct foo {};
6759
6760 template<typename T>
6761 using member = typename T::member_type;
6762
6763 template<typename T>
6764 void func(...) {}
6765
6766 template<typename T>
6767 void func(member<T>*) {}
6768
6769 void test();
6770
6771 void test() { func<foo>(0); }
6772
6773 }
6774
6775} // namespace cxx11
6776
6777#endif // __cplusplus >= 201103L
6778
6779
6780
6781_ACEOF
6782if ac_fn_cxx_try_compile "$LINENO"; then :
6783 eval $cachevar=yes
6784else
6785 eval $cachevar=no
6786fi
6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788 CXX="$ac_save_CXX"
6789fi
6790eval ac_res=\$$cachevar
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6792$as_echo "$ac_res" >&6; }
6793 if eval test x\$$cachevar = xyes; then
6794 CXX="$CXX $switch"
6795 if test -n "$CXXCPP" ; then
6796 CXXCPP="$CXXCPP $switch"
6797 fi
6798 ac_success=yes
6799 break
6800 fi
6801 done
6802 if test x$ac_success = xyes; then
6803 break
6804 fi
6805 done
6806 fi
7ffcf5d6 6807
ffac9597
JM
6808 ac_ext=c
6809ac_cpp='$CPP $CPPFLAGS'
6810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812ac_compiler_gnu=$ac_cv_c_compiler_gnu
6813
6814 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6815 if test x$ac_success = xno; then
6816 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6817 fi
6818 fi
6819 if test x$ac_success = xno; then
6820 HAVE_CXX11=0
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6822$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6823 else
6824 HAVE_CXX11=1
6825
6826$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6827
6828 fi
6829
6830
7ffcf5d6
TB
6831
6832 if test "${build}" != "${host}"; then
6833 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6834 ac_ext=cpp
6835ac_cpp='$CXXCPP $CPPFLAGS'
6836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6839 ac_success=no
6840 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6841 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6842 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6843 CXX="$CXX_FOR_BUILD"
6844 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6845 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6847$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6848if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h. */
6853
6854
6855// If the compiler admits that it is not ready for C++11, why torture it?
6856// Hopefully, this will speed up the test.
6857
6858#ifndef __cplusplus
6859
6860#error "This is not a C++ compiler"
6861
6862#elif __cplusplus < 201103L
6863
6864#error "This is not a C++11 compiler"
6865
6866#else
6867
6868namespace cxx11
6869{
6870
6871 namespace test_static_assert
6872 {
6873
6874 template <typename T>
6875 struct check
6876 {
6877 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6878 };
6879
6880 }
6881
6882 namespace test_final_override
6883 {
6884
6885 struct Base
6886 {
6887 virtual ~Base() {}
6888 virtual void f() {}
6889 };
6890
6891 struct Derived : public Base
6892 {
6893 virtual ~Derived() override {}
6894 virtual void f() override {}
6895 };
6896
6897 }
6898
6899 namespace test_double_right_angle_brackets
6900 {
6901
6902 template < typename T >
6903 struct check {};
6904
6905 typedef check<void> single_type;
6906 typedef check<check<void>> double_type;
6907 typedef check<check<check<void>>> triple_type;
6908 typedef check<check<check<check<void>>>> quadruple_type;
6909
6910 }
6911
6912 namespace test_decltype
6913 {
6914
6915 int
6916 f()
6917 {
6918 int a = 1;
6919 decltype(a) b = 2;
6920 return a + b;
6921 }
6922
6923 }
6924
6925 namespace test_type_deduction
6926 {
6927
6928 template < typename T1, typename T2 >
6929 struct is_same
6930 {
6931 static const bool value = false;
6932 };
6933
6934 template < typename T >
6935 struct is_same<T, T>
6936 {
6937 static const bool value = true;
6938 };
6939
6940 template < typename T1, typename T2 >
6941 auto
6942 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6943 {
6944 return a1 + a2;
6945 }
6946
6947 int
6948 test(const int c, volatile int v)
6949 {
6950 static_assert(is_same<int, decltype(0)>::value == true, "");
6951 static_assert(is_same<int, decltype(c)>::value == false, "");
6952 static_assert(is_same<int, decltype(v)>::value == false, "");
6953 auto ac = c;
6954 auto av = v;
6955 auto sumi = ac + av + 'x';
6956 auto sumf = ac + av + 1.0;
6957 static_assert(is_same<int, decltype(ac)>::value == true, "");
6958 static_assert(is_same<int, decltype(av)>::value == true, "");
6959 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6960 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6961 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6962 return (sumf > 0.0) ? sumi : add(c, v);
6963 }
6964
6965 }
6966
6967 namespace test_noexcept
6968 {
6969
6970 int f() { return 0; }
6971 int g() noexcept { return 0; }
6972
6973 static_assert(noexcept(f()) == false, "");
6974 static_assert(noexcept(g()) == true, "");
6975
6976 }
6977
6978 namespace test_constexpr
6979 {
6980
6981 template < typename CharT >
6982 unsigned long constexpr
6983 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6984 {
6985 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6986 }
6987
6988 template < typename CharT >
6989 unsigned long constexpr
6990 strlen_c(const CharT *const s) noexcept
6991 {
6992 return strlen_c_r(s, 0UL);
6993 }
6994
6995 static_assert(strlen_c("") == 0UL, "");
6996 static_assert(strlen_c("1") == 1UL, "");
6997 static_assert(strlen_c("example") == 7UL, "");
6998 static_assert(strlen_c("another\0example") == 7UL, "");
6999
7000 }
7001
7002 namespace test_rvalue_references
7003 {
7004
7005 template < int N >
7006 struct answer
7007 {
7008 static constexpr int value = N;
7009 };
7010
7011 answer<1> f(int&) { return answer<1>(); }
7012 answer<2> f(const int&) { return answer<2>(); }
7013 answer<3> f(int&&) { return answer<3>(); }
7014
7015 void
7016 test()
7017 {
7018 int i = 0;
7019 const int c = 0;
7020 static_assert(decltype(f(i))::value == 1, "");
7021 static_assert(decltype(f(c))::value == 2, "");
7022 static_assert(decltype(f(0))::value == 3, "");
7023 }
7024
7025 }
7026
7027 namespace test_uniform_initialization
7028 {
7029
7030 struct test
7031 {
7032 static const int zero {};
7033 static const int one {1};
7034 };
7035
7036 static_assert(test::zero == 0, "");
7037 static_assert(test::one == 1, "");
7038
7039 }
7040
7041 namespace test_lambdas
7042 {
7043
7044 void
7045 test1()
7046 {
7047 auto lambda1 = [](){};
7048 auto lambda2 = lambda1;
7049 lambda1();
7050 lambda2();
7051 }
7052
7053 int
7054 test2()
7055 {
7056 auto a = [](int i, int j){ return i + j; }(1, 2);
7057 auto b = []() -> int { return '0'; }();
7058 auto c = [=](){ return a + b; }();
7059 auto d = [&](){ return c; }();
7060 auto e = [a, &b](int x) mutable {
7061 const auto identity = [](int y){ return y; };
7062 for (auto i = 0; i < a; ++i)
7063 a += b--;
7064 return x + identity(a + b);
7065 }(0);
7066 return a + b + c + d + e;
7067 }
7068
7069 int
7070 test3()
7071 {
7072 const auto nullary = [](){ return 0; };
7073 const auto unary = [](int x){ return x; };
7074 using nullary_t = decltype(nullary);
7075 using unary_t = decltype(unary);
7076 const auto higher1st = [](nullary_t f){ return f(); };
7077 const auto higher2nd = [unary](nullary_t f1){
7078 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7079 };
7080 return higher1st(nullary) + higher2nd(nullary)(unary);
7081 }
7082
7083 }
7084
7085 namespace test_variadic_templates
7086 {
7087
7088 template <int...>
7089 struct sum;
7090
7091 template <int N0, int... N1toN>
7092 struct sum<N0, N1toN...>
7093 {
7094 static constexpr auto value = N0 + sum<N1toN...>::value;
7095 };
7096
7097 template <>
7098 struct sum<>
7099 {
7100 static constexpr auto value = 0;
7101 };
7102
7103 static_assert(sum<>::value == 0, "");
7104 static_assert(sum<1>::value == 1, "");
7105 static_assert(sum<23>::value == 23, "");
7106 static_assert(sum<1, 2>::value == 3, "");
7107 static_assert(sum<5, 5, 11>::value == 21, "");
7108 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7109
7110 }
7111
7112 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7113 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7114 // because of this.
7115 namespace test_template_alias_sfinae
7116 {
7117
7118 struct foo {};
7119
7120 template<typename T>
7121 using member = typename T::member_type;
7122
7123 template<typename T>
7124 void func(...) {}
7125
7126 template<typename T>
7127 void func(member<T>*) {}
7128
7129 void test();
7130
7131 void test() { func<foo>(0); }
7132
7133 }
7134
7135} // namespace cxx11
7136
7137#endif // __cplusplus >= 201103L
7138
7139
7140
7141_ACEOF
7142if ac_fn_cxx_try_compile "$LINENO"; then :
7143 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7144else
7145 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7146fi
7147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7150$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7151 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7152 ac_success=yes
7153 fi
7154
7155 if test x$ac_success = xno; then
7156 for alternative in ${ax_cxx_compile_alternatives}; do
7157 switch="-std=gnu++${alternative}"
7158 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7160$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7161if eval \${$cachevar+:} false; then :
7162 $as_echo_n "(cached) " >&6
7163else
7164 ac_save_CXX="$CXX"
7165 CXX="$CXX $switch"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h. */
7168
7169
7170// If the compiler admits that it is not ready for C++11, why torture it?
7171// Hopefully, this will speed up the test.
7172
7173#ifndef __cplusplus
7174
7175#error "This is not a C++ compiler"
7176
7177#elif __cplusplus < 201103L
7178
7179#error "This is not a C++11 compiler"
7180
7181#else
7182
7183namespace cxx11
7184{
7185
7186 namespace test_static_assert
7187 {
7188
7189 template <typename T>
7190 struct check
7191 {
7192 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7193 };
7194
7195 }
7196
7197 namespace test_final_override
7198 {
7199
7200 struct Base
7201 {
7202 virtual ~Base() {}
7203 virtual void f() {}
7204 };
7205
7206 struct Derived : public Base
7207 {
7208 virtual ~Derived() override {}
7209 virtual void f() override {}
7210 };
7211
7212 }
7213
7214 namespace test_double_right_angle_brackets
7215 {
7216
7217 template < typename T >
7218 struct check {};
7219
7220 typedef check<void> single_type;
7221 typedef check<check<void>> double_type;
7222 typedef check<check<check<void>>> triple_type;
7223 typedef check<check<check<check<void>>>> quadruple_type;
7224
7225 }
7226
7227 namespace test_decltype
7228 {
7229
7230 int
7231 f()
7232 {
7233 int a = 1;
7234 decltype(a) b = 2;
7235 return a + b;
7236 }
7237
7238 }
7239
7240 namespace test_type_deduction
7241 {
7242
7243 template < typename T1, typename T2 >
7244 struct is_same
7245 {
7246 static const bool value = false;
7247 };
7248
7249 template < typename T >
7250 struct is_same<T, T>
7251 {
7252 static const bool value = true;
7253 };
7254
7255 template < typename T1, typename T2 >
7256 auto
7257 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7258 {
7259 return a1 + a2;
7260 }
7261
7262 int
7263 test(const int c, volatile int v)
7264 {
7265 static_assert(is_same<int, decltype(0)>::value == true, "");
7266 static_assert(is_same<int, decltype(c)>::value == false, "");
7267 static_assert(is_same<int, decltype(v)>::value == false, "");
7268 auto ac = c;
7269 auto av = v;
7270 auto sumi = ac + av + 'x';
7271 auto sumf = ac + av + 1.0;
7272 static_assert(is_same<int, decltype(ac)>::value == true, "");
7273 static_assert(is_same<int, decltype(av)>::value == true, "");
7274 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7275 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7276 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7277 return (sumf > 0.0) ? sumi : add(c, v);
7278 }
7279
7280 }
7281
7282 namespace test_noexcept
7283 {
7284
7285 int f() { return 0; }
7286 int g() noexcept { return 0; }
7287
7288 static_assert(noexcept(f()) == false, "");
7289 static_assert(noexcept(g()) == true, "");
7290
7291 }
7292
7293 namespace test_constexpr
7294 {
7295
7296 template < typename CharT >
7297 unsigned long constexpr
7298 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7299 {
7300 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7301 }
7302
7303 template < typename CharT >
7304 unsigned long constexpr
7305 strlen_c(const CharT *const s) noexcept
7306 {
7307 return strlen_c_r(s, 0UL);
7308 }
7309
7310 static_assert(strlen_c("") == 0UL, "");
7311 static_assert(strlen_c("1") == 1UL, "");
7312 static_assert(strlen_c("example") == 7UL, "");
7313 static_assert(strlen_c("another\0example") == 7UL, "");
7314
7315 }
7316
7317 namespace test_rvalue_references
7318 {
7319
7320 template < int N >
7321 struct answer
7322 {
7323 static constexpr int value = N;
7324 };
7325
7326 answer<1> f(int&) { return answer<1>(); }
7327 answer<2> f(const int&) { return answer<2>(); }
7328 answer<3> f(int&&) { return answer<3>(); }
7329
7330 void
7331 test()
7332 {
7333 int i = 0;
7334 const int c = 0;
7335 static_assert(decltype(f(i))::value == 1, "");
7336 static_assert(decltype(f(c))::value == 2, "");
7337 static_assert(decltype(f(0))::value == 3, "");
7338 }
7339
7340 }
7341
7342 namespace test_uniform_initialization
7343 {
7344
7345 struct test
7346 {
7347 static const int zero {};
7348 static const int one {1};
7349 };
7350
7351 static_assert(test::zero == 0, "");
7352 static_assert(test::one == 1, "");
7353
7354 }
7355
7356 namespace test_lambdas
7357 {
7358
7359 void
7360 test1()
7361 {
7362 auto lambda1 = [](){};
7363 auto lambda2 = lambda1;
7364 lambda1();
7365 lambda2();
7366 }
7367
7368 int
7369 test2()
7370 {
7371 auto a = [](int i, int j){ return i + j; }(1, 2);
7372 auto b = []() -> int { return '0'; }();
7373 auto c = [=](){ return a + b; }();
7374 auto d = [&](){ return c; }();
7375 auto e = [a, &b](int x) mutable {
7376 const auto identity = [](int y){ return y; };
7377 for (auto i = 0; i < a; ++i)
7378 a += b--;
7379 return x + identity(a + b);
7380 }(0);
7381 return a + b + c + d + e;
7382 }
7383
7384 int
7385 test3()
7386 {
7387 const auto nullary = [](){ return 0; };
7388 const auto unary = [](int x){ return x; };
7389 using nullary_t = decltype(nullary);
7390 using unary_t = decltype(unary);
7391 const auto higher1st = [](nullary_t f){ return f(); };
7392 const auto higher2nd = [unary](nullary_t f1){
7393 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7394 };
7395 return higher1st(nullary) + higher2nd(nullary)(unary);
7396 }
7397
7398 }
7399
7400 namespace test_variadic_templates
7401 {
7402
7403 template <int...>
7404 struct sum;
7405
7406 template <int N0, int... N1toN>
7407 struct sum<N0, N1toN...>
7408 {
7409 static constexpr auto value = N0 + sum<N1toN...>::value;
7410 };
7411
7412 template <>
7413 struct sum<>
7414 {
7415 static constexpr auto value = 0;
7416 };
7417
7418 static_assert(sum<>::value == 0, "");
7419 static_assert(sum<1>::value == 1, "");
7420 static_assert(sum<23>::value == 23, "");
7421 static_assert(sum<1, 2>::value == 3, "");
7422 static_assert(sum<5, 5, 11>::value == 21, "");
7423 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7424
7425 }
7426
7427 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7428 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7429 // because of this.
7430 namespace test_template_alias_sfinae
7431 {
7432
7433 struct foo {};
7434
7435 template<typename T>
7436 using member = typename T::member_type;
7437
7438 template<typename T>
7439 void func(...) {}
7440
7441 template<typename T>
7442 void func(member<T>*) {}
7443
7444 void test();
7445
7446 void test() { func<foo>(0); }
7447
7448 }
7449
7450} // namespace cxx11
7451
7452#endif // __cplusplus >= 201103L
7453
7454
7455
7456_ACEOF
7457if ac_fn_cxx_try_compile "$LINENO"; then :
7458 eval $cachevar=yes
7459else
7460 eval $cachevar=no
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 CXX="$ac_save_CXX"
7464fi
7465eval ac_res=\$$cachevar
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7467$as_echo "$ac_res" >&6; }
7468 if eval test x\$$cachevar = xyes; then
7469 CXX="$CXX $switch"
7470 if test -n "$CXXCPP" ; then
7471 CXXCPP="$CXXCPP $switch"
7472 fi
7473 ac_success=yes
7474 break
7475 fi
7476 done
7477 fi
7478
7479 if test x$ac_success = xno; then
7480 for alternative in ${ax_cxx_compile_alternatives}; do
7481 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7482 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7484$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7485if eval \${$cachevar+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487else
7488 ac_save_CXX="$CXX"
7489 CXX="$CXX $switch"
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491/* end confdefs.h. */
7492
7493
7494// If the compiler admits that it is not ready for C++11, why torture it?
7495// Hopefully, this will speed up the test.
7496
7497#ifndef __cplusplus
7498
7499#error "This is not a C++ compiler"
7500
7501#elif __cplusplus < 201103L
7502
7503#error "This is not a C++11 compiler"
7504
7505#else
7506
7507namespace cxx11
7508{
7509
7510 namespace test_static_assert
7511 {
7512
7513 template <typename T>
7514 struct check
7515 {
7516 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7517 };
7518
7519 }
7520
7521 namespace test_final_override
7522 {
7523
7524 struct Base
7525 {
7526 virtual ~Base() {}
7527 virtual void f() {}
7528 };
7529
7530 struct Derived : public Base
7531 {
7532 virtual ~Derived() override {}
7533 virtual void f() override {}
7534 };
7535
7536 }
7537
7538 namespace test_double_right_angle_brackets
7539 {
7540
7541 template < typename T >
7542 struct check {};
7543
7544 typedef check<void> single_type;
7545 typedef check<check<void>> double_type;
7546 typedef check<check<check<void>>> triple_type;
7547 typedef check<check<check<check<void>>>> quadruple_type;
7548
7549 }
7550
7551 namespace test_decltype
7552 {
7553
7554 int
7555 f()
7556 {
7557 int a = 1;
7558 decltype(a) b = 2;
7559 return a + b;
7560 }
7561
7562 }
7563
7564 namespace test_type_deduction
7565 {
7566
7567 template < typename T1, typename T2 >
7568 struct is_same
7569 {
7570 static const bool value = false;
7571 };
7572
7573 template < typename T >
7574 struct is_same<T, T>
7575 {
7576 static const bool value = true;
7577 };
7578
7579 template < typename T1, typename T2 >
7580 auto
7581 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7582 {
7583 return a1 + a2;
7584 }
7585
7586 int
7587 test(const int c, volatile int v)
7588 {
7589 static_assert(is_same<int, decltype(0)>::value == true, "");
7590 static_assert(is_same<int, decltype(c)>::value == false, "");
7591 static_assert(is_same<int, decltype(v)>::value == false, "");
7592 auto ac = c;
7593 auto av = v;
7594 auto sumi = ac + av + 'x';
7595 auto sumf = ac + av + 1.0;
7596 static_assert(is_same<int, decltype(ac)>::value == true, "");
7597 static_assert(is_same<int, decltype(av)>::value == true, "");
7598 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7599 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7600 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7601 return (sumf > 0.0) ? sumi : add(c, v);
7602 }
7603
7604 }
7605
7606 namespace test_noexcept
7607 {
7608
7609 int f() { return 0; }
7610 int g() noexcept { return 0; }
7611
7612 static_assert(noexcept(f()) == false, "");
7613 static_assert(noexcept(g()) == true, "");
7614
7615 }
7616
7617 namespace test_constexpr
7618 {
7619
7620 template < typename CharT >
7621 unsigned long constexpr
7622 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7623 {
7624 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7625 }
7626
7627 template < typename CharT >
7628 unsigned long constexpr
7629 strlen_c(const CharT *const s) noexcept
7630 {
7631 return strlen_c_r(s, 0UL);
7632 }
7633
7634 static_assert(strlen_c("") == 0UL, "");
7635 static_assert(strlen_c("1") == 1UL, "");
7636 static_assert(strlen_c("example") == 7UL, "");
7637 static_assert(strlen_c("another\0example") == 7UL, "");
7638
7639 }
7640
7641 namespace test_rvalue_references
7642 {
7643
7644 template < int N >
7645 struct answer
7646 {
7647 static constexpr int value = N;
7648 };
7649
7650 answer<1> f(int&) { return answer<1>(); }
7651 answer<2> f(const int&) { return answer<2>(); }
7652 answer<3> f(int&&) { return answer<3>(); }
7653
7654 void
7655 test()
7656 {
7657 int i = 0;
7658 const int c = 0;
7659 static_assert(decltype(f(i))::value == 1, "");
7660 static_assert(decltype(f(c))::value == 2, "");
7661 static_assert(decltype(f(0))::value == 3, "");
7662 }
7663
7664 }
7665
7666 namespace test_uniform_initialization
7667 {
7668
7669 struct test
7670 {
7671 static const int zero {};
7672 static const int one {1};
7673 };
7674
7675 static_assert(test::zero == 0, "");
7676 static_assert(test::one == 1, "");
7677
7678 }
7679
7680 namespace test_lambdas
7681 {
7682
7683 void
7684 test1()
7685 {
7686 auto lambda1 = [](){};
7687 auto lambda2 = lambda1;
7688 lambda1();
7689 lambda2();
7690 }
7691
7692 int
7693 test2()
7694 {
7695 auto a = [](int i, int j){ return i + j; }(1, 2);
7696 auto b = []() -> int { return '0'; }();
7697 auto c = [=](){ return a + b; }();
7698 auto d = [&](){ return c; }();
7699 auto e = [a, &b](int x) mutable {
7700 const auto identity = [](int y){ return y; };
7701 for (auto i = 0; i < a; ++i)
7702 a += b--;
7703 return x + identity(a + b);
7704 }(0);
7705 return a + b + c + d + e;
7706 }
7707
7708 int
7709 test3()
7710 {
7711 const auto nullary = [](){ return 0; };
7712 const auto unary = [](int x){ return x; };
7713 using nullary_t = decltype(nullary);
7714 using unary_t = decltype(unary);
7715 const auto higher1st = [](nullary_t f){ return f(); };
7716 const auto higher2nd = [unary](nullary_t f1){
7717 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7718 };
7719 return higher1st(nullary) + higher2nd(nullary)(unary);
7720 }
7721
7722 }
7723
7724 namespace test_variadic_templates
7725 {
7726
7727 template <int...>
7728 struct sum;
7729
7730 template <int N0, int... N1toN>
7731 struct sum<N0, N1toN...>
7732 {
7733 static constexpr auto value = N0 + sum<N1toN...>::value;
7734 };
7735
7736 template <>
7737 struct sum<>
7738 {
7739 static constexpr auto value = 0;
7740 };
7741
7742 static_assert(sum<>::value == 0, "");
7743 static_assert(sum<1>::value == 1, "");
7744 static_assert(sum<23>::value == 23, "");
7745 static_assert(sum<1, 2>::value == 3, "");
7746 static_assert(sum<5, 5, 11>::value == 21, "");
7747 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7748
7749 }
7750
7751 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7752 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7753 // because of this.
7754 namespace test_template_alias_sfinae
7755 {
7756
7757 struct foo {};
7758
7759 template<typename T>
7760 using member = typename T::member_type;
7761
7762 template<typename T>
7763 void func(...) {}
7764
7765 template<typename T>
7766 void func(member<T>*) {}
7767
7768 void test();
7769
7770 void test() { func<foo>(0); }
7771
7772 }
7773
7774} // namespace cxx11
7775
7776#endif // __cplusplus >= 201103L
7777
7778
7779
7780_ACEOF
7781if ac_fn_cxx_try_compile "$LINENO"; then :
7782 eval $cachevar=yes
7783else
7784 eval $cachevar=no
7785fi
7786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 CXX="$ac_save_CXX"
7788fi
7789eval ac_res=\$$cachevar
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7791$as_echo "$ac_res" >&6; }
7792 if eval test x\$$cachevar = xyes; then
7793 CXX="$CXX $switch"
7794 if test -n "$CXXCPP" ; then
7795 CXXCPP="$CXXCPP $switch"
7796 fi
7797 ac_success=yes
7798 break
7799 fi
7800 done
7801 if test x$ac_success = xyes; then
7802 break
7803 fi
7804 done
7805 fi
7806 CXX_FOR_BUILD="$CXX"
7807 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7808 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7809 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7810 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7811 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7812 ac_ext=c
7813ac_cpp='$CPP $CPPFLAGS'
7814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816ac_compiler_gnu=$ac_cv_c_compiler_gnu
7817
7818 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7819 if test x$ac_success = xno; then
7820 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7821 fi
7822 fi
7823 if test x$ac_success = xno; then
7824 HAVE_CXX11_FOR_BUILD=0
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7826$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7827 else
7828 HAVE_CXX11_FOR_BUILD=1
7829
7830$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7831
7832 fi
7833
7834
7835 fi
46070488
JM
7836fi
7837
4a5e71f2
L
7838# Check whether --enable-pgo-build was given.
7839if test "${enable_pgo_build+set}" = set; then :
7840 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7841else
7842 enable_pgo_build=no
7843fi
7844
7845
7846# Issue errors and warnings for invalid/strange PGO build combinations.
7847case "$have_compiler:$host:$target:$enable_pgo_build" in
7848 *:*:*:no) ;;
7849
7850 # Allow the PGO build only if we aren't building a compiler and
7851 # we are in a native configuration.
7852 no:$build:$build:yes | no:$build:$build:lto) ;;
7853
7854 # Disallow the PGO bootstrap if we are building a compiler.
7855 yes:*:*:yes | yes:*:*:lto)
7856 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7857
7858 *)
7859 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7860 ;;
7861esac
7862
7863if test "$enable_pgo_build" != "no"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7865$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7866 old_CFLAGS="$CFLAGS"
7867 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7868 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7869
7870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871/* end confdefs.h. */
7872int foo;
7873_ACEOF
7874if ac_fn_c_try_compile "$LINENO"; then :
7875
7876else
7877 PGO_BUILD_GEN_CFLAGS=
7878fi
7879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7880 CFLAGS="$old_CFLAGS"
7881 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7883$as_echo "yes" >&6; }
7884 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7885 else
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7889 fi
7890
7891 if test "$enable_pgo_build" = "lto"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7893$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7894 old_CFLAGS="$CFLAGS"
7895 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7896 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898/* end confdefs.h. */
7899int foo;
7900_ACEOF
7901if ac_fn_c_try_compile "$LINENO"; then :
7902
7903else
7904 PGO_BUILD_LTO_CFLAGS=
7905fi
7906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 CFLAGS="$old_CFLAGS"
7908 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910$as_echo "yes" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913$as_echo "no" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7915$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7916 fi
7917 fi
7918fi
7919
7920
7921
7922
592c90ff
KG
7923# Used for setting $lt_cv_objdir
7924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7925$as_echo_n "checking for objdir... " >&6; }
22e05272 7926if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7927 $as_echo_n "(cached) " >&6
7928else
7929 rm -f .libs 2>/dev/null
7930mkdir .libs 2>/dev/null
7931if test -d .libs; then
7932 lt_cv_objdir=.libs
7933else
7934 # MS-DOS does not allow filenames that begin with a dot.
7935 lt_cv_objdir=_libs
7936fi
7937rmdir .libs 2>/dev/null
7938fi
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7940$as_echo "$lt_cv_objdir" >&6; }
7941objdir=$lt_cv_objdir
7942
7943
7944
7945
7946
7947cat >>confdefs.h <<_ACEOF
7948#define LT_OBJDIR "$lt_cv_objdir/"
7949_ACEOF
7950
7951
7952
acd26225 7953# Check for GMP, MPFR and MPC
3a5729ea 7954gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7955gmpinc=
e69bf64b 7956have_gmp=no
acd26225
KG
7957
7958# Specify a location for mpc
7959# check for this first so it ends up on the link line before mpfr.
7960
5213506e
RW
7961# Check whether --with-mpc was given.
7962if test "${with_mpc+set}" = set; then :
7963 withval=$with_mpc;
7964fi
acd26225 7965
acd26225 7966
9965e3cd 7967# Check whether --with-mpc-include was given.
5213506e
RW
7968if test "${with_mpc_include+set}" = set; then :
7969 withval=$with_mpc_include;
7970fi
acd26225 7971
acd26225 7972
9965e3cd 7973# Check whether --with-mpc-lib was given.
5213506e
RW
7974if test "${with_mpc_lib+set}" = set; then :
7975 withval=$with_mpc_lib;
7976fi
acd26225 7977
acd26225
KG
7978
7979if test "x$with_mpc" != x; then
3a5729ea
KG
7980 gmplibs="-L$with_mpc/lib $gmplibs"
7981 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7982fi
7983if test "x$with_mpc_include" != x; then
3a5729ea 7984 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7985fi
7986if test "x$with_mpc_lib" != x; then
3a5729ea 7987 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7988fi
7989if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7990 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7991 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7992 # Do not test the mpc version. Assume that it is sufficient, since
7993 # it is in the source tree, and the library has not been built yet
7994 # but it would be included on the link line in the version check below
7995 # hence making the test fail.
3a5729ea 7996 have_gmp=yes
acd26225 7997fi
e69bf64b 7998
bebf829d
PB
7999# Specify a location for mpfr
8000# check for this first so it ends up on the link line before gmp.
1c710c3c 8001
5213506e
RW
8002# Check whether --with-mpfr-dir was given.
8003if test "${with_mpfr_dir+set}" = set; then :
22e05272 8004 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
8005Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
8006fi
8007
bebf829d
PB
8008
8009
5213506e
RW
8010# Check whether --with-mpfr was given.
8011if test "${with_mpfr+set}" = set; then :
8012 withval=$with_mpfr;
8013fi
1c710c3c 8014
bebf829d 8015
9965e3cd 8016# Check whether --with-mpfr-include was given.
5213506e
RW
8017if test "${with_mpfr_include+set}" = set; then :
8018 withval=$with_mpfr_include;
8019fi
1c710c3c 8020
8a877c9c 8021
9965e3cd 8022# Check whether --with-mpfr-lib was given.
5213506e
RW
8023if test "${with_mpfr_lib+set}" = set; then :
8024 withval=$with_mpfr_lib;
8025fi
8a877c9c 8026
bebf829d
PB
8027
8028if test "x$with_mpfr" != x; then
8029 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 8030 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 8031fi
8a877c9c 8032if test "x$with_mpfr_include" != x; then
3a5729ea 8033 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
8034fi
8035if test "x$with_mpfr_lib" != x; then
8036 gmplibs="-L$with_mpfr_lib $gmplibs"
8037fi
e69bf64b 8038if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8039 # MPFR v3.1.0 moved the sources into a src sub-directory.
8040 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8041 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8042 fi
00f35794
BE
8043 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8044 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8045 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8046 # Do not test the mpfr version. Assume that it is sufficient, since
8047 # it is in the source tree, and the library has not been built yet
8048 # but it would be included on the link line in the version check below
8049 # hence making the test fail.
8050 have_gmp=yes
8051fi
bebf829d 8052
6de9cd9a 8053# Specify a location for gmp
1c710c3c 8054
5213506e
RW
8055# Check whether --with-gmp-dir was given.
8056if test "${with_gmp_dir+set}" = set; then :
22e05272 8057 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
8058Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
8059fi
8060
6de9cd9a 8061
6de9cd9a 8062
5213506e
RW
8063# Check whether --with-gmp was given.
8064if test "${with_gmp+set}" = set; then :
8065 withval=$with_gmp;
8066fi
1c710c3c 8067
6de9cd9a 8068
9965e3cd 8069# Check whether --with-gmp-include was given.
5213506e
RW
8070if test "${with_gmp_include+set}" = set; then :
8071 withval=$with_gmp_include;
8072fi
1c710c3c 8073
8a877c9c 8074
9965e3cd 8075# Check whether --with-gmp-lib was given.
5213506e
RW
8076if test "${with_gmp_lib+set}" = set; then :
8077 withval=$with_gmp_lib;
8078fi
8a877c9c
KG
8079
8080
6de9cd9a 8081
bebf829d
PB
8082if test "x$with_gmp" != x; then
8083 gmplibs="-L$with_gmp/lib $gmplibs"
8084 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8085fi
8a877c9c
KG
8086if test "x$with_gmp_include" != x; then
8087 gmpinc="-I$with_gmp_include $gmpinc"
8088fi
8089if test "x$with_gmp_lib" != x; then
8090 gmplibs="-L$with_gmp_lib $gmplibs"
8091fi
e69bf64b 8092if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8093 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8094 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8095 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8096 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8097 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8098 # Do not test the gmp 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
6de9cd9a 8104
d943d7c4 8105if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
8106 have_gmp=yes
8107 saved_CFLAGS="$CFLAGS"
8108 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8109 # Check for the recommended and required versions of GMP.
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8111$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8113/* end confdefs.h. */
8114#include "gmp.h"
8115int
8116main ()
8117{
8118
8119 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8120 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8121 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8122 choke me
8123 #endif
8124
8125 ;
8126 return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8131/* end confdefs.h. */
362c6d2f 8132#include <gmp.h>
1c710c3c
DJ
8133int
8134main ()
8135{
6de9cd9a 8136
362c6d2f
KG
8137 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8138 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8139 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8140 choke me
8141 #endif
1c710c3c
DJ
8142
8143 ;
8144 return 0;
8145}
8146_ACEOF
5213506e
RW
8147if ac_fn_c_try_compile "$LINENO"; then :
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8149$as_echo "yes" >&6; }
362c6d2f
KG
8150else
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8152$as_echo "buggy but acceptable" >&6; }
8153fi
8154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8155else
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8158fi
5213506e 8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8160
acd26225 8161 # If we have GMP, check the MPFR version.
e69bf64b 8162 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8163 # Check for the recommended and required versions of MPFR.
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8165$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8167/* end confdefs.h. */
70ec446f 8168#include <gmp.h>
e69bf64b 8169 #include <mpfr.h>
1c710c3c
DJ
8170int
8171main ()
8172{
e48d66a9 8173
8be34204 8174 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8175 choke me
8176 #endif
1c710c3c
DJ
8177
8178 ;
8179 return 0;
8180}
8181_ACEOF
5213506e
RW
8182if ac_fn_c_try_compile "$LINENO"; then :
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8184/* end confdefs.h. */
a3993f33 8185#include <gmp.h>
e69bf64b 8186 #include <mpfr.h>
1c710c3c
DJ
8187int
8188main ()
8189{
a3993f33 8190
8be34204 8191 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8192 choke me
8193 #endif
acd26225
KG
8194
8195 ;
8196 return 0;
8197}
8198_ACEOF
5213506e
RW
8199if ac_fn_c_try_compile "$LINENO"; then :
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8201$as_echo "yes" >&6; }
acd26225 8202else
5213506e
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8204$as_echo "buggy but acceptable" >&6; }
acd26225 8205fi
5213506e 8206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8207else
5213506e
RW
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209$as_echo "no" >&6; }; have_gmp=no
acd26225 8210fi
5213506e 8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8212 fi
8213
8214 # Check for the MPC header version.
3a5729ea 8215 if test x"$have_gmp" = xyes ; then
362c6d2f 8216 # Check for the recommended and required versions of MPC.
5213506e
RW
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8218$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8220/* end confdefs.h. */
8221#include <mpc.h>
8222int
8223main ()
8224{
8225
362c6d2f
KG
8226 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8227 choke me
8228 #endif
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234if ac_fn_c_try_compile "$LINENO"; then :
8235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h. */
8237#include <mpc.h>
8238int
8239main ()
8240{
8241
8242 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8243 choke me
8244 #endif
8245
8246 ;
8247 return 0;
8248}
8249_ACEOF
5213506e
RW
8250if ac_fn_c_try_compile "$LINENO"; then :
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8252$as_echo "yes" >&6; }
362c6d2f
KG
8253else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8255$as_echo "buggy but acceptable" >&6; }
8256fi
8257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8258else
5213506e 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8260$as_echo "no" >&6; }; have_gmp=no
acd26225 8261fi
5213506e 8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8263 fi
8264
8265 # Now check the MPFR library.
8266 if test x"$have_gmp" = xyes; then
8267 saved_LIBS="$LIBS"
8268 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8270$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8272/* end confdefs.h. */
3a5729ea 8273#include <mpc.h>
acd26225
KG
8274int
8275main ()
8276{
8277
8278 mpfr_t n;
8279 mpfr_t x;
3a5729ea 8280 mpc_t c;
acd26225
KG
8281 int t;
8282 mpfr_init (n);
8283 mpfr_init (x);
90ca6847
TB
8284 mpfr_atan2 (n, n, x, MPFR_RNDN);
8285 mpfr_erfc (n, x, MPFR_RNDN);
8286 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8287 mpfr_clear(n);
8288 mpfr_clear(x);
8289 mpc_init2 (c, 53);
8290 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8291 mpc_cosh (c, c, MPC_RNDNN);
8292 mpc_pow (c, c, c, MPC_RNDNN);
8293 mpc_acosh (c, c, MPC_RNDNN);
8294 mpc_clear (c);
1c710c3c
DJ
8295
8296 ;
8297 return 0;
8298}
8299_ACEOF
5213506e
RW
8300if ac_fn_c_try_link "$LINENO"; then :
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8302$as_echo "yes" >&6; }
1c710c3c 8303else
5213506e
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8306fi
5213506e
RW
8307rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8309 LIBS="$saved_LIBS"
8310 fi
8311
e69bf64b 8312 CFLAGS="$saved_CFLAGS"
6de9cd9a 8313
362c6d2f
KG
8314# The library versions listed in the error message below should match
8315# the HARD-minimums enforced above.
e69bf64b 8316 if test x$have_gmp != xyes; then
8be34204 8317 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8318Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8319their locations. Source code for these libraries can be found at
8320their respective hosting sites as well as at
aeebd94c 8321https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
8322http://gcc.gnu.org/install/prerequisites.html for additional info. If
8323you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8324make sure that you have installed both the libraries and the header
8325files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8326 fi
70ec446f
KG
8327fi
8328
acd26225
KG
8329# Flags needed for both GMP, MPFR and/or MPC.
8330
8331
6de9cd9a
DN
8332
8333
8334
9e3eba15 8335
0ff2d841 8336
0b21f5d3 8337# Libraries to use for stage1 or when not bootstrapping.
00020c16 8338
0b21f5d3
EB
8339# Check whether --with-stage1-libs was given.
8340if test "${with_stage1_libs+set}" = set; then :
8341 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8342 stage1_libs=
00020c16 8343 else
0b21f5d3 8344 stage1_libs=$withval
00020c16
ILT
8345 fi
8346else
5dc85f7e 8347 stage1_libs=
5213506e
RW
8348fi
8349
00020c16
ILT
8350
8351
aac9103b
TT
8352# Whether or not to use -static-libstdc++ and -static-libgcc. The
8353# default is yes if gcc is being built; no otherwise. The reason for
8354# this default is that gdb is sometimes linked against GNU Source
8355# Highlight, which is a shared library that uses C++ exceptions. In
8356# this case, -static-libstdc++ will cause crashes.
8357
8358# Check whether --with-static-standard-libraries was given.
8359if test "${with_static_standard_libraries+set}" = set; then :
8360 withval=$with_static_standard_libraries;
8361else
8362 with_static_standard_libraries=auto
8363fi
8364
8365if test "$with_static_standard_libraries" = auto; then
8366 with_static_standard_libraries=$have_compiler
8367fi
8368
0b21f5d3 8369# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8370
0b21f5d3
EB
8371# Check whether --with-stage1-ldflags was given.
8372if test "${with_stage1_ldflags+set}" = set; then :
8373 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8374 stage1_ldflags=
00020c16 8375 else
0b21f5d3 8376 stage1_ldflags=$withval
00020c16
ILT
8377 fi
8378else
0b21f5d3
EB
8379 stage1_ldflags=
8380 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8381 # if supported. But if the user explicitly specified the libraries to use,
8382 # trust that they are doing what they want.
aac9103b
TT
8383 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8384 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8385 stage1_ldflags="-static-libstdc++ -static-libgcc"
8386 fi
5213506e
RW
8387fi
8388
00020c16
ILT
8389
8390
5dc85f7e 8391# Libraries to use for stage2 and later builds.
00020c16 8392
5213506e
RW
8393# Check whether --with-boot-libs was given.
8394if test "${with_boot_libs+set}" = set; then :
8395 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8396 poststage1_libs=
8397 else
8398 poststage1_libs=$withval
8399 fi
8400else
5dc85f7e 8401 poststage1_libs=
5213506e
RW
8402fi
8403
00020c16
ILT
8404
8405
ed2eaa9f
ILT
8406# Linker flags to use for stage2 and later builds.
8407
8408# Check whether --with-boot-ldflags was given.
8409if test "${with_boot_ldflags+set}" = set; then :
8410 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8411 poststage1_ldflags=
8412 else
8413 poststage1_ldflags=$withval
8414 fi
8415else
8416 poststage1_ldflags=
bec93d73
ILT
8417 # In stages 2 and 3, default to linking libstdc++ and libgcc
8418 # statically. But if the user explicitly specified the libraries to
8419 # use, trust that they are doing what they want.
8420 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8421 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8422 fi
8423fi
8424
8425
8426
e357a5e0 8427# GCC GRAPHITE dependency isl.
4a9bb2aa 8428# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8429
8430
33ad93b9
RG
8431# Check whether --with-isl was given.
8432if test "${with_isl+set}" = set; then :
8433 withval=$with_isl;
5213506e 8434fi
f8bf9252 8435
f8bf9252 8436
eae1a5d4 8437# Treat --without-isl as a request to disable
625afa23 8438# GRAPHITE support and skip all following checks.
eae1a5d4 8439if test "x$with_isl" != "xno"; then
e357a5e0 8440 # Check for isl
625afa23
RG
8441
8442
33ad93b9
RG
8443# Check whether --with-isl-include was given.
8444if test "${with_isl_include+set}" = set; then :
8445 withval=$with_isl_include;
5213506e
RW
8446fi
8447
f8bf9252 8448
33ad93b9
RG
8449# Check whether --with-isl-lib was given.
8450if test "${with_isl_lib+set}" = set; then :
8451 withval=$with_isl_lib;
5213506e 8452fi
f8bf9252 8453
f8bf9252 8454
33ad93b9
RG
8455 # Check whether --enable-isl-version-check was given.
8456if test "${enable_isl_version_check+set}" = set; then :
8457 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8458else
8459 ENABLE_ISL_CHECK=yes
7d32a440
SP
8460fi
8461
8462
33ad93b9
RG
8463 # Initialize isllibs and islinc.
8464 case $with_isl in
8465 no)
8466 isllibs=
8467 islinc=
8468 ;;
8469 "" | yes)
8470 ;;
8471 *)
8472 isllibs="-L$with_isl/lib"
8473 islinc="-I$with_isl/include"
8474 ;;
8475 esac
8476 if test "x${with_isl_include}" != x ; then
8477 islinc="-I$with_isl_include"
8478 fi
8479 if test "x${with_isl_lib}" != x; then
8480 isllibs="-L$with_isl_lib"
8481 fi
8482 if test "x${islinc}" = x && test "x${isllibs}" = x \
8483 && test -d ${srcdir}/isl; then
8484 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8485 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8486 ENABLE_ISL_CHECK=no
560d18d3
AK
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8488$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8489 fi
7d32a440 8490
eae1a5d4
RG
8491 isllibs="${isllibs} -lisl"
8492
7d32a440 8493
7d32a440 8494
9847828b
RB
8495 if test "${ENABLE_ISL_CHECK}" = yes ; then
8496 _isl_saved_CFLAGS=$CFLAGS
8497 _isl_saved_LDFLAGS=$LDFLAGS
8498 _isl_saved_LIBS=$LIBS
8499
8500 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8501 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8502 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8503
f877b3ad
RB
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8505$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8507/* end confdefs.h. */
f877b3ad 8508#include <isl/schedule.h>
622dbadf
BC
8509int
8510main ()
8511{
f877b3ad 8512isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_link "$LINENO"; then :
9847828b 8518 gcc_cv_isl=yes
622dbadf
BC
8519else
8520 gcc_cv_isl=no
8521fi
8522rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8525$as_echo "$gcc_cv_isl" >&6; }
8526
560d18d3 8527 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8529$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8530 fi
8531
9847828b
RB
8532 CFLAGS=$_isl_saved_CFLAGS
8533 LDFLAGS=$_isl_saved_LDFLAGS
8534 LIBS=$_isl_saved_LIBS
8535 fi
8536
8537
f8bf9252 8538
f8bf9252 8539
33ad93b9
RG
8540
8541
33ad93b9
RG
8542 if test "x${with_isl}" = xno; then
8543 graphite_requested=no
8544 elif test "x${with_isl}" != x \
8545 || test "x${with_isl_include}" != x \
8546 || test "x${with_isl_lib}" != x ; then
8547 graphite_requested=yes
8548 else
8549 graphite_requested=no
7d32a440 8550 fi
d789184e 8551
d789184e
SP
8552
8553
33ad93b9
RG
8554 if test "${gcc_cv_isl}" = no ; then
8555 isllibs=
8556 islinc=
8557 fi
8558
8559 if test "${graphite_requested}" = yes \
8560 && test "x${isllibs}" = x \
8561 && test "x${islinc}" = x ; then
f8bf9252 8562
22e05272 8563 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8564 fi
f8bf9252 8565
d32ef397 8566
d32ef397
AS
8567fi
8568
e357a5e0 8569# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8570if test "x$with_isl" = xno ||
625afa23 8571 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8572 noconfigdirs="$noconfigdirs isl"
625afa23 8573 islinc=
32d024bf
RG
8574fi
8575
625afa23
RG
8576
8577
8578
d7f09764
DN
8579# Check for LTO support.
8580# Check whether --enable-lto was given.
8581if test "${enable_lto+set}" = set; then :
8582 enableval=$enable_lto; enable_lto=$enableval
8583else
8584 enable_lto=yes; default_enable_lto=yes
8585fi
8586
8587
7413962d 8588
9a02962b
DK
8589
8590
8591target_elf=no
8592case $target in
8593 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8594 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8595 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8596 nvptx-*-none)
9a02962b
DK
8597 target_elf=no
8598 ;;
8599 *)
8600 target_elf=yes
8601 ;;
8602esac
8603
8604if test $target_elf = yes; then :
48215350
DK
8605 # ELF platforms build the lto-plugin always.
8606 build_lto_plugin=yes
9a02962b 8607
9a02962b
DK
8608else
8609 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8610 case $target in
deeba76a 8611 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8612 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8613 *) enable_lto=no ;;
8614 esac
9a02962b 8615 else
db50fe7d
IS
8616 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8617 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8618 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8619 # warn during gcc/ subconfigure; unless you're bootstrapping with
8620 # -flto it won't be needed until after installation anyway.
8621 case $target in
9e530bcd 8622 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8623 *) if test x"$enable_lto" = x"yes"; then
22e05272 8624 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8625 fi
8626 ;;
8627 esac
8628 fi
1cd0b716 8629 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8630 # Build it unless LTO was explicitly disabled.
1cd0b716 8631 case $target in
48215350 8632 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8633 *) ;;
8634 esac
48215350 8635
9a02962b
DK
8636fi
8637
d7f09764 8638
45b3824d
TS
8639# Check whether --enable-linker-plugin-configure-flags was given.
8640if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8641 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8642else
8643 extra_linker_plugin_configure_flags=
8644fi
8645
8646
8647# Check whether --enable-linker-plugin-flags was given.
8648if test "${enable_linker_plugin_flags+set}" = set; then :
8649 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8650else
8651 extra_linker_plugin_flags=
8652fi
8653
8654
8655
cdfee50a
NS
8656# Enable --enable-host-shared.
8657# Checked early to determine whether jit is an 'all' language
8658# Check whether --enable-host-shared was given.
8659if test "${enable_host_shared+set}" = set; then :
8660 enableval=$enable_host_shared; host_shared=$enableval
a1d2b162
IS
8661 case $target in
8662 x86_64-*-darwin* | aarch64-*-darwin*)
8663 if test x$host_shared != xyes ; then
8664 # PIC is the default, and actually cannot be switched off.
8665 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8666 host_shared=yes
8667 fi ;;
8668 *) ;;
8669 esac
cdfee50a 8670else
a1d2b162
IS
8671 case $target in
8672 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8673 *) host_shared=no ;;
8674 esac
cdfee50a
NS
8675fi
8676
8677
f8bf9252 8678
0823efed 8679# By default, C and C++ are the only stage 1 languages.
e1888513 8680stage1_languages=,c,
2805b53a 8681
00020c16 8682# Target libraries that we bootstrap.
ad1e5170 8683bootstrap_target_libs=,target-libgcc,
00020c16 8684
55ffb5ed
NN
8685# Figure out what language subdirectories are present.
8686# Look if the user specified --enable-languages="..."; if not, use
8687# the environment variable $LANGUAGES if defined. $LANGUAGES might
8688# go away some day.
8689# NB: embedded tabs in this IF block -- do not untabify
8690if test -d ${srcdir}/gcc; then
8691 if test x"${enable_languages+set}" != xset; then
8692 if test x"${LANGUAGES+set}" = xset; then
8693 enable_languages="${LANGUAGES}"
6b1786aa 8694 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8695 else
cdfee50a 8696 enable_languages=default
55ffb5ed
NN
8697 fi
8698 else
8699 if test x"${enable_languages}" = x ||
8700 test x"${enable_languages}" = xyes;
8701 then
6b1786aa 8702 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8703 exit 1
8704 fi
8705 fi
8706 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8707
7f26dfa3
FXC
8708 # 'f95' is the old name for the 'fortran' language. We issue a warning
8709 # and make the substitution.
8710 case ,${enable_languages}, in
8711 *,f95,*)
6b1786aa 8712 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8713 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8714 ;;
8715 esac
8716
0823efed
DN
8717 # If bootstrapping, C++ must be enabled.
8718 case ",$enable_languages,:$enable_bootstrap" in
8719 *,c++,*:*) ;;
8720 *:yes)
ff3ac0f4
ILT
8721 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8722 enable_languages="${enable_languages},c++"
8723 else
22e05272 8724 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8725 fi
8726 ;;
8727 esac
8728
55ffb5ed
NN
8729 # First scan to see if an enabled language requires some other language.
8730 # We assume that a given config-lang.in will list all the language
8731 # front ends it requires, even if some are required indirectly.
8732 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8733 case ${lang_frag} in
8734 ..) ;;
8735 # The odd quoting in the next line works around
8736 # an apparent bug in bash 1.12 on linux.
8737 ${srcdir}/gcc/[*]/config-lang.in) ;;
8738 *)
69ecd18f
ILT
8739 # From the config-lang.in, get $language, $lang_requires, and
8740 # $lang_requires_boot_languages.
55ffb5ed
NN
8741 language=
8742 lang_requires=
69ecd18f 8743 lang_requires_boot_languages=
d4360477
NS
8744 # set srcdir during sourcing lang_frag to the gcc dir.
8745 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8746 # polutes this shell
8747 saved_srcdir=${srcdir}
8748 srcdir=${srcdir}/gcc . ${lang_frag}
8749 srcdir=${saved_srcdir}
69ecd18f 8750 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8751 case ,${enable_languages}, in
8752 *,$other,*) ;;
cdfee50a 8753 *,default,*) ;;
55ffb5ed
NN
8754 *,all,*) ;;
8755 *,$language,*)
8756 echo " \`$other' language required by \`$language'; enabling" 1>&2
8757 enable_languages="${enable_languages},${other}"
8758 ;;
8759 esac
8760 done
69ecd18f
ILT
8761 for other in ${lang_requires_boot_languages} ; do
8762 if test "$other" != "c"; then
8763 case ,${enable_stage1_languages}, in
8764 *,$other,*) ;;
cdfee50a 8765 *,default,*) ;;
69ecd18f
ILT
8766 *,all,*) ;;
8767 *)
8768 case ,${enable_languages}, in
8769 *,$language,*)
8770 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8771 enable_stage1_languages="$enable_stage1_languages,${other}"
8772 ;;
8773 esac
8774 ;;
8775 esac
8776 fi
8777 done
55ffb5ed
NN
8778 ;;
8779 esac
8780 done
8781
e1888513 8782 new_enable_languages=,c,
d7f09764
DN
8783
8784 # If LTO is enabled, add the LTO front end.
d7f09764 8785 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8786 case ,${enable_languages}, in
8787 *,lto,*) ;;
8788 *) enable_languages="${enable_languages},lto" ;;
8789 esac
1cd0b716 8790 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8791 configdirs="$configdirs lto-plugin"
d7f09764
DN
8792 fi
8793 fi
8794
426c1eb0
TS
8795 # If we're building an offloading compiler, add the LTO front end.
8796 if test x"$enable_as_accelerator_for" != x ; then
8797 case ,${enable_languages}, in
8798 *,lto,*) ;;
8799 *) enable_languages="${enable_languages},lto" ;;
8800 esac
8801 fi
8802
cdfee50a 8803 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8804 potential_languages=,c,
55ffb5ed 8805
4da3b0f8
ILT
8806 enabled_target_libs=
8807 disabled_target_libs=
8808
55ffb5ed
NN
8809 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8810 case ${lang_frag} in
8811 ..) ;;
8812 # The odd quoting in the next line works around
8813 # an apparent bug in bash 1.12 on linux.
8814 ${srcdir}/gcc/[*]/config-lang.in) ;;
8815 *)
1c710c3c 8816 # From the config-lang.in, get $language, $target_libs,
2805b53a 8817 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8818 language=
8819 target_libs=
8820 lang_dirs=
1546bb64 8821 subdir_requires=
e1888513
PB
8822 boot_language=no
8823 build_by_default=yes
d4360477
NS
8824 # set srcdir during sourcing. See above about save & restore
8825 saved_srcdir=${srcdir}
8826 srcdir=${srcdir}/gcc . ${lang_frag}
8827 srcdir=${saved_srcdir}
e1888513
PB
8828 if test x${language} = x; then
8829 echo "${lang_frag} doesn't set \$language." 1>&2
8830 exit 1
8831 fi
8832
78767fd9 8833 if test "$language" = "c++"; then
0823efed 8834 boot_language=yes
00020c16
ILT
8835 fi
8836
178f875a 8837 add_this_lang=no
cdfee50a
NS
8838 # C is always enabled, so no need to add it again
8839 if test "$language" != "c"; then
8840 case ,${enable_languages}, in
8841 *,${language},*)
8842 # Language was explicitly selected; include it
d4a10d0a 8843 add_this_lang=yes
cdfee50a
NS
8844 ;;
8845 *,all,*)
8846 # All languages are enabled
8847 add_this_lang=all
8848 ;;
8849 *,default,*)
8850 # 'default' was selected, select it if it is a default language
178f875a 8851 add_this_lang=${build_by_default}
cdfee50a
NS
8852 ;;
8853 esac
8854 fi
6de9cd9a 8855
1546bb64 8856 # Disable languages that need other directories if these aren't available.
95695ad3 8857 for i in $subdir_requires; do
b6348cb3 8858 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8859 case ${add_this_lang} in
8860 yes)
1546bb64 8861 # Specifically requested language; tell them.
22e05272 8862 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8863 ;;
cdfee50a
NS
8864 all)
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8866$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8867 add_this_lang=unsupported
8868 ;;
1546bb64
PB
8869 *)
8870 # Silently disable.
e1888513 8871 add_this_lang=unsupported
1546bb64
PB
8872 ;;
8873 esac
8874 done
8875
e1888513 8876 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8877 case ${add_this_lang}:${language}:${have_gnat} in
8878 yes:ada:no)
e1888513 8879 # Specifically requested language; tell them.
22e05272 8880 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8881 ;;
cdfee50a
NS
8882 all:ada:no)
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8884$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8885 add_this_lang=unsupported
8886 ;;
e1888513
PB
8887 *:ada:no)
8888 # Silently disable.
8889 add_this_lang=unsupported
8890 ;;
8891 esac
8892
5fee5ec3
IB
8893 # Disable D if no preexisting GDC is available.
8894 case ${add_this_lang}:${language}:${have_gdc} in
8895 yes:d:no)
8896 # Specifically requested language; tell them.
8897 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8898 ;;
8899 all:d:no)
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8901$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8902 add_this_lang=unsupported
8903 ;;
8904 *:d:no)
8905 # Silently disable.
8906 add_this_lang=unsupported
8907 ;;
8908 esac
8909
cdfee50a 8910 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8911 # but not if building for Mingw. All code in Windows
8912 # is position independent code (PIC).
c83027f3
NB
8913 case $target in
8914 *mingw*) ;;
8915 *)
8916 case ${add_this_lang}:${language}:${host_shared} in
8917 yes:jit:no)
8918 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8919 as_fn_error $? "
cdfee50a
NS
8920Enabling language \"jit\" requires --enable-host-shared.
8921
8922--enable-host-shared typically slows the rest of the compiler down by
8923a few %, so you must explicitly enable it.
8924
8925If you want to build both the jit and the regular compiler, it is often
8926best to do this via two separate configure/builds, in separate
8927directories, to avoid imposing the performance cost of
8928--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8929 ;;
8930 all:jit:no)
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8932$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8933 add_this_lang=unsupported
8934 ;;
8935 *:jit:no)
8936 # Silently disable.
8937 add_this_lang=unsupported
8938 ;;
8939 esac
8940 ;;
8941 esac
cdfee50a
NS
8942
8943 # Disable a language that is unsupported by the target.
8944 case "${add_this_lang}: $unsupported_languages " in
8945 no:*) ;;
8946 unsupported:*) ;;
8947 *:*" $language "*)
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8949$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8950 add_this_lang=unsupported
4fab7234
HPN
8951 ;;
8952 esac
8953
6de9cd9a 8954 case $add_this_lang in
e1888513 8955 unsupported)
55ffb5ed 8956 # Remove language-dependent dirs.
4da3b0f8
ILT
8957 disabled_target_libs="$disabled_target_libs $target_libs"
8958 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8959 ;;
e1888513
PB
8960 no)
8961 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8962 disabled_target_libs="$disabled_target_libs $target_libs"
8963 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8964 potential_languages="${potential_languages}${language},"
8965 ;;
cdfee50a 8966 all|yes)
e1888513
PB
8967 new_enable_languages="${new_enable_languages}${language},"
8968 potential_languages="${potential_languages}${language},"
2805b53a 8969 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8970 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8971 case "${boot_language}:,$enable_stage1_languages," in
8972 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8973 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8974 case ",$stage1_languages," in
8975 *,$language,* | ,yes, | ,all,) ;;
8976 *) stage1_languages="${stage1_languages}${language}," ;;
8977 esac
00020c16 8978 # We need to bootstrap any supporting libraries.
5fee5ec3 8979 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
8980 ;;
8981 esac
8982 ;;
55ffb5ed
NN
8983 esac
8984 ;;
8985 esac
8986 done
8987
4da3b0f8
ILT
8988 # Add target libraries which are only needed for disabled languages
8989 # to noconfigdirs.
8990 if test -n "$disabled_target_libs"; then
8991 for dir in $disabled_target_libs; do
8992 case " $enabled_target_libs " in
8993 *" ${dir} "*) ;;
8994 *) noconfigdirs="$noconfigdirs $dir" ;;
8995 esac
8996 done
8997 fi
8998
5213506e
RW
8999 # Check whether --enable-stage1-languages was given.
9000if test "${enable_stage1_languages+set}" = set; then :
9001 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
9002 ,no,|,,)
9003 # Set it to something that will have no effect in the loop below
9004 enable_stage1_languages=c ;;
9005 ,yes,)
9006 enable_stage1_languages=`echo $new_enable_languages | \
9007 sed -e "s/^,//" -e "s/,$//" ` ;;
9008 *,all,*)
9009 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
9010 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9011 esac
9012
9013 # Add "good" languages from enable_stage1_languages to stage1_languages,
9014 # while "bad" languages go in missing_languages. Leave no duplicates.
9015 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9016 case $potential_languages in
9017 *,$i,*)
9018 case $stage1_languages in
9019 *,$i,*) ;;
9020 *) stage1_languages="$stage1_languages$i," ;;
9021 esac ;;
9022 *)
9023 case $missing_languages in
9024 *,$i,*) ;;
9025 *) missing_languages="$missing_languages$i," ;;
9026 esac ;;
9027 esac
9028 done
5213506e
RW
9029fi
9030
e1888513
PB
9031
9032 # Remove leading/trailing commas that were added for simplicity
9033 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9034 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9035 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9036 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9037
55ffb5ed 9038 if test "x$missing_languages" != x; then
22e05272 9039 as_fn_error $? "
0cf085e4 9040The following requested languages could not be built: ${missing_languages}
5213506e 9041Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9042 fi
55ffb5ed
NN
9043 if test "x$new_enable_languages" != "x$enable_languages"; then
9044 echo The following languages will be built: ${new_enable_languages}
e1888513 9045 enable_languages="$new_enable_languages"
55ffb5ed 9046 fi
e1888513 9047
1c710c3c 9048
b2eaac4a 9049 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9050fi
9051
27079765
AH
9052# Handle --disable-<component> generically.
9053for dir in $configdirs $build_configdirs $target_configdirs ; do
9054 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9055 varname=`echo $dirname | sed -e s/+/_/g`
9056 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9057 noconfigdirs="$noconfigdirs $dir"
9058 fi
9059done
9060
43c40f3e
RO
9061# Check for Boehm's garbage collector
9062# Check whether --enable-objc-gc was given.
9063if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9064 enableval=$enable_objc_gc;
9065fi
9066
9067
9068# Check whether --with-target-bdw-gc was given.
9069if test "${with_target_bdw_gc+set}" = set; then :
9070 withval=$with_target_bdw_gc;
9071fi
9072
9073
9074# Check whether --with-target-bdw-gc-include was given.
9075if test "${with_target_bdw_gc_include+set}" = set; then :
9076 withval=$with_target_bdw_gc_include;
9077fi
9078
9079
9080# Check whether --with-target-bdw-gc-lib was given.
9081if test "${with_target_bdw_gc_lib+set}" = set; then :
9082 withval=$with_target_bdw_gc_lib;
9083fi
9084
9085
9086case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9088$as_echo_n "checking for bdw garbage collector... " >&6; }
9089 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9091$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9092 else
9093 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9094 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9095 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9096 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9099$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9100 fi
9101 fi
43c40f3e
RO
9102esac
9103
5e9d6aa4 9104# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 9105case ,${enable_languages}, in
1007a55c 9106 *,c++,*)
5e9d6aa4 9107 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9108 case "${noconfigdirs}" in
9109 *target-libstdc++-v3*)
5e9d6aa4 9110 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9111 ;;
9112 *) ;;
9113 esac
9114 ;;
99776ebd 9115 *)
5e9d6aa4 9116 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9117 ;;
9118esac
9119
dc614a83
AB
9120# If gcc/ is not in the source tree then we'll not be building a
9121# target compiler, assume in that case we don't want to build any
9122# target libraries or tools.
9123#
9124# This was added primarily for the benefit for binutils-gdb who reuse
9125# this configure script, but don't always have target tools available.
9126if test ! -d ${srcdir}/gcc; then
9127 skipdirs="${skipdirs} ${target_configdirs}"
9128fi
9129
ee6a22df
L
9130# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9131# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9132# If we have the source for $noconfigdirs entries, add them to $notsupp.
9133
9134notsupp=""
9135for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9136 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9137 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9138 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9139 if test -r $srcdir/$dirname/configure ; then
9140 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9141 true
9142 else
9143 notsupp="$notsupp $dir"
9144 fi
9145 fi
9146 fi
ee6a22df
L
9147 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9148 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9149 if test -r $srcdir/$dirname/configure ; then
9150 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9151 true
9152 else
9153 notsupp="$notsupp $dir"
9154 fi
9155 fi
9156 fi
55ffb5ed
NN
9157 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9158 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9159 if test -r $srcdir/$dirname/configure ; then
9160 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9161 true
9162 else
9163 notsupp="$notsupp $dir"
9164 fi
9165 fi
9166 fi
9167done
9168
55ffb5ed
NN
9169# Quietly strip out all directories which aren't configurable in this tree.
9170# This relies on all configurable subdirectories being autoconfiscated, which
9171# is now the case.
23f6b2f9
PB
9172build_configdirs_all="$build_configdirs"
9173build_configdirs=
9174for i in ${build_configdirs_all} ; do
1c710c3c 9175 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9176 if test -f ${srcdir}/$j/configure ; then
9177 build_configdirs="${build_configdirs} $i"
9178 fi
9179done
9180
55ffb5ed
NN
9181configdirs_all="$configdirs"
9182configdirs=
9183for i in ${configdirs_all} ; do
9184 if test -f ${srcdir}/$i/configure ; then
9185 configdirs="${configdirs} $i"
9186 fi
9187done
23f6b2f9 9188
55ffb5ed
NN
9189target_configdirs_all="$target_configdirs"
9190target_configdirs=
9191for i in ${target_configdirs_all} ; do
1c710c3c 9192 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9193 if test -f ${srcdir}/$j/configure ; then
9194 target_configdirs="${target_configdirs} $i"
9195 fi
9196done
9197
45b3824d
TS
9198# libiberty-linker-plugin is special: it doesn't have its own source directory,
9199# so we have to add it after the preceding checks.
9200if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9201then
9202 case " $configdirs " in
9203 *" libiberty "*)
9204 # If we can build libiberty, we can also build libiberty-linker-plugin.
9205 configdirs="$configdirs libiberty-linker-plugin"
9206 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9207 --with-libiberty=../libiberty-linker-plugin";;
9208 *)
22e05272 9209 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9210 esac
9211fi
9212
fca38047
TS
9213# Sometimes we have special requirements for the host libiberty.
9214extra_host_libiberty_configure_flags=
1c01ebf6 9215extra_host_zlib_configure_flags=
fca38047
TS
9216case " $configdirs " in
9217 *" lto-plugin "* | *" libcc1 "*)
9218 # When these are to be built as shared libraries, the same applies to
9219 # libiberty.
9220 extra_host_libiberty_configure_flags=--enable-shared
9221 ;;
1c01ebf6
L
9222 *" bfd "*)
9223 # When bfd is to be built as a shared library, the same applies to
9224 # zlib.
9225 if test "$enable_shared" = "yes"; then
9226 extra_host_zlib_configure_flags=--enable-host-shared
9227 fi
9228 ;;
fca38047
TS
9229esac
9230
9231
1c01ebf6 9232
55ffb5ed
NN
9233# Produce a warning message for the subdirs we can't configure.
9234# This isn't especially interesting in the Cygnus tree, but in the individual
9235# FSF releases, it's important to let people know when their machine isn't
9236# supported by the one or two programs in a package.
9237
9238if test -n "${notsupp}" && test -z "${norecursion}" ; then
9239 # If $appdirs is non-empty, at least one of those directories must still
9240 # be configured, or we error out. (E.g., if the gas release supports a
9241 # specified target in some subdirs but not the gas subdir, we shouldn't
9242 # pretend that all is well.)
9243 if test -n "$appdirs" ; then
9244 for dir in $appdirs ; do
9245 if test -r $dir/Makefile.in ; then
9246 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9247 appdirs=""
9248 break
9249 fi
23f6b2f9 9250 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9251 appdirs=""
9252 break
9253 fi
9254 fi
9255 done
9256 if test -n "$appdirs" ; then
9257 echo "*** This configuration is not supported by this package." 1>&2
9258 exit 1
9259 fi
9260 fi
9261 # Okay, some application will build, or we don't care to check. Still
9262 # notify of subdirs not getting built.
9263 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9264 echo " ${notsupp}" 1>&2
9265 echo " (Any other directories should still work fine.)" 1>&2
9266fi
9267
9268case "$host" in
9269 *msdosdjgpp*)
9270 enable_gdbtk=no ;;
9271esac
9272
c3a86da9
DJ
9273# To find our prefix, in gcc_cv_tool_prefix.
9274
9275# The user is always right.
9276if test "${PATH_SEPARATOR+set}" != set; then
9277 echo "#! /bin/sh" >conf$$.sh
9278 echo "exit 0" >>conf$$.sh
9279 chmod +x conf$$.sh
9280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9281 PATH_SEPARATOR=';'
9282 else
9283 PATH_SEPARATOR=:
9284 fi
9285 rm -f conf$$.sh
9286fi
9287
9288
3c36aa6b
JJ
9289 get_gcc_base_ver="cat"
9290
9291# Check whether --with-gcc-major-version-only was given.
9292if test "${with_gcc_major_version_only+set}" = set; then :
9293 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9294 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9295 fi
9296
9297fi
9298
9299
9300
9301
9302
c3a86da9
DJ
9303
9304if test "x$exec_prefix" = xNONE; then
9305 if test "x$prefix" = xNONE; then
9306 gcc_cv_tool_prefix=$ac_default_prefix
9307 else
9308 gcc_cv_tool_prefix=$prefix
9309 fi
9310else
9311 gcc_cv_tool_prefix=$exec_prefix
9312fi
9313
9314# If there is no compiler in the tree, use the PATH only. In any
9315# case, if there is no compiler in the tree nobody should use
9316# AS_FOR_TARGET and LD_FOR_TARGET.
9317if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9318 if test x$with_gcc_major_version_only = xyes ; then
9319 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9320 else
9321 gcc_version=`cat $srcdir/gcc/BASE-VER`
9322 fi
c3a86da9
DJ
9323 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9324 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9325 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9326 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9327 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9328 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9329else
9330 gcc_cv_tool_dirs=
9331fi
9332
9333if test x$build = x$target && test -n "$md_exec_prefix"; then
9334 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9335fi
9336
9337
9338
55ffb5ed
NN
9339copy_dirs=
9340
1c710c3c 9341
5213506e
RW
9342# Check whether --with-build-sysroot was given.
9343if test "${with_build_sysroot+set}" = set; then :
9344 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9345 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9346 fi
9347else
9348 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9349fi
526635cb
MM
9350
9351
c8aea42c 9352
5213506e
RW
9353
9354# Check whether --with-debug-prefix-map was given.
9355if test "${with_debug_prefix_map+set}" = set; then :
9356 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9357 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9358 for debug_map in $withval; do
9359 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9360 done
9361 fi
9362else
9363 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9364fi
9365
c8aea42c
PB
9366
9367
1c8bd6a3
PB
9368# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9369# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9370# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9371# We want to ensure that TARGET libraries (which we know are built with
9372# gcc) are built with "-O2 -g", so include those options when setting
9373# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9374if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9375 if test "x${is_cross_compiler}" = xyes; then
9376 CFLAGS_FOR_TARGET="-g -O2"
9377 else
9378 CFLAGS_FOR_TARGET=$CFLAGS
9379 case " $CFLAGS " in
9380 *" -O2 "*) ;;
9381 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9382 esac
9383 case " $CFLAGS " in
9384 *" -g "* | *" -g3 "*) ;;
9385 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9386 esac
9387 fi
1c8bd6a3
PB
9388fi
9389
9390
9391if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9392 if test "x${is_cross_compiler}" = xyes; then
9393 CXXFLAGS_FOR_TARGET="-g -O2"
9394 else
9395 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9396 case " $CXXFLAGS " in
9397 *" -O2 "*) ;;
9398 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9399 esac
9400 case " $CXXFLAGS " in
9401 *" -g "* | *" -g3 "*) ;;
9402 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9403 esac
9404 fi
1c8bd6a3
PB
9405fi
9406
9407
6f57bdf6
DK
9408
9409
55ffb5ed
NN
9410# Handle --with-headers=XXX. If the value is not "yes", the contents of
9411# the named directory are copied to $(tooldir)/sys-include.
9412if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9413 if test x${is_cross_compiler} = xno ; then
9414 echo 1>&2 '***' --with-headers is only supported when cross compiling
9415 exit 1
9416 fi
9417 if test x"${with_headers}" != xyes ; then
c3a86da9 9418 x=${gcc_cv_tool_prefix}
1c710c3c 9419 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9420 fi
9421fi
9422
9423# Handle --with-libs=XXX. If the value is not "yes", the contents of
9424# the name directories are copied to $(tooldir)/lib. Multiple directories
9425# are permitted.
9426if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9427 if test x${is_cross_compiler} = xno ; then
9428 echo 1>&2 '***' --with-libs is only supported when cross compiling
9429 exit 1
9430 fi
9431 if test x"${with_libs}" != xyes ; then
9432 # Copy the libraries in reverse order, so that files in the first named
9433 # library override files in subsequent libraries.
c3a86da9 9434 x=${gcc_cv_tool_prefix}
55ffb5ed 9435 for l in ${with_libs}; do
1c710c3c 9436 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9437 done
9438 fi
9439fi
9440
d7f09764 9441# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9442#
9443# This is done by determining whether or not the appropriate directory
9444# is available, and by checking whether or not specific configurations
9445# have requested that this magic not happen.
1c710c3c
DJ
9446#
9447# The command line options always override the explicit settings in
6b1786aa 9448# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9449#
1c710c3c 9450# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9451# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9452# --without-gnu-ld options for the configure script. Similarly, if
9453# the default is to use the included zlib and you don't want to do that,
9454# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9455
9456if test x${use_gnu_as} = x &&
9457 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9458 with_gnu_as=yes
9459 extra_host_args="$extra_host_args --with-gnu-as"
9460fi
9461
9462if test x${use_gnu_ld} = x &&
5afab7ad 9463 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9464 with_gnu_ld=yes
9465 extra_host_args="$extra_host_args --with-gnu-ld"
9466fi
9467
d7f09764
DN
9468if test x${use_included_zlib} = x &&
9469 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9470 :
9471else
9472 with_system_zlib=yes
9473 extra_host_args="$extra_host_args --with-system-zlib"
9474fi
9475
e8b05380
PB
9476# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9477# can detect this case.
9478
9479if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9480 with_newlib=yes
9481 extra_host_args="$extra_host_args --with-newlib"
9482fi
9483
55ffb5ed
NN
9484# Handle ${copy_dirs}
9485set fnord ${copy_dirs}
9486shift
9487while test $# != 0 ; do
9488 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9489 :
9490 else
9491 echo Copying $1 to $2
9492
9493 # Use the install script to create the directory and all required
9494 # parent directories.
9495 if test -d $2 ; then
9496 :
9497 else
9498 echo >config.temp
9499 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9500 fi
9501
9502 # Copy the directory, assuming we have tar.
9503 # FIXME: Should we use B in the second tar? Not all systems support it.
9504 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9505
9506 # It is the responsibility of the user to correctly adjust all
9507 # symlinks. If somebody can figure out how to handle them correctly
9508 # here, feel free to add the code.
9509
9510 echo $1 > $2/COPIED
9511 fi
9512 shift; shift
9513done
9514
e8b05380
PB
9515# Determine a target-dependent exec_prefix that the installed
9516# gcc will search in. Keep this list sorted by triplet, with
9517# the *-*-osname triplets last.
9518md_exec_prefix=
9519case "${target}" in
30b74385 9520 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9521 md_exec_prefix=/dev/env/DJDIR/bin
9522 ;;
e8b05380 9523 *-*-hpux* | \
e8b05380 9524 *-*-nto-qnx* | \
6de66370 9525 *-*-solaris2*)
e8b05380
PB
9526 md_exec_prefix=/usr/ccs/bin
9527 ;;
9528esac
9529
671aa708
NN
9530extra_arflags_for_target=
9531extra_nmflags_for_target=
9532extra_ranlibflags_for_target=
9533target_makefile_frag=/dev/null
9534case "${target}" in
58e24147
AM
9535 spu-*-*)
9536 target_makefile_frag="config/mt-spu"
9537 ;;
d896cc4d 9538 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9539 target_makefile_frag="config/mt-sde"
9540 ;;
1ec3b87b
RS
9541 mipsisa*-*-elfoabi*)
9542 target_makefile_frag="config/mt-mips-elfoabi"
9543 ;;
08d0963a
RS
9544 mips*-*-*linux* | mips*-*-gnu*)
9545 target_makefile_frag="config/mt-mips-gnu"
9546 ;;
707f1839
SL
9547 nios2-*-elf*)
9548 target_makefile_frag="config/mt-nios2-elf"
9549 ;;
76052545
EB
9550 *-*-linux-android*)
9551 target_makefile_frag="config/mt-android"
9552 ;;
416ac4d4 9553 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9554 target_makefile_frag="config/mt-gnu"
671aa708
NN
9555 ;;
9556 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9557 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9558 # commands to handle both 32-bit and 64-bit objects. These flags are
9559 # harmless if we're using GNU nm or ar.
9560 extra_arflags_for_target=" -X32_64"
9561 extra_nmflags_for_target=" -B -X32_64"
9562 ;;
671aa708
NN
9563esac
9564
9565alphaieee_frag=/dev/null
9566case $target in
9567 alpha*-*-*)
9568 # This just makes sure to use the -mieee option to build target libs.
9569 # This should probably be set individually by each library.
9570 alphaieee_frag="config/mt-alphaieee"
9571 ;;
9572esac
9573
9574# If --enable-target-optspace always use -Os instead of -O2 to build
9575# the target libraries, similarly if it is not specified, use -Os
9576# on selected platforms.
9577ospace_frag=/dev/null
9578case "${enable_target_optspace}:${target}" in
9579 yes:*)
9580 ospace_frag="config/mt-ospace"
9581 ;;
9582 :d30v-*)
9583 ospace_frag="config/mt-d30v"
9584 ;;
d9063947 9585 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9586 ospace_frag="config/mt-ospace"
9587 ;;
9588 no:* | :*)
9589 ;;
9590 *)
9591 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9592 ;;
9593esac
9594
671aa708
NN
9595# Some systems (e.g., one of the i386-aix systems the gas testers are
9596# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9597tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9598build_tooldir=${tooldir}
9599
671aa708
NN
9600# Create a .gdbinit file which runs the one in srcdir
9601# and tells GDB to look there for source files.
9602
9603if test -r ${srcdir}/.gdbinit ; then
9604 case ${srcdir} in
9605 .) ;;
9606 *) cat > ./.gdbinit <<EOF
9607# ${NO_EDIT}
9608dir ${srcdir}
9609dir .
9610source ${srcdir}/.gdbinit
9611EOF
9612 ;;
9613 esac
9614fi
9615
671aa708
NN
9616# Make sure that the compiler is able to generate an executable. If it
9617# can't, we are probably in trouble. We don't care whether we can run the
9618# executable--we might be using a cross compiler--we only care whether it
9619# can be created. At this point the main configure script has set CC.
9620we_are_ok=no
9621echo "int main () { return 0; }" > conftest.c
9622${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9623if test $? = 0 ; then
9624 if test -s conftest || test -s conftest.exe ; then
9625 we_are_ok=yes
9626 fi
1c710c3c 9627fi
671aa708
NN
9628case $we_are_ok in
9629 no)
9630 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9631 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9632 rm -f conftest*
9633 exit 1
9634 ;;
9635esac
9636rm -f conftest*
9637
d89f0ad6 9638# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9639case "${host}" in
9640 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9641 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9642 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9643 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9644esac
9645
d89f0ad6
AL
9646# On systems where the dynamic library environment variable is PATH,
9647# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9648# built executables to PATH.
9649if test "$RPATH_ENVVAR" = PATH; then
9650 GCC_SHLIB_SUBDIR=/shlib
9651else
9652 GCC_SHLIB_SUBDIR=
9653fi
9654
beeda1d9
JJ
9655# Adjust the toplevel makefile according to whether bootstrap was selected.
9656case $enable_bootstrap in
9657 yes)
9658 bootstrap_suffix=bootstrap
9659 BUILD_CONFIG=bootstrap-debug
9660 ;;
9661 no)
9662 bootstrap_suffix=no-bootstrap
9663 BUILD_CONFIG=
9664 ;;
9665esac
9666
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9668$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9669
9670
9671# Check whether --with-build-config was given.
9672if test "${with_build_config+set}" = set; then :
9673 withval=$with_build_config; case $with_build_config in
9674 yes) with_build_config= ;;
9675 no) with_build_config= BUILD_CONFIG= ;;
9676 esac
9677fi
9678
9679
9680if test "x${with_build_config}" != x; then
9681 BUILD_CONFIG=$with_build_config
9682else
9683 case $BUILD_CONFIG in
9684 bootstrap-debug)
9685 if echo "int f (void) { return 0; }" > conftest.c &&
9686 ${CC} -c conftest.c &&
9687 mv conftest.o conftest.o.g0 &&
9688 ${CC} -c -g conftest.c &&
9689 mv conftest.o conftest.o.g &&
9690 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9691 :
9692 else
9693 BUILD_CONFIG=
9694 fi
9695 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9696 ;;
9697 esac
9698fi
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9700$as_echo "$BUILD_CONFIG" >&6; }
9701
9702
9703# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9705$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9706# Check whether --enable-vtable-verify was given.
9707if test "${enable_vtable_verify+set}" = set; then :
9708 enableval=$enable_vtable_verify; case "$enableval" in
9709 yes) enable_vtable_verify=yes ;;
9710 no) enable_vtable_verify=no ;;
9711 *) enable_vtable_verify=no;;
9712 esac
9713else
9714 enable_vtable_verify=no
9715fi
9716
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9718$as_echo "$enable_vtable_verify" >&6; }
9719
671aa708
NN
9720# Record target_configdirs and the configure arguments for target and
9721# build configuration in Makefile.
9722target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9723build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9724bootstrap_fixincludes=no
671aa708 9725
ad1e5170
JR
9726# If we are building libgomp, bootstrap it.
9727if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9728 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9729fi
9730
beeda1d9
JJ
9731# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9732# or bootstrap-ubsan, bootstrap it.
9733if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9734 case "$BUILD_CONFIG" in
170e618e 9735 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9736 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9737 bootstrap_fixincludes=yes
beeda1d9
JJ
9738 ;;
9739 esac
ac8701fe
L
9740fi
9741
beeda1d9
JJ
9742# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9743if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9744 test "$enable_vtable_verify" != no; then
2077db1b
CT
9745 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9746fi
9747
5fee5ec3
IB
9748# If we are building libatomic and the list of enabled languages includes the
9749# D frontend, bootstrap it.
9750if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9751 case ,${enable_languages}, in
9752 *,d,*)
9753 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9754 ;;
9755 esac
9756fi
9757
671aa708
NN
9758# Determine whether gdb needs tk/tcl or not.
9759# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9760# and in that case we want gdb to be built without tk. Ugh!
9761# In fact I believe gdb is the *only* package directly dependent on tk,
9762# so we should be able to put the 'maybe's in unconditionally and
9763# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9764# 100% sure that that's safe though.
e914a571 9765
b4f96efe 9766gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9767case "$enable_gdbtk" in
9768 no)
9769 GDB_TK="" ;;
e914a571
AC
9770 yes)
9771 GDB_TK="${gdb_tk}" ;;
671aa708 9772 *)
e914a571
AC
9773 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9774 # distro. Eventually someone will fix this and move Insight, nee
9775 # gdbtk to a separate directory.
9776 if test -d ${srcdir}/gdb/gdbtk ; then
9777 GDB_TK="${gdb_tk}"
9778 else
9779 GDB_TK=""
9780 fi
9781 ;;
671aa708 9782esac
ef9db8d5
DJ
9783CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9784INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9785
f9d09df0
TT
9786# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9787# else does, only include them if one of these is built. The Makefile
9788# provides the ordering, so it's enough here to add to the list.
9789case " ${configdirs} " in
9790 *\ gdb\ *)
9791 configdirs="${configdirs} gnulib gdbsupport"
9792 ;;
9793 *\ gdbserver\ *)
9794 configdirs="${configdirs} gnulib gdbsupport"
9795 ;;
f14c9bd4
MF
9796 *\ sim\ *)
9797 configdirs="${configdirs} gnulib"
9798 ;;
f9d09df0 9799esac
98e5be21 9800
60975492 9801# Strip out unwanted targets.
8b87bb96
NN
9802
9803# While at that, we remove Makefiles if we were started for recursive
9804# configuration, so that the top-level Makefile reconfigures them,
9805# like we used to do when configure itself was recursive.
8b87bb96 9806
3e54529c
RW
9807# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9808# but now we're fixing up the Makefile ourselves with the additional
9809# commands passed to AC_CONFIG_FILES. Use separate variables
9810# extrasub-{build,host,target} not because there is any reason to split
9811# the substitutions up that way, but only to remain below the limit of
9812# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9813
9814# Do not nest @if/@endif or @unless/@endunless pairs, because
9815# configure will not warn you at all.
8b87bb96 9816
79cd2b23
RW
9817case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9818 yes:yes:*\ gold\ *:*,c++,*) ;;
9819 yes:yes:*\ gold\ *:*)
22e05272 9820 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9821 ;;
9822esac
9823
3e54529c 9824extrasub_build=
23f6b2f9 9825for module in ${build_configdirs} ; do
5607edfd
PB
9826 if test -z "${no_recursion}" \
9827 && test -f ${build_subdir}/${module}/Makefile; then
9828 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9829 rm -f ${build_subdir}/${module}/Makefile
9830 fi
3e54529c 9831 extrasub_build="$extrasub_build
5607edfd
PB
9832/^@if build-$module\$/d
9833/^@endif build-$module\$/d
da34ca3f 9834/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9835/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9836/^@endif build-$module-$bootstrap_suffix\$/d
9837/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9838done
3e54529c 9839extrasub_host=
5607edfd 9840for module in ${configdirs} ; do
a6fbc1e2 9841 if test -z "${no_recursion}"; then
f063a9ed 9842 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9843 if test -f ${file}; then
9844 echo 1>&2 "*** removing ${file} to force reconfigure"
9845 rm -f ${file}
9846 fi
9847 done
5607edfd 9848 fi
9e1c8fc1
JJ
9849 case ${module},${bootstrap_fixincludes} in
9850 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9851 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9852 esac
3e54529c 9853 extrasub_host="$extrasub_host
5607edfd
PB
9854/^@if $module\$/d
9855/^@endif $module\$/d
da34ca3f 9856/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9857/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9858/^@endif $module-$host_bootstrap_suffix\$/d
9859/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9860done
3e54529c 9861extrasub_target=
5607edfd
PB
9862for module in ${target_configdirs} ; do
9863 if test -z "${no_recursion}" \
9864 && test -f ${target_subdir}/${module}/Makefile; then
9865 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9866 rm -f ${target_subdir}/${module}/Makefile
9867 fi
00020c16
ILT
9868
9869 # We only bootstrap target libraries listed in bootstrap_target_libs.
9870 case $bootstrap_target_libs in
9871 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9872 *) target_bootstrap_suffix=no-bootstrap ;;
9873 esac
9874
3e54529c 9875 extrasub_target="$extrasub_target
5607edfd
PB
9876/^@if target-$module\$/d
9877/^@endif target-$module\$/d
da34ca3f 9878/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9879/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9880/^@endif target-$module-$target_bootstrap_suffix\$/d
9881/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9882done
9883
3e54529c
RW
9884# Do the final fixup along with target modules.
9885extrasub_target="$extrasub_target
da34ca3f
AO
9886/^@if /,/^@endif /d
9887/^@unless /d
9888/^@endunless /d"
671aa708 9889
4a5e71f2
L
9890if test "$enable_pgo_build" != "no"; then
9891 extrasub_build="$extrasub_build
9892/^@if pgo-build\$/d
9893/^@endif pgo-build\$/d"
9894fi
9895
671aa708
NN
9896# Create the serialization dependencies. This uses a temporary file.
9897
5213506e
RW
9898# Check whether --enable-serial-configure was given.
9899if test "${enable_serial_configure+set}" = set; then :
9900 enableval=$enable_serial_configure;
9901fi
ade82b16
AO
9902
9903
bf1d3e81
NN
9904case ${enable_serial_configure} in
9905 yes)
9906 enable_serial_build_configure=yes
9907 enable_serial_host_configure=yes
9908 enable_serial_target_configure=yes
9909 ;;
9910esac
9911
671aa708
NN
9912# These force 'configure's to be done one at a time, to avoid problems
9913# with contention over a shared config.cache.
9914rm -f serdep.tmp
ade82b16 9915echo '# serdep.tmp' > serdep.tmp
671aa708 9916olditem=
bf1d3e81 9917test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9918for item in ${build_configdirs} ; do
9919 case ${olditem} in
9920 "") ;;
ade82b16 9921 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9922 esac
9923 olditem=${item}
9924done
9925olditem=
bf1d3e81 9926test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9927for item in ${configdirs} ; do
9928 case ${olditem} in
9929 "") ;;
ade82b16 9930 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9931 esac
9932 olditem=${item}
9933done
9934olditem=
bf1d3e81 9935test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9936for item in ${target_configdirs} ; do
9937 case ${olditem} in
9938 "") ;;
ade82b16 9939 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9940 esac
9941 olditem=${item}
9942done
9943serialization_dependencies=serdep.tmp
9944
9945
ade82b16 9946# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9947# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9948# might not want to pass down to subconfigures. The exception being
9949# --cache-file=/dev/null, which is used to turn off the use of cache
9950# files altogether, and which should be passed on to subconfigures.
9951# Also strip program-prefix, program-suffix, and program-transform-name,
9952# so that we can pass down a consistent program-transform-name.
1c710c3c 9953baseargs=
29a63921 9954tbaseargs=
1c710c3c
DJ
9955keep_next=no
9956skip_next=no
9957eval "set -- $ac_configure_args"
44bfc3ac
DJ
9958for ac_arg
9959do
1c710c3c
DJ
9960 if test X"$skip_next" = X"yes"; then
9961 skip_next=no
9962 continue
9963 fi
9964 if test X"$keep_next" = X"yes"; then
9965 case $ac_arg in
9966 *\'*)
9967 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9968 esac
9969 baseargs="$baseargs '$ac_arg'"
29a63921 9970 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9971 keep_next=no
9972 continue
9973 fi
9974
9975 # Handle separated arguments. Based on the logic generated by
9976 # autoconf 2.59.
9977 case $ac_arg in
9978 *=* | --config-cache | -C | -disable-* | --disable-* \
9979 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9980 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9981 | -with-* | --with-* | -without-* | --without-* | --x)
9982 separate_arg=no
9983 ;;
9984 -*)
9985 separate_arg=yes
9986 ;;
9987 *)
9988 separate_arg=no
9989 ;;
9990 esac
9991
29a63921
AO
9992 skip_targ=no
9993 case $ac_arg in
9994
9995 --with-* | --without-*)
9996 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9997
9998 case $libopt in
9999 *[-_]include)
10000 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
10001 ;;
10002 *[-_]lib)
10003 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
10004 ;;
10005 *)
10006 lib=$libopt
10007 ;;
10008 esac
10009
10010
10011 case $lib in
4a9bb2aa 10012 mpc | mpfr | gmp | isl)
29a63921
AO
10013 # If we're processing --with-$lib, --with-$lib-include or
10014 # --with-$lib-lib, for one of the libs above, and target is
10015 # different from host, don't pass the current argument to any
10016 # target library's configure.
10017 if test x$is_cross_compiler = xyes; then
10018 skip_targ=yes
10019 fi
10020 ;;
10021 esac
10022 ;;
10023 esac
10024
1c710c3c 10025 case "$ac_arg" in
f1a036e4
NC
10026 --cache-file=/dev/null | \
10027 -cache-file=/dev/null )
10028 # Handled here to avoid the test to skip args below.
10029 baseargs="$baseargs '$ac_arg'"
29a63921 10030 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10031 # Assert: $separate_arg should always be no.
10032 keep_next=$separate_arg
10033 ;;
1c710c3c
DJ
10034 --no*)
10035 continue
10036 ;;
10037 --c* | \
10038 --sr* | \
10039 --ho* | \
10040 --bu* | \
10041 --t* | \
10042 --program-* | \
10043 -cache_file* | \
10044 -srcdir* | \
10045 -host* | \
10046 -build* | \
10047 -target* | \
10048 -program-prefix* | \
10049 -program-suffix* | \
10050 -program-transform-name* )
10051 skip_next=$separate_arg
10052 continue
10053 ;;
10054 -*)
10055 # An option. Add it.
10056 case $ac_arg in
10057 *\'*)
10058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10059 esac
10060 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10061 if test X"$skip_targ" = Xno; then
10062 tbaseargs="$tbaseargs '$ac_arg'"
10063 fi
1c710c3c
DJ
10064 keep_next=$separate_arg
10065 ;;
10066 *)
10067 # Either a variable assignment, or a nonopt (triplet). Don't
10068 # pass it down; let the Makefile handle this.
10069 continue
10070 ;;
10071 esac
10072done
10073# Remove the initial space we just introduced and, as these will be
10074# expanded by make, quote '$'.
10075baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10076
43bb47c2
DJ
10077# Add in --program-transform-name, after --program-prefix and
10078# --program-suffix have been applied to it. Autoconf has already
10079# doubled dollar signs and backslashes in program_transform_name; we want
10080# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10081# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10082# Also, because we want to override the logic in subdir configure scripts to
10083# choose program_transform_name, replace any s,x,x, with s,y,y,.
10084sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10085${program_transform_name}
10086EOF_SED
10087gcc_transform_name=`cat conftestsed.out`
10088rm -f conftestsed.out
10089baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10090tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10091if test "$silent" = yes; then
10092 baseargs="$baseargs --silent"
29a63921 10093 tbaseargs="$tbaseargs --silent"
d9acb717 10094fi
0115d4a3 10095baseargs="$baseargs --disable-option-checking"
29a63921 10096tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10097
ffedf511
RW
10098# Record and document user additions to sub configure arguments.
10099
10100
10101
10102
671aa708
NN
10103# For the build-side libraries, we just need to pretend we're native,
10104# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10105# desired. We can't even use the same cache file for all build-side
10106# libraries, as they're compiled differently; some with C, some with
10107# C++ or with different feature-enabling options.
10108build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10109
10110# For host modules, accept cache file option, or specification as blank.
10111case "${cache_file}" in
10112"") # empty
10113 cache_file_option="" ;;
10114/* | [A-Za-z]:[\\/]* ) # absolute path
10115 cache_file_option="--cache-file=${cache_file}" ;;
10116*) # relative path
10117 cache_file_option="--cache-file=../${cache_file}" ;;
10118esac
10119
09438bde
NN
10120# Host dirs don't like to share a cache file either, horribly enough.
10121# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10122host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10123
29a63921 10124target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10125
10126# Passing a --with-cross-host argument lets the target libraries know
10127# whether they are being built with a cross-compiler or being built
10128# native. However, it would be better to use other mechanisms to make the
10129# sorts of decisions they want to make on this basis. Please consider
10130# this option to be deprecated. FIXME.
10131if test x${is_cross_compiler} = xyes ; then
1c710c3c 10132 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10133fi
10134
79e0604d
FXC
10135# Special user-friendly check for native x86_64-linux build, if
10136# multilib is not explicitly enabled.
10137case "$target:$have_compiler:$host:$target:$enable_multilib" in
10138 x86_64-*linux*:yes:$build:$build:)
e640447c 10139 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10140 dev64=no
10141 echo "int main () { return 0; }" > conftest.c
10142 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10143 if test $? = 0 ; then
10144 if test -s conftest || test -s conftest.exe ; then
10145 dev64=yes
10146 fi
10147 fi
10148 rm -f conftest*
10149 if test x${dev64} != xyes ; then
22e05272 10150 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
79e0604d
FXC
10151 fi
10152 ;;
10153esac
10154
dc683a3f
RW
10155# Default to --enable-multilib.
10156if test x${enable_multilib} = x ; then
671aa708 10157 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10158fi
671aa708
NN
10159
10160# Pass --with-newlib if appropriate. Note that target_configdirs has
10161# changed from the earlier setting of with_newlib.
10162if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10163 target_configargs="--with-newlib ${target_configargs}"
10164fi
10165
6b9eb62c
NN
10166# Different target subdirs use different values of certain variables
10167# (notably CXX). Worse, multilibs use *lots* of different values.
10168# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10169# it doesn't automatically accept command-line overrides of them.
10170# This means it's not safe for target subdirs to share a cache file,
10171# which is disgusting, but there you have it. Hopefully this can be
10172# fixed in future. It's still worthwhile to use a cache file for each
10173# directory. I think.
10174
bebcd931
MS
10175# Pass the appropriate --build, --host, --target and --cache-file arguments.
10176# We need to pass --target, as newer autoconf's requires consistency
10177# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10178target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10179
671aa708
NN
10180FLAGS_FOR_TARGET=
10181case " $target_configdirs " in
10182 *" newlib "*)
10183 case " $target_configargs " in
10184 *" --with-newlib "*)
10185 case "$target" in
5d571eaa 10186 *-cygwin*)
443e6238 10187 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10188 ;;
671aa708
NN
10189 esac
10190
10191 # If we're not building GCC, don't discard standard headers.
10192 if test -d ${srcdir}/gcc; then
10193 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10194
10195 if test "${build}" != "${host}"; then
10196 # On Canadian crosses, CC_FOR_TARGET will have already been set
10197 # by `configure', so we won't have an opportunity to add -Bgcc/
10198 # to it. This is right: we don't want to search that directory
10199 # for binaries, but we want the header files in there, so add
10200 # them explicitly.
0463992b 10201 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10202
10203 # Someone might think of using the pre-installed headers on
10204 # Canadian crosses, in case the installed compiler is not fully
10205 # compatible with the compiler being built. In this case, it
10206 # would be better to flag an error than risking having
10207 # incompatible object files being constructed. We can't
10208 # guarantee that an error will be flagged, but let's hope the
10209 # compiler will do it, when presented with incompatible header
10210 # files.
10211 fi
10212 fi
10213
10214 case "${target}-${is_cross_compiler}" in
f2a0e225 10215 i[3456789]86-*-linux*-no)
671aa708
NN
10216 # Here host == target, so we don't need to build gcc,
10217 # so we don't want to discard standard headers.
10218 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10219 ;;
10220 *)
10221 # If we're building newlib, use its generic headers last, but search
10222 # for any libc-related directories first (so make it the last -B
10223 # switch).
10224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
10225
10226 # If we're building libgloss, find the startup file, simulator library
10227 # and linker script.
10228 case " $target_configdirs " in
10229 *" libgloss "*)
10230 # Look for startup file, simulator library and maybe linker script.
10231 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10232 # Look for libnosys.a in case the target needs it.
10233 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10234 # Most targets have the linker script in the source directory.
10235 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10236 ;;
10237 esac
671aa708
NN
10238 ;;
10239 esac
10240 ;;
10241 esac
10242 ;;
10243esac
5d571eaa 10244
b91f0a41 10245case "$target" in
5d571eaa
OS
10246 x86_64-*mingw* | *-w64-mingw*)
10247 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10248 # however, use a symlink named 'mingw' in ${prefix} .
10249 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10250 ;;
10251 *-mingw*)
10252 # MinGW can't be handled as Cygwin above since it does not use newlib.
10253 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'
10254 ;;
b91f0a41 10255esac
671aa708 10256
6691a79e
ME
10257# Allow the user to override the flags for
10258# our build compiler if desired.
f019adc1
MF
10259if test x"${build}" = x"${host}" ; then
10260 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10261 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10262 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10263 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10264fi
6691a79e 10265
671aa708
NN
10266# On Canadian crosses, we'll be searching the right directories for
10267# the previously-installed cross compiler, so don't bother to add
10268# flags for directories within the install tree of the compiler
10269# being built; programs in there won't even run.
10270if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10271 # Search for pre-installed headers if nothing else fits.
9124bc53 10272 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
10273fi
10274
10275if test "x${use_gnu_ld}" = x &&
10276 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10277 # Arrange for us to find uninstalled linker scripts.
215c351a 10278 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10279fi
10280
e88a2c09
DD
10281# Search for other target-specific linker scripts and such.
10282case "${target}" in
3e19841a
PB
10283 mep*)
10284 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10285 ;;
e88a2c09
DD
10286esac
10287
671aa708 10288# Makefile fragments.
7b61653a
PE
10289for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10290do
10291 eval fragval=\$$frag
10292 if test $fragval != /dev/null; then
10293 eval $frag=${srcdir}/$fragval
10294 fi
10295done
671aa708
NN
10296
10297
10298
10299
10300
10301# Miscellanea: directories, flags, etc.
10302
10303
10304
10305
10306
10307
10308
d89f0ad6 10309
23f6b2f9 10310# Build module lists & subconfigure args.
671aa708
NN
10311
10312
10313
2abefe3d
PB
10314# Host module lists & subconfigure args.
10315
10316
10317
aae29963 10318
2abefe3d
PB
10319# Target module lists & subconfigure args.
10320
10321
10322
10323# Build tools.
10324
10325
10326
0999159b
PB
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
b4c522fa 10340
3b5e8ee4 10341
a1d2b162
IS
10342
10343
2abefe3d
PB
10344# Generate default definitions for YACC, M4, LEX and other programs that run
10345# on the build machine. These are used if the Makefile can't locate these
10346# programs in objdir.
10347MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10348
10349for ac_prog in 'bison -y' byacc yacc
10350do
1c710c3c 10351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10352set dummy $ac_prog; ac_word=$2
5213506e
RW
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10355if ${ac_cv_prog_YACC+:} false; then :
5213506e 10356 $as_echo_n "(cached) " >&6
2abefe3d
PB
10357else
10358 if test -n "$YACC"; then
10359 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10360else
1c710c3c
DJ
10361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $PATH
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
5213506e 10366 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10368 ac_cv_prog_YACC="$ac_prog"
5213506e 10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10370 break 2
10371 fi
10372done
5213506e
RW
10373 done
10374IFS=$as_save_IFS
1c710c3c 10375
2abefe3d
PB
10376fi
10377fi
1c710c3c 10378YACC=$ac_cv_prog_YACC
2abefe3d 10379if test -n "$YACC"; then
5213506e
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10381$as_echo "$YACC" >&6; }
2abefe3d 10382else
5213506e
RW
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384$as_echo "no" >&6; }
2abefe3d
PB
10385fi
10386
5213506e 10387
1c710c3c 10388 test -n "$YACC" && break
2abefe3d
PB
10389done
10390test -n "$YACC" || YACC="$MISSING bison -y"
10391
10392case " $build_configdirs " in
10393 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10394esac
10395
10396for ac_prog in bison
10397do
1c710c3c 10398 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10399set dummy $ac_prog; ac_word=$2
5213506e
RW
10400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10402if ${ac_cv_prog_BISON+:} false; then :
5213506e 10403 $as_echo_n "(cached) " >&6
2abefe3d
PB
10404else
10405 if test -n "$BISON"; then
10406 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10407else
1c710c3c
DJ
10408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
5213506e 10413 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10415 ac_cv_prog_BISON="$ac_prog"
5213506e 10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10417 break 2
10418 fi
10419done
5213506e
RW
10420 done
10421IFS=$as_save_IFS
1c710c3c 10422
2abefe3d
PB
10423fi
10424fi
1c710c3c 10425BISON=$ac_cv_prog_BISON
2abefe3d 10426if test -n "$BISON"; then
5213506e
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10428$as_echo "$BISON" >&6; }
2abefe3d 10429else
5213506e
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431$as_echo "no" >&6; }
2abefe3d
PB
10432fi
10433
5213506e 10434
1c710c3c 10435 test -n "$BISON" && break
2abefe3d
PB
10436done
10437test -n "$BISON" || BISON="$MISSING bison"
10438
10439case " $build_configdirs " in
10440 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10441esac
10442
10443for ac_prog in gm4 gnum4 m4
10444do
1c710c3c 10445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10446set dummy $ac_prog; ac_word=$2
5213506e
RW
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10449if ${ac_cv_prog_M4+:} false; then :
5213506e 10450 $as_echo_n "(cached) " >&6
2abefe3d
PB
10451else
10452 if test -n "$M4"; then
10453 ac_cv_prog_M4="$M4" # Let the user override the test.
10454else
1c710c3c
DJ
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 test -z "$as_dir" && as_dir=.
5213506e 10460 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10462 ac_cv_prog_M4="$ac_prog"
5213506e 10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10464 break 2
10465 fi
10466done
5213506e
RW
10467 done
10468IFS=$as_save_IFS
1c710c3c 10469
2abefe3d
PB
10470fi
10471fi
1c710c3c 10472M4=$ac_cv_prog_M4
2abefe3d 10473if test -n "$M4"; then
5213506e
RW
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10475$as_echo "$M4" >&6; }
2abefe3d 10476else
5213506e
RW
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
2abefe3d
PB
10479fi
10480
5213506e 10481
1c710c3c 10482 test -n "$M4" && break
2abefe3d
PB
10483done
10484test -n "$M4" || M4="$MISSING m4"
10485
10486case " $build_configdirs " in
10487 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10488esac
10489
10490for ac_prog in flex lex
10491do
1c710c3c 10492 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10493set dummy $ac_prog; ac_word=$2
5213506e
RW
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10495$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10496if ${ac_cv_prog_LEX+:} false; then :
5213506e 10497 $as_echo_n "(cached) " >&6
2abefe3d
PB
10498else
10499 if test -n "$LEX"; then
10500 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10501else
1c710c3c
DJ
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
5213506e 10507 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10509 ac_cv_prog_LEX="$ac_prog"
5213506e 10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10511 break 2
10512 fi
10513done
5213506e
RW
10514 done
10515IFS=$as_save_IFS
1c710c3c 10516
2abefe3d
PB
10517fi
10518fi
1c710c3c 10519LEX=$ac_cv_prog_LEX
2abefe3d 10520if test -n "$LEX"; then
5213506e
RW
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10522$as_echo "$LEX" >&6; }
2abefe3d 10523else
5213506e
RW
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
2abefe3d
PB
10526fi
10527
5213506e 10528
1c710c3c 10529 test -n "$LEX" && break
2abefe3d
PB
10530done
10531test -n "$LEX" || LEX="$MISSING flex"
10532
10533case " $build_configdirs " in
10534 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10535 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10536esac
10537
10538for ac_prog in flex
10539do
1c710c3c 10540 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10541set dummy $ac_prog; ac_word=$2
5213506e
RW
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10544if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10545 $as_echo_n "(cached) " >&6
2abefe3d
PB
10546else
10547 if test -n "$FLEX"; then
10548 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10549else
1c710c3c
DJ
10550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551for as_dir in $PATH
10552do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
5213506e 10555 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10557 ac_cv_prog_FLEX="$ac_prog"
5213506e 10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10559 break 2
10560 fi
10561done
5213506e
RW
10562 done
10563IFS=$as_save_IFS
1c710c3c 10564
2abefe3d
PB
10565fi
10566fi
1c710c3c 10567FLEX=$ac_cv_prog_FLEX
2abefe3d 10568if test -n "$FLEX"; then
5213506e
RW
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10570$as_echo "$FLEX" >&6; }
2abefe3d 10571else
5213506e
RW
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573$as_echo "no" >&6; }
2abefe3d
PB
10574fi
10575
5213506e 10576
1c710c3c 10577 test -n "$FLEX" && break
2abefe3d
PB
10578done
10579test -n "$FLEX" || FLEX="$MISSING flex"
10580
10581case " $build_configdirs " in
10582 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10583esac
10584
10585for ac_prog in makeinfo
10586do
1c710c3c 10587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10588set dummy $ac_prog; ac_word=$2
5213506e
RW
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10590$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10591if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10592 $as_echo_n "(cached) " >&6
2abefe3d
PB
10593else
10594 if test -n "$MAKEINFO"; then
10595 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10596else
1c710c3c
DJ
10597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598for as_dir in $PATH
10599do
10600 IFS=$as_save_IFS
10601 test -z "$as_dir" && as_dir=.
5213506e 10602 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10604 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10606 break 2
10607 fi
10608done
5213506e
RW
10609 done
10610IFS=$as_save_IFS
1c710c3c 10611
2abefe3d
PB
10612fi
10613fi
1c710c3c 10614MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10615if test -n "$MAKEINFO"; then
5213506e
RW
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10617$as_echo "$MAKEINFO" >&6; }
2abefe3d 10618else
5213506e
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
2abefe3d
PB
10621fi
10622
5213506e 10623
1c710c3c 10624 test -n "$MAKEINFO" && break
2abefe3d
PB
10625done
10626test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10627
10628case " $build_configdirs " in
10629 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10630 *)
10631
d18ff35a 10632 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10633 # higher, else we use the "missing" dummy.
10634 if ${MAKEINFO} --version \
d18ff35a 10635 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10636 :
10637 else
10638 MAKEINFO="$MISSING makeinfo"
10639 fi
10640 ;;
10641
10642esac
671aa708 10643
2abefe3d 10644# FIXME: expect and dejagnu may become build tools?
671aa708 10645
2abefe3d
PB
10646for ac_prog in expect
10647do
1c710c3c 10648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10649set dummy $ac_prog; ac_word=$2
5213506e
RW
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10652if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10653 $as_echo_n "(cached) " >&6
2abefe3d
PB
10654else
10655 if test -n "$EXPECT"; then
10656 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10657else
1c710c3c
DJ
10658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659for as_dir in $PATH
10660do
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
5213506e 10663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10665 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10667 break 2
10668 fi
10669done
5213506e
RW
10670 done
10671IFS=$as_save_IFS
1c710c3c 10672
2abefe3d
PB
10673fi
10674fi
1c710c3c 10675EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10676if test -n "$EXPECT"; then
5213506e
RW
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10678$as_echo "$EXPECT" >&6; }
2abefe3d 10679else
5213506e
RW
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681$as_echo "no" >&6; }
2abefe3d 10682fi
671aa708 10683
5213506e 10684
1c710c3c 10685 test -n "$EXPECT" && break
2abefe3d
PB
10686done
10687test -n "$EXPECT" || EXPECT="expect"
671aa708 10688
2abefe3d
PB
10689case " $configdirs " in
10690 *" expect "*)
10691 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10692 ;;
10693esac
671aa708 10694
2abefe3d
PB
10695for ac_prog in runtest
10696do
1c710c3c 10697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10698set dummy $ac_prog; ac_word=$2
5213506e
RW
10699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10701if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10702 $as_echo_n "(cached) " >&6
2abefe3d
PB
10703else
10704 if test -n "$RUNTEST"; then
10705 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10706else
1c710c3c
DJ
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
5213506e 10712 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10714 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10716 break 2
10717 fi
10718done
5213506e
RW
10719 done
10720IFS=$as_save_IFS
1c710c3c 10721
2abefe3d
PB
10722fi
10723fi
1c710c3c 10724RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10725if test -n "$RUNTEST"; then
5213506e
RW
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10727$as_echo "$RUNTEST" >&6; }
2abefe3d 10728else
5213506e
RW
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730$as_echo "no" >&6; }
2abefe3d 10731fi
671aa708 10732
5213506e 10733
1c710c3c 10734 test -n "$RUNTEST" && break
2abefe3d
PB
10735done
10736test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10737
2abefe3d
PB
10738case " $configdirs " in
10739 *" dejagnu "*)
c394e891 10740 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10741 ;;
10742esac
671aa708
NN
10743
10744
671aa708 10745# Host tools.
ca9f4b81
AO
10746ncn_tool_prefix=
10747test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10748ncn_target_tool_prefix=
10749test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10750
278a7a38
AO
10751
10752
10753if test -n "$AR"; then
10754 ac_cv_prog_AR=$AR
10755elif test -n "$ac_cv_prog_AR"; then
10756 AR=$ac_cv_prog_AR
10757fi
10758
10759if test -n "$ac_cv_prog_AR"; then
10760 for ncn_progname in ar; do
10761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10762set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10764$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10765if ${ac_cv_prog_AR+:} false; then :
5213506e 10766 $as_echo_n "(cached) " >&6
278a7a38
AO
10767else
10768 if test -n "$AR"; then
10769 ac_cv_prog_AR="$AR" # Let the user override the test.
10770else
10771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10772for as_dir in $PATH
10773do
10774 IFS=$as_save_IFS
10775 test -z "$as_dir" && as_dir=.
5213506e 10776 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10778 ac_cv_prog_AR="${ncn_progname}"
5213506e 10779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10780 break 2
10781 fi
10782done
5213506e
RW
10783 done
10784IFS=$as_save_IFS
278a7a38
AO
10785
10786fi
10787fi
10788AR=$ac_cv_prog_AR
10789if test -n "$AR"; then
5213506e
RW
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10791$as_echo "$AR" >&6; }
278a7a38 10792else
5213506e
RW
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10794$as_echo "no" >&6; }
278a7a38
AO
10795fi
10796
5213506e 10797
278a7a38
AO
10798 done
10799fi
10800
10801for ncn_progname in ar; do
2693c0b0
PB
10802 if test -n "$ncn_tool_prefix"; then
10803 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10804set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10807if ${ac_cv_prog_AR+:} false; then :
5213506e 10808 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10809else
10810 if test -n "$AR"; then
10811 ac_cv_prog_AR="$AR" # Let the user override the test.
10812else
1c710c3c
DJ
10813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $PATH
10815do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
5213506e 10818 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10820 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10822 break 2
10823 fi
10824done
5213506e
RW
10825 done
10826IFS=$as_save_IFS
1c710c3c 10827
ca9f4b81
AO
10828fi
10829fi
1c710c3c 10830AR=$ac_cv_prog_AR
ca9f4b81 10831if test -n "$AR"; then
5213506e
RW
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10833$as_echo "$AR" >&6; }
ca9f4b81 10834else
5213506e
RW
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10836$as_echo "no" >&6; }
ca9f4b81
AO
10837fi
10838
5213506e 10839
2693c0b0
PB
10840 fi
10841 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10842 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10843set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10845$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10846if ${ac_cv_prog_AR+:} false; then :
5213506e 10847 $as_echo_n "(cached) " >&6
ca9f4b81 10848else
2693c0b0 10849 if test -n "$AR"; then
af71363e
AS
10850 ac_cv_prog_AR="$AR" # Let the user override the test.
10851else
1c710c3c
DJ
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 test -z "$as_dir" && as_dir=.
5213506e 10857 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10859 ac_cv_prog_AR="${ncn_progname}"
5213506e 10860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10861 break 2
10862 fi
10863done
5213506e
RW
10864 done
10865IFS=$as_save_IFS
1c710c3c 10866
ca9f4b81
AO
10867fi
10868fi
1c710c3c 10869AR=$ac_cv_prog_AR
2693c0b0 10870if test -n "$AR"; then
5213506e
RW
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10872$as_echo "$AR" >&6; }
ca9f4b81 10873else
5213506e
RW
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875$as_echo "no" >&6; }
ca9f4b81 10876fi
1c710c3c 10877
5213506e 10878
2693c0b0
PB
10879 fi
10880 test -n "$ac_cv_prog_AR" && break
10881done
10882
10883if test -z "$ac_cv_prog_AR" ; then
10884 set dummy ar
10885 if test $build = $host ; then
10886 AR="$2"
ca9f4b81 10887 else
2693c0b0 10888 AR="${ncn_tool_prefix}$2"
ca9f4b81 10889 fi
ca9f4b81
AO
10890fi
10891
278a7a38
AO
10892
10893
10894if test -n "$AS"; then
10895 ac_cv_prog_AS=$AS
10896elif test -n "$ac_cv_prog_AS"; then
10897 AS=$ac_cv_prog_AS
10898fi
10899
10900if test -n "$ac_cv_prog_AS"; then
10901 for ncn_progname in as; do
10902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10903set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10905$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10906if ${ac_cv_prog_AS+:} false; then :
5213506e 10907 $as_echo_n "(cached) " >&6
278a7a38
AO
10908else
10909 if test -n "$AS"; then
10910 ac_cv_prog_AS="$AS" # Let the user override the test.
10911else
10912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10913for as_dir in $PATH
10914do
10915 IFS=$as_save_IFS
10916 test -z "$as_dir" && as_dir=.
5213506e 10917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10919 ac_cv_prog_AS="${ncn_progname}"
5213506e 10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10921 break 2
10922 fi
10923done
5213506e
RW
10924 done
10925IFS=$as_save_IFS
278a7a38
AO
10926
10927fi
10928fi
10929AS=$ac_cv_prog_AS
10930if test -n "$AS"; then
5213506e
RW
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10932$as_echo "$AS" >&6; }
278a7a38 10933else
5213506e
RW
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
278a7a38
AO
10936fi
10937
5213506e 10938
278a7a38
AO
10939 done
10940fi
10941
10942for ncn_progname in as; do
2693c0b0
PB
10943 if test -n "$ncn_tool_prefix"; then
10944 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10945set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10947$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10948if ${ac_cv_prog_AS+:} false; then :
5213506e 10949 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10950else
10951 if test -n "$AS"; then
10952 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10953else
1c710c3c
DJ
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
5213506e 10959 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10961 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10963 break 2
10964 fi
10965done
5213506e
RW
10966 done
10967IFS=$as_save_IFS
1c710c3c 10968
ca9f4b81
AO
10969fi
10970fi
1c710c3c 10971AS=$ac_cv_prog_AS
ca9f4b81 10972if test -n "$AS"; then
5213506e
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10974$as_echo "$AS" >&6; }
ca9f4b81 10975else
5213506e
RW
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10977$as_echo "no" >&6; }
ca9f4b81
AO
10978fi
10979
5213506e 10980
2693c0b0
PB
10981 fi
10982 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10984set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10987if ${ac_cv_prog_AS+:} false; then :
5213506e 10988 $as_echo_n "(cached) " >&6
ca9f4b81 10989else
2693c0b0
PB
10990 if test -n "$AS"; then
10991 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10992else
1c710c3c
DJ
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
5213506e 10998 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11000 ac_cv_prog_AS="${ncn_progname}"
5213506e 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11002 break 2
11003 fi
11004done
5213506e
RW
11005 done
11006IFS=$as_save_IFS
1c710c3c 11007
ca9f4b81
AO
11008fi
11009fi
1c710c3c 11010AS=$ac_cv_prog_AS
2693c0b0 11011if test -n "$AS"; then
5213506e
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11013$as_echo "$AS" >&6; }
ca9f4b81 11014else
5213506e
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
ca9f4b81 11017fi
1c710c3c 11018
5213506e 11019
2693c0b0
PB
11020 fi
11021 test -n "$ac_cv_prog_AS" && break
11022done
11023
11024if test -z "$ac_cv_prog_AS" ; then
11025 set dummy as
11026 if test $build = $host ; then
11027 AS="$2"
ca9f4b81 11028 else
2693c0b0 11029 AS="${ncn_tool_prefix}$2"
ca9f4b81 11030 fi
ca9f4b81
AO
11031fi
11032
278a7a38
AO
11033
11034
11035if test -n "$DLLTOOL"; then
11036 ac_cv_prog_DLLTOOL=$DLLTOOL
11037elif test -n "$ac_cv_prog_DLLTOOL"; then
11038 DLLTOOL=$ac_cv_prog_DLLTOOL
11039fi
11040
11041if test -n "$ac_cv_prog_DLLTOOL"; then
11042 for ncn_progname in dlltool; do
11043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11044set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11047if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11048 $as_echo_n "(cached) " >&6
278a7a38
AO
11049else
11050 if test -n "$DLLTOOL"; then
11051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11052else
11053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054for as_dir in $PATH
11055do
11056 IFS=$as_save_IFS
11057 test -z "$as_dir" && as_dir=.
5213506e 11058 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11060 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11062 break 2
11063 fi
11064done
5213506e
RW
11065 done
11066IFS=$as_save_IFS
278a7a38
AO
11067
11068fi
11069fi
11070DLLTOOL=$ac_cv_prog_DLLTOOL
11071if test -n "$DLLTOOL"; then
5213506e
RW
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11073$as_echo "$DLLTOOL" >&6; }
278a7a38 11074else
5213506e
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076$as_echo "no" >&6; }
278a7a38
AO
11077fi
11078
5213506e 11079
278a7a38
AO
11080 done
11081fi
11082
11083for ncn_progname in dlltool; do
2693c0b0
PB
11084 if test -n "$ncn_tool_prefix"; then
11085 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11086set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11089if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11090 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11091else
11092 if test -n "$DLLTOOL"; then
11093 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11094else
1c710c3c
DJ
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
5213506e 11100 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11102 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11104 break 2
11105 fi
11106done
5213506e
RW
11107 done
11108IFS=$as_save_IFS
1c710c3c 11109
ca9f4b81
AO
11110fi
11111fi
1c710c3c 11112DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11113if test -n "$DLLTOOL"; then
5213506e
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11115$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11116else
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
ca9f4b81
AO
11119fi
11120
5213506e 11121
2693c0b0
PB
11122 fi
11123 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11125set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11127$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11128if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11129 $as_echo_n "(cached) " >&6
ca9f4b81 11130else
2693c0b0
PB
11131 if test -n "$DLLTOOL"; then
11132 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11133else
1c710c3c
DJ
11134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135for as_dir in $PATH
11136do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
5213506e 11139 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11141 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11143 break 2
11144 fi
11145done
5213506e
RW
11146 done
11147IFS=$as_save_IFS
1c710c3c 11148
ca9f4b81
AO
11149fi
11150fi
1c710c3c 11151DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11152if test -n "$DLLTOOL"; then
5213506e
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11154$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11155else
5213506e
RW
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157$as_echo "no" >&6; }
ca9f4b81 11158fi
1c710c3c 11159
5213506e 11160
2693c0b0
PB
11161 fi
11162 test -n "$ac_cv_prog_DLLTOOL" && break
11163done
11164
11165if test -z "$ac_cv_prog_DLLTOOL" ; then
11166 set dummy dlltool
11167 if test $build = $host ; then
11168 DLLTOOL="$2"
ca9f4b81 11169 else
2693c0b0 11170 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11171 fi
ca9f4b81
AO
11172fi
11173
278a7a38
AO
11174
11175
3b5e8ee4
IS
11176if test -n "$DSYMUTIL"; then
11177 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11178elif test -n "$ac_cv_prog_DSYMUTIL"; then
11179 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11180fi
11181
11182if test -n "$ac_cv_prog_DSYMUTIL"; then
11183 for ncn_progname in dsymutil; do
11184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11185set dummy ${ncn_progname}; ac_word=$2
11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11187$as_echo_n "checking for $ac_word... " >&6; }
11188if ${ac_cv_prog_DSYMUTIL+:} false; then :
11189 $as_echo_n "(cached) " >&6
11190else
11191 if test -n "$DSYMUTIL"; then
11192 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11193else
11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11195for as_dir in $PATH
11196do
11197 IFS=$as_save_IFS
11198 test -z "$as_dir" && as_dir=.
11199 for ac_exec_ext in '' $ac_executable_extensions; do
11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11201 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11203 break 2
11204 fi
11205done
11206 done
11207IFS=$as_save_IFS
11208
11209fi
11210fi
11211DSYMUTIL=$ac_cv_prog_DSYMUTIL
11212if test -n "$DSYMUTIL"; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11214$as_echo "$DSYMUTIL" >&6; }
11215else
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11217$as_echo "no" >&6; }
11218fi
11219
11220
11221 done
11222fi
11223
11224for ncn_progname in dsymutil; do
11225 if test -n "$ncn_tool_prefix"; then
11226 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11227set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11229$as_echo_n "checking for $ac_word... " >&6; }
11230if ${ac_cv_prog_DSYMUTIL+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232else
11233 if test -n "$DSYMUTIL"; then
11234 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11235else
11236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11237for as_dir in $PATH
11238do
11239 IFS=$as_save_IFS
11240 test -z "$as_dir" && as_dir=.
11241 for ac_exec_ext in '' $ac_executable_extensions; do
11242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11243 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11245 break 2
11246 fi
11247done
11248 done
11249IFS=$as_save_IFS
11250
11251fi
11252fi
11253DSYMUTIL=$ac_cv_prog_DSYMUTIL
11254if test -n "$DSYMUTIL"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11256$as_echo "$DSYMUTIL" >&6; }
11257else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11259$as_echo "no" >&6; }
11260fi
11261
11262
11263 fi
11264 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11266set dummy ${ncn_progname}; ac_word=$2
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11268$as_echo_n "checking for $ac_word... " >&6; }
11269if ${ac_cv_prog_DSYMUTIL+:} false; then :
11270 $as_echo_n "(cached) " >&6
11271else
11272 if test -n "$DSYMUTIL"; then
11273 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11274else
11275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276for as_dir in $PATH
11277do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11282 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11285 fi
11286done
11287 done
11288IFS=$as_save_IFS
11289
11290fi
11291fi
11292DSYMUTIL=$ac_cv_prog_DSYMUTIL
11293if test -n "$DSYMUTIL"; then
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11295$as_echo "$DSYMUTIL" >&6; }
11296else
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
11299fi
11300
11301
11302 fi
11303 test -n "$ac_cv_prog_DSYMUTIL" && break
11304done
11305
11306if test -z "$ac_cv_prog_DSYMUTIL" ; then
11307 set dummy dsymutil
11308 if test $build = $host ; then
11309 DSYMUTIL="$2"
11310 else
11311 DSYMUTIL="${ncn_tool_prefix}$2"
11312 fi
11313fi
11314
11315
11316
278a7a38
AO
11317if test -n "$LD"; then
11318 ac_cv_prog_LD=$LD
11319elif test -n "$ac_cv_prog_LD"; then
11320 LD=$ac_cv_prog_LD
11321fi
11322
11323if test -n "$ac_cv_prog_LD"; then
11324 for ncn_progname in ld; do
11325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11326set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11328$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11329if ${ac_cv_prog_LD+:} false; then :
5213506e 11330 $as_echo_n "(cached) " >&6
278a7a38
AO
11331else
11332 if test -n "$LD"; then
11333 ac_cv_prog_LD="$LD" # Let the user override the test.
11334else
11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11336for as_dir in $PATH
11337do
11338 IFS=$as_save_IFS
11339 test -z "$as_dir" && as_dir=.
5213506e 11340 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11342 ac_cv_prog_LD="${ncn_progname}"
5213506e 11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11344 break 2
11345 fi
11346done
5213506e
RW
11347 done
11348IFS=$as_save_IFS
278a7a38
AO
11349
11350fi
11351fi
11352LD=$ac_cv_prog_LD
11353if test -n "$LD"; then
5213506e
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11355$as_echo "$LD" >&6; }
278a7a38 11356else
5213506e
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
278a7a38
AO
11359fi
11360
5213506e 11361
278a7a38
AO
11362 done
11363fi
11364
11365for ncn_progname in ld; do
2693c0b0
PB
11366 if test -n "$ncn_tool_prefix"; then
11367 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11368set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11371if ${ac_cv_prog_LD+:} false; then :
5213506e 11372 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11373else
11374 if test -n "$LD"; then
11375 ac_cv_prog_LD="$LD" # Let the user override the test.
11376else
1c710c3c
DJ
11377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378for as_dir in $PATH
11379do
11380 IFS=$as_save_IFS
11381 test -z "$as_dir" && as_dir=.
5213506e 11382 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11384 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11386 break 2
11387 fi
11388done
5213506e
RW
11389 done
11390IFS=$as_save_IFS
1c710c3c 11391
ca9f4b81
AO
11392fi
11393fi
1c710c3c 11394LD=$ac_cv_prog_LD
ca9f4b81 11395if test -n "$LD"; then
5213506e
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11397$as_echo "$LD" >&6; }
ca9f4b81 11398else
5213506e
RW
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11400$as_echo "no" >&6; }
ca9f4b81
AO
11401fi
11402
5213506e 11403
2693c0b0
PB
11404 fi
11405 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11407set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11410if ${ac_cv_prog_LD+:} false; then :
5213506e 11411 $as_echo_n "(cached) " >&6
ca9f4b81 11412else
2693c0b0
PB
11413 if test -n "$LD"; then
11414 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11415else
1c710c3c
DJ
11416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417for as_dir in $PATH
11418do
11419 IFS=$as_save_IFS
11420 test -z "$as_dir" && as_dir=.
5213506e 11421 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11423 ac_cv_prog_LD="${ncn_progname}"
5213506e 11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11425 break 2
11426 fi
11427done
5213506e
RW
11428 done
11429IFS=$as_save_IFS
1c710c3c 11430
ca9f4b81
AO
11431fi
11432fi
1c710c3c 11433LD=$ac_cv_prog_LD
2693c0b0 11434if test -n "$LD"; then
5213506e
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11436$as_echo "$LD" >&6; }
ca9f4b81 11437else
5213506e
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439$as_echo "no" >&6; }
ca9f4b81 11440fi
1c710c3c 11441
5213506e 11442
2693c0b0
PB
11443 fi
11444 test -n "$ac_cv_prog_LD" && break
11445done
11446
11447if test -z "$ac_cv_prog_LD" ; then
11448 set dummy ld
11449 if test $build = $host ; then
11450 LD="$2"
ca9f4b81 11451 else
2693c0b0 11452 LD="${ncn_tool_prefix}$2"
ca9f4b81 11453 fi
ca9f4b81
AO
11454fi
11455
278a7a38
AO
11456
11457
11458if test -n "$LIPO"; then
11459 ac_cv_prog_LIPO=$LIPO
11460elif test -n "$ac_cv_prog_LIPO"; then
11461 LIPO=$ac_cv_prog_LIPO
11462fi
11463
11464if test -n "$ac_cv_prog_LIPO"; then
11465 for ncn_progname in lipo; do
11466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11467set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11470if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11471 $as_echo_n "(cached) " >&6
278a7a38
AO
11472else
11473 if test -n "$LIPO"; then
11474 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
5213506e 11481 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11483 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11485 break 2
11486 fi
11487done
5213506e
RW
11488 done
11489IFS=$as_save_IFS
278a7a38
AO
11490
11491fi
11492fi
11493LIPO=$ac_cv_prog_LIPO
11494if test -n "$LIPO"; then
5213506e
RW
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11496$as_echo "$LIPO" >&6; }
278a7a38 11497else
5213506e
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
278a7a38
AO
11500fi
11501
5213506e 11502
278a7a38
AO
11503 done
11504fi
11505
11506for ncn_progname in lipo; do
2abefe3d
PB
11507 if test -n "$ncn_tool_prefix"; then
11508 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11509set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11512if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11513 $as_echo_n "(cached) " >&6
2abefe3d
PB
11514else
11515 if test -n "$LIPO"; then
11516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11517else
1c710c3c
DJ
11518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11519for as_dir in $PATH
11520do
11521 IFS=$as_save_IFS
11522 test -z "$as_dir" && as_dir=.
5213506e 11523 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11525 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11527 break 2
11528 fi
11529done
5213506e
RW
11530 done
11531IFS=$as_save_IFS
1c710c3c 11532
2abefe3d
PB
11533fi
11534fi
1c710c3c 11535LIPO=$ac_cv_prog_LIPO
2abefe3d 11536if test -n "$LIPO"; then
5213506e
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11538$as_echo "$LIPO" >&6; }
2abefe3d 11539else
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
2abefe3d
PB
11542fi
11543
5213506e 11544
2abefe3d
PB
11545 fi
11546 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11548set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11551if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11552 $as_echo_n "(cached) " >&6
2abefe3d
PB
11553else
11554 if test -n "$LIPO"; then
11555 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11556else
1c710c3c
DJ
11557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558for as_dir in $PATH
11559do
11560 IFS=$as_save_IFS
11561 test -z "$as_dir" && as_dir=.
5213506e 11562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11564 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11566 break 2
11567 fi
11568done
5213506e
RW
11569 done
11570IFS=$as_save_IFS
1c710c3c 11571
2abefe3d
PB
11572fi
11573fi
1c710c3c 11574LIPO=$ac_cv_prog_LIPO
2abefe3d 11575if test -n "$LIPO"; then
5213506e
RW
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11577$as_echo "$LIPO" >&6; }
2abefe3d 11578else
5213506e
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580$as_echo "no" >&6; }
2abefe3d 11581fi
1c710c3c 11582
5213506e 11583
2abefe3d
PB
11584 fi
11585 test -n "$ac_cv_prog_LIPO" && break
11586done
11587
11588if test -z "$ac_cv_prog_LIPO" ; then
11589 set dummy lipo
11590 if test $build = $host ; then
11591 LIPO="$2"
11592 else
11593 LIPO="${ncn_tool_prefix}$2"
11594 fi
11595fi
11596
278a7a38
AO
11597
11598
11599if test -n "$NM"; then
11600 ac_cv_prog_NM=$NM
11601elif test -n "$ac_cv_prog_NM"; then
11602 NM=$ac_cv_prog_NM
11603fi
11604
11605if test -n "$ac_cv_prog_NM"; then
11606 for ncn_progname in nm; do
11607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11608set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11611if ${ac_cv_prog_NM+:} false; then :
5213506e 11612 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11613else
11614 if test -n "$NM"; then
11615 ac_cv_prog_NM="$NM" # Let the user override the test.
11616else
1c710c3c
DJ
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
5213506e 11622 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11624 ac_cv_prog_NM="${ncn_progname}"
5213506e 11625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11626 break 2
11627 fi
11628done
5213506e
RW
11629 done
11630IFS=$as_save_IFS
1c710c3c 11631
ca9f4b81
AO
11632fi
11633fi
1c710c3c 11634NM=$ac_cv_prog_NM
ca9f4b81 11635if test -n "$NM"; then
5213506e
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11637$as_echo "$NM" >&6; }
ca9f4b81 11638else
5213506e
RW
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640$as_echo "no" >&6; }
ca9f4b81
AO
11641fi
11642
5213506e 11643
278a7a38
AO
11644 done
11645fi
11646
11647for ncn_progname in nm; do
11648 if test -n "$ncn_tool_prefix"; then
11649 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11650set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11653if ${ac_cv_prog_NM+:} false; then :
5213506e 11654 $as_echo_n "(cached) " >&6
ca9f4b81 11655else
2693c0b0
PB
11656 if test -n "$NM"; then
11657 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11658else
1c710c3c
DJ
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
5213506e 11664 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11666 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11668 break 2
11669 fi
11670done
5213506e
RW
11671 done
11672IFS=$as_save_IFS
1c710c3c 11673
ca9f4b81
AO
11674fi
11675fi
1c710c3c 11676NM=$ac_cv_prog_NM
2693c0b0 11677if test -n "$NM"; then
5213506e
RW
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11679$as_echo "$NM" >&6; }
ca9f4b81 11680else
5213506e
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682$as_echo "no" >&6; }
ca9f4b81 11683fi
1c710c3c 11684
5213506e 11685
2693c0b0 11686 fi
278a7a38
AO
11687 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11689set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11692if ${ac_cv_prog_NM+:} false; then :
5213506e 11693 $as_echo_n "(cached) " >&6
278a7a38
AO
11694else
11695 if test -n "$NM"; then
11696 ac_cv_prog_NM="$NM" # Let the user override the test.
11697else
11698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
5213506e 11703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11705 ac_cv_prog_NM="${ncn_progname}"
5213506e 11706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11707 break 2
11708 fi
11709done
5213506e
RW
11710 done
11711IFS=$as_save_IFS
278a7a38
AO
11712
11713fi
11714fi
11715NM=$ac_cv_prog_NM
11716if test -n "$NM"; then
5213506e
RW
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11718$as_echo "$NM" >&6; }
278a7a38 11719else
5213506e
RW
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721$as_echo "no" >&6; }
278a7a38
AO
11722fi
11723
5213506e 11724
278a7a38
AO
11725 fi
11726 test -n "$ac_cv_prog_NM" && break
11727done
11728
11729if test -z "$ac_cv_prog_NM" ; then
11730 set dummy nm
11731 if test $build = $host ; then
11732 NM="$2"
11733 else
11734 NM="${ncn_tool_prefix}$2"
11735 fi
11736fi
11737
11738
11739
11740if test -n "$RANLIB"; then
11741 ac_cv_prog_RANLIB=$RANLIB
11742elif test -n "$ac_cv_prog_RANLIB"; then
11743 RANLIB=$ac_cv_prog_RANLIB
11744fi
11745
11746if test -n "$ac_cv_prog_RANLIB"; then
11747 for ncn_progname in ranlib; do
11748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11751$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11752if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11753 $as_echo_n "(cached) " >&6
278a7a38
AO
11754else
11755 if test -n "$RANLIB"; then
11756 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11757else
11758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759for as_dir in $PATH
11760do
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
5213506e 11763 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11765 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11767 break 2
11768 fi
11769done
5213506e
RW
11770 done
11771IFS=$as_save_IFS
278a7a38
AO
11772
11773fi
11774fi
11775RANLIB=$ac_cv_prog_RANLIB
11776if test -n "$RANLIB"; then
5213506e
RW
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11778$as_echo "$RANLIB" >&6; }
278a7a38 11779else
5213506e
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781$as_echo "no" >&6; }
278a7a38
AO
11782fi
11783
5213506e 11784
278a7a38
AO
11785 done
11786fi
ca9f4b81 11787
278a7a38 11788for ncn_progname in ranlib; do
2693c0b0
PB
11789 if test -n "$ncn_tool_prefix"; then
11790 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11791set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11794if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11795 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11796else
11797 if test -n "$RANLIB"; then
11798 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11799else
1c710c3c
DJ
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
5213506e 11805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11807 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11809 break 2
11810 fi
11811done
5213506e
RW
11812 done
11813IFS=$as_save_IFS
1c710c3c 11814
ca9f4b81
AO
11815fi
11816fi
1c710c3c 11817RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11818if test -n "$RANLIB"; then
5213506e
RW
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11820$as_echo "$RANLIB" >&6; }
ca9f4b81 11821else
5213506e
RW
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823$as_echo "no" >&6; }
ca9f4b81
AO
11824fi
11825
5213506e 11826
2693c0b0
PB
11827 fi
11828 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11833if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11834 $as_echo_n "(cached) " >&6
ca9f4b81 11835else
2693c0b0
PB
11836 if test -n "$RANLIB"; then
11837 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11838else
1c710c3c
DJ
11839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $PATH
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
5213506e 11844 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11846 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11848 break 2
11849 fi
11850done
5213506e
RW
11851 done
11852IFS=$as_save_IFS
1c710c3c 11853
ca9f4b81
AO
11854fi
11855fi
1c710c3c 11856RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11857if test -n "$RANLIB"; then
5213506e
RW
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11859$as_echo "$RANLIB" >&6; }
ca9f4b81 11860else
5213506e
RW
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
ca9f4b81 11863fi
1c710c3c 11864
5213506e 11865
ca9f4b81 11866 fi
2693c0b0
PB
11867 test -n "$ac_cv_prog_RANLIB" && break
11868done
11869
11870if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11871 RANLIB="true"
ca9f4b81
AO
11872fi
11873
278a7a38
AO
11874
11875
11876if test -n "$STRIP"; then
11877 ac_cv_prog_STRIP=$STRIP
11878elif test -n "$ac_cv_prog_STRIP"; then
11879 STRIP=$ac_cv_prog_STRIP
11880fi
11881
11882if test -n "$ac_cv_prog_STRIP"; then
11883 for ncn_progname in strip; do
11884 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11885set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11888if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11889 $as_echo_n "(cached) " >&6
278a7a38
AO
11890else
11891 if test -n "$STRIP"; then
11892 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11893else
11894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $PATH
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
5213506e 11899 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11901 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11903 break 2
11904 fi
11905done
5213506e
RW
11906 done
11907IFS=$as_save_IFS
278a7a38
AO
11908
11909fi
11910fi
11911STRIP=$ac_cv_prog_STRIP
11912if test -n "$STRIP"; then
5213506e
RW
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11914$as_echo "$STRIP" >&6; }
278a7a38 11915else
5213506e
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917$as_echo "no" >&6; }
278a7a38
AO
11918fi
11919
5213506e 11920
278a7a38
AO
11921 done
11922fi
11923
11924for ncn_progname in strip; do
2abefe3d
PB
11925 if test -n "$ncn_tool_prefix"; then
11926 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11927set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11930if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11931 $as_echo_n "(cached) " >&6
2abefe3d
PB
11932else
11933 if test -n "$STRIP"; then
11934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11935else
1c710c3c
DJ
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939 IFS=$as_save_IFS
11940 test -z "$as_dir" && as_dir=.
5213506e 11941 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11943 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11945 break 2
11946 fi
11947done
5213506e
RW
11948 done
11949IFS=$as_save_IFS
1c710c3c 11950
2abefe3d
PB
11951fi
11952fi
1c710c3c 11953STRIP=$ac_cv_prog_STRIP
2abefe3d 11954if test -n "$STRIP"; then
5213506e
RW
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11956$as_echo "$STRIP" >&6; }
2abefe3d 11957else
5213506e
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
2abefe3d
PB
11960fi
11961
5213506e 11962
2abefe3d
PB
11963 fi
11964 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11965 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11966set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11968$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11969if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11970 $as_echo_n "(cached) " >&6
2abefe3d
PB
11971else
11972 if test -n "$STRIP"; then
11973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11974else
1c710c3c
DJ
11975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976for as_dir in $PATH
11977do
11978 IFS=$as_save_IFS
11979 test -z "$as_dir" && as_dir=.
5213506e 11980 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11982 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11984 break 2
11985 fi
11986done
5213506e
RW
11987 done
11988IFS=$as_save_IFS
1c710c3c 11989
2abefe3d
PB
11990fi
11991fi
1c710c3c 11992STRIP=$ac_cv_prog_STRIP
2abefe3d 11993if test -n "$STRIP"; then
5213506e
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11995$as_echo "$STRIP" >&6; }
2abefe3d 11996else
5213506e
RW
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11998$as_echo "no" >&6; }
2abefe3d 11999fi
1c710c3c 12000
5213506e 12001
2abefe3d
PB
12002 fi
12003 test -n "$ac_cv_prog_STRIP" && break
12004done
12005
12006if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 12007 STRIP="true"
2abefe3d
PB
12008fi
12009
278a7a38
AO
12010
12011
12012if test -n "$WINDRES"; then
12013 ac_cv_prog_WINDRES=$WINDRES
12014elif test -n "$ac_cv_prog_WINDRES"; then
12015 WINDRES=$ac_cv_prog_WINDRES
12016fi
12017
12018if test -n "$ac_cv_prog_WINDRES"; then
12019 for ncn_progname in windres; do
12020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12021set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12023$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12024if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12025 $as_echo_n "(cached) " >&6
278a7a38
AO
12026else
12027 if test -n "$WINDRES"; then
12028 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12029else
12030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12031for as_dir in $PATH
12032do
12033 IFS=$as_save_IFS
12034 test -z "$as_dir" && as_dir=.
5213506e 12035 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12037 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12039 break 2
12040 fi
12041done
5213506e
RW
12042 done
12043IFS=$as_save_IFS
278a7a38
AO
12044
12045fi
12046fi
12047WINDRES=$ac_cv_prog_WINDRES
12048if test -n "$WINDRES"; then
5213506e
RW
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12050$as_echo "$WINDRES" >&6; }
278a7a38 12051else
5213506e
RW
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053$as_echo "no" >&6; }
278a7a38
AO
12054fi
12055
5213506e 12056
278a7a38
AO
12057 done
12058fi
12059
12060for ncn_progname in windres; do
2693c0b0
PB
12061 if test -n "$ncn_tool_prefix"; then
12062 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12063set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12066if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12067 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12068else
12069 if test -n "$WINDRES"; then
12070 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12071else
1c710c3c
DJ
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
5213506e 12077 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12079 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12081 break 2
12082 fi
12083done
5213506e
RW
12084 done
12085IFS=$as_save_IFS
1c710c3c 12086
ca9f4b81
AO
12087fi
12088fi
1c710c3c 12089WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12090if test -n "$WINDRES"; then
5213506e
RW
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12092$as_echo "$WINDRES" >&6; }
ca9f4b81 12093else
5213506e
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095$as_echo "no" >&6; }
ca9f4b81
AO
12096fi
12097
5213506e 12098
2693c0b0
PB
12099 fi
12100 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12102set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12104$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12105if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12106 $as_echo_n "(cached) " >&6
ca9f4b81 12107else
2693c0b0
PB
12108 if test -n "$WINDRES"; then
12109 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12110else
1c710c3c
DJ
12111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12112for as_dir in $PATH
12113do
12114 IFS=$as_save_IFS
12115 test -z "$as_dir" && as_dir=.
5213506e 12116 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12118 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12120 break 2
12121 fi
12122done
5213506e
RW
12123 done
12124IFS=$as_save_IFS
1c710c3c 12125
ca9f4b81
AO
12126fi
12127fi
1c710c3c 12128WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12129if test -n "$WINDRES"; then
5213506e
RW
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12131$as_echo "$WINDRES" >&6; }
ca9f4b81 12132else
5213506e
RW
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12134$as_echo "no" >&6; }
ca9f4b81 12135fi
1c710c3c 12136
5213506e 12137
2693c0b0
PB
12138 fi
12139 test -n "$ac_cv_prog_WINDRES" && break
12140done
12141
12142if test -z "$ac_cv_prog_WINDRES" ; then
12143 set dummy windres
12144 if test $build = $host ; then
12145 WINDRES="$2"
ca9f4b81 12146 else
2693c0b0 12147 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12148 fi
ca9f4b81
AO
12149fi
12150
278a7a38
AO
12151
12152
901119ae
KT
12153if test -n "$WINDMC"; then
12154 ac_cv_prog_WINDMC=$WINDMC
12155elif test -n "$ac_cv_prog_WINDMC"; then
12156 WINDMC=$ac_cv_prog_WINDMC
12157fi
12158
12159if test -n "$ac_cv_prog_WINDMC"; then
12160 for ncn_progname in windmc; do
12161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12162set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12164$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12165if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12166 $as_echo_n "(cached) " >&6
901119ae
KT
12167else
12168 if test -n "$WINDMC"; then
12169 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12170else
12171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172for as_dir in $PATH
12173do
12174 IFS=$as_save_IFS
12175 test -z "$as_dir" && as_dir=.
5213506e 12176 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12178 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12180 break 2
12181 fi
12182done
5213506e
RW
12183 done
12184IFS=$as_save_IFS
901119ae
KT
12185
12186fi
12187fi
12188WINDMC=$ac_cv_prog_WINDMC
12189if test -n "$WINDMC"; then
5213506e
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12191$as_echo "$WINDMC" >&6; }
901119ae 12192else
5213506e
RW
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12194$as_echo "no" >&6; }
901119ae
KT
12195fi
12196
5213506e 12197
901119ae
KT
12198 done
12199fi
12200
12201for ncn_progname in windmc; do
12202 if test -n "$ncn_tool_prefix"; then
12203 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12204set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12206$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12207if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12208 $as_echo_n "(cached) " >&6
901119ae
KT
12209else
12210 if test -n "$WINDMC"; then
12211 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12212else
12213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12214for as_dir in $PATH
12215do
12216 IFS=$as_save_IFS
12217 test -z "$as_dir" && as_dir=.
5213506e 12218 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12220 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12222 break 2
12223 fi
12224done
5213506e
RW
12225 done
12226IFS=$as_save_IFS
901119ae
KT
12227
12228fi
12229fi
12230WINDMC=$ac_cv_prog_WINDMC
12231if test -n "$WINDMC"; then
5213506e
RW
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12233$as_echo "$WINDMC" >&6; }
901119ae 12234else
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12236$as_echo "no" >&6; }
901119ae
KT
12237fi
12238
5213506e 12239
901119ae
KT
12240 fi
12241 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12243set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12246if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12247 $as_echo_n "(cached) " >&6
901119ae
KT
12248else
12249 if test -n "$WINDMC"; then
12250 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12251else
12252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $PATH
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
5213506e 12257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12259 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12261 break 2
12262 fi
12263done
5213506e
RW
12264 done
12265IFS=$as_save_IFS
901119ae
KT
12266
12267fi
12268fi
12269WINDMC=$ac_cv_prog_WINDMC
12270if test -n "$WINDMC"; then
5213506e
RW
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12272$as_echo "$WINDMC" >&6; }
901119ae 12273else
5213506e
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275$as_echo "no" >&6; }
901119ae
KT
12276fi
12277
5213506e 12278
901119ae
KT
12279 fi
12280 test -n "$ac_cv_prog_WINDMC" && break
12281done
12282
12283if test -z "$ac_cv_prog_WINDMC" ; then
12284 set dummy windmc
12285 if test $build = $host ; then
12286 WINDMC="$2"
12287 else
12288 WINDMC="${ncn_tool_prefix}$2"
12289 fi
12290fi
12291
12292
12293
278a7a38
AO
12294if test -n "$OBJCOPY"; then
12295 ac_cv_prog_OBJCOPY=$OBJCOPY
12296elif test -n "$ac_cv_prog_OBJCOPY"; then
12297 OBJCOPY=$ac_cv_prog_OBJCOPY
12298fi
12299
12300if test -n "$ac_cv_prog_OBJCOPY"; then
12301 for ncn_progname in objcopy; do
12302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12303set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12305$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12306if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12307 $as_echo_n "(cached) " >&6
278a7a38
AO
12308else
12309 if test -n "$OBJCOPY"; then
12310 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12311else
12312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313for as_dir in $PATH
12314do
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
5213506e 12317 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12319 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12321 break 2
12322 fi
12323done
5213506e
RW
12324 done
12325IFS=$as_save_IFS
278a7a38
AO
12326
12327fi
12328fi
12329OBJCOPY=$ac_cv_prog_OBJCOPY
12330if test -n "$OBJCOPY"; then
5213506e
RW
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12332$as_echo "$OBJCOPY" >&6; }
278a7a38 12333else
5213506e
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
278a7a38
AO
12336fi
12337
5213506e 12338
278a7a38
AO
12339 done
12340fi
12341
12342for ncn_progname in objcopy; do
2693c0b0
PB
12343 if test -n "$ncn_tool_prefix"; then
12344 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12345set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12348if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12349 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12350else
12351 if test -n "$OBJCOPY"; then
12352 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12353else
1c710c3c
DJ
12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $PATH
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
5213506e 12359 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12361 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12363 break 2
12364 fi
12365done
5213506e
RW
12366 done
12367IFS=$as_save_IFS
1c710c3c 12368
ca9f4b81
AO
12369fi
12370fi
1c710c3c 12371OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12372if test -n "$OBJCOPY"; then
5213506e
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12374$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12375else
5213506e
RW
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
ca9f4b81
AO
12378fi
12379
5213506e 12380
2693c0b0
PB
12381 fi
12382 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12384set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12387if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12388 $as_echo_n "(cached) " >&6
ca9f4b81 12389else
2693c0b0
PB
12390 if test -n "$OBJCOPY"; then
12391 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12392else
1c710c3c
DJ
12393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394for as_dir in $PATH
12395do
12396 IFS=$as_save_IFS
12397 test -z "$as_dir" && as_dir=.
5213506e 12398 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12400 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12402 break 2
12403 fi
12404done
5213506e
RW
12405 done
12406IFS=$as_save_IFS
1c710c3c 12407
ca9f4b81
AO
12408fi
12409fi
1c710c3c 12410OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12411if test -n "$OBJCOPY"; then
5213506e
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12413$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12414else
5213506e
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416$as_echo "no" >&6; }
ca9f4b81 12417fi
1c710c3c 12418
5213506e 12419
2693c0b0
PB
12420 fi
12421 test -n "$ac_cv_prog_OBJCOPY" && break
12422done
12423
12424if test -z "$ac_cv_prog_OBJCOPY" ; then
12425 set dummy objcopy
12426 if test $build = $host ; then
12427 OBJCOPY="$2"
ca9f4b81 12428 else
2693c0b0 12429 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12430 fi
ca9f4b81
AO
12431fi
12432
278a7a38
AO
12433
12434
12435if test -n "$OBJDUMP"; then
12436 ac_cv_prog_OBJDUMP=$OBJDUMP
12437elif test -n "$ac_cv_prog_OBJDUMP"; then
12438 OBJDUMP=$ac_cv_prog_OBJDUMP
12439fi
12440
12441if test -n "$ac_cv_prog_OBJDUMP"; then
12442 for ncn_progname in objdump; do
12443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12444set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12447if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12448 $as_echo_n "(cached) " >&6
278a7a38
AO
12449else
12450 if test -n "$OBJDUMP"; then
12451 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12452else
12453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454for as_dir in $PATH
12455do
12456 IFS=$as_save_IFS
12457 test -z "$as_dir" && as_dir=.
5213506e 12458 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12460 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12462 break 2
12463 fi
12464done
5213506e
RW
12465 done
12466IFS=$as_save_IFS
278a7a38
AO
12467
12468fi
12469fi
12470OBJDUMP=$ac_cv_prog_OBJDUMP
12471if test -n "$OBJDUMP"; then
5213506e
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12473$as_echo "$OBJDUMP" >&6; }
278a7a38 12474else
5213506e
RW
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476$as_echo "no" >&6; }
278a7a38
AO
12477fi
12478
5213506e 12479
278a7a38
AO
12480 done
12481fi
12482
12483for ncn_progname in objdump; do
2693c0b0
PB
12484 if test -n "$ncn_tool_prefix"; then
12485 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12486set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12488$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12489if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12490 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12491else
12492 if test -n "$OBJDUMP"; then
12493 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12494else
1c710c3c
DJ
12495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496for as_dir in $PATH
12497do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
5213506e 12500 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12502 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12504 break 2
12505 fi
12506done
5213506e
RW
12507 done
12508IFS=$as_save_IFS
1c710c3c 12509
ca9f4b81
AO
12510fi
12511fi
1c710c3c 12512OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12513if test -n "$OBJDUMP"; then
5213506e
RW
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12515$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12516else
5213506e
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518$as_echo "no" >&6; }
ca9f4b81
AO
12519fi
12520
5213506e 12521
2693c0b0
PB
12522 fi
12523 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12525set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12527$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12528if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12529 $as_echo_n "(cached) " >&6
ca9f4b81 12530else
2693c0b0
PB
12531 if test -n "$OBJDUMP"; then
12532 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12533else
1c710c3c
DJ
12534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12535for as_dir in $PATH
12536do
12537 IFS=$as_save_IFS
12538 test -z "$as_dir" && as_dir=.
5213506e 12539 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12541 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12543 break 2
12544 fi
12545done
5213506e
RW
12546 done
12547IFS=$as_save_IFS
1c710c3c 12548
ca9f4b81
AO
12549fi
12550fi
1c710c3c 12551OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12552if test -n "$OBJDUMP"; then
5213506e
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12554$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12555else
5213506e
RW
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12557$as_echo "no" >&6; }
ca9f4b81 12558fi
1c710c3c 12559
5213506e 12560
2693c0b0
PB
12561 fi
12562 test -n "$ac_cv_prog_OBJDUMP" && break
12563done
12564
12565if test -z "$ac_cv_prog_OBJDUMP" ; then
12566 set dummy objdump
12567 if test $build = $host ; then
12568 OBJDUMP="$2"
ca9f4b81 12569 else
2693c0b0 12570 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12571 fi
ca9f4b81
AO
12572fi
12573
671aa708
NN
12574
12575
e4a9a572
IS
12576if test -n "$OTOOL"; then
12577 ac_cv_prog_OTOOL=$OTOOL
12578elif test -n "$ac_cv_prog_OTOOL"; then
12579 OTOOL=$ac_cv_prog_OTOOL
12580fi
12581
12582if test -n "$ac_cv_prog_OTOOL"; then
12583 for ncn_progname in otool; do
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12585set dummy ${ncn_progname}; ac_word=$2
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
12588if ${ac_cv_prog_OTOOL+:} false; then :
12589 $as_echo_n "(cached) " >&6
12590else
12591 if test -n "$OTOOL"; then
12592 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12593else
12594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12601 ac_cv_prog_OTOOL="${ncn_progname}"
12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12603 break 2
12604 fi
12605done
12606 done
12607IFS=$as_save_IFS
12608
12609fi
12610fi
12611OTOOL=$ac_cv_prog_OTOOL
12612if test -n "$OTOOL"; then
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12614$as_echo "$OTOOL" >&6; }
12615else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
12618fi
12619
12620
12621 done
12622fi
12623
12624for ncn_progname in otool; do
12625 if test -n "$ncn_tool_prefix"; then
12626 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12627set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
12630if ${ac_cv_prog_OTOOL+:} false; then :
12631 $as_echo_n "(cached) " >&6
12632else
12633 if test -n "$OTOOL"; then
12634 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12646 fi
12647done
12648 done
12649IFS=$as_save_IFS
12650
12651fi
12652fi
12653OTOOL=$ac_cv_prog_OTOOL
12654if test -n "$OTOOL"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12656$as_echo "$OTOOL" >&6; }
12657else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
12660fi
12661
12662
12663 fi
12664 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12665 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12666set dummy ${ncn_progname}; ac_word=$2
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668$as_echo_n "checking for $ac_word... " >&6; }
12669if ${ac_cv_prog_OTOOL+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671else
12672 if test -n "$OTOOL"; then
12673 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12674else
12675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676for as_dir in $PATH
12677do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
12681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12682 ac_cv_prog_OTOOL="${ncn_progname}"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12685 fi
12686done
12687 done
12688IFS=$as_save_IFS
12689
12690fi
12691fi
12692OTOOL=$ac_cv_prog_OTOOL
12693if test -n "$OTOOL"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12695$as_echo "$OTOOL" >&6; }
12696else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698$as_echo "no" >&6; }
12699fi
12700
12701
12702 fi
12703 test -n "$ac_cv_prog_OTOOL" && break
12704done
12705
12706if test -z "$ac_cv_prog_OTOOL" ; then
12707 set dummy otool
12708 if test $build = $host ; then
12709 OTOOL="$2"
12710 else
12711 OTOOL="${ncn_tool_prefix}$2"
12712 fi
12713fi
12714
12715
12716
e7a82751
RM
12717if test -n "$READELF"; then
12718 ac_cv_prog_READELF=$READELF
12719elif test -n "$ac_cv_prog_READELF"; then
12720 READELF=$ac_cv_prog_READELF
12721fi
12722
12723if test -n "$ac_cv_prog_READELF"; then
12724 for ncn_progname in readelf; do
12725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12726set dummy ${ncn_progname}; ac_word=$2
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12729if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12730 $as_echo_n "(cached) " >&6
12731else
12732 if test -n "$READELF"; then
12733 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12734else
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
12740 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12742 ac_cv_prog_READELF="${ncn_progname}"
12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12744 break 2
12745 fi
12746done
12747 done
12748IFS=$as_save_IFS
12749
12750fi
12751fi
12752READELF=$ac_cv_prog_READELF
12753if test -n "$READELF"; then
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12755$as_echo "$READELF" >&6; }
12756else
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
12759fi
12760
12761
12762 done
12763fi
12764
12765for ncn_progname in readelf; do
12766 if test -n "$ncn_tool_prefix"; then
12767 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12768set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12771if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12772 $as_echo_n "(cached) " >&6
12773else
12774 if test -n "$READELF"; then
12775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12784 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789 done
12790IFS=$as_save_IFS
12791
12792fi
12793fi
12794READELF=$ac_cv_prog_READELF
12795if test -n "$READELF"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12797$as_echo "$READELF" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802
12803
12804 fi
12805 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12807set dummy ${ncn_progname}; ac_word=$2
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12810if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12811 $as_echo_n "(cached) " >&6
12812else
12813 if test -n "$READELF"; then
12814 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12815else
12816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $PATH
12818do
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
12821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12823 ac_cv_prog_READELF="${ncn_progname}"
12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12825 break 2
12826 fi
12827done
12828 done
12829IFS=$as_save_IFS
12830
12831fi
12832fi
12833READELF=$ac_cv_prog_READELF
12834if test -n "$READELF"; then
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12836$as_echo "$READELF" >&6; }
12837else
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12839$as_echo "no" >&6; }
12840fi
12841
12842
12843 fi
12844 test -n "$ac_cv_prog_READELF" && break
12845done
12846
12847if test -z "$ac_cv_prog_READELF" ; then
12848 set dummy readelf
12849 if test $build = $host ; then
12850 READELF="$2"
12851 else
12852 READELF="${ncn_tool_prefix}$2"
12853 fi
12854fi
12855
12856
12857
671aa708
NN
12858
12859
12860
5fee5ec3
IB
12861
12862
2abefe3d 12863# Target tools.
1c710c3c 12864
5213506e
RW
12865# Check whether --with-build-time-tools was given.
12866if test "${with_build_time_tools+set}" = set; then :
12867 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12868 x/*) ;;
12869 *)
12870 with_build_time_tools=
5213506e
RW
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12872$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12873 ;;
12874 esac
ca9f4b81 12875else
e8b05380 12876 with_build_time_tools=
5213506e
RW
12877fi
12878
ca9f4b81 12879
278a7a38
AO
12880
12881
12882if test -n "$CC_FOR_TARGET"; then
12883 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12884elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12885 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12886fi
12887
12888if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12889 for ncn_progname in cc gcc; do
12890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12891set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12893$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12894if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12895 $as_echo_n "(cached) " >&6
278a7a38
AO
12896else
12897 if test -n "$CC_FOR_TARGET"; then
12898 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12899else
12900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901for as_dir in $PATH
12902do
12903 IFS=$as_save_IFS
12904 test -z "$as_dir" && as_dir=.
5213506e 12905 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12907 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12909 break 2
12910 fi
12911done
5213506e
RW
12912 done
12913IFS=$as_save_IFS
278a7a38
AO
12914
12915fi
12916fi
12917CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12918if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12920$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12921else
5213506e
RW
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923$as_echo "no" >&6; }
278a7a38
AO
12924fi
12925
5213506e 12926
278a7a38
AO
12927 done
12928fi
12929
12930if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12931 for ncn_progname in cc gcc; do
5213506e
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12933$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12934 if test -x $with_build_time_tools/${ncn_progname}; then
12935 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12937$as_echo "yes" >&6; }
72a7ab82 12938 break
e8b05380 12939 else
5213506e
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
72a7ab82
AP
12942 fi
12943 done
4de997d1
PB
12944fi
12945
e8b05380
PB
12946if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12947 for ncn_progname in cc gcc; do
12948 if test -n "$ncn_target_tool_prefix"; then
12949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12950set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12953if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12954 $as_echo_n "(cached) " >&6
4de997d1
PB
12955else
12956 if test -n "$CC_FOR_TARGET"; then
12957 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12958else
1c710c3c
DJ
12959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
5213506e 12964 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12966 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12968 break 2
12969 fi
12970done
5213506e
RW
12971 done
12972IFS=$as_save_IFS
1c710c3c 12973
4de997d1
PB
12974fi
12975fi
1c710c3c 12976CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12977if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12979$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12980else
5213506e
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
4de997d1
PB
12983fi
12984
5213506e 12985
e8b05380
PB
12986 fi
12987 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12989set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12991$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12992if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12993 $as_echo_n "(cached) " >&6
4de997d1 12994else
2693c0b0
PB
12995 if test -n "$CC_FOR_TARGET"; then
12996 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12997else
1c710c3c
DJ
12998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12999for as_dir in $PATH
13000do
13001 IFS=$as_save_IFS
13002 test -z "$as_dir" && as_dir=.
5213506e 13003 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13005 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 13006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13007 break 2
13008 fi
13009done
5213506e
RW
13010 done
13011IFS=$as_save_IFS
1c710c3c 13012
4de997d1
PB
13013fi
13014fi
1c710c3c 13015CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13016if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13018$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13019else
5213506e
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021$as_echo "no" >&6; }
4de997d1 13022fi
1c710c3c 13023
5213506e 13024
e8b05380
PB
13025 fi
13026 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13027 done
13028fi
1c710c3c 13029
2693c0b0
PB
13030if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13031 set dummy cc gcc
13032 if test $build = $target ; then
13033 CC_FOR_TARGET="$2"
4de997d1 13034 else
2693c0b0 13035 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13036 fi
1c00b503
PB
13037else
13038 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13039fi
13040
278a7a38
AO
13041
13042
13043if test -n "$CXX_FOR_TARGET"; then
13044 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13045elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13046 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13047fi
13048
13049if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13050 for ncn_progname in c++ g++ cxx gxx; do
13051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13052set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13055if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13056 $as_echo_n "(cached) " >&6
278a7a38
AO
13057else
13058 if test -n "$CXX_FOR_TARGET"; then
13059 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13060else
13061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13062for as_dir in $PATH
13063do
13064 IFS=$as_save_IFS
13065 test -z "$as_dir" && as_dir=.
5213506e 13066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13068 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13070 break 2
13071 fi
13072done
5213506e
RW
13073 done
13074IFS=$as_save_IFS
278a7a38
AO
13075
13076fi
13077fi
13078CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13079if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13081$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13082else
5213506e
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13084$as_echo "no" >&6; }
278a7a38
AO
13085fi
13086
5213506e 13087
278a7a38
AO
13088 done
13089fi
13090
13091if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13092 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13094$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13095 if test -x $with_build_time_tools/${ncn_progname}; then
13096 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098$as_echo "yes" >&6; }
e8b05380
PB
13099 break
13100 else
5213506e
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102$as_echo "no" >&6; }
e8b05380
PB
13103 fi
13104 done
13105fi
13106
13107if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13108 for ncn_progname in c++ g++ cxx gxx; do
13109 if test -n "$ncn_target_tool_prefix"; then
13110 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13111set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13113$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13114if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13115 $as_echo_n "(cached) " >&6
4de997d1
PB
13116else
13117 if test -n "$CXX_FOR_TARGET"; then
13118 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13119else
1c710c3c
DJ
13120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121for as_dir in $PATH
13122do
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
5213506e 13125 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13127 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13129 break 2
13130 fi
13131done
5213506e
RW
13132 done
13133IFS=$as_save_IFS
1c710c3c 13134
4de997d1
PB
13135fi
13136fi
1c710c3c 13137CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13138if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13140$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13141else
5213506e
RW
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13143$as_echo "no" >&6; }
4de997d1
PB
13144fi
13145
5213506e 13146
e8b05380
PB
13147 fi
13148 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13150set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13153if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13154 $as_echo_n "(cached) " >&6
4de997d1 13155else
2693c0b0
PB
13156 if test -n "$CXX_FOR_TARGET"; then
13157 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13158else
1c710c3c
DJ
13159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160for as_dir in $PATH
13161do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
5213506e 13164 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13166 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13168 break 2
13169 fi
13170done
5213506e
RW
13171 done
13172IFS=$as_save_IFS
1c710c3c 13173
4de997d1
PB
13174fi
13175fi
1c710c3c 13176CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13177if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13179$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13180else
5213506e
RW
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182$as_echo "no" >&6; }
4de997d1 13183fi
1c710c3c 13184
5213506e 13185
e8b05380
PB
13186 fi
13187 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13188 done
13189fi
1c710c3c 13190
2693c0b0
PB
13191if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13192 set dummy c++ g++ cxx gxx
13193 if test $build = $target ; then
13194 CXX_FOR_TARGET="$2"
4de997d1 13195 else
2693c0b0 13196 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13197 fi
1c00b503
PB
13198else
13199 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13200fi
13201
278a7a38
AO
13202
13203
13204if test -n "$GCC_FOR_TARGET"; then
13205 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13206elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13207 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13208fi
13209
13210if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13211 for ncn_progname in gcc; do
13212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13213set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13216if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13217 $as_echo_n "(cached) " >&6
278a7a38
AO
13218else
13219 if test -n "$GCC_FOR_TARGET"; then
13220 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13221else
13222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225 IFS=$as_save_IFS
13226 test -z "$as_dir" && as_dir=.
5213506e 13227 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13229 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13231 break 2
13232 fi
13233done
5213506e
RW
13234 done
13235IFS=$as_save_IFS
278a7a38
AO
13236
13237fi
13238fi
13239GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13240if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13242$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13243else
5213506e
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245$as_echo "no" >&6; }
278a7a38
AO
13246fi
13247
5213506e 13248
278a7a38
AO
13249 done
13250fi
13251
13252if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13253 for ncn_progname in gcc; do
5213506e
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13255$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13256 if test -x $with_build_time_tools/${ncn_progname}; then
13257 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259$as_echo "yes" >&6; }
e8b05380
PB
13260 break
13261 else
5213506e
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263$as_echo "no" >&6; }
e8b05380
PB
13264 fi
13265 done
13266fi
13267
13268if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13269 for ncn_progname in gcc; do
13270 if test -n "$ncn_target_tool_prefix"; then
13271 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13272set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13275if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13276 $as_echo_n "(cached) " >&6
ca9f4b81 13277else
e8b05380
PB
13278 if test -n "$GCC_FOR_TARGET"; then
13279 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13280else
1c710c3c
DJ
13281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
5213506e 13286 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13288 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13290 break 2
13291 fi
13292done
5213506e
RW
13293 done
13294IFS=$as_save_IFS
1c710c3c 13295
ca9f4b81
AO
13296fi
13297fi
1c710c3c 13298GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13299if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13301$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13302else
5213506e
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
ca9f4b81
AO
13305fi
13306
5213506e 13307
e8b05380
PB
13308 fi
13309 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13311set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13314if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13315 $as_echo_n "(cached) " >&6
ca9f4b81 13316else
e8b05380
PB
13317 if test -n "$GCC_FOR_TARGET"; then
13318 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13319else
1c710c3c
DJ
13320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH
13322do
13323 IFS=$as_save_IFS
13324 test -z "$as_dir" && as_dir=.
5213506e 13325 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13327 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13329 break 2
13330 fi
13331done
5213506e
RW
13332 done
13333IFS=$as_save_IFS
1c710c3c 13334
ca9f4b81
AO
13335fi
13336fi
1c710c3c 13337GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13338if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13340$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13341else
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
ca9f4b81 13344fi
1c710c3c 13345
5213506e 13346
e8b05380
PB
13347 fi
13348 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13349 done
13350fi
1c710c3c 13351
e8b05380
PB
13352if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13353 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13354else
13355 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13356fi
13357
278a7a38
AO
13358
13359
278a7a38
AO
13360if test -n "$GFORTRAN_FOR_TARGET"; then
13361 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13362elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13363 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13364fi
13365
278a7a38
AO
13366if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13367 for ncn_progname in gfortran; do
13368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13369set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13372if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13373 $as_echo_n "(cached) " >&6
e8b05380 13374else
278a7a38
AO
13375 if test -n "$GFORTRAN_FOR_TARGET"; then
13376 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13377else
1c710c3c
DJ
13378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379for as_dir in $PATH
13380do
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
5213506e 13383 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13385 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13387 break 2
13388 fi
13389done
5213506e
RW
13390 done
13391IFS=$as_save_IFS
1c710c3c 13392
e8b05380
PB
13393fi
13394fi
278a7a38
AO
13395GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13396if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13398$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13399else
5213506e
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401$as_echo "no" >&6; }
e8b05380 13402fi
1c710c3c 13403
5213506e 13404
e8b05380
PB
13405 done
13406fi
1c710c3c 13407
278a7a38 13408if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13409 for ncn_progname in gfortran; do
5213506e
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13411$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13412 if test -x $with_build_time_tools/${ncn_progname}; then
13413 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415$as_echo "yes" >&6; }
e8b05380
PB
13416 break
13417 else
5213506e
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13419$as_echo "no" >&6; }
e8b05380
PB
13420 fi
13421 done
13422fi
13423
13424if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13425 for ncn_progname in gfortran; do
13426 if test -n "$ncn_target_tool_prefix"; then
13427 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13428set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13430$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13431if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13432 $as_echo_n "(cached) " >&6
e8b05380
PB
13433else
13434 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13435 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13436else
13437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13438for as_dir in $PATH
13439do
13440 IFS=$as_save_IFS
13441 test -z "$as_dir" && as_dir=.
5213506e 13442 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13444 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13446 break 2
13447 fi
13448done
5213506e
RW
13449 done
13450IFS=$as_save_IFS
1c710c3c 13451
e8b05380
PB
13452fi
13453fi
1c710c3c 13454GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13455if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13457$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13458else
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13460$as_echo "no" >&6; }
e8b05380
PB
13461fi
13462
5213506e 13463
e8b05380
PB
13464 fi
13465 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13467set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13469$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13470if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13471 $as_echo_n "(cached) " >&6
e8b05380
PB
13472else
13473 if test -n "$GFORTRAN_FOR_TARGET"; then
13474 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13475else
1c710c3c
DJ
13476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13477for as_dir in $PATH
13478do
13479 IFS=$as_save_IFS
13480 test -z "$as_dir" && as_dir=.
5213506e 13481 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13483 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13485 break 2
13486 fi
13487done
5213506e
RW
13488 done
13489IFS=$as_save_IFS
1c710c3c 13490
e8b05380
PB
13491fi
13492fi
1c710c3c 13493GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13494if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13496$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13497else
5213506e
RW
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499$as_echo "no" >&6; }
e8b05380 13500fi
1c710c3c 13501
5213506e 13502
e8b05380
PB
13503 fi
13504 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13505 done
13506fi
1c710c3c 13507
e8b05380
PB
13508if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13509 set dummy gfortran
2693c0b0 13510 if test $build = $target ; then
e8b05380 13511 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13512 else
e8b05380
PB
13513 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13514 fi
1c00b503
PB
13515else
13516 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13517fi
13518
13519
13520
632e2a07
ILT
13521if test -n "$GOC_FOR_TARGET"; then
13522 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13523elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13524 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13525fi
13526
13527if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13528 for ncn_progname in gccgo; do
13529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13530set dummy ${ncn_progname}; ac_word=$2
13531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13532$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13533if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13534 $as_echo_n "(cached) " >&6
13535else
13536 if test -n "$GOC_FOR_TARGET"; then
13537 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13538else
13539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13540for as_dir in $PATH
13541do
13542 IFS=$as_save_IFS
13543 test -z "$as_dir" && as_dir=.
13544 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13546 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13548 break 2
13549 fi
13550done
13551 done
13552IFS=$as_save_IFS
13553
13554fi
13555fi
13556GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13557if test -n "$GOC_FOR_TARGET"; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13559$as_echo "$GOC_FOR_TARGET" >&6; }
13560else
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13562$as_echo "no" >&6; }
13563fi
13564
13565
13566 done
13567fi
13568
13569if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13570 for ncn_progname in gccgo; do
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13572$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13573 if test -x $with_build_time_tools/${ncn_progname}; then
13574 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13576$as_echo "yes" >&6; }
13577 break
13578 else
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13580$as_echo "no" >&6; }
13581 fi
13582 done
13583fi
13584
13585if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13586 for ncn_progname in gccgo; do
13587 if test -n "$ncn_target_tool_prefix"; then
13588 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13589set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13591$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13592if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13593 $as_echo_n "(cached) " >&6
13594else
13595 if test -n "$GOC_FOR_TARGET"; then
13596 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13597else
13598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13599for as_dir in $PATH
13600do
13601 IFS=$as_save_IFS
13602 test -z "$as_dir" && as_dir=.
13603 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13605 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13607 break 2
13608 fi
13609done
13610 done
13611IFS=$as_save_IFS
13612
13613fi
13614fi
13615GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13616if test -n "$GOC_FOR_TARGET"; then
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13618$as_echo "$GOC_FOR_TARGET" >&6; }
13619else
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13621$as_echo "no" >&6; }
13622fi
13623
13624
13625 fi
13626 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13628set dummy ${ncn_progname}; ac_word=$2
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13631if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13632 $as_echo_n "(cached) " >&6
13633else
13634 if test -n "$GOC_FOR_TARGET"; then
13635 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13636else
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13644 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13647 fi
13648done
13649 done
13650IFS=$as_save_IFS
13651
13652fi
13653fi
13654GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13655if test -n "$GOC_FOR_TARGET"; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13657$as_echo "$GOC_FOR_TARGET" >&6; }
13658else
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660$as_echo "no" >&6; }
13661fi
13662
13663
13664 fi
13665 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13666 done
13667fi
13668
13669if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13670 set dummy gccgo
13671 if test $build = $target ; then
13672 GOC_FOR_TARGET="$2"
13673 else
13674 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13675 fi
13676else
13677 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13678fi
13679
13680
13681
b4c522fa
IB
13682if test -n "$GDC_FOR_TARGET"; then
13683 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13684elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13685 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13686fi
13687
13688if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13689 for ncn_progname in gdc; do
13690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13691set dummy ${ncn_progname}; ac_word=$2
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13693$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13694if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13695 $as_echo_n "(cached) " >&6
13696else
13697 if test -n "$GDC_FOR_TARGET"; then
13698 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13699else
13700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701for as_dir in $PATH
13702do
13703 IFS=$as_save_IFS
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13707 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13709 break 2
13710 fi
13711done
13712 done
13713IFS=$as_save_IFS
13714
13715fi
13716fi
13717GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13718if test -n "$GDC_FOR_TARGET"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13720$as_echo "$GDC_FOR_TARGET" >&6; }
13721else
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13723$as_echo "no" >&6; }
13724fi
13725
13726
13727 done
13728fi
13729
13730if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13731 for ncn_progname in gdc; do
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13733$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13734 if test -x $with_build_time_tools/${ncn_progname}; then
13735 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13737$as_echo "yes" >&6; }
13738 break
13739 else
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13741$as_echo "no" >&6; }
13742 fi
13743 done
13744fi
13745
13746if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13747 for ncn_progname in gdc; do
13748 if test -n "$ncn_target_tool_prefix"; then
13749 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13750set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13753if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13754 $as_echo_n "(cached) " >&6
13755else
13756 if test -n "$GDC_FOR_TARGET"; then
13757 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13758else
13759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760for as_dir in $PATH
13761do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13766 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13769 fi
13770done
13771 done
13772IFS=$as_save_IFS
13773
13774fi
13775fi
13776GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13777if test -n "$GDC_FOR_TARGET"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13779$as_echo "$GDC_FOR_TARGET" >&6; }
13780else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
13783fi
13784
13785
13786 fi
13787 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13789set dummy ${ncn_progname}; ac_word=$2
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13792if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13793 $as_echo_n "(cached) " >&6
13794else
13795 if test -n "$GDC_FOR_TARGET"; then
13796 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13797else
13798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799for as_dir in $PATH
13800do
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13805 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13808 fi
13809done
13810 done
13811IFS=$as_save_IFS
13812
13813fi
13814fi
13815GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13816if test -n "$GDC_FOR_TARGET"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13818$as_echo "$GDC_FOR_TARGET" >&6; }
13819else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821$as_echo "no" >&6; }
13822fi
13823
13824
13825 fi
13826 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13827 done
13828fi
13829
13830if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13831 set dummy gdc
13832 if test $build = $target ; then
13833 GDC_FOR_TARGET="$2"
13834 else
13835 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13836 fi
13837else
13838 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13839fi
13840
13841
13842
e8b05380
PB
13843cat > conftest.c << \EOF
13844#ifdef __GNUC__
13845 gcc_yay;
13846#endif
13847EOF
13848if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13849 have_gcc_for_target=yes
13850else
13851 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13852 have_gcc_for_target=no
13853fi
13854rm conftest.c
13855
13856
13857
13858
13859if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13860 if test -n "$with_build_time_tools"; then
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13862$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13863 if test -x $with_build_time_tools/ar; then
13864 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13865 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13867$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13868 else
5213506e
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13870$as_echo "no" >&6; }
d1f8db0c 13871 fi
e8b05380
PB
13872 elif test $build != $host && test $have_gcc_for_target = yes; then
13873 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13874 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13875 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13876 fi
13877fi
3e19841a 13878if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13879 # Extract the first word of "ar", so it can be a program name with args.
13880set dummy ar; ac_word=$2
5213506e
RW
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13882$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13883if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13884 $as_echo_n "(cached) " >&6
e8b05380 13885else
1c710c3c
DJ
13886 case $AR_FOR_TARGET in
13887 [\\/]* | ?:[\\/]*)
e8b05380
PB
13888 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13889 ;;
e8b05380 13890 *)
1c710c3c
DJ
13891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13892for as_dir in $gcc_cv_tool_dirs
13893do
13894 IFS=$as_save_IFS
13895 test -z "$as_dir" && as_dir=.
5213506e 13896 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13898 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13900 break 2
13901 fi
13902done
5213506e
RW
13903 done
13904IFS=$as_save_IFS
1c710c3c 13905
e8b05380
PB
13906 ;;
13907esac
13908fi
1c710c3c 13909AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13910if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13912$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13913else
5213506e
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915$as_echo "no" >&6; }
4de997d1
PB
13916fi
13917
5213506e 13918
e8b05380
PB
13919fi
13920if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13921
13922
13923if test -n "$AR_FOR_TARGET"; then
13924 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13925elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13926 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13927fi
13928
13929if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13930 for ncn_progname in ar; do
13931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13932set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13934$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13935if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13936 $as_echo_n "(cached) " >&6
278a7a38
AO
13937else
13938 if test -n "$AR_FOR_TARGET"; then
13939 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13940else
13941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13942for as_dir in $PATH
13943do
13944 IFS=$as_save_IFS
13945 test -z "$as_dir" && as_dir=.
5213506e 13946 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13948 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13950 break 2
13951 fi
13952done
5213506e
RW
13953 done
13954IFS=$as_save_IFS
278a7a38
AO
13955
13956fi
13957fi
13958AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13959if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13961$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13962else
5213506e
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13964$as_echo "no" >&6; }
278a7a38
AO
13965fi
13966
5213506e 13967
278a7a38
AO
13968 done
13969fi
13970
13971if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13972 for ncn_progname in ar; do
5213506e
RW
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13974$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13975 if test -x $with_build_time_tools/${ncn_progname}; then
13976 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13978$as_echo "yes" >&6; }
e8b05380
PB
13979 break
13980 else
5213506e
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982$as_echo "no" >&6; }
e8b05380
PB
13983 fi
13984 done
13985fi
13986
13987if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13988 for ncn_progname in ar; do
13989 if test -n "$ncn_target_tool_prefix"; then
13990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13991set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13994if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13995 $as_echo_n "(cached) " >&6
4de997d1 13996else
e8b05380
PB
13997 if test -n "$AR_FOR_TARGET"; then
13998 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13999else
1c710c3c
DJ
14000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001for as_dir in $PATH
14002do
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
5213506e 14005 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14007 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14009 break 2
14010 fi
14011done
5213506e
RW
14012 done
14013IFS=$as_save_IFS
1c710c3c 14014
4de997d1
PB
14015fi
14016fi
1c710c3c 14017AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14018if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14020$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14021else
5213506e
RW
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14023$as_echo "no" >&6; }
4de997d1
PB
14024fi
14025
5213506e 14026
e8b05380
PB
14027 fi
14028 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14030set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14033if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14034 $as_echo_n "(cached) " >&6
e8b05380
PB
14035else
14036 if test -n "$AR_FOR_TARGET"; then
14037 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14038else
1c710c3c
DJ
14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040for as_dir in $PATH
14041do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
5213506e 14044 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14046 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14048 break 2
14049 fi
14050done
5213506e
RW
14051 done
14052IFS=$as_save_IFS
1c710c3c 14053
e8b05380
PB
14054fi
14055fi
1c710c3c 14056AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14057if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14059$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14060else
5213506e
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
e8b05380 14063fi
1c710c3c 14064
5213506e 14065
e8b05380
PB
14066 fi
14067 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14068 done
14069fi
1c710c3c 14070
e8b05380
PB
14071if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14072 set dummy ar
14073 if test $build = $target ; then
14074 AR_FOR_TARGET="$2"
14075 else
14076 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14077 fi
1c00b503
PB
14078else
14079 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14080fi
14081
d1f8db0c
PB
14082else
14083 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14084fi
14085
14086
14087
14088
14089if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14090 if test -n "$with_build_time_tools"; then
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14092$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14093 if test -x $with_build_time_tools/as; then
14094 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14095 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14097$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14098 else
5213506e
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
d1f8db0c 14101 fi
e8b05380
PB
14102 elif test $build != $host && test $have_gcc_for_target = yes; then
14103 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14104 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14105 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14106 fi
14107fi
3e19841a 14108if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14109 # Extract the first word of "as", so it can be a program name with args.
14110set dummy as; ac_word=$2
5213506e
RW
14111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14112$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14113if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14114 $as_echo_n "(cached) " >&6
e8b05380 14115else
1c710c3c
DJ
14116 case $AS_FOR_TARGET in
14117 [\\/]* | ?:[\\/]*)
e8b05380
PB
14118 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14119 ;;
e8b05380 14120 *)
1c710c3c
DJ
14121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14122for as_dir in $gcc_cv_tool_dirs
14123do
14124 IFS=$as_save_IFS
14125 test -z "$as_dir" && as_dir=.
5213506e 14126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14128 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14130 break 2
14131 fi
14132done
5213506e
RW
14133 done
14134IFS=$as_save_IFS
1c710c3c 14135
e8b05380
PB
14136 ;;
14137esac
14138fi
1c710c3c 14139AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14140if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14142$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14143else
5213506e
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14145$as_echo "no" >&6; }
e8b05380
PB
14146fi
14147
5213506e 14148
e8b05380
PB
14149fi
14150if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14151
14152
14153if test -n "$AS_FOR_TARGET"; then
14154 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14155elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14156 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14157fi
14158
14159if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14160 for ncn_progname in as; do
14161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14162set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14164$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14165if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14166 $as_echo_n "(cached) " >&6
278a7a38
AO
14167else
14168 if test -n "$AS_FOR_TARGET"; then
14169 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14170else
14171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172for as_dir in $PATH
14173do
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
5213506e 14176 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14178 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14180 break 2
14181 fi
14182done
5213506e
RW
14183 done
14184IFS=$as_save_IFS
278a7a38
AO
14185
14186fi
14187fi
14188AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14189if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14191$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14192else
5213506e
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194$as_echo "no" >&6; }
278a7a38
AO
14195fi
14196
5213506e 14197
278a7a38
AO
14198 done
14199fi
14200
14201if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14202 for ncn_progname in as; do
5213506e
RW
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14204$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14205 if test -x $with_build_time_tools/${ncn_progname}; then
14206 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14208$as_echo "yes" >&6; }
e8b05380
PB
14209 break
14210 else
5213506e
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14212$as_echo "no" >&6; }
e8b05380
PB
14213 fi
14214 done
14215fi
14216
14217if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14218 for ncn_progname in as; do
14219 if test -n "$ncn_target_tool_prefix"; then
14220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14221set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14224if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14225 $as_echo_n "(cached) " >&6
e8b05380
PB
14226else
14227 if test -n "$AS_FOR_TARGET"; then
14228 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14229else
1c710c3c
DJ
14230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231for as_dir in $PATH
14232do
14233 IFS=$as_save_IFS
14234 test -z "$as_dir" && as_dir=.
5213506e 14235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14237 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14239 break 2
14240 fi
14241done
5213506e
RW
14242 done
14243IFS=$as_save_IFS
1c710c3c 14244
e8b05380
PB
14245fi
14246fi
1c710c3c 14247AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14248if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14250$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14251else
5213506e
RW
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14253$as_echo "no" >&6; }
e8b05380
PB
14254fi
14255
5213506e 14256
e8b05380
PB
14257 fi
14258 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14260set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14262$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14263if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14264 $as_echo_n "(cached) " >&6
4de997d1 14265else
e8b05380
PB
14266 if test -n "$AS_FOR_TARGET"; then
14267 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14268else
1c710c3c
DJ
14269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270for as_dir in $PATH
14271do
14272 IFS=$as_save_IFS
14273 test -z "$as_dir" && as_dir=.
5213506e 14274 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14276 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14278 break 2
14279 fi
14280done
5213506e
RW
14281 done
14282IFS=$as_save_IFS
1c710c3c 14283
4de997d1
PB
14284fi
14285fi
1c710c3c 14286AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14287if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14289$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14290else
5213506e
RW
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14292$as_echo "no" >&6; }
4de997d1 14293fi
1c710c3c 14294
5213506e 14295
e8b05380
PB
14296 fi
14297 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14298 done
14299fi
1c710c3c 14300
e8b05380
PB
14301if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14302 set dummy as
14303 if test $build = $target ; then
14304 AS_FOR_TARGET="$2"
14305 else
14306 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14307 fi
1c00b503
PB
14308else
14309 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14310fi
2693c0b0 14311
d1f8db0c
PB
14312else
14313 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14314fi
14315
e8b05380
PB
14316
14317
14318
14319if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14320 if test -n "$with_build_time_tools"; then
5213506e
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14322$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14323 if test -x $with_build_time_tools/dlltool; then
14324 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14325 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14327$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14328 else
5213506e
RW
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330$as_echo "no" >&6; }
d1f8db0c 14331 fi
e8b05380
PB
14332 elif test $build != $host && test $have_gcc_for_target = yes; then
14333 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14334 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14335 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14336 fi
14337fi
3e19841a 14338if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14339 # Extract the first word of "dlltool", so it can be a program name with args.
14340set dummy dlltool; ac_word=$2
5213506e
RW
14341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14343if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14344 $as_echo_n "(cached) " >&6
4de997d1 14345else
1c710c3c
DJ
14346 case $DLLTOOL_FOR_TARGET in
14347 [\\/]* | ?:[\\/]*)
e8b05380
PB
14348 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14349 ;;
e8b05380 14350 *)
1c710c3c
DJ
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352for as_dir in $gcc_cv_tool_dirs
14353do
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
5213506e 14356 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14358 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14360 break 2
14361 fi
14362done
5213506e
RW
14363 done
14364IFS=$as_save_IFS
1c710c3c 14365
e8b05380
PB
14366 ;;
14367esac
4de997d1 14368fi
1c710c3c 14369DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14370if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14372$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14373else
5213506e
RW
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375$as_echo "no" >&6; }
4de997d1
PB
14376fi
14377
5213506e 14378
e8b05380
PB
14379fi
14380if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14381
14382
14383if test -n "$DLLTOOL_FOR_TARGET"; then
14384 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14385elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14386 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14387fi
14388
14389if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14390 for ncn_progname in dlltool; do
14391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14392set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14395if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14396 $as_echo_n "(cached) " >&6
278a7a38
AO
14397else
14398 if test -n "$DLLTOOL_FOR_TARGET"; then
14399 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14400else
14401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14402for as_dir in $PATH
14403do
14404 IFS=$as_save_IFS
14405 test -z "$as_dir" && as_dir=.
5213506e 14406 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14408 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14410 break 2
14411 fi
14412done
5213506e
RW
14413 done
14414IFS=$as_save_IFS
278a7a38
AO
14415
14416fi
14417fi
14418DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14419if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14421$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14422else
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14424$as_echo "no" >&6; }
278a7a38
AO
14425fi
14426
5213506e 14427
278a7a38
AO
14428 done
14429fi
14430
14431if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14432 for ncn_progname in dlltool; do
5213506e
RW
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14435 if test -x $with_build_time_tools/${ncn_progname}; then
14436 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14438$as_echo "yes" >&6; }
e8b05380
PB
14439 break
14440 else
5213506e
RW
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442$as_echo "no" >&6; }
e8b05380
PB
14443 fi
14444 done
14445fi
14446
14447if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14448 for ncn_progname in dlltool; do
14449 if test -n "$ncn_target_tool_prefix"; then
14450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14453$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14454if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14455 $as_echo_n "(cached) " >&6
4de997d1 14456else
e8b05380
PB
14457 if test -n "$DLLTOOL_FOR_TARGET"; then
14458 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14459else
1c710c3c
DJ
14460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461for as_dir in $PATH
14462do
14463 IFS=$as_save_IFS
14464 test -z "$as_dir" && as_dir=.
5213506e 14465 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14467 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14469 break 2
14470 fi
14471done
5213506e
RW
14472 done
14473IFS=$as_save_IFS
1c710c3c 14474
4de997d1
PB
14475fi
14476fi
1c710c3c 14477DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14478if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14480$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14481else
5213506e
RW
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483$as_echo "no" >&6; }
4de997d1 14484fi
4de997d1 14485
5213506e 14486
e8b05380
PB
14487 fi
14488 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14490set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14492$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14493if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14494 $as_echo_n "(cached) " >&6
4de997d1 14495else
e8b05380
PB
14496 if test -n "$DLLTOOL_FOR_TARGET"; then
14497 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14498else
1c710c3c
DJ
14499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14500for as_dir in $PATH
14501do
14502 IFS=$as_save_IFS
14503 test -z "$as_dir" && as_dir=.
5213506e 14504 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14506 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14508 break 2
14509 fi
14510done
5213506e
RW
14511 done
14512IFS=$as_save_IFS
1c710c3c 14513
4de997d1
PB
14514fi
14515fi
1c710c3c 14516DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14517if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14519$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14520else
5213506e
RW
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522$as_echo "no" >&6; }
4de997d1 14523fi
1c710c3c 14524
5213506e 14525
e8b05380
PB
14526 fi
14527 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14528 done
14529fi
1c710c3c 14530
e8b05380
PB
14531if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14532 set dummy dlltool
14533 if test $build = $target ; then
14534 DLLTOOL_FOR_TARGET="$2"
14535 else
14536 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14537 fi
1c00b503
PB
14538else
14539 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14540fi
14541
d1f8db0c
PB
14542else
14543 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14544fi
14545
4de997d1 14546
e8b05380
PB
14547
14548
3b5e8ee4
IS
14549if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14550 if test -n "$with_build_time_tools"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14552$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14553 if test -x $with_build_time_tools/dsymutil; then
14554 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14555 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14557$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14558 else
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560$as_echo "no" >&6; }
14561 fi
14562 elif test $build != $host && test $have_gcc_for_target = yes; then
14563 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14564 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14565 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14566 fi
14567fi
14568if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14569 # Extract the first word of "dsymutil", so it can be a program name with args.
14570set dummy dsymutil; ac_word=$2
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14572$as_echo_n "checking for $ac_word... " >&6; }
14573if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14574 $as_echo_n "(cached) " >&6
14575else
14576 case $DSYMUTIL_FOR_TARGET in
14577 [\\/]* | ?:[\\/]*)
14578 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14579 ;;
14580 *)
14581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14582for as_dir in $gcc_cv_tool_dirs
14583do
14584 IFS=$as_save_IFS
14585 test -z "$as_dir" && as_dir=.
14586 for ac_exec_ext in '' $ac_executable_extensions; do
14587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14588 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14590 break 2
14591 fi
14592done
14593 done
14594IFS=$as_save_IFS
14595
14596 ;;
14597esac
14598fi
14599DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14600if test -n "$DSYMUTIL_FOR_TARGET"; then
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14602$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14603else
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605$as_echo "no" >&6; }
14606fi
14607
14608
14609fi
14610if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14611
14612
14613if test -n "$DSYMUTIL_FOR_TARGET"; then
14614 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14615elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14616 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14617fi
14618
14619if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14620 for ncn_progname in dsymutil; do
14621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14622set dummy ${ncn_progname}; ac_word=$2
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624$as_echo_n "checking for $ac_word... " >&6; }
14625if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14626 $as_echo_n "(cached) " >&6
14627else
14628 if test -n "$DSYMUTIL_FOR_TARGET"; then
14629 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14630else
14631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14632for as_dir in $PATH
14633do
14634 IFS=$as_save_IFS
14635 test -z "$as_dir" && as_dir=.
14636 for ac_exec_ext in '' $ac_executable_extensions; do
14637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14638 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14640 break 2
14641 fi
14642done
14643 done
14644IFS=$as_save_IFS
14645
14646fi
14647fi
14648DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14649if test -n "$DSYMUTIL_FOR_TARGET"; then
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14651$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14652else
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14654$as_echo "no" >&6; }
14655fi
14656
14657
14658 done
14659fi
14660
14661if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14662 for ncn_progname in dsymutil; do
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14664$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14665 if test -x $with_build_time_tools/${ncn_progname}; then
14666 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14668$as_echo "yes" >&6; }
14669 break
14670 else
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14672$as_echo "no" >&6; }
14673 fi
14674 done
14675fi
14676
14677if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14678 for ncn_progname in dsymutil; do
14679 if test -n "$ncn_target_tool_prefix"; then
14680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14681set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683$as_echo_n "checking for $ac_word... " >&6; }
14684if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14685 $as_echo_n "(cached) " >&6
14686else
14687 if test -n "$DSYMUTIL_FOR_TARGET"; then
14688 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14689else
14690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691for as_dir in $PATH
14692do
14693 IFS=$as_save_IFS
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14699 break 2
14700 fi
14701done
14702 done
14703IFS=$as_save_IFS
14704
14705fi
14706fi
14707DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14708if test -n "$DSYMUTIL_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14710$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14711else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713$as_echo "no" >&6; }
14714fi
14715
14716
14717 fi
14718 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14720set dummy ${ncn_progname}; ac_word=$2
14721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14722$as_echo_n "checking for $ac_word... " >&6; }
14723if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14724 $as_echo_n "(cached) " >&6
14725else
14726 if test -n "$DSYMUTIL_FOR_TARGET"; then
14727 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14728else
14729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14730for as_dir in $PATH
14731do
14732 IFS=$as_save_IFS
14733 test -z "$as_dir" && as_dir=.
14734 for ac_exec_ext in '' $ac_executable_extensions; do
14735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14736 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14738 break 2
14739 fi
14740done
14741 done
14742IFS=$as_save_IFS
14743
14744fi
14745fi
14746DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14747if test -n "$DSYMUTIL_FOR_TARGET"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14749$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14750else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752$as_echo "no" >&6; }
14753fi
14754
14755
14756 fi
14757 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14758 done
14759fi
14760
14761if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14762 set dummy dsymutil
14763 if test $build = $target ; then
14764 DSYMUTIL_FOR_TARGET="$2"
14765 else
14766 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14767 fi
14768else
14769 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14770fi
14771
14772else
14773 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14774fi
14775
14776
14777
14778
e8b05380
PB
14779if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14780 if test -n "$with_build_time_tools"; then
5213506e
RW
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14782$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14783 if test -x $with_build_time_tools/ld; then
14784 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14785 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14787$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14788 else
5213506e
RW
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790$as_echo "no" >&6; }
d1f8db0c 14791 fi
e8b05380
PB
14792 elif test $build != $host && test $have_gcc_for_target = yes; then
14793 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14794 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14795 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14796 fi
e8b05380 14797fi
3e19841a 14798if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14799 # Extract the first word of "ld", so it can be a program name with args.
14800set dummy ld; ac_word=$2
5213506e
RW
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14802$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14803if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14804 $as_echo_n "(cached) " >&6
4de997d1 14805else
1c710c3c
DJ
14806 case $LD_FOR_TARGET in
14807 [\\/]* | ?:[\\/]*)
e8b05380
PB
14808 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14809 ;;
e8b05380 14810 *)
1c710c3c
DJ
14811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812for as_dir in $gcc_cv_tool_dirs
14813do
14814 IFS=$as_save_IFS
14815 test -z "$as_dir" && as_dir=.
5213506e 14816 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14818 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14820 break 2
14821 fi
14822done
5213506e
RW
14823 done
14824IFS=$as_save_IFS
1c710c3c 14825
e8b05380
PB
14826 ;;
14827esac
4de997d1 14828fi
1c710c3c 14829LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14830if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14832$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14833else
5213506e
RW
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14835$as_echo "no" >&6; }
4de997d1 14836fi
2693c0b0 14837
5213506e 14838
e8b05380
PB
14839fi
14840if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14841
14842
14843if test -n "$LD_FOR_TARGET"; then
14844 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14845elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14846 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14847fi
14848
14849if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14850 for ncn_progname in ld; do
14851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14852set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14854$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14855if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14856 $as_echo_n "(cached) " >&6
278a7a38
AO
14857else
14858 if test -n "$LD_FOR_TARGET"; then
14859 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14860else
14861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14862for as_dir in $PATH
14863do
14864 IFS=$as_save_IFS
14865 test -z "$as_dir" && as_dir=.
5213506e 14866 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14868 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14870 break 2
14871 fi
14872done
5213506e
RW
14873 done
14874IFS=$as_save_IFS
278a7a38
AO
14875
14876fi
14877fi
14878LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14879if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14881$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14882else
5213506e
RW
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14884$as_echo "no" >&6; }
278a7a38
AO
14885fi
14886
5213506e 14887
278a7a38
AO
14888 done
14889fi
14890
14891if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14892 for ncn_progname in ld; do
5213506e
RW
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14894$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14895 if test -x $with_build_time_tools/${ncn_progname}; then
14896 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14898$as_echo "yes" >&6; }
e8b05380
PB
14899 break
14900 else
5213506e
RW
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14902$as_echo "no" >&6; }
e8b05380
PB
14903 fi
14904 done
ca9f4b81
AO
14905fi
14906
e8b05380
PB
14907if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14908 for ncn_progname in ld; do
14909 if test -n "$ncn_target_tool_prefix"; then
14910 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14911set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14913$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14914if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14915 $as_echo_n "(cached) " >&6
ca9f4b81 14916else
4de997d1
PB
14917 if test -n "$LD_FOR_TARGET"; then
14918 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14919else
1c710c3c
DJ
14920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921for as_dir in $PATH
14922do
14923 IFS=$as_save_IFS
14924 test -z "$as_dir" && as_dir=.
5213506e 14925 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14927 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14929 break 2
14930 fi
14931done
5213506e
RW
14932 done
14933IFS=$as_save_IFS
1c710c3c 14934
ca9f4b81
AO
14935fi
14936fi
1c710c3c 14937LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14938if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14940$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14941else
5213506e
RW
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943$as_echo "no" >&6; }
ca9f4b81
AO
14944fi
14945
5213506e 14946
e8b05380
PB
14947 fi
14948 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14949 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14950set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14952$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14953if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14954 $as_echo_n "(cached) " >&6
ca9f4b81 14955else
2693c0b0
PB
14956 if test -n "$LD_FOR_TARGET"; then
14957 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14958else
1c710c3c
DJ
14959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960for as_dir in $PATH
14961do
14962 IFS=$as_save_IFS
14963 test -z "$as_dir" && as_dir=.
5213506e 14964 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14966 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14968 break 2
14969 fi
14970done
5213506e
RW
14971 done
14972IFS=$as_save_IFS
1c710c3c 14973
ca9f4b81
AO
14974fi
14975fi
1c710c3c 14976LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14977if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14979$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14980else
5213506e
RW
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982$as_echo "no" >&6; }
ca9f4b81 14983fi
1c710c3c 14984
5213506e 14985
e8b05380
PB
14986 fi
14987 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14988 done
14989fi
1c710c3c 14990
2693c0b0
PB
14991if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14992 set dummy ld
14993 if test $build = $target ; then
14994 LD_FOR_TARGET="$2"
ca9f4b81 14995 else
2693c0b0 14996 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14997 fi
1c00b503
PB
14998else
14999 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
15000fi
15001
d1f8db0c
PB
15002else
15003 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
15004fi
15005
15006
15007
15008
15009if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15010 if test -n "$with_build_time_tools"; then
5213506e
RW
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15012$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15013 if test -x $with_build_time_tools/lipo; then
15014 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15015 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15017$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15018 else
5213506e
RW
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020$as_echo "no" >&6; }
d1f8db0c 15021 fi
e8b05380
PB
15022 elif test $build != $host && test $have_gcc_for_target = yes; then
15023 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15024 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15025 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15026 fi
15027fi
278a7a38
AO
15028if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15029 # Extract the first word of "lipo", so it can be a program name with args.
15030set dummy lipo; ac_word=$2
5213506e
RW
15031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15032$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15033if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15034 $as_echo_n "(cached) " >&6
278a7a38
AO
15035else
15036 case $LIPO_FOR_TARGET in
15037 [\\/]* | ?:[\\/]*)
15038 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15039 ;;
15040 *)
15041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042for as_dir in $gcc_cv_tool_dirs
15043do
15044 IFS=$as_save_IFS
15045 test -z "$as_dir" && as_dir=.
5213506e 15046 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15048 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15050 break 2
15051 fi
15052done
5213506e
RW
15053 done
15054IFS=$as_save_IFS
278a7a38
AO
15055
15056 ;;
15057esac
15058fi
15059LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15060if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15062$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15063else
5213506e
RW
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15065$as_echo "no" >&6; }
278a7a38
AO
15066fi
15067
5213506e 15068
278a7a38
AO
15069fi
15070if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15071
15072
15073if test -n "$LIPO_FOR_TARGET"; then
15074 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15075elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15076 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15077fi
15078
15079if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15080 for ncn_progname in lipo; do
15081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15082set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15084$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15085if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15086 $as_echo_n "(cached) " >&6
e8b05380 15087else
278a7a38
AO
15088 if test -n "$LIPO_FOR_TARGET"; then
15089 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15090else
15091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15092for as_dir in $PATH
1c710c3c
DJ
15093do
15094 IFS=$as_save_IFS
15095 test -z "$as_dir" && as_dir=.
5213506e 15096 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15098 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15100 break 2
15101 fi
15102done
5213506e
RW
15103 done
15104IFS=$as_save_IFS
1c710c3c 15105
e8b05380 15106fi
278a7a38
AO
15107fi
15108LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15109if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15111$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15112else
5213506e
RW
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15114$as_echo "no" >&6; }
e8b05380
PB
15115fi
15116
5213506e 15117
278a7a38 15118 done
e8b05380 15119fi
278a7a38
AO
15120
15121if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15122 for ncn_progname in lipo; do
5213506e
RW
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15124$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15125 if test -x $with_build_time_tools/${ncn_progname}; then
15126 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15128$as_echo "yes" >&6; }
e8b05380
PB
15129 break
15130 else
5213506e
RW
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15132$as_echo "no" >&6; }
e8b05380
PB
15133 fi
15134 done
15135fi
15136
15137if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15138 for ncn_progname in lipo; do
15139 if test -n "$ncn_target_tool_prefix"; then
15140 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15141set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15144if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15145 $as_echo_n "(cached) " >&6
040b1c5a
GK
15146else
15147 if test -n "$LIPO_FOR_TARGET"; then
15148 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15149else
1c710c3c
DJ
15150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151for as_dir in $PATH
15152do
15153 IFS=$as_save_IFS
15154 test -z "$as_dir" && as_dir=.
5213506e 15155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15157 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15159 break 2
15160 fi
15161done
5213506e
RW
15162 done
15163IFS=$as_save_IFS
1c710c3c 15164
040b1c5a
GK
15165fi
15166fi
1c710c3c 15167LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15168if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15170$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15171else
5213506e
RW
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15173$as_echo "no" >&6; }
040b1c5a
GK
15174fi
15175
5213506e 15176
e8b05380
PB
15177 fi
15178 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15180set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15183if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15184 $as_echo_n "(cached) " >&6
040b1c5a
GK
15185else
15186 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15187 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15188else
1c710c3c
DJ
15189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15190for as_dir in $PATH
15191do
15192 IFS=$as_save_IFS
15193 test -z "$as_dir" && as_dir=.
5213506e 15194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15196 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15198 break 2
15199 fi
15200done
5213506e
RW
15201 done
15202IFS=$as_save_IFS
1c710c3c 15203
040b1c5a
GK
15204fi
15205fi
1c710c3c 15206LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15207if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15209$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15210else
5213506e
RW
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15212$as_echo "no" >&6; }
040b1c5a 15213fi
1c710c3c 15214
5213506e 15215
e8b05380
PB
15216 fi
15217 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15218 done
15219fi
1c710c3c 15220
040b1c5a
GK
15221if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15222 set dummy lipo
15223 if test $build = $target ; then
15224 LIPO_FOR_TARGET="$2"
15225 else
15226 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15227 fi
1c00b503
PB
15228else
15229 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15230fi
15231
d1f8db0c
PB
15232else
15233 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15234fi
15235
15236
15237
15238
15239if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15240 if test -n "$with_build_time_tools"; then
5213506e
RW
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15242$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15243 if test -x $with_build_time_tools/nm; then
15244 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15245 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15247$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15248 else
5213506e
RW
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250$as_echo "no" >&6; }
d1f8db0c 15251 fi
e8b05380
PB
15252 elif test $build != $host && test $have_gcc_for_target = yes; then
15253 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15254 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15255 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15256 fi
15257fi
3e19841a 15258if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15259 # Extract the first word of "nm", so it can be a program name with args.
15260set dummy nm; ac_word=$2
5213506e
RW
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15262$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15263if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15264 $as_echo_n "(cached) " >&6
e8b05380 15265else
1c710c3c
DJ
15266 case $NM_FOR_TARGET in
15267 [\\/]* | ?:[\\/]*)
e8b05380
PB
15268 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15269 ;;
e8b05380 15270 *)
1c710c3c
DJ
15271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272for as_dir in $gcc_cv_tool_dirs
15273do
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
5213506e 15276 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15278 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15280 break 2
15281 fi
15282done
5213506e
RW
15283 done
15284IFS=$as_save_IFS
1c710c3c 15285
e8b05380
PB
15286 ;;
15287esac
15288fi
1c710c3c 15289NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15290if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15292$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15293else
5213506e
RW
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15295$as_echo "no" >&6; }
e8b05380
PB
15296fi
15297
5213506e 15298
e8b05380
PB
15299fi
15300if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15301
15302
15303if test -n "$NM_FOR_TARGET"; then
15304 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15305elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15306 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15307fi
15308
15309if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15310 for ncn_progname in nm; do
15311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15312set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15314$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15315if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15316 $as_echo_n "(cached) " >&6
278a7a38
AO
15317else
15318 if test -n "$NM_FOR_TARGET"; then
15319 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15320else
15321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15322for as_dir in $PATH
15323do
15324 IFS=$as_save_IFS
15325 test -z "$as_dir" && as_dir=.
5213506e 15326 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15328 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15330 break 2
15331 fi
15332done
5213506e
RW
15333 done
15334IFS=$as_save_IFS
278a7a38
AO
15335
15336fi
15337fi
15338NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15339if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15341$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15342else
5213506e
RW
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344$as_echo "no" >&6; }
278a7a38
AO
15345fi
15346
5213506e 15347
278a7a38
AO
15348 done
15349fi
15350
15351if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15352 for ncn_progname in nm; do
5213506e
RW
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15354$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15355 if test -x $with_build_time_tools/${ncn_progname}; then
15356 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15358$as_echo "yes" >&6; }
e8b05380
PB
15359 break
15360 else
5213506e
RW
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15362$as_echo "no" >&6; }
e8b05380
PB
15363 fi
15364 done
15365fi
15366
15367if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15368 for ncn_progname in nm; do
15369 if test -n "$ncn_target_tool_prefix"; then
15370 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15371set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15373$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15374if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15375 $as_echo_n "(cached) " >&6
ca9f4b81 15376else
4de997d1
PB
15377 if test -n "$NM_FOR_TARGET"; then
15378 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15379else
1c710c3c
DJ
15380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381for as_dir in $PATH
15382do
15383 IFS=$as_save_IFS
15384 test -z "$as_dir" && as_dir=.
5213506e 15385 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15387 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15389 break 2
15390 fi
15391done
5213506e
RW
15392 done
15393IFS=$as_save_IFS
1c710c3c 15394
ca9f4b81
AO
15395fi
15396fi
1c710c3c 15397NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15398if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15400$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15401else
5213506e
RW
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403$as_echo "no" >&6; }
ca9f4b81
AO
15404fi
15405
5213506e 15406
e8b05380
PB
15407 fi
15408 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15410set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15412$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15413if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15414 $as_echo_n "(cached) " >&6
ca9f4b81 15415else
2693c0b0
PB
15416 if test -n "$NM_FOR_TARGET"; then
15417 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15418else
1c710c3c
DJ
15419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15420for as_dir in $PATH
15421do
15422 IFS=$as_save_IFS
15423 test -z "$as_dir" && as_dir=.
5213506e 15424 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15426 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15428 break 2
15429 fi
15430done
5213506e
RW
15431 done
15432IFS=$as_save_IFS
1c710c3c 15433
ca9f4b81
AO
15434fi
15435fi
1c710c3c 15436NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15437if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15439$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15440else
5213506e
RW
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15442$as_echo "no" >&6; }
ca9f4b81 15443fi
1c710c3c 15444
5213506e 15445
e8b05380
PB
15446 fi
15447 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15448 done
15449fi
1c710c3c 15450
2693c0b0
PB
15451if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15452 set dummy nm
15453 if test $build = $target ; then
15454 NM_FOR_TARGET="$2"
ca9f4b81 15455 else
2693c0b0 15456 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15457 fi
1c00b503
PB
15458else
15459 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15460fi
15461
d1f8db0c
PB
15462else
15463 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15464fi
15465
15466
15467
15468
9bccfdf5
AP
15469if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15470 if test -n "$with_build_time_tools"; then
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15472$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15473 if test -x $with_build_time_tools/objcopy; then
15474 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15475 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15477$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15478 else
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15480$as_echo "no" >&6; }
15481 fi
15482 elif test $build != $host && test $have_gcc_for_target = yes; then
15483 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15484 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15485 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15486 fi
15487fi
15488if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15489 # Extract the first word of "objcopy", so it can be a program name with args.
15490set dummy objcopy; ac_word=$2
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15492$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15493if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15494 $as_echo_n "(cached) " >&6
15495else
15496 case $OBJCOPY_FOR_TARGET in
15497 [\\/]* | ?:[\\/]*)
15498 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15499 ;;
15500 *)
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502for as_dir in $gcc_cv_tool_dirs
15503do
15504 IFS=$as_save_IFS
15505 test -z "$as_dir" && as_dir=.
15506 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15508 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15510 break 2
15511 fi
15512done
15513 done
15514IFS=$as_save_IFS
15515
15516 ;;
15517esac
15518fi
15519OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15520if test -n "$OBJCOPY_FOR_TARGET"; then
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15522$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15523else
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15525$as_echo "no" >&6; }
15526fi
15527
15528
15529fi
15530if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15531
15532
15533if test -n "$OBJCOPY_FOR_TARGET"; then
15534 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15535elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15536 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15537fi
15538
15539if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15540 for ncn_progname in objcopy; do
15541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15542set dummy ${ncn_progname}; ac_word=$2
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15544$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15545if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15546 $as_echo_n "(cached) " >&6
15547else
15548 if test -n "$OBJCOPY_FOR_TARGET"; then
15549 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15550else
15551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15552for as_dir in $PATH
15553do
15554 IFS=$as_save_IFS
15555 test -z "$as_dir" && as_dir=.
15556 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15558 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15560 break 2
15561 fi
15562done
15563 done
15564IFS=$as_save_IFS
15565
15566fi
15567fi
15568OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15569if test -n "$OBJCOPY_FOR_TARGET"; then
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15571$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15572else
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574$as_echo "no" >&6; }
15575fi
15576
15577
15578 done
15579fi
15580
15581if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15582 for ncn_progname in objcopy; do
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15584$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15585 if test -x $with_build_time_tools/${ncn_progname}; then
15586 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15588$as_echo "yes" >&6; }
15589 break
15590 else
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592$as_echo "no" >&6; }
15593 fi
15594 done
15595fi
15596
15597if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15598 for ncn_progname in objcopy; do
15599 if test -n "$ncn_target_tool_prefix"; then
15600 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15601set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15603$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15604if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15605 $as_echo_n "(cached) " >&6
15606else
15607 if test -n "$OBJCOPY_FOR_TARGET"; then
15608 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15609else
15610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611for as_dir in $PATH
15612do
15613 IFS=$as_save_IFS
15614 test -z "$as_dir" && as_dir=.
15615 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15617 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15619 break 2
15620 fi
15621done
15622 done
15623IFS=$as_save_IFS
15624
15625fi
15626fi
15627OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15628if test -n "$OBJCOPY_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15630$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15631else
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633$as_echo "no" >&6; }
15634fi
15635
15636
15637 fi
15638 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15639 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15640set dummy ${ncn_progname}; ac_word=$2
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15642$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15643if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15644 $as_echo_n "(cached) " >&6
15645else
15646 if test -n "$OBJCOPY_FOR_TARGET"; then
15647 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15648else
15649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650for as_dir in $PATH
15651do
15652 IFS=$as_save_IFS
15653 test -z "$as_dir" && as_dir=.
15654 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15656 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15658 break 2
15659 fi
15660done
15661 done
15662IFS=$as_save_IFS
15663
15664fi
15665fi
15666OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15667if test -n "$OBJCOPY_FOR_TARGET"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15669$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15670else
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15672$as_echo "no" >&6; }
15673fi
15674
15675
15676 fi
15677 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15678 done
15679fi
15680
15681if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15682 set dummy objcopy
15683 if test $build = $target ; then
15684 OBJCOPY_FOR_TARGET="$2"
15685 else
15686 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15687 fi
15688else
15689 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15690fi
15691
15692else
15693 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15694fi
15695
15696
15697
15698
e8b05380
PB
15699if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15700 if test -n "$with_build_time_tools"; then
5213506e
RW
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15702$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15703 if test -x $with_build_time_tools/objdump; then
15704 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15705 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15707$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15708 else
5213506e
RW
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710$as_echo "no" >&6; }
d1f8db0c 15711 fi
e8b05380
PB
15712 elif test $build != $host && test $have_gcc_for_target = yes; then
15713 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15714 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15715 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15716 fi
15717fi
3e19841a 15718if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15719 # Extract the first word of "objdump", so it can be a program name with args.
15720set dummy objdump; ac_word=$2
5213506e
RW
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15722$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15723if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15724 $as_echo_n "(cached) " >&6
e8b05380 15725else
1c710c3c
DJ
15726 case $OBJDUMP_FOR_TARGET in
15727 [\\/]* | ?:[\\/]*)
e8b05380
PB
15728 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15729 ;;
e8b05380 15730 *)
1c710c3c
DJ
15731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15732for as_dir in $gcc_cv_tool_dirs
15733do
15734 IFS=$as_save_IFS
15735 test -z "$as_dir" && as_dir=.
5213506e 15736 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15738 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15740 break 2
15741 fi
15742done
5213506e
RW
15743 done
15744IFS=$as_save_IFS
1c710c3c 15745
e8b05380
PB
15746 ;;
15747esac
15748fi
1c710c3c 15749OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15750if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15752$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15753else
5213506e
RW
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15755$as_echo "no" >&6; }
e8b05380
PB
15756fi
15757
5213506e 15758
e8b05380
PB
15759fi
15760if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15761
15762
15763if test -n "$OBJDUMP_FOR_TARGET"; then
15764 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15765elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15766 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15767fi
15768
15769if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15770 for ncn_progname in objdump; do
15771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15772set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15774$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15775if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15776 $as_echo_n "(cached) " >&6
278a7a38
AO
15777else
15778 if test -n "$OBJDUMP_FOR_TARGET"; then
15779 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15780else
15781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15782for as_dir in $PATH
15783do
15784 IFS=$as_save_IFS
15785 test -z "$as_dir" && as_dir=.
5213506e 15786 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15788 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15790 break 2
15791 fi
15792done
5213506e
RW
15793 done
15794IFS=$as_save_IFS
278a7a38
AO
15795
15796fi
15797fi
15798OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15799if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15801$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15802else
5213506e
RW
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804$as_echo "no" >&6; }
278a7a38
AO
15805fi
15806
5213506e 15807
278a7a38
AO
15808 done
15809fi
15810
15811if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15812 for ncn_progname in objdump; do
5213506e
RW
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15814$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15815 if test -x $with_build_time_tools/${ncn_progname}; then
15816 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818$as_echo "yes" >&6; }
e8b05380
PB
15819 break
15820 else
5213506e
RW
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15822$as_echo "no" >&6; }
e8b05380
PB
15823 fi
15824 done
15825fi
15826
15827if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15828 for ncn_progname in objdump; do
15829 if test -n "$ncn_target_tool_prefix"; then
15830 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15831set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15833$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15834if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15835 $as_echo_n "(cached) " >&6
d739199a
DJ
15836else
15837 if test -n "$OBJDUMP_FOR_TARGET"; then
15838 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15839else
1c710c3c
DJ
15840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841for as_dir in $PATH
15842do
15843 IFS=$as_save_IFS
15844 test -z "$as_dir" && as_dir=.
5213506e 15845 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15847 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15849 break 2
15850 fi
15851done
5213506e
RW
15852 done
15853IFS=$as_save_IFS
1c710c3c 15854
d739199a
DJ
15855fi
15856fi
1c710c3c 15857OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15858if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15860$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15861else
5213506e
RW
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15863$as_echo "no" >&6; }
d739199a
DJ
15864fi
15865
5213506e 15866
e8b05380
PB
15867 fi
15868 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15870set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15872$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15873if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15874 $as_echo_n "(cached) " >&6
d739199a
DJ
15875else
15876 if test -n "$OBJDUMP_FOR_TARGET"; then
15877 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15878else
1c710c3c
DJ
15879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15880for as_dir in $PATH
15881do
15882 IFS=$as_save_IFS
15883 test -z "$as_dir" && as_dir=.
5213506e 15884 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15886 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15888 break 2
15889 fi
15890done
5213506e
RW
15891 done
15892IFS=$as_save_IFS
1c710c3c 15893
d739199a
DJ
15894fi
15895fi
1c710c3c 15896OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15897if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15899$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15900else
5213506e
RW
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15902$as_echo "no" >&6; }
d739199a 15903fi
1c710c3c 15904
5213506e 15905
e8b05380
PB
15906 fi
15907 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15908 done
15909fi
1c710c3c 15910
d739199a
DJ
15911if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15912 set dummy objdump
15913 if test $build = $target ; then
15914 OBJDUMP_FOR_TARGET="$2"
15915 else
15916 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15917 fi
1c00b503
PB
15918else
15919 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15920fi
15921
d1f8db0c
PB
15922else
15923 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15924fi
15925
15926
15927
15928
e4a9a572
IS
15929if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15930 if test -n "$with_build_time_tools"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15932$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15933 if test -x $with_build_time_tools/otool; then
15934 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15935 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15937$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15938 else
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15940$as_echo "no" >&6; }
15941 fi
15942 elif test $build != $host && test $have_gcc_for_target = yes; then
15943 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15944 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15945 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15946 fi
15947fi
15948if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15949 # Extract the first word of "otool", so it can be a program name with args.
15950set dummy otool; ac_word=$2
15951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15952$as_echo_n "checking for $ac_word... " >&6; }
15953if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15954 $as_echo_n "(cached) " >&6
15955else
15956 case $OTOOL_FOR_TARGET in
15957 [\\/]* | ?:[\\/]*)
15958 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15959 ;;
15960 *)
15961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15962for as_dir in $gcc_cv_tool_dirs
15963do
15964 IFS=$as_save_IFS
15965 test -z "$as_dir" && as_dir=.
15966 for ac_exec_ext in '' $ac_executable_extensions; do
15967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15968 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15970 break 2
15971 fi
15972done
15973 done
15974IFS=$as_save_IFS
15975
15976 ;;
15977esac
15978fi
15979OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15980if test -n "$OTOOL_FOR_TARGET"; then
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15982$as_echo "$OTOOL_FOR_TARGET" >&6; }
15983else
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985$as_echo "no" >&6; }
15986fi
15987
15988
15989fi
15990if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15991
15992
15993if test -n "$OTOOL_FOR_TARGET"; then
15994 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15995elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15996 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15997fi
15998
15999if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16000 for ncn_progname in otool; do
16001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16002set dummy ${ncn_progname}; ac_word=$2
16003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16004$as_echo_n "checking for $ac_word... " >&6; }
16005if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007else
16008 if test -n "$OTOOL_FOR_TARGET"; then
16009 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16010else
16011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16012for as_dir in $PATH
16013do
16014 IFS=$as_save_IFS
16015 test -z "$as_dir" && as_dir=.
16016 for ac_exec_ext in '' $ac_executable_extensions; do
16017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16018 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16020 break 2
16021 fi
16022done
16023 done
16024IFS=$as_save_IFS
16025
16026fi
16027fi
16028OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16029if test -n "$OTOOL_FOR_TARGET"; then
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16031$as_echo "$OTOOL_FOR_TARGET" >&6; }
16032else
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16034$as_echo "no" >&6; }
16035fi
16036
16037
16038 done
16039fi
16040
16041if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16042 for ncn_progname in otool; do
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16044$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16045 if test -x $with_build_time_tools/${ncn_progname}; then
16046 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16048$as_echo "yes" >&6; }
16049 break
16050 else
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052$as_echo "no" >&6; }
16053 fi
16054 done
16055fi
16056
16057if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16058 for ncn_progname in otool; do
16059 if test -n "$ncn_target_tool_prefix"; then
16060 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16061set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16063$as_echo_n "checking for $ac_word... " >&6; }
16064if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066else
16067 if test -n "$OTOOL_FOR_TARGET"; then
16068 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16069else
16070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071for as_dir in $PATH
16072do
16073 IFS=$as_save_IFS
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16079 break 2
16080 fi
16081done
16082 done
16083IFS=$as_save_IFS
16084
16085fi
16086fi
16087OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16088if test -n "$OTOOL_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16090$as_echo "$OTOOL_FOR_TARGET" >&6; }
16091else
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16093$as_echo "no" >&6; }
16094fi
16095
16096
16097 fi
16098 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16099 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16100set dummy ${ncn_progname}; ac_word=$2
16101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16102$as_echo_n "checking for $ac_word... " >&6; }
16103if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16104 $as_echo_n "(cached) " >&6
16105else
16106 if test -n "$OTOOL_FOR_TARGET"; then
16107 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16108else
16109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16110for as_dir in $PATH
16111do
16112 IFS=$as_save_IFS
16113 test -z "$as_dir" && as_dir=.
16114 for ac_exec_ext in '' $ac_executable_extensions; do
16115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16116 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16118 break 2
16119 fi
16120done
16121 done
16122IFS=$as_save_IFS
16123
16124fi
16125fi
16126OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16127if test -n "$OTOOL_FOR_TARGET"; then
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16129$as_echo "$OTOOL_FOR_TARGET" >&6; }
16130else
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16132$as_echo "no" >&6; }
16133fi
16134
16135
16136 fi
16137 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16138 done
16139fi
16140
16141if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16142 set dummy otool
16143 if test $build = $target ; then
16144 OTOOL_FOR_TARGET="$2"
16145 else
16146 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16147 fi
16148else
16149 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16150fi
16151
16152else
16153 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16154fi
16155
16156
16157
16158
e8b05380
PB
16159if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16160 if test -n "$with_build_time_tools"; then
5213506e
RW
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16162$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16163 if test -x $with_build_time_tools/ranlib; then
16164 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16165 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16167$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16168 else
5213506e
RW
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170$as_echo "no" >&6; }
d1f8db0c 16171 fi
e8b05380
PB
16172 elif test $build != $host && test $have_gcc_for_target = yes; then
16173 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16174 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16175 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16176 fi
16177fi
3e19841a 16178if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16179 # Extract the first word of "ranlib", so it can be a program name with args.
16180set dummy ranlib; ac_word=$2
5213506e
RW
16181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16183if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16184 $as_echo_n "(cached) " >&6
e8b05380 16185else
1c710c3c
DJ
16186 case $RANLIB_FOR_TARGET in
16187 [\\/]* | ?:[\\/]*)
e8b05380
PB
16188 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16189 ;;
e8b05380 16190 *)
1c710c3c
DJ
16191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192for as_dir in $gcc_cv_tool_dirs
16193do
16194 IFS=$as_save_IFS
16195 test -z "$as_dir" && as_dir=.
5213506e 16196 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16198 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16200 break 2
16201 fi
16202done
5213506e
RW
16203 done
16204IFS=$as_save_IFS
1c710c3c 16205
e8b05380
PB
16206 ;;
16207esac
16208fi
1c710c3c 16209RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16210if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16212$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16213else
5213506e
RW
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16215$as_echo "no" >&6; }
e8b05380
PB
16216fi
16217
5213506e 16218
e8b05380
PB
16219fi
16220if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16221
16222
16223if test -n "$RANLIB_FOR_TARGET"; then
16224 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16225elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16226 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16227fi
16228
16229if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16230 for ncn_progname in ranlib; do
16231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16232set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16235if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16236 $as_echo_n "(cached) " >&6
278a7a38
AO
16237else
16238 if test -n "$RANLIB_FOR_TARGET"; then
16239 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16240else
16241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16242for as_dir in $PATH
16243do
16244 IFS=$as_save_IFS
16245 test -z "$as_dir" && as_dir=.
5213506e 16246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16248 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16250 break 2
16251 fi
16252done
5213506e
RW
16253 done
16254IFS=$as_save_IFS
278a7a38
AO
16255
16256fi
16257fi
16258RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16259if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16261$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16262else
5213506e
RW
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16264$as_echo "no" >&6; }
278a7a38
AO
16265fi
16266
5213506e 16267
278a7a38
AO
16268 done
16269fi
16270
16271if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16272 for ncn_progname in ranlib; do
5213506e
RW
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16274$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16275 if test -x $with_build_time_tools/${ncn_progname}; then
16276 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16278$as_echo "yes" >&6; }
e8b05380
PB
16279 break
16280 else
5213506e
RW
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16282$as_echo "no" >&6; }
e8b05380
PB
16283 fi
16284 done
16285fi
16286
16287if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16288 for ncn_progname in ranlib; do
16289 if test -n "$ncn_target_tool_prefix"; then
16290 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16291set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16294if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16295 $as_echo_n "(cached) " >&6
ca9f4b81 16296else
4de997d1
PB
16297 if test -n "$RANLIB_FOR_TARGET"; then
16298 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16299else
1c710c3c
DJ
16300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301for as_dir in $PATH
16302do
16303 IFS=$as_save_IFS
16304 test -z "$as_dir" && as_dir=.
5213506e 16305 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16307 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16309 break 2
16310 fi
16311done
5213506e
RW
16312 done
16313IFS=$as_save_IFS
1c710c3c 16314
ca9f4b81
AO
16315fi
16316fi
1c710c3c 16317RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16318if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16320$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16321else
5213506e
RW
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16323$as_echo "no" >&6; }
ca9f4b81
AO
16324fi
16325
5213506e 16326
e8b05380
PB
16327 fi
16328 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16330set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16332$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16333if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16334 $as_echo_n "(cached) " >&6
ca9f4b81 16335else
2693c0b0
PB
16336 if test -n "$RANLIB_FOR_TARGET"; then
16337 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16338else
1c710c3c
DJ
16339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16340for as_dir in $PATH
16341do
16342 IFS=$as_save_IFS
16343 test -z "$as_dir" && as_dir=.
5213506e 16344 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16346 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16348 break 2
16349 fi
16350done
5213506e
RW
16351 done
16352IFS=$as_save_IFS
1c710c3c 16353
ca9f4b81
AO
16354fi
16355fi
1c710c3c 16356RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16357if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16359$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16360else
5213506e
RW
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362$as_echo "no" >&6; }
ca9f4b81 16363fi
1c710c3c 16364
5213506e 16365
e8b05380
PB
16366 fi
16367 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16368 done
16369fi
1c710c3c 16370
e8b05380
PB
16371if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16372 set dummy ranlib
16373 if test $build = $target ; then
16374 RANLIB_FOR_TARGET="$2"
16375 else
16376 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16377 fi
1c00b503
PB
16378else
16379 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16380fi
2693c0b0 16381
d1f8db0c
PB
16382else
16383 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16384fi
16385
e8b05380
PB
16386
16387
16388
e7a82751
RM
16389if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16390 if test -n "$with_build_time_tools"; then
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16392$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16393 if test -x $with_build_time_tools/readelf; then
16394 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16395 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16397$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400$as_echo "no" >&6; }
16401 fi
16402 elif test $build != $host && test $have_gcc_for_target = yes; then
16403 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16404 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16405 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16406 fi
16407fi
16408if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16409 # Extract the first word of "readelf", so it can be a program name with args.
16410set dummy readelf; ac_word=$2
16411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16413if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16414 $as_echo_n "(cached) " >&6
16415else
16416 case $READELF_FOR_TARGET in
16417 [\\/]* | ?:[\\/]*)
16418 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16419 ;;
16420 *)
16421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16422for as_dir in $gcc_cv_tool_dirs
16423do
16424 IFS=$as_save_IFS
16425 test -z "$as_dir" && as_dir=.
16426 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16428 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16430 break 2
16431 fi
16432done
16433 done
16434IFS=$as_save_IFS
16435
16436 ;;
16437esac
16438fi
16439READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16440if test -n "$READELF_FOR_TARGET"; then
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16442$as_echo "$READELF_FOR_TARGET" >&6; }
16443else
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445$as_echo "no" >&6; }
16446fi
16447
16448
16449fi
16450if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16451
16452
16453if test -n "$READELF_FOR_TARGET"; then
16454 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16455elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16456 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16457fi
16458
16459if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16460 for ncn_progname in readelf; do
16461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16462set dummy ${ncn_progname}; ac_word=$2
16463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16464$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16465if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16466 $as_echo_n "(cached) " >&6
16467else
16468 if test -n "$READELF_FOR_TARGET"; then
16469 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16470else
16471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16472for as_dir in $PATH
16473do
16474 IFS=$as_save_IFS
16475 test -z "$as_dir" && as_dir=.
16476 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16478 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16480 break 2
16481 fi
16482done
16483 done
16484IFS=$as_save_IFS
16485
16486fi
16487fi
16488READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16489if test -n "$READELF_FOR_TARGET"; then
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16491$as_echo "$READELF_FOR_TARGET" >&6; }
16492else
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16494$as_echo "no" >&6; }
16495fi
16496
16497
16498 done
16499fi
16500
16501if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16502 for ncn_progname in readelf; do
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16504$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16505 if test -x $with_build_time_tools/${ncn_progname}; then
16506 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16508$as_echo "yes" >&6; }
16509 break
16510 else
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512$as_echo "no" >&6; }
16513 fi
16514 done
16515fi
16516
16517if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16518 for ncn_progname in readelf; do
16519 if test -n "$ncn_target_tool_prefix"; then
16520 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16521set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16523$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16524if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16525 $as_echo_n "(cached) " >&6
16526else
16527 if test -n "$READELF_FOR_TARGET"; then
16528 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16529else
16530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531for as_dir in $PATH
16532do
16533 IFS=$as_save_IFS
16534 test -z "$as_dir" && as_dir=.
16535 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16537 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16539 break 2
16540 fi
16541done
16542 done
16543IFS=$as_save_IFS
16544
16545fi
16546fi
16547READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16548if test -n "$READELF_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16550$as_echo "$READELF_FOR_TARGET" >&6; }
16551else
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553$as_echo "no" >&6; }
16554fi
16555
16556
16557 fi
16558 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16560set dummy ${ncn_progname}; ac_word=$2
16561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16562$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16563if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16564 $as_echo_n "(cached) " >&6
16565else
16566 if test -n "$READELF_FOR_TARGET"; then
16567 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16568else
16569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16570for as_dir in $PATH
16571do
16572 IFS=$as_save_IFS
16573 test -z "$as_dir" && as_dir=.
16574 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16576 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16578 break 2
16579 fi
16580done
16581 done
16582IFS=$as_save_IFS
16583
16584fi
16585fi
16586READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16587if test -n "$READELF_FOR_TARGET"; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16589$as_echo "$READELF_FOR_TARGET" >&6; }
16590else
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16592$as_echo "no" >&6; }
16593fi
16594
16595
16596 fi
16597 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16598 done
16599fi
16600
16601if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16602 set dummy readelf
16603 if test $build = $target ; then
16604 READELF_FOR_TARGET="$2"
16605 else
16606 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16607 fi
16608else
16609 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16610fi
16611
16612else
16613 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16614fi
16615
16616
16617
16618
e8b05380
PB
16619if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16620 if test -n "$with_build_time_tools"; then
5213506e
RW
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16622$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16623 if test -x $with_build_time_tools/strip; then
16624 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16625 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16627$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16628 else
5213506e
RW
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630$as_echo "no" >&6; }
d1f8db0c 16631 fi
e8b05380
PB
16632 elif test $build != $host && test $have_gcc_for_target = yes; then
16633 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16634 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16635 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16636 fi
16637fi
3e19841a 16638if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16639 # Extract the first word of "strip", so it can be a program name with args.
16640set dummy strip; ac_word=$2
5213506e
RW
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16642$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16643if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16644 $as_echo_n "(cached) " >&6
e8b05380 16645else
1c710c3c
DJ
16646 case $STRIP_FOR_TARGET in
16647 [\\/]* | ?:[\\/]*)
e8b05380
PB
16648 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16649 ;;
e8b05380 16650 *)
1c710c3c
DJ
16651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16652for as_dir in $gcc_cv_tool_dirs
16653do
16654 IFS=$as_save_IFS
16655 test -z "$as_dir" && as_dir=.
5213506e 16656 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16658 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16660 break 2
16661 fi
16662done
5213506e
RW
16663 done
16664IFS=$as_save_IFS
1c710c3c 16665
e8b05380
PB
16666 ;;
16667esac
16668fi
1c710c3c 16669STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16670if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16672$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16673else
5213506e
RW
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675$as_echo "no" >&6; }
e8b05380
PB
16676fi
16677
5213506e 16678
e8b05380
PB
16679fi
16680if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16681
16682
16683if test -n "$STRIP_FOR_TARGET"; then
16684 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16685elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16686 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16687fi
16688
16689if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16690 for ncn_progname in strip; do
16691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16692set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16694$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16695if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16696 $as_echo_n "(cached) " >&6
278a7a38
AO
16697else
16698 if test -n "$STRIP_FOR_TARGET"; then
16699 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16700else
16701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16702for as_dir in $PATH
16703do
16704 IFS=$as_save_IFS
16705 test -z "$as_dir" && as_dir=.
5213506e 16706 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16708 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16710 break 2
16711 fi
16712done
5213506e
RW
16713 done
16714IFS=$as_save_IFS
278a7a38
AO
16715
16716fi
16717fi
16718STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16719if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16721$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16722else
5213506e
RW
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16724$as_echo "no" >&6; }
278a7a38
AO
16725fi
16726
5213506e 16727
278a7a38
AO
16728 done
16729fi
16730
16731if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16732 for ncn_progname in strip; do
5213506e
RW
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16734$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16735 if test -x $with_build_time_tools/${ncn_progname}; then
16736 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16738$as_echo "yes" >&6; }
e8b05380
PB
16739 break
16740 else
5213506e
RW
16741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16742$as_echo "no" >&6; }
e8b05380
PB
16743 fi
16744 done
16745fi
16746
16747if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16748 for ncn_progname in strip; do
16749 if test -n "$ncn_target_tool_prefix"; then
16750 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16751set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16753$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16754if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16755 $as_echo_n "(cached) " >&6
af71363e
AS
16756else
16757 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16758 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16759else
16760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761for as_dir in $PATH
16762do
16763 IFS=$as_save_IFS
16764 test -z "$as_dir" && as_dir=.
5213506e 16765 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16767 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16769 break 2
16770 fi
16771done
5213506e
RW
16772 done
16773IFS=$as_save_IFS
1c710c3c 16774
040b1c5a
GK
16775fi
16776fi
1c710c3c 16777STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16778if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16780$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16781else
5213506e
RW
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16783$as_echo "no" >&6; }
040b1c5a
GK
16784fi
16785
5213506e 16786
e8b05380
PB
16787 fi
16788 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16790set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16792$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16793if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16794 $as_echo_n "(cached) " >&6
040b1c5a
GK
16795else
16796 if test -n "$STRIP_FOR_TARGET"; then
16797 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16798else
1c710c3c
DJ
16799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16800for as_dir in $PATH
16801do
16802 IFS=$as_save_IFS
16803 test -z "$as_dir" && as_dir=.
5213506e 16804 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16806 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16808 break 2
16809 fi
16810done
5213506e
RW
16811 done
16812IFS=$as_save_IFS
1c710c3c 16813
040b1c5a
GK
16814fi
16815fi
1c710c3c 16816STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16817if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16819$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16820else
5213506e
RW
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822$as_echo "no" >&6; }
040b1c5a 16823fi
1c710c3c 16824
5213506e 16825
e8b05380
PB
16826 fi
16827 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16828 done
16829fi
1c710c3c 16830
040b1c5a
GK
16831if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16832 set dummy strip
16833 if test $build = $target ; then
16834 STRIP_FOR_TARGET="$2"
16835 else
16836 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16837 fi
1c00b503
PB
16838else
16839 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16840fi
16841
d1f8db0c
PB
16842else
16843 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16844fi
16845
16846
16847
16848
16849if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16850 if test -n "$with_build_time_tools"; then
5213506e
RW
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16852$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16853 if test -x $with_build_time_tools/windres; then
16854 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16855 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16857$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16858 else
5213506e
RW
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860$as_echo "no" >&6; }
d1f8db0c 16861 fi
e8b05380
PB
16862 elif test $build != $host && test $have_gcc_for_target = yes; then
16863 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16864 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16865 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16866 fi
16867fi
3e19841a 16868if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16869 # Extract the first word of "windres", so it can be a program name with args.
16870set dummy windres; ac_word=$2
5213506e
RW
16871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16872$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16873if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16874 $as_echo_n "(cached) " >&6
e8b05380 16875else
1c710c3c
DJ
16876 case $WINDRES_FOR_TARGET in
16877 [\\/]* | ?:[\\/]*)
e8b05380
PB
16878 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16879 ;;
e8b05380 16880 *)
1c710c3c
DJ
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882for as_dir in $gcc_cv_tool_dirs
16883do
16884 IFS=$as_save_IFS
16885 test -z "$as_dir" && as_dir=.
5213506e 16886 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16888 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16890 break 2
16891 fi
16892done
5213506e
RW
16893 done
16894IFS=$as_save_IFS
1c710c3c 16895
e8b05380
PB
16896 ;;
16897esac
16898fi
1c710c3c 16899WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16900if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16902$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16903else
5213506e
RW
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16905$as_echo "no" >&6; }
e8b05380
PB
16906fi
16907
5213506e 16908
e8b05380
PB
16909fi
16910if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16911
16912
16913if test -n "$WINDRES_FOR_TARGET"; then
16914 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16915elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16916 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16917fi
16918
16919if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16920 for ncn_progname in windres; do
16921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16922set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16924$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16925if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16926 $as_echo_n "(cached) " >&6
278a7a38
AO
16927else
16928 if test -n "$WINDRES_FOR_TARGET"; then
16929 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16930else
16931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16932for as_dir in $PATH
16933do
16934 IFS=$as_save_IFS
16935 test -z "$as_dir" && as_dir=.
5213506e 16936 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16938 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16940 break 2
16941 fi
16942done
5213506e
RW
16943 done
16944IFS=$as_save_IFS
278a7a38
AO
16945
16946fi
16947fi
16948WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16949if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16951$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16952else
5213506e
RW
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16954$as_echo "no" >&6; }
278a7a38
AO
16955fi
16956
5213506e 16957
278a7a38
AO
16958 done
16959fi
16960
16961if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16962 for ncn_progname in windres; do
5213506e
RW
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16964$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16965 if test -x $with_build_time_tools/${ncn_progname}; then
16966 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16968$as_echo "yes" >&6; }
e8b05380
PB
16969 break
16970 else
5213506e
RW
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972$as_echo "no" >&6; }
e8b05380
PB
16973 fi
16974 done
16975fi
16976
16977if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16978 for ncn_progname in windres; do
16979 if test -n "$ncn_target_tool_prefix"; then
16980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16983$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16984if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16985 $as_echo_n "(cached) " >&6
ca9f4b81 16986else
4de997d1
PB
16987 if test -n "$WINDRES_FOR_TARGET"; then
16988 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16989else
1c710c3c
DJ
16990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991for as_dir in $PATH
16992do
16993 IFS=$as_save_IFS
16994 test -z "$as_dir" && as_dir=.
5213506e 16995 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16997 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16999 break 2
17000 fi
17001done
5213506e
RW
17002 done
17003IFS=$as_save_IFS
1c710c3c 17004
ca9f4b81
AO
17005fi
17006fi
1c710c3c 17007WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 17008if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17010$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17011else
5213506e
RW
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17013$as_echo "no" >&6; }
ca9f4b81
AO
17014fi
17015
5213506e 17016
e8b05380
PB
17017 fi
17018 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17020set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17022$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17023if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17024 $as_echo_n "(cached) " >&6
ca9f4b81 17025else
2693c0b0
PB
17026 if test -n "$WINDRES_FOR_TARGET"; then
17027 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17028else
1c710c3c
DJ
17029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030for as_dir in $PATH
17031do
17032 IFS=$as_save_IFS
17033 test -z "$as_dir" && as_dir=.
5213506e 17034 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17036 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17038 break 2
17039 fi
17040done
5213506e
RW
17041 done
17042IFS=$as_save_IFS
1c710c3c 17043
ca9f4b81
AO
17044fi
17045fi
1c710c3c 17046WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17047if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17049$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17050else
5213506e
RW
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052$as_echo "no" >&6; }
ca9f4b81 17053fi
1c710c3c 17054
5213506e 17055
e8b05380
PB
17056 fi
17057 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17058 done
17059fi
1c710c3c 17060
2693c0b0
PB
17061if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17062 set dummy windres
17063 if test $build = $target ; then
17064 WINDRES_FOR_TARGET="$2"
ca9f4b81 17065 else
2693c0b0 17066 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17067 fi
1c00b503
PB
17068else
17069 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17070fi
17071
d1f8db0c
PB
17072else
17073 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17074fi
17075
4977bab6 17076
901119ae
KT
17077
17078
17079if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17080 if test -n "$with_build_time_tools"; then
5213506e
RW
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17082$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17083 if test -x $with_build_time_tools/windmc; then
17084 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17085 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17087$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17088 else
5213506e
RW
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17090$as_echo "no" >&6; }
901119ae
KT
17091 fi
17092 elif test $build != $host && test $have_gcc_for_target = yes; then
17093 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17094 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17095 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17096 fi
17097fi
17098if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17099 # Extract the first word of "windmc", so it can be a program name with args.
17100set dummy windmc; ac_word=$2
5213506e
RW
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17102$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17103if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17104 $as_echo_n "(cached) " >&6
901119ae
KT
17105else
17106 case $WINDMC_FOR_TARGET in
17107 [\\/]* | ?:[\\/]*)
17108 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17109 ;;
17110 *)
17111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17112for as_dir in $gcc_cv_tool_dirs
17113do
17114 IFS=$as_save_IFS
17115 test -z "$as_dir" && as_dir=.
5213506e 17116 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17118 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17120 break 2
17121 fi
17122done
5213506e
RW
17123 done
17124IFS=$as_save_IFS
901119ae
KT
17125
17126 ;;
17127esac
17128fi
17129WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17130if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17132$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17133else
5213506e
RW
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17135$as_echo "no" >&6; }
901119ae
KT
17136fi
17137
5213506e 17138
901119ae
KT
17139fi
17140if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17141
17142
17143if test -n "$WINDMC_FOR_TARGET"; then
17144 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17145elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17146 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17147fi
17148
17149if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17150 for ncn_progname in windmc; do
17151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17152set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17154$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17155if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17156 $as_echo_n "(cached) " >&6
901119ae
KT
17157else
17158 if test -n "$WINDMC_FOR_TARGET"; then
17159 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17160else
17161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17162for as_dir in $PATH
17163do
17164 IFS=$as_save_IFS
17165 test -z "$as_dir" && as_dir=.
5213506e 17166 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17168 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17170 break 2
17171 fi
17172done
5213506e
RW
17173 done
17174IFS=$as_save_IFS
901119ae
KT
17175
17176fi
17177fi
17178WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17179if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17181$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17182else
5213506e
RW
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17184$as_echo "no" >&6; }
901119ae
KT
17185fi
17186
5213506e 17187
901119ae
KT
17188 done
17189fi
17190
17191if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17192 for ncn_progname in windmc; do
5213506e
RW
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17194$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17195 if test -x $with_build_time_tools/${ncn_progname}; then
17196 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17198$as_echo "yes" >&6; }
901119ae
KT
17199 break
17200 else
5213506e
RW
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202$as_echo "no" >&6; }
901119ae
KT
17203 fi
17204 done
17205fi
17206
17207if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17208 for ncn_progname in windmc; do
17209 if test -n "$ncn_target_tool_prefix"; then
17210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17211set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17213$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17214if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17215 $as_echo_n "(cached) " >&6
901119ae
KT
17216else
17217 if test -n "$WINDMC_FOR_TARGET"; then
17218 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17219else
17220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221for as_dir in $PATH
17222do
17223 IFS=$as_save_IFS
17224 test -z "$as_dir" && as_dir=.
5213506e 17225 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17227 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17229 break 2
17230 fi
17231done
5213506e
RW
17232 done
17233IFS=$as_save_IFS
901119ae
KT
17234
17235fi
17236fi
17237WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17238if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17240$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17241else
5213506e
RW
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17243$as_echo "no" >&6; }
901119ae
KT
17244fi
17245
5213506e 17246
901119ae
KT
17247 fi
17248 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17250set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17252$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17253if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17254 $as_echo_n "(cached) " >&6
901119ae
KT
17255else
17256 if test -n "$WINDMC_FOR_TARGET"; then
17257 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17258else
17259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17260for as_dir in $PATH
17261do
17262 IFS=$as_save_IFS
17263 test -z "$as_dir" && as_dir=.
5213506e 17264 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17266 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17268 break 2
17269 fi
17270done
5213506e
RW
17271 done
17272IFS=$as_save_IFS
901119ae
KT
17273
17274fi
17275fi
17276WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17277if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17279$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17280else
5213506e
RW
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17282$as_echo "no" >&6; }
901119ae
KT
17283fi
17284
5213506e 17285
901119ae
KT
17286 fi
17287 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17288 done
17289fi
17290
17291if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17292 set dummy windmc
17293 if test $build = $target ; then
17294 WINDMC_FOR_TARGET="$2"
17295 else
17296 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17297 fi
1c00b503
PB
17298else
17299 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17300fi
17301
17302else
17303 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17304fi
17305
17306
2abefe3d
PB
17307RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17308
5213506e
RW
17309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17310$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17311if test "x${build}" != "x${host}" ; then
e8b05380
PB
17312 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17313 # We already found the complete path
172e41aa 17314 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17316$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17317 else
17318 # Canadian cross, just use what we found
5213506e
RW
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17320$as_echo "pre-installed" >&6; }
e8b05380 17321 fi
2abefe3d
PB
17322else
17323 ok=yes
17324 case " ${configdirs} " in
17325 *" binutils "*) ;;
17326 *) ok=no ;;
17327 esac
1c710c3c 17328
2abefe3d
PB
17329 if test $ok = yes; then
17330 # An in-tree tool is available and we can use it
17331 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17333$as_echo "just compiled" >&6; }
e8b05380
PB
17334 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17335 # We already found the complete path
172e41aa 17336 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17338$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17339 elif test "x$target" = "x$host"; then
17340 # We can use an host tool
17341 AR_FOR_TARGET='$(AR)'
5213506e
RW
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17343$as_echo "host tool" >&6; }
2abefe3d
PB
17344 else
17345 # We need a cross tool
5213506e
RW
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17347$as_echo "pre-installed" >&6; }
2abefe3d
PB
17348 fi
17349fi
0b0dc272 17350
5213506e
RW
17351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17352$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17353if test "x${build}" != "x${host}" ; then
e8b05380
PB
17354 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17355 # We already found the complete path
172e41aa 17356 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17358$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17359 else
17360 # Canadian cross, just use what we found
5213506e
RW
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17362$as_echo "pre-installed" >&6; }
e8b05380 17363 fi
2abefe3d
PB
17364else
17365 ok=yes
17366 case " ${configdirs} " in
17367 *" gas "*) ;;
17368 *) ok=no ;;
17369 esac
1c710c3c 17370
2abefe3d
PB
17371 if test $ok = yes; then
17372 # An in-tree tool is available and we can use it
17373 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17375$as_echo "just compiled" >&6; }
e8b05380
PB
17376 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17377 # We already found the complete path
172e41aa 17378 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17380$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17381 elif test "x$target" = "x$host"; then
17382 # We can use an host tool
17383 AS_FOR_TARGET='$(AS)'
5213506e
RW
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17385$as_echo "host tool" >&6; }
2abefe3d
PB
17386 else
17387 # We need a cross tool
5213506e
RW
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17389$as_echo "pre-installed" >&6; }
2abefe3d
PB
17390 fi
17391fi
0b0dc272 17392
5213506e
RW
17393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17394$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17395if test "x${build}" != "x${host}" ; then
e8b05380
PB
17396 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17397 # We already found the complete path
172e41aa 17398 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17400$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17401 else
17402 # Canadian cross, just use what we found
5213506e
RW
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17404$as_echo "pre-installed" >&6; }
e8b05380 17405 fi
2abefe3d
PB
17406else
17407 ok=yes
17408 case " ${configdirs} " in
17409 *" gcc "*) ;;
17410 *) ok=no ;;
17411 esac
1c710c3c 17412
2abefe3d
PB
17413 if test $ok = yes; then
17414 # An in-tree tool is available and we can use it
17415 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17417$as_echo "just compiled" >&6; }
e8b05380
PB
17418 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17419 # We already found the complete path
172e41aa 17420 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17422$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17423 elif test "x$target" = "x$host"; then
17424 # We can use an host tool
17425 CC_FOR_TARGET='$(CC)'
5213506e
RW
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17427$as_echo "host tool" >&6; }
2abefe3d
PB
17428 else
17429 # We need a cross tool
5213506e
RW
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17431$as_echo "pre-installed" >&6; }
2abefe3d
PB
17432 fi
17433fi
0b0dc272 17434
5213506e
RW
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17436$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17437if test "x${build}" != "x${host}" ; then
e8b05380
PB
17438 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17439 # We already found the complete path
172e41aa 17440 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17442$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17443 else
17444 # Canadian cross, just use what we found
5213506e
RW
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17446$as_echo "pre-installed" >&6; }
e8b05380 17447 fi
2abefe3d
PB
17448else
17449 ok=yes
17450 case " ${configdirs} " in
17451 *" gcc "*) ;;
17452 *) ok=no ;;
17453 esac
17454 case ,${enable_languages}, in
17455 *,c++,*) ;;
17456 *) ok=no ;;
17457 esac
17458 if test $ok = yes; then
17459 # An in-tree tool is available and we can use it
2077db1b 17460 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17462$as_echo "just compiled" >&6; }
e8b05380
PB
17463 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17464 # We already found the complete path
172e41aa 17465 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17467$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17468 elif test "x$target" = "x$host"; then
17469 # We can use an host tool
17470 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17472$as_echo "host tool" >&6; }
2abefe3d
PB
17473 else
17474 # We need a cross tool
5213506e
RW
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17476$as_echo "pre-installed" >&6; }
2abefe3d
PB
17477 fi
17478fi
0b0dc272 17479
5213506e
RW
17480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17481$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17482if test "x${build}" != "x${host}" ; then
e8b05380
PB
17483 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17484 # We already found the complete path
172e41aa 17485 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17487$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17488 else
17489 # Canadian cross, just use what we found
5213506e
RW
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17491$as_echo "pre-installed" >&6; }
e8b05380 17492 fi
2abefe3d
PB
17493else
17494 ok=yes
17495 case " ${configdirs} " in
17496 *" gcc "*) ;;
17497 *) ok=no ;;
17498 esac
17499 case ,${enable_languages}, in
17500 *,c++,*) ;;
17501 *) ok=no ;;
17502 esac
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
2077db1b 17505 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17507$as_echo "just compiled" >&6; }
e8b05380
PB
17508 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17509 # We already found the complete path
172e41aa 17510 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17512$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17513 elif test "x$target" = "x$host"; then
17514 # We can use an host tool
17515 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17517$as_echo "host tool" >&6; }
2abefe3d
PB
17518 else
17519 # We need a cross tool
5213506e
RW
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17521$as_echo "pre-installed" >&6; }
2abefe3d
PB
17522 fi
17523fi
0b0dc272 17524
5213506e
RW
17525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17526$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17527if test "x${build}" != "x${host}" ; then
e8b05380
PB
17528 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17529 # We already found the complete path
172e41aa 17530 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17532$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17533 else
17534 # Canadian cross, just use what we found
5213506e
RW
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17536$as_echo "pre-installed" >&6; }
e8b05380 17537 fi
2abefe3d
PB
17538else
17539 ok=yes
17540 case " ${configdirs} " in
17541 *" binutils "*) ;;
17542 *) ok=no ;;
17543 esac
1c710c3c 17544
2abefe3d
PB
17545 if test $ok = yes; then
17546 # An in-tree tool is available and we can use it
17547 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17549$as_echo "just compiled" >&6; }
e8b05380
PB
17550 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17551 # We already found the complete path
172e41aa 17552 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17554$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17555 elif test "x$target" = "x$host"; then
17556 # We can use an host tool
17557 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17559$as_echo "host tool" >&6; }
2abefe3d
PB
17560 else
17561 # We need a cross tool
5213506e
RW
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17563$as_echo "pre-installed" >&6; }
2abefe3d
PB
17564 fi
17565fi
0b0dc272 17566
3b5e8ee4
IS
17567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17568$as_echo_n "checking where to find the target dsymutil... " >&6; }
17569if test "x${build}" != "x${host}" ; then
17570 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17571 # We already found the complete path
17572 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17574$as_echo "pre-installed in $ac_dir" >&6; }
17575 else
17576 # Canadian cross, just use what we found
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17578$as_echo "pre-installed" >&6; }
17579 fi
17580else
17581 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17582 # We already found the complete path
17583 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17585$as_echo "pre-installed in $ac_dir" >&6; }
17586 elif test "x$target" = "x$host"; then
17587 # We can use an host tool
17588 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17590$as_echo "host tool" >&6; }
17591 else
17592 # We need a cross tool
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17594$as_echo "pre-installed" >&6; }
17595 fi
17596fi
17597
5213506e
RW
17598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17599$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17600if test "x${build}" != "x${host}" ; then
e8b05380
PB
17601 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17602 # We already found the complete path
172e41aa 17603 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17605$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17606 else
17607 # Canadian cross, just use what we found
5213506e
RW
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17609$as_echo "pre-installed" >&6; }
e8b05380 17610 fi
2abefe3d
PB
17611else
17612 ok=yes
17613 case " ${configdirs} " in
17614 *" gcc "*) ;;
17615 *) ok=no ;;
17616 esac
1c710c3c 17617
2abefe3d
PB
17618 if test $ok = yes; then
17619 # An in-tree tool is available and we can use it
17620 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17622$as_echo "just compiled" >&6; }
e8b05380
PB
17623 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17624 # We already found the complete path
172e41aa 17625 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17627$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17628 elif test "x$target" = "x$host"; then
17629 # We can use an host tool
17630 GCC_FOR_TARGET='$()'
5213506e
RW
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17632$as_echo "host tool" >&6; }
2abefe3d
PB
17633 else
17634 # We need a cross tool
5213506e
RW
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17636$as_echo "pre-installed" >&6; }
2abefe3d
PB
17637 fi
17638fi
0b0dc272 17639
5213506e
RW
17640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17641$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17642if test "x${build}" != "x${host}" ; then
e8b05380
PB
17643 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17644 # We already found the complete path
172e41aa 17645 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17647$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17648 else
17649 # Canadian cross, just use what we found
5213506e
RW
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17651$as_echo "pre-installed" >&6; }
e8b05380 17652 fi
2abefe3d
PB
17653else
17654 ok=yes
17655 case " ${configdirs} " in
17656 *" gcc "*) ;;
17657 *) ok=no ;;
17658 esac
17659 case ,${enable_languages}, in
17660 *,fortran,*) ;;
17661 *) ok=no ;;
17662 esac
17663 if test $ok = yes; then
17664 # An in-tree tool is available and we can use it
17665 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17667$as_echo "just compiled" >&6; }
e8b05380
PB
17668 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17669 # We already found the complete path
172e41aa 17670 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17672$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17673 elif test "x$target" = "x$host"; then
17674 # We can use an host tool
17675 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17677$as_echo "host tool" >&6; }
2abefe3d
PB
17678 else
17679 # We need a cross tool
5213506e
RW
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17681$as_echo "pre-installed" >&6; }
2abefe3d
PB
17682 fi
17683fi
0b0dc272 17684
632e2a07
ILT
17685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17686$as_echo_n "checking where to find the target gccgo... " >&6; }
17687if test "x${build}" != "x${host}" ; then
17688 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17689 # We already found the complete path
17690 ac_dir=`dirname $GOC_FOR_TARGET`
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17692$as_echo "pre-installed in $ac_dir" >&6; }
17693 else
17694 # Canadian cross, just use what we found
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17696$as_echo "pre-installed" >&6; }
17697 fi
17698else
17699 ok=yes
17700 case " ${configdirs} " in
17701 *" gcc "*) ;;
17702 *) ok=no ;;
17703 esac
17704 case ,${enable_languages}, in
17705 *,go,*) ;;
17706 *) ok=no ;;
17707 esac
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17712$as_echo "just compiled" >&6; }
17713 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $GOC_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17717$as_echo "pre-installed in $ac_dir" >&6; }
17718 elif test "x$target" = "x$host"; then
17719 # We can use an host tool
17720 GOC_FOR_TARGET='$(GOC)'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17722$as_echo "host tool" >&6; }
17723 else
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17726$as_echo "pre-installed" >&6; }
17727 fi
17728fi
17729
b4c522fa
IB
17730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17731$as_echo_n "checking where to find the target gdc... " >&6; }
17732if test "x${build}" != "x${host}" ; then
17733 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $GDC_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17737$as_echo "pre-installed in $ac_dir" >&6; }
17738 else
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17741$as_echo "pre-installed" >&6; }
17742 fi
17743else
17744 ok=yes
17745 case " ${configdirs} " in
17746 *" gcc "*) ;;
17747 *) ok=no ;;
17748 esac
17749 case ,${enable_languages}, in
17750 *,d,*) ;;
17751 *) ok=no ;;
17752 esac
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17757$as_echo "just compiled" >&6; }
17758 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $GDC_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17762$as_echo "pre-installed in $ac_dir" >&6; }
17763 elif test "x$target" = "x$host"; then
17764 # We can use an host tool
17765 GDC_FOR_TARGET='$(GDC)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17767$as_echo "host tool" >&6; }
17768 else
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17771$as_echo "pre-installed" >&6; }
17772 fi
17773fi
17774
5213506e
RW
17775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17776$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17777if test "x${build}" != "x${host}" ; then
e8b05380
PB
17778 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17779 # We already found the complete path
172e41aa 17780 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17782$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17783 else
17784 # Canadian cross, just use what we found
5213506e
RW
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17786$as_echo "pre-installed" >&6; }
e8b05380 17787 fi
2abefe3d
PB
17788else
17789 ok=yes
17790 case " ${configdirs} " in
17791 *" ld "*) ;;
17792 *) ok=no ;;
17793 esac
1c710c3c 17794
2abefe3d
PB
17795 if test $ok = yes; then
17796 # An in-tree tool is available and we can use it
17797 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17799$as_echo "just compiled" >&6; }
e8b05380
PB
17800 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17801 # We already found the complete path
172e41aa 17802 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17804$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17805 elif test "x$target" = "x$host"; then
17806 # We can use an host tool
17807 LD_FOR_TARGET='$(LD)'
5213506e
RW
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17809$as_echo "host tool" >&6; }
2abefe3d
PB
17810 else
17811 # We need a cross tool
5213506e
RW
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17813$as_echo "pre-installed" >&6; }
2abefe3d
PB
17814 fi
17815fi
0b0dc272 17816
5213506e
RW
17817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17818$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17819if test "x${build}" != "x${host}" ; then
e8b05380
PB
17820 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17821 # We already found the complete path
172e41aa 17822 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17824$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17825 else
17826 # Canadian cross, just use what we found
5213506e
RW
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17828$as_echo "pre-installed" >&6; }
e8b05380 17829 fi
2abefe3d 17830else
e8b05380
PB
17831 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17832 # We already found the complete path
172e41aa 17833 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17835$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 17836 elif test "x$target" = "x$host"; then
2abefe3d
PB
17837 # We can use an host tool
17838 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17840$as_echo "host tool" >&6; }
2abefe3d
PB
17841 else
17842 # We need a cross tool
5213506e
RW
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17844$as_echo "pre-installed" >&6; }
2abefe3d
PB
17845 fi
17846fi
0b0dc272 17847
5213506e
RW
17848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17849$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17850if test "x${build}" != "x${host}" ; then
e8b05380
PB
17851 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17852 # We already found the complete path
172e41aa 17853 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17855$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17856 else
17857 # Canadian cross, just use what we found
5213506e
RW
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17859$as_echo "pre-installed" >&6; }
e8b05380 17860 fi
2abefe3d
PB
17861else
17862 ok=yes
17863 case " ${configdirs} " in
17864 *" binutils "*) ;;
17865 *) ok=no ;;
17866 esac
1c710c3c 17867
2abefe3d
PB
17868 if test $ok = yes; then
17869 # An in-tree tool is available and we can use it
17870 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17872$as_echo "just compiled" >&6; }
e8b05380
PB
17873 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17874 # We already found the complete path
172e41aa 17875 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17877$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17878 elif test "x$target" = "x$host"; then
17879 # We can use an host tool
17880 NM_FOR_TARGET='$(NM)'
5213506e
RW
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17882$as_echo "host tool" >&6; }
2abefe3d
PB
17883 else
17884 # We need a cross tool
5213506e
RW
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17886$as_echo "pre-installed" >&6; }
2abefe3d
PB
17887 fi
17888fi
0b0dc272 17889
9bccfdf5
AP
17890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17891$as_echo_n "checking where to find the target objcopy... " >&6; }
17892if test "x${build}" != "x${host}" ; then
17893 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17894 # We already found the complete path
17895 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17897$as_echo "pre-installed in $ac_dir" >&6; }
17898 else
17899 # Canadian cross, just use what we found
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17901$as_echo "pre-installed" >&6; }
17902 fi
17903else
17904 ok=yes
17905 case " ${configdirs} " in
17906 *" binutils "*) ;;
17907 *) ok=no ;;
17908 esac
17909
17910 if test $ok = yes; then
17911 # An in-tree tool is available and we can use it
17912 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17914$as_echo "just compiled" >&6; }
17915 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17916 # We already found the complete path
17917 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17919$as_echo "pre-installed in $ac_dir" >&6; }
17920 elif test "x$target" = "x$host"; then
17921 # We can use an host tool
ec8fd1c0 17922 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17924$as_echo "host tool" >&6; }
17925 else
17926 # We need a cross tool
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17928$as_echo "pre-installed" >&6; }
17929 fi
17930fi
17931
5213506e
RW
17932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17933$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17934if test "x${build}" != "x${host}" ; then
e8b05380
PB
17935 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17936 # We already found the complete path
172e41aa 17937 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17939$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17940 else
17941 # Canadian cross, just use what we found
5213506e
RW
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17943$as_echo "pre-installed" >&6; }
e8b05380 17944 fi
2abefe3d
PB
17945else
17946 ok=yes
17947 case " ${configdirs} " in
17948 *" binutils "*) ;;
17949 *) ok=no ;;
17950 esac
1c710c3c 17951
2abefe3d
PB
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17956$as_echo "just compiled" >&6; }
e8b05380
PB
17957 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17958 # We already found the complete path
172e41aa 17959 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17961$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17962 elif test "x$target" = "x$host"; then
17963 # We can use an host tool
17964 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17966$as_echo "host tool" >&6; }
2abefe3d
PB
17967 else
17968 # We need a cross tool
5213506e
RW
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17970$as_echo "pre-installed" >&6; }
2abefe3d
PB
17971 fi
17972fi
0b0dc272 17973
e4a9a572
IS
17974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17975$as_echo_n "checking where to find the target otool... " >&6; }
17976if test "x${build}" != "x${host}" ; then
17977 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $OTOOL_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17981$as_echo "pre-installed in $ac_dir" >&6; }
17982 else
17983 # Canadian cross, just use what we found
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17985$as_echo "pre-installed" >&6; }
17986 fi
17987else
17988 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17989 # We already found the complete path
17990 ac_dir=`dirname $OTOOL_FOR_TARGET`
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17992$as_echo "pre-installed in $ac_dir" >&6; }
17993 elif test "x$target" = "x$host"; then
17994 # We can use an host tool
17995 OTOOL_FOR_TARGET='$(OTOOL)'
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17997$as_echo "host tool" >&6; }
17998 else
17999 # We need a cross tool
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18001$as_echo "pre-installed" >&6; }
18002 fi
18003fi
18004
5213506e
RW
18005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18006$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 18007if test "x${build}" != "x${host}" ; then
e8b05380
PB
18008 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18009 # We already found the complete path
172e41aa 18010 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18012$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18013 else
18014 # Canadian cross, just use what we found
5213506e
RW
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18016$as_echo "pre-installed" >&6; }
e8b05380 18017 fi
2abefe3d
PB
18018else
18019 ok=yes
18020 case " ${configdirs} " in
18021 *" binutils "*) ;;
18022 *) ok=no ;;
18023 esac
1c710c3c 18024
2abefe3d
PB
18025 if test $ok = yes; then
18026 # An in-tree tool is available and we can use it
18027 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18029$as_echo "just compiled" >&6; }
e8b05380
PB
18030 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18031 # We already found the complete path
172e41aa 18032 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18034$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18035 elif test "x$target" = "x$host"; then
18036 # We can use an host tool
18037 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18039$as_echo "host tool" >&6; }
2abefe3d
PB
18040 else
18041 # We need a cross tool
5213506e
RW
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18043$as_echo "pre-installed" >&6; }
2abefe3d
PB
18044 fi
18045fi
0b0dc272 18046
e7a82751
RM
18047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18048$as_echo_n "checking where to find the target readelf... " >&6; }
18049if test "x${build}" != "x${host}" ; then
18050 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18051 # We already found the complete path
18052 ac_dir=`dirname $READELF_FOR_TARGET`
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18054$as_echo "pre-installed in $ac_dir" >&6; }
18055 else
18056 # Canadian cross, just use what we found
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18058$as_echo "pre-installed" >&6; }
18059 fi
18060else
18061 ok=yes
18062 case " ${configdirs} " in
18063 *" binutils "*) ;;
18064 *) ok=no ;;
18065 esac
18066
18067 if test $ok = yes; then
18068 # An in-tree tool is available and we can use it
18069 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18071$as_echo "just compiled" >&6; }
18072 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18073 # We already found the complete path
18074 ac_dir=`dirname $READELF_FOR_TARGET`
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18076$as_echo "pre-installed in $ac_dir" >&6; }
18077 elif test "x$target" = "x$host"; then
18078 # We can use an host tool
18079 READELF_FOR_TARGET='$(READELF)'
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18081$as_echo "host tool" >&6; }
18082 else
18083 # We need a cross tool
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18085$as_echo "pre-installed" >&6; }
18086 fi
18087fi
18088
5213506e
RW
18089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18090$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18091if test "x${build}" != "x${host}" ; then
e8b05380
PB
18092 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18093 # We already found the complete path
172e41aa 18094 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18096$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18097 else
18098 # Canadian cross, just use what we found
5213506e
RW
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18100$as_echo "pre-installed" >&6; }
e8b05380 18101 fi
2abefe3d
PB
18102else
18103 ok=yes
18104 case " ${configdirs} " in
18105 *" binutils "*) ;;
18106 *) ok=no ;;
18107 esac
1c710c3c 18108
2abefe3d
PB
18109 if test $ok = yes; then
18110 # An in-tree tool is available and we can use it
455c8f48 18111 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18113$as_echo "just compiled" >&6; }
e8b05380
PB
18114 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18115 # We already found the complete path
172e41aa 18116 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18118$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18119 elif test "x$target" = "x$host"; then
18120 # We can use an host tool
18121 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18123$as_echo "host tool" >&6; }
2abefe3d
PB
18124 else
18125 # We need a cross tool
5213506e
RW
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18127$as_echo "pre-installed" >&6; }
2abefe3d
PB
18128 fi
18129fi
0b0dc272 18130
5213506e
RW
18131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18132$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18133if test "x${build}" != "x${host}" ; then
e8b05380
PB
18134 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18135 # We already found the complete path
172e41aa 18136 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18138$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18139 else
18140 # Canadian cross, just use what we found
5213506e
RW
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18142$as_echo "pre-installed" >&6; }
e8b05380 18143 fi
2abefe3d
PB
18144else
18145 ok=yes
18146 case " ${configdirs} " in
18147 *" binutils "*) ;;
18148 *) ok=no ;;
18149 esac
1c710c3c 18150
2abefe3d
PB
18151 if test $ok = yes; then
18152 # An in-tree tool is available and we can use it
18153 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18155$as_echo "just compiled" >&6; }
e8b05380
PB
18156 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18157 # We already found the complete path
172e41aa 18158 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18160$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18161 elif test "x$target" = "x$host"; then
18162 # We can use an host tool
18163 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18165$as_echo "host tool" >&6; }
2abefe3d
PB
18166 else
18167 # We need a cross tool
5213506e
RW
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18169$as_echo "pre-installed" >&6; }
2abefe3d 18170 fi
671aa708 18171fi
be912515 18172
5213506e
RW
18173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18174$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18175if test "x${build}" != "x${host}" ; then
18176 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18177 # We already found the complete path
18178 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18180$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18181 else
18182 # Canadian cross, just use what we found
5213506e
RW
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18184$as_echo "pre-installed" >&6; }
901119ae
KT
18185 fi
18186else
18187 ok=yes
18188 case " ${configdirs} " in
18189 *" binutils "*) ;;
18190 *) ok=no ;;
18191 esac
18192
18193 if test $ok = yes; then
18194 # An in-tree tool is available and we can use it
18195 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18197$as_echo "just compiled" >&6; }
901119ae
KT
18198 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18199 # We already found the complete path
18200 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18202$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18203 elif test "x$target" = "x$host"; then
18204 # We can use an host tool
18205 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18207$as_echo "host tool" >&6; }
901119ae
KT
18208 else
18209 # We need a cross tool
5213506e
RW
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18211$as_echo "pre-installed" >&6; }
901119ae
KT
18212 fi
18213fi
18214
be912515
NN
18215
18216
2abefe3d 18217
0b0dc272 18218
671aa708
NN
18219# Certain tools may need extra flags.
18220AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18221RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18222NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18223
2abefe3d
PB
18224# When building target libraries, except in a Canadian cross, we use
18225# the same toolchain as the compiler we just built.
18226COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18227COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18228COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18229if test $host = $build; then
18230 case " $configdirs " in
18231 *" gcc "*)
18232 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18233 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18234 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18235 ;;
18236 esac
18237fi
18238
18239
18240
18241
18242
5213506e
RW
18243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18244$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18245# Check whether --enable-maintainer-mode was given.
18246if test "${enable_maintainer_mode+set}" = set; then :
18247 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18248else
18249 USE_MAINTAINER_MODE=no
5213506e
RW
18250fi
18251
18252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18253$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18254
18255
18256if test "$USE_MAINTAINER_MODE" = yes; then
18257 MAINTAINER_MODE_TRUE=
18258 MAINTAINER_MODE_FALSE='#'
18259else
18260 MAINTAINER_MODE_TRUE='#'
18261 MAINTAINER_MODE_FALSE=
1c710c3c 18262fi
ee03dc5e
AO
18263MAINT=$MAINTAINER_MODE_TRUE
18264
2805b53a
NN
18265# ---------------------
18266# GCC bootstrap support
18267# ---------------------
18268
18269# Stage specific cflags for build.
18270stage1_cflags="-g"
18271case $build in
18272 vax-*-*)
18273 case ${GCC} in
18274 yes) stage1_cflags="-g -Wa,-J" ;;
18275 *) stage1_cflags="-g -J" ;;
18276 esac ;;
2805b53a
NN
18277esac
18278
0b50988a 18279
2805b53a 18280
8efea775 18281# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18282# Check whether --enable-stage1-checking was given.
18283if test "${enable_stage1_checking+set}" = set; then :
18284 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18285else
e643dc23 18286 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18287 # For --disable-checking or implicit --enable-checking=release, avoid
18288 # setting --enable-checking=gc in the default stage1 checking for LTO
18289 # bootstraps. See PR62077.
c10b5ea0
JJ
18290 case $BUILD_CONFIG in
18291 *lto*)
7db11a5a
JJ
18292 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18293 *)
18294 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18295 esac
7db11a5a
JJ
18296 if test "x$enable_checking" = x && \
18297 test -d ${srcdir}/gcc && \
18298 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18299 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18300 fi
8efea775 18301else
e643dc23 18302 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18303fi
5213506e 18304fi
8efea775
PB
18305
18306
2aeb72e9 18307
5213506e
RW
18308# Enable -Werror in bootstrap stage2 and later.
18309# Check whether --enable-werror was given.
18310if test "${enable_werror+set}" = set; then :
18311 enableval=$enable_werror;
09a9c095
NN
18312case ${enable_werror} in
18313 yes) stage2_werror_flag="--enable-werror-always" ;;
18314 *) stage2_werror_flag="" ;;
2805b53a
NN
18315esac
18316
afd88efc
ML
18317else
18318
01c712cb
ML
18319if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18320 case $BUILD_CONFIG in
18321 bootstrap-debug)
18322 stage2_werror_flag="--enable-werror-always" ;;
18323 "")
18324 stage2_werror_flag="--enable-werror-always" ;;
18325 esac
18326fi
18327
afd88efc
ML
18328fi
18329
18330
01c712cb 18331
2805b53a 18332
f2689b09
SE
18333# Specify what files to not compare during bootstrap.
18334
18335compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18336case "$target" in
18337 hppa*64*-*-hpux*) ;;
4f943869
MK
18338 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18339 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18340esac
18341
18342
5213506e
RW
18343ac_config_files="$ac_config_files Makefile"
18344
1c710c3c 18345cat >confcache <<\_ACEOF
671aa708
NN
18346# This file is a shell script that caches the results of configure
18347# tests run on this system so they can be shared between configure
1c710c3c
DJ
18348# scripts and configure runs, see configure's option --config-cache.
18349# It is not useful on other systems. If it contains results you don't
18350# want to keep, you may remove or edit it.
671aa708 18351#
1c710c3c
DJ
18352# config.status only pays attention to the cache file if you give it
18353# the --recheck option to rerun configure.
671aa708 18354#
1c710c3c
DJ
18355# `ac_cv_env_foo' variables (set or unset) will be overridden when
18356# loading this file, other *unset* `ac_cv_foo' will be assigned the
18357# following values.
18358
18359_ACEOF
18360
671aa708
NN
18361# The following way of writing the cache mishandles newlines in values,
18362# but we know of no workaround that is simple, portable, and efficient.
5213506e 18363# So, we kill variables containing newlines.
671aa708
NN
18364# Ultrix sh set writes to stderr and can't be redirected directly,
18365# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18366(
18367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18368 eval ac_val=\$$ac_var
18369 case $ac_val in #(
18370 *${as_nl}*)
18371 case $ac_var in #(
18372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18373$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18374 esac
18375 case $ac_var in #(
18376 _ | IFS | as_nl) ;; #(
18377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18378 *) { eval $ac_var=; unset $ac_var;} ;;
18379 esac ;;
18380 esac
18381 done
18382
1c710c3c 18383 (set) 2>&1 |
5213506e
RW
18384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18385 *${as_nl}ac_space=\ *)
18386 # `set' does not quote correctly, so add quotes: double-quote
18387 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18388 sed -n \
18389 "s/'/'\\\\''/g;
18390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18391 ;; #(
1c710c3c
DJ
18392 *)
18393 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18395 ;;
5213506e
RW
18396 esac |
18397 sort
18398) |
1c710c3c 18399 sed '
5213506e 18400 /^ac_cv_env_/b end
1c710c3c 18401 t clear
5213506e 18402 :clear
1c710c3c
DJ
18403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18404 t end
5213506e
RW
18405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18406 :end' >>confcache
18407if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18408 if test -w "$cache_file"; then
22e05272 18409 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18411$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18412 if test ! -f "$cache_file" || test -h "$cache_file"; then
18413 cat confcache >"$cache_file"
18414 else
18415 case $cache_file in #(
18416 */* | ?:*)
18417 mv -f confcache "$cache_file"$$ &&
18418 mv -f "$cache_file"$$ "$cache_file" ;; #(
18419 *)
18420 mv -f confcache "$cache_file" ;;
18421 esac
18422 fi
18423 fi
671aa708 18424 else
5213506e
RW
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18426$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18427 fi
4977bab6 18428fi
671aa708 18429rm -f confcache
79c06341 18430
671aa708
NN
18431test "x$prefix" = xNONE && prefix=$ac_default_prefix
18432# Let make expand exec_prefix.
18433test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18434
671aa708
NN
18435# Transform confdefs.h into DEFS.
18436# Protect against shell expansion while executing Makefile rules.
18437# Protect against Makefile macro expansion.
1c710c3c
DJ
18438#
18439# If the first sed substitution is executed (which looks for macros that
5213506e 18440# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18441# look for a macro that doesn't take arguments.
5213506e
RW
18442ac_script='
18443:mline
18444/\\$/{
18445 N
18446 s,\\\n,,
18447 b mline
18448}
1c710c3c 18449t clear
5213506e
RW
18450:clear
18451s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18452t quote
5213506e 18453s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18454t quote
5213506e
RW
18455b any
18456:quote
18457s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18458s/\[/\\&/g
18459s/\]/\\&/g
18460s/\$/$$/g
18461H
18462:any
18463${
18464 g
18465 s/^\n//
18466 s/\n/ /g
18467 p
18468}
18469'
18470DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18471
18472
18473ac_libobjs=
18474ac_ltlibobjs=
22e05272 18475U=
1c710c3c
DJ
18476for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18477 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18478 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18479 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18480 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18481 # will be set to the directory where LIBOBJS objects are built.
18482 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18483 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18484done
18485LIBOBJS=$ac_libobjs
fb0103e5 18486
1c710c3c 18487LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18488
af71363e 18489
1c710c3c 18490
22e05272 18491: "${CONFIG_STATUS=./config.status}"
5213506e 18492ac_write_fail=0
1c710c3c
DJ
18493ac_clean_files_save=$ac_clean_files
18494ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18495{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18496$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18497as_write_fail=0
18498cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18499#! $SHELL
18500# Generated by $as_me.
671aa708 18501# Run this file to recreate the current configuration.
671aa708 18502# Compiler output produced by configure, useful for debugging
1c710c3c 18503# configure, is in config.log if it exists.
0b0dc272 18504
1c710c3c
DJ
18505debug=false
18506ac_cs_recheck=false
18507ac_cs_silent=false
1c710c3c 18508
5213506e
RW
18509SHELL=\${CONFIG_SHELL-$SHELL}
18510export SHELL
18511_ASEOF
18512cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18513## -------------------- ##
18514## M4sh Initialization. ##
18515## -------------------- ##
18516
18517# Be more Bourne compatible
18518DUALCASE=1; export DUALCASE # for MKS sh
18519if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18520 emulate sh
18521 NULLCMD=:
5213506e 18522 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18523 # is contrary to our usage. Disable this feature.
18524 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18525 setopt NO_GLOB_SUBST
18526else
18527 case `(set -o) 2>/dev/null` in #(
18528 *posix*) :
18529 set -o posix ;; #(
18530 *) :
18531 ;;
18532esac
1c710c3c 18533fi
1c710c3c 18534
5213506e
RW
18535
18536as_nl='
18537'
18538export as_nl
18539# Printing a long string crashes Solaris 7 /usr/bin/printf.
18540as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18541as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18542as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18543# Prefer a ksh shell builtin over an external printf program on Solaris,
18544# but without wasting forks for bash or zsh.
18545if test -z "$BASH_VERSION$ZSH_VERSION" \
18546 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18547 as_echo='print -r --'
18548 as_echo_n='print -rn --'
18549elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18550 as_echo='printf %s\n'
18551 as_echo_n='printf %s'
18552else
18553 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18554 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18555 as_echo_n='/usr/ucb/echo -n'
18556 else
18557 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18558 as_echo_n_body='eval
18559 arg=$1;
18560 case $arg in #(
18561 *"$as_nl"*)
18562 expr "X$arg" : "X\\(.*\\)$as_nl";
18563 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18564 esac;
18565 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18566 '
18567 export as_echo_n_body
18568 as_echo_n='sh -c $as_echo_n_body as_echo'
18569 fi
18570 export as_echo_body
18571 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18572fi
18573
5213506e
RW
18574# The user is always right.
18575if test "${PATH_SEPARATOR+set}" != set; then
18576 PATH_SEPARATOR=:
18577 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18579 PATH_SEPARATOR=';'
18580 }
18581fi
18582
18583
18584# IFS
18585# We need space, tab and new line, in precisely that order. Quoting is
18586# there to prevent editors from complaining about space-tab.
18587# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18588# splitting by setting IFS to empty value.)
18589IFS=" "" $as_nl"
18590
18591# Find who we are. Look in the path if we contain no directory separator.
22e05272 18592as_myself=
5213506e
RW
18593case $0 in #((
18594 *[\\/]* ) as_myself=$0 ;;
18595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18596for as_dir in $PATH
18597do
18598 IFS=$as_save_IFS
18599 test -z "$as_dir" && as_dir=.
18600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18601 done
18602IFS=$as_save_IFS
18603
18604 ;;
18605esac
18606# We did not find ourselves, most probably we were run as `sh COMMAND'
18607# in which case we are not to be found in the path.
18608if test "x$as_myself" = x; then
18609 as_myself=$0
18610fi
18611if test ! -f "$as_myself"; then
18612 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18613 exit 1
18614fi
1c710c3c 18615
5213506e
RW
18616# Unset variables that we do not need and which cause bugs (e.g. in
18617# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18618# suppresses any "Segmentation fault" message there. '((' could
18619# trigger a bug in pdksh 5.2.14.
18620for as_var in BASH_ENV ENV MAIL MAILPATH
18621do eval test x\${$as_var+set} = xset \
18622 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18623done
1c710c3c
DJ
18624PS1='$ '
18625PS2='> '
18626PS4='+ '
18627
18628# NLS nuisances.
5213506e
RW
18629LC_ALL=C
18630export LC_ALL
18631LANGUAGE=C
18632export LANGUAGE
18633
18634# CDPATH.
18635(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18636
18637
22e05272
JM
18638# as_fn_error STATUS ERROR [LINENO LOG_FD]
18639# ----------------------------------------
5213506e
RW
18640# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18641# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18642# script with STATUS, using 1 if that was 0.
5213506e
RW
18643as_fn_error ()
18644{
22e05272
JM
18645 as_status=$1; test $as_status -eq 0 && as_status=1
18646 if test "$4"; then
18647 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18648 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18649 fi
22e05272 18650 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18651 as_fn_exit $as_status
18652} # as_fn_error
18653
18654
18655# as_fn_set_status STATUS
18656# -----------------------
18657# Set $? to STATUS, without forking.
18658as_fn_set_status ()
18659{
18660 return $1
18661} # as_fn_set_status
18662
18663# as_fn_exit STATUS
18664# -----------------
18665# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18666as_fn_exit ()
18667{
18668 set +e
18669 as_fn_set_status $1
18670 exit $1
18671} # as_fn_exit
18672
18673# as_fn_unset VAR
18674# ---------------
18675# Portably unset VAR.
18676as_fn_unset ()
18677{
18678 { eval $1=; unset $1;}
18679}
18680as_unset=as_fn_unset
18681# as_fn_append VAR VALUE
18682# ----------------------
18683# Append the text in VALUE to the end of the definition contained in VAR. Take
18684# advantage of any shell optimizations that allow amortized linear growth over
18685# repeated appends, instead of the typical quadratic growth present in naive
18686# implementations.
18687if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18688 eval 'as_fn_append ()
18689 {
18690 eval $1+=\$2
18691 }'
18692else
18693 as_fn_append ()
18694 {
18695 eval $1=\$$1\$2
18696 }
18697fi # as_fn_append
18698
18699# as_fn_arith ARG...
18700# ------------------
18701# Perform arithmetic evaluation on the ARGs, and store the result in the
18702# global $as_val. Take advantage of shells that can avoid forks. The arguments
18703# must be portable across $(()) and expr.
18704if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18705 eval 'as_fn_arith ()
18706 {
18707 as_val=$(( $* ))
18708 }'
18709else
18710 as_fn_arith ()
18711 {
18712 as_val=`expr "$@" || test $? -eq 1`
18713 }
18714fi # as_fn_arith
18715
1c710c3c 18716
5213506e
RW
18717if expr a : '\(a\)' >/dev/null 2>&1 &&
18718 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18719 as_expr=expr
18720else
18721 as_expr=false
18722fi
18723
5213506e 18724if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18725 as_basename=basename
18726else
18727 as_basename=false
18728fi
18729
5213506e
RW
18730if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18731 as_dirname=dirname
18732else
18733 as_dirname=false
18734fi
1c710c3c 18735
5213506e 18736as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18737$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18738 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18740$as_echo X/"$0" |
18741 sed '/^.*\/\([^/][^/]*\)\/*$/{
18742 s//\1/
18743 q
18744 }
18745 /^X\/\(\/\/\)$/{
18746 s//\1/
18747 q
18748 }
18749 /^X\/\(\/\).*/{
18750 s//\1/
18751 q
18752 }
18753 s/.*/./; q'`
2aeb72e9 18754
2aeb72e9
DD
18755# Avoid depending upon Character Ranges.
18756as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18757as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18758as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18759as_cr_digits='0123456789'
18760as_cr_alnum=$as_cr_Letters$as_cr_digits
18761
5213506e
RW
18762ECHO_C= ECHO_N= ECHO_T=
18763case `echo -n x` in #(((((
18764-n*)
18765 case `echo 'xy\c'` in
18766 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18767 xy) ECHO_C='\c';;
18768 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18769 ECHO_T=' ';;
18770 esac;;
18771*)
18772 ECHO_N='-n';;
1c710c3c
DJ
18773esac
18774
5213506e
RW
18775rm -f conf$$ conf$$.exe conf$$.file
18776if test -d conf$$.dir; then
18777 rm -f conf$$.dir/conf$$.file
1c710c3c 18778else
5213506e
RW
18779 rm -f conf$$.dir
18780 mkdir conf$$.dir 2>/dev/null
1c710c3c 18781fi
5213506e
RW
18782if (echo >conf$$.file) 2>/dev/null; then
18783 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18784 as_ln_s='ln -s'
5213506e
RW
18785 # ... but there are two gotchas:
18786 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18787 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18788 # In both cases, we have to default to `cp -pR'.
5213506e 18789 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18790 as_ln_s='cp -pR'
5213506e
RW
18791 elif ln conf$$.file conf$$ 2>/dev/null; then
18792 as_ln_s=ln
18793 else
22e05272 18794 as_ln_s='cp -pR'
2aeb72e9 18795 fi
1c710c3c 18796else
22e05272 18797 as_ln_s='cp -pR'
1c710c3c 18798fi
5213506e
RW
18799rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18800rmdir conf$$.dir 2>/dev/null
18801
18802
18803# as_fn_mkdir_p
18804# -------------
18805# Create "$as_dir" as a directory, including parents if necessary.
18806as_fn_mkdir_p ()
18807{
18808
18809 case $as_dir in #(
18810 -*) as_dir=./$as_dir;;
18811 esac
18812 test -d "$as_dir" || eval $as_mkdir_p || {
18813 as_dirs=
18814 while :; do
18815 case $as_dir in #(
18816 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18817 *) as_qdir=$as_dir;;
18818 esac
18819 as_dirs="'$as_qdir' $as_dirs"
18820 as_dir=`$as_dirname -- "$as_dir" ||
18821$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18822 X"$as_dir" : 'X\(//\)[^/]' \| \
18823 X"$as_dir" : 'X\(//\)$' \| \
18824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18825$as_echo X"$as_dir" |
18826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18827 s//\1/
18828 q
18829 }
18830 /^X\(\/\/\)[^/].*/{
18831 s//\1/
18832 q
18833 }
18834 /^X\(\/\/\)$/{
18835 s//\1/
18836 q
18837 }
18838 /^X\(\/\).*/{
18839 s//\1/
18840 q
18841 }
18842 s/.*/./; q'`
18843 test -d "$as_dir" && break
18844 done
18845 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18846 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18847
1c710c3c 18848
5213506e 18849} # as_fn_mkdir_p
1c710c3c 18850if mkdir -p . 2>/dev/null; then
5213506e 18851 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18852else
18853 test -d ./-p && rmdir ./-p
18854 as_mkdir_p=false
18855fi
18856
22e05272
JM
18857
18858# as_fn_executable_p FILE
18859# -----------------------
18860# Test if FILE is an executable regular file.
18861as_fn_executable_p ()
18862{
18863 test -f "$1" && test -x "$1"
18864} # as_fn_executable_p
18865as_test_x='test -x'
18866as_executable_p=as_fn_executable_p
1c710c3c
DJ
18867
18868# Sed expression to map a string onto a valid CPP name.
18869as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18870
18871# Sed expression to map a string onto a valid variable name.
18872as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18873
18874
1c710c3c 18875exec 6>&1
5213506e
RW
18876## ----------------------------------- ##
18877## Main body of $CONFIG_STATUS script. ##
18878## ----------------------------------- ##
18879_ASEOF
18880test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18881
18882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18884# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18885# values after options handling.
18886ac_log="
1c710c3c 18887This file was extended by $as_me, which was
22e05272 18888generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18889
18890 CONFIG_FILES = $CONFIG_FILES
18891 CONFIG_HEADERS = $CONFIG_HEADERS
18892 CONFIG_LINKS = $CONFIG_LINKS
18893 CONFIG_COMMANDS = $CONFIG_COMMANDS
18894 $ $0 $@
18895
5213506e
RW
18896on `(hostname || uname -n) 2>/dev/null | sed 1q`
18897"
18898
1c710c3c
DJ
18899_ACEOF
18900
5213506e
RW
18901case $ac_config_files in *"
18902"*) set x $ac_config_files; shift; ac_config_files=$*;;
18903esac
1c710c3c 18904
2aeb72e9 18905
2aeb72e9 18906
5213506e
RW
18907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18908# Files that config.status was made for.
18909config_files="$ac_config_files"
1c710c3c 18910
5213506e 18911_ACEOF
2aeb72e9 18912
5213506e 18913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18914ac_cs_usage="\
5213506e
RW
18915\`$as_me' instantiates files and other configuration actions
18916from templates according to the current configuration. Unless the files
18917and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18918
5213506e 18919Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18920
18921 -h, --help print this help, then exit
5213506e 18922 -V, --version print version number and configuration settings, then exit
22e05272 18923 --config print configuration, then exit
5213506e
RW
18924 -q, --quiet, --silent
18925 do not print progress messages
1c710c3c
DJ
18926 -d, --debug don't remove temporary files
18927 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18928 --file=FILE[:TEMPLATE]
18929 instantiate the configuration file FILE
1c710c3c
DJ
18930
18931Configuration files:
18932$config_files
18933
5213506e 18934Report bugs to the package provider."
2aeb72e9 18935
5213506e
RW
18936_ACEOF
18937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18938ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18939ac_cs_version="\\
18940config.status
22e05272
JM
18941configured by $0, generated by GNU Autoconf 2.69,
18942 with options \\"\$ac_cs_config\\"
1c710c3c 18943
22e05272 18944Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18945This config.status script is free software; the Free Software Foundation
18946gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18947
18948ac_pwd='$ac_pwd'
18949srcdir='$srcdir'
18950INSTALL='$INSTALL'
87264276 18951AWK='$AWK'
5213506e 18952test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18953_ACEOF
18954
5213506e
RW
18955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18956# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18957ac_need_defaults=:
18958while test $# != 0
a4b9e93e 18959do
1c710c3c 18960 case $1 in
22e05272 18961 --*=?*)
5213506e
RW
18962 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18963 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18964 ac_shift=:
18965 ;;
22e05272
JM
18966 --*=)
18967 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18968 ac_optarg=
18969 ac_shift=:
18970 ;;
5213506e 18971 *)
1c710c3c
DJ
18972 ac_option=$1
18973 ac_optarg=$2
18974 ac_shift=shift
18975 ;;
1c710c3c
DJ
18976 esac
18977
18978 case $ac_option in
18979 # Handling of the options.
671aa708 18980 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18981 ac_cs_recheck=: ;;
5213506e
RW
18982 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18983 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18984 --config | --confi | --conf | --con | --co | --c )
18985 $as_echo "$ac_cs_config"; exit ;;
5213506e 18986 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18987 debug=: ;;
18988 --file | --fil | --fi | --f )
18989 $ac_shift
5213506e
RW
18990 case $ac_optarg in
18991 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18992 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18993 esac
18994 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18995 ac_need_defaults=false;;
5213506e
RW
18996 --he | --h | --help | --hel | -h )
18997 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18999 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19000 ac_cs_silent=: ;;
19001
19002 # This is an error.
22e05272 19003 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 19004Try \`$0 --help' for more information." ;;
1c710c3c 19005
5213506e
RW
19006 *) as_fn_append ac_config_targets " $1"
19007 ac_need_defaults=false ;;
1c710c3c 19008
0b0dc272 19009 esac
1c710c3c 19010 shift
0b0dc272
AM
19011done
19012
1c710c3c 19013ac_configure_extra_args=
0b0dc272 19014
1c710c3c
DJ
19015if $ac_cs_silent; then
19016 exec 6>/dev/null
19017 ac_configure_extra_args="$ac_configure_extra_args --silent"
19018fi
0b0dc272 19019
1c710c3c 19020_ACEOF
5213506e 19021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19022if \$ac_cs_recheck; then
22e05272 19023 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19024 shift
19025 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19026 CONFIG_SHELL='$SHELL'
19027 export CONFIG_SHELL
19028 exec "\$@"
1c710c3c
DJ
19029fi
19030
19031_ACEOF
5213506e
RW
19032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033exec 5>>config.log
19034{
19035 echo
19036 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19037## Running $as_me. ##
19038_ASBOX
19039 $as_echo "$ac_log"
19040} >&5
1c710c3c 19041
5213506e
RW
19042_ACEOF
19043cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19044#
19045# INIT-COMMANDS
19046#
19047extrasub_build="$extrasub_build"
19048 extrasub_host="$extrasub_host"
19049 extrasub_target="$extrasub_target"
19050
5213506e 19051_ACEOF
1c710c3c 19052
5213506e 19053cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19054
5213506e 19055# Handling of arguments.
1c710c3c
DJ
19056for ac_config_target in $ac_config_targets
19057do
5213506e
RW
19058 case $ac_config_target in
19059 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19060
22e05272 19061 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19062 esac
19063done
19064
5213506e 19065
1c710c3c
DJ
19066# If the user did not use the arguments to specify the items to instantiate,
19067# then the envvar interface is used. Set only those that are not.
19068# We use the long form for the default assignment because of an extremely
19069# bizarre bug on SunOS 4.1.3.
19070if $ac_need_defaults; then
19071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19072fi
19073
19074# Have a temporary directory for convenience. Make it in the build tree
5213506e 19075# simply because there is no reason against having it here, and in addition,
1c710c3c 19076# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19077# Hook for its removal unless debugging.
19078# Note that there is a small window in which the directory will not be cleaned:
19079# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19080$debug ||
19081{
22e05272 19082 tmp= ac_tmp=
5213506e 19083 trap 'exit_status=$?
22e05272
JM
19084 : "${ac_tmp:=$tmp}"
19085 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19086' 0
19087 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19088}
1c710c3c
DJ
19089# Create a (secure) tmp directory for tmp files.
19090
19091{
5213506e 19092 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19093 test -d "$tmp"
1c710c3c
DJ
19094} ||
19095{
5213506e
RW
19096 tmp=./conf$$-$RANDOM
19097 (umask 077 && mkdir "$tmp")
22e05272
JM
19098} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19099ac_tmp=$tmp
5213506e
RW
19100
19101# Set up the scripts for CONFIG_FILES section.
19102# No need to generate them if there are no CONFIG_FILES.
19103# This happens for instance with `./config.status config.h'.
19104if test -n "$CONFIG_FILES"; then
19105
19106if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19107 ac_cs_awk_getline=:
19108 ac_cs_awk_pipe_init=
19109 ac_cs_awk_read_file='
19110 while ((getline aline < (F[key])) > 0)
19111 print(aline)
19112 close(F[key])'
19113 ac_cs_awk_pipe_fini=
19114else
19115 ac_cs_awk_getline=false
19116 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19117 ac_cs_awk_read_file='
19118 print "|#_!!_#|"
19119 print "cat " F[key] " &&"
19120 '$ac_cs_awk_pipe_init
19121 # The final `:' finishes the AND list.
19122 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19123fi
19124ac_cr=`echo X | tr X '\015'`
19125# On cygwin, bash can eat \r inside `` if the user requested igncr.
19126# But we know of no other shell where ac_cr would be empty at this
19127# point, so we can use a bashism as a fallback.
19128if test "x$ac_cr" = x; then
19129 eval ac_cr=\$\'\\r\'
19130fi
19131ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19132if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19133 ac_cs_awk_cr='\\r'
5213506e
RW
19134else
19135 ac_cs_awk_cr=$ac_cr
19136fi
19137
22e05272 19138echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19139_ACEOF
19140
19141# Create commands to substitute file output variables.
1c710c3c 19142{
5213506e 19143 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19144 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19145 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19146 echo "_ACAWK" &&
19147 echo "_ACEOF"
19148} >conf$$files.sh &&
19149. ./conf$$files.sh ||
22e05272 19150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19151rm -f conf$$files.sh
1c710c3c 19152
5213506e
RW
19153{
19154 echo "cat >conf$$subs.awk <<_ACEOF" &&
19155 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19156 echo "_ACEOF"
19157} >conf$$subs.sh ||
22e05272
JM
19158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19159ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19160ac_delim='%!_!# '
19161for ac_last_try in false false false false false :; do
19162 . ./conf$$subs.sh ||
22e05272 19163 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19164
19165 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19166 if test $ac_delim_n = $ac_delim_num; then
19167 break
19168 elif $ac_last_try; then
22e05272 19169 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19170 else
19171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19172 fi
19173done
19174rm -f conf$$subs.sh
19175
19176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19177cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19178_ACEOF
5213506e
RW
19179sed -n '
19180h
19181s/^/S["/; s/!.*/"]=/
19182p
19183g
19184s/^[^!]*!//
19185:repl
19186t repl
19187s/'"$ac_delim"'$//
19188t delim
19189:nl
19190h
22e05272 19191s/\(.\{148\}\)..*/\1/
5213506e
RW
19192t more1
19193s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19194p
19195n
19196b repl
19197:more1
19198s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19199p
19200g
19201s/.\{148\}//
19202t nl
19203:delim
19204h
22e05272 19205s/\(.\{148\}\)..*/\1/
5213506e
RW
19206t more2
19207s/["\\]/\\&/g; s/^/"/; s/$/"/
19208p
19209b
19210:more2
19211s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19212p
19213g
19214s/.\{148\}//
19215t delim
19216' <conf$$subs.awk | sed '
19217/^[^""]/{
19218 N
19219 s/\n//
19220}
19221' >>$CONFIG_STATUS || ac_write_fail=1
19222rm -f conf$$subs.awk
19223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19224_ACAWK
22e05272 19225cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19226 for (key in S) S_is_set[key] = 1
19227 FS = "\a"
19228 \$ac_cs_awk_pipe_init
19229}
19230{
19231 line = $ 0
19232 nfields = split(line, field, "@")
19233 substed = 0
19234 len = length(field[1])
19235 for (i = 2; i < nfields; i++) {
19236 key = field[i]
19237 keylen = length(key)
19238 if (S_is_set[key]) {
19239 value = S[key]
19240 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19241 len += length(value) + length(field[++i])
19242 substed = 1
19243 } else
19244 len += 1 + keylen
19245 }
19246 if (nfields == 3 && !substed) {
19247 key = field[2]
19248 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19249 \$ac_cs_awk_read_file
19250 next
19251 }
19252 }
19253 print line
19254}
19255\$ac_cs_awk_pipe_fini
19256_ACAWK
19257_ACEOF
19258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19259if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19260 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19261else
19262 cat
22e05272
JM
19263fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19264 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19265_ACEOF
19266
22e05272
JM
19267# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19268# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19269# trailing colons and then remove the whole line if VPATH becomes empty
19270# (actually we leave an empty line to preserve line numbers).
19271if test "x$srcdir" = x.; then
22e05272
JM
19272 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19273h
19274s///
19275s/^/:/
19276s/[ ]*$/:/
19277s/:\$(srcdir):/:/g
19278s/:\${srcdir}:/:/g
19279s/:@srcdir@:/:/g
19280s/^:*//
5213506e 19281s/:*$//
22e05272
JM
19282x
19283s/\(=[ ]*\).*/\1/
19284G
19285s/\n//
5213506e
RW
19286s/^[^=]*=[ ]*$//
19287}'
19288fi
2aeb72e9 19289
5213506e
RW
19290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19291fi # test -n "$CONFIG_FILES"
2aeb72e9 19292
1c710c3c 19293
5213506e
RW
19294eval set X " :F $CONFIG_FILES "
19295shift
19296for ac_tag
19297do
19298 case $ac_tag in
19299 :[FHLC]) ac_mode=$ac_tag; continue;;
19300 esac
19301 case $ac_mode$ac_tag in
19302 :[FHL]*:*);;
22e05272 19303 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19304 :[FH]-) ac_tag=-:-;;
19305 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19306 esac
19307 ac_save_IFS=$IFS
19308 IFS=:
19309 set x $ac_tag
19310 IFS=$ac_save_IFS
19311 shift
19312 ac_file=$1
19313 shift
79c06341 19314
5213506e
RW
19315 case $ac_mode in
19316 :L) ac_source=$1;;
19317 :[FH])
19318 ac_file_inputs=
19319 for ac_f
19320 do
19321 case $ac_f in
22e05272 19322 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19323 *) # Look for the file first in the build tree, then in the source tree
19324 # (if the path is not absolute). The absolute path cannot be DOS-style,
19325 # because $ac_f cannot contain `:'.
19326 test -f "$ac_f" ||
19327 case $ac_f in
19328 [\\/$]*) false;;
19329 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19330 esac ||
22e05272 19331 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19332 esac
19333 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19334 as_fn_append ac_file_inputs " '$ac_f'"
19335 done
1c710c3c 19336
5213506e
RW
19337 # Let's still pretend it is `configure' which instantiates (i.e., don't
19338 # use $as_me), people would be surprised to read:
19339 # /* config.h. Generated by config.status. */
19340 configure_input='Generated from '`
19341 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19342 `' by configure.'
19343 if test x"$ac_file" != x-; then
19344 configure_input="$ac_file. $configure_input"
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19346$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19347 fi
5213506e
RW
19348 # Neutralize special characters interpreted by sed in replacement strings.
19349 case $configure_input in #(
19350 *\&* | *\|* | *\\* )
19351 ac_sed_conf_input=`$as_echo "$configure_input" |
19352 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19353 *) ac_sed_conf_input=$configure_input;;
19354 esac
11a67599 19355
5213506e 19356 case $ac_tag in
22e05272
JM
19357 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19358 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19359 esac
19360 ;;
11a67599
ZW
19361 esac
19362
5213506e 19363 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19364$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19365 X"$ac_file" : 'X\(//\)[^/]' \| \
19366 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19368$as_echo X"$ac_file" |
19369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19370 s//\1/
19371 q
19372 }
19373 /^X\(\/\/\)[^/].*/{
19374 s//\1/
19375 q
19376 }
19377 /^X\(\/\/\)$/{
19378 s//\1/
19379 q
19380 }
19381 /^X\(\/\).*/{
19382 s//\1/
19383 q
19384 }
19385 s/.*/./; q'`
19386 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19387 ac_builddir=.
0b0dc272 19388
5213506e
RW
19389case "$ac_dir" in
19390.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19391*)
19392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19393 # A ".." for each directory in $ac_dir_suffix.
19394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19395 case $ac_top_builddir_sub in
19396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19398 esac ;;
19399esac
19400ac_abs_top_builddir=$ac_pwd
19401ac_abs_builddir=$ac_pwd$ac_dir_suffix
19402# for backward compatibility:
19403ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19404
19405case $srcdir in
5213506e 19406 .) # We are building in place.
1c710c3c 19407 ac_srcdir=.
5213506e
RW
19408 ac_top_srcdir=$ac_top_builddir_sub
19409 ac_abs_top_srcdir=$ac_pwd ;;
19410 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19411 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19412 ac_top_srcdir=$srcdir
19413 ac_abs_top_srcdir=$srcdir ;;
19414 *) # Relative name.
19415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19416 ac_top_srcdir=$ac_top_build_prefix$srcdir
19417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19418esac
5213506e 19419ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19420
0b0dc272 19421
5213506e
RW
19422 case $ac_mode in
19423 :F)
19424 #
19425 # CONFIG_FILE
19426 #
1c710c3c
DJ
19427
19428 case $INSTALL in
19429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19431 esac
5213506e 19432_ACEOF
11a67599 19433
5213506e
RW
19434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19435# If the template does not know about datarootdir, expand it.
19436# FIXME: This hack should be removed a few years after 2.60.
19437ac_datarootdir_hack=; ac_datarootdir_seen=
19438ac_sed_dataroot='
19439/datarootdir/ {
19440 p
19441 q
19442}
19443/@datadir@/p
19444/@docdir@/p
19445/@infodir@/p
19446/@localedir@/p
19447/@mandir@/p'
19448case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19449*datarootdir*) ac_datarootdir_seen=yes;;
19450*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19452$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19453_ACEOF
5213506e
RW
19454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 ac_datarootdir_hack='
19456 s&@datadir@&$datadir&g
19457 s&@docdir@&$docdir&g
19458 s&@infodir@&$infodir&g
19459 s&@localedir@&$localedir&g
19460 s&@mandir@&$mandir&g
19461 s&\\\${datarootdir}&$datarootdir&g' ;;
19462esac
19463_ACEOF
19464
19465# Neutralize VPATH when `$srcdir' = `.'.
19466# Shell code in configure.ac might set extrasub.
19467# FIXME: do we really want to maintain this feature?
19468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19469ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19470$extrasub
19471_ACEOF
5213506e 19472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19473:t
19474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19475s|@configure_input@|$ac_sed_conf_input|;t t
19476s&@top_builddir@&$ac_top_builddir_sub&;t t
19477s&@top_build_prefix@&$ac_top_build_prefix&;t t
19478s&@srcdir@&$ac_srcdir&;t t
19479s&@abs_srcdir@&$ac_abs_srcdir&;t t
19480s&@top_srcdir@&$ac_top_srcdir&;t t
19481s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19482s&@builddir@&$ac_builddir&;t t
19483s&@abs_builddir@&$ac_abs_builddir&;t t
19484s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19485s&@INSTALL@&$ac_INSTALL&;t t
19486$ac_datarootdir_hack
19487"
19488eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19489if $ac_cs_awk_getline; then
22e05272 19490 $AWK -f "$ac_tmp/subs.awk"
5213506e 19491else
22e05272
JM
19492 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19493fi \
19494 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19495
19496test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19497 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19499 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19501which seems to be undefined. Please make sure it is defined" >&5
5213506e 19502$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19503which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19504
22e05272 19505 rm -f "$ac_tmp/stdin"
5213506e 19506 case $ac_file in
22e05272
JM
19507 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19508 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19509 esac \
22e05272 19510 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19511 ;;
11a67599 19512
11a67599 19513
79c06341 19514
5213506e
RW
19515 esac
19516
3e54529c
RW
19517
19518 case $ac_file$ac_mode in
19519 "Makefile":F) sed "$extrasub_build" Makefile |
19520 sed "$extrasub_host" |
19521 sed "$extrasub_target" > mf$$
19522 mv -f mf$$ Makefile ;;
19523
19524 esac
5213506e
RW
19525done # for ac_tag
19526
19527
19528as_fn_exit 0
1c710c3c 19529_ACEOF
1c710c3c
DJ
19530ac_clean_files=$ac_clean_files_save
19531
5213506e 19532test $ac_write_fail = 0 ||
22e05272 19533 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19534
1c710c3c
DJ
19535
19536# configure is writing to config.log, and then calls config.status.
19537# config.status does its own redirection, appending to config.log.
19538# Unfortunately, on DOS this fails, as config.log is still kept open
19539# by configure, so config.status won't be able to write to it; its
19540# output is simply discarded. So we exec the FD to /dev/null,
19541# effectively closing config.log, so it can be properly (re)opened and
19542# appended to by config.status. When coming back to configure, we
19543# need to make the FD available again.
19544if test "$no_create" != yes; then
19545 ac_cs_success=:
19546 ac_config_status_args=
19547 test "$silent" = yes &&
19548 ac_config_status_args="$ac_config_status_args --quiet"
19549 exec 5>/dev/null
19550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19551 exec 5>>config.log
19552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19553 # would make configure fail if this is the last instruction.
22e05272 19554 $ac_cs_success || as_fn_exit 1
5213506e
RW
19555fi
19556if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19558$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19559fi
79c06341 19560