]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Update gcc .po files
[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
5213506e
RW
814with_mpfr
815with_mpfr_include
816with_mpfr_lib
5213506e
RW
817with_gmp
818with_gmp_include
819with_gmp_lib
5213506e 820with_stage1_libs
aac9103b 821with_static_standard_libraries
0b21f5d3 822with_stage1_ldflags
5213506e 823with_boot_libs
ed2eaa9f 824with_boot_ldflags
33ad93b9
RG
825with_isl
826with_isl_include
827with_isl_lib
828enable_isl_version_check
d7f09764 829enable_lto
45b3824d
TS
830enable_linker_plugin_configure_flags
831enable_linker_plugin_flags
cdfee50a 832enable_host_shared
5213506e 833enable_stage1_languages
43c40f3e 834enable_objc_gc
114bf3f1
MK
835with_target_bdw_gc
836with_target_bdw_gc_include
837with_target_bdw_gc_lib
3c36aa6b 838with_gcc_major_version_only
5213506e
RW
839with_build_sysroot
840with_debug_prefix_map
5646b7b9 841with_build_config
beeda1d9 842enable_vtable_verify
5213506e
RW
843enable_serial_configure
844with_build_time_tools
845enable_maintainer_mode
846enable_stage1_checking
847enable_werror
5213506e
RW
848'
849 ac_precious_vars='build_alias
850host_alias
851target_alias
852CC
853CFLAGS
854LDFLAGS
855LIBS
856CPPFLAGS
857CXX
858CXXFLAGS
859CCC
ffedf511
RW
860build_configargs
861host_configargs
862target_configargs
5213506e
RW
863AR
864AS
865DLLTOOL
3b5e8ee4 866DSYMUTIL
5213506e
RW
867LD
868LIPO
869NM
870RANLIB
871STRIP
872WINDRES
873WINDMC
874OBJCOPY
875OBJDUMP
e4a9a572 876OTOOL
e7a82751 877READELF
5213506e
RW
878CC_FOR_TARGET
879CXX_FOR_TARGET
880GCC_FOR_TARGET
5213506e 881GFORTRAN_FOR_TARGET
632e2a07 882GOC_FOR_TARGET
b4c522fa 883GDC_FOR_TARGET
5213506e
RW
884AR_FOR_TARGET
885AS_FOR_TARGET
886DLLTOOL_FOR_TARGET
3b5e8ee4 887DSYMUTIL_FOR_TARGET
5213506e
RW
888LD_FOR_TARGET
889LIPO_FOR_TARGET
890NM_FOR_TARGET
9bccfdf5 891OBJCOPY_FOR_TARGET
5213506e 892OBJDUMP_FOR_TARGET
e4a9a572 893OTOOL_FOR_TARGET
5213506e 894RANLIB_FOR_TARGET
e7a82751 895READELF_FOR_TARGET
5213506e
RW
896STRIP_FOR_TARGET
897WINDRES_FOR_TARGET
898WINDMC_FOR_TARGET'
899
671aa708
NN
900
901# Initialize some variables set by options.
1c710c3c
DJ
902ac_init_help=
903ac_init_version=false
5213506e
RW
904ac_unrecognized_opts=
905ac_unrecognized_sep=
671aa708
NN
906# The variables have the same names as the options, with
907# dashes changed to underlines.
1c710c3c 908cache_file=/dev/null
671aa708 909exec_prefix=NONE
671aa708 910no_create=
671aa708
NN
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
671aa708
NN
919verbose=
920x_includes=NONE
921x_libraries=NONE
1c710c3c
DJ
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 928# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
5213506e
RW
932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
671aa708
NN
934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
671aa708
NN
937includedir='${prefix}/include'
938oldincludedir='/usr/include'
5213506e
RW
939docdir='${datarootdir}/doc/${PACKAGE}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
79c06341 948
671aa708 949ac_prev=
5213506e 950ac_dashdash=
671aa708
NN
951for ac_option
952do
671aa708
NN
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
5213506e 955 eval $ac_prev=\$ac_option
671aa708
NN
956 ac_prev=
957 continue
958 fi
79c06341 959
5213506e 960 case $ac_option in
22e05272
JM
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
5213506e 964 esac
671aa708
NN
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
5213506e
RW
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
671aa708
NN
971
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 975 bindir=$ac_optarg ;;
671aa708
NN
976
977 -build | --build | --buil | --bui | --bu)
1c710c3c 978 ac_prev=build_alias ;;
671aa708 979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 980 build_alias=$ac_optarg ;;
671aa708
NN
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
671aa708 991
5213506e 992 -datadir | --datadir | --datadi | --datad)
671aa708 993 ac_prev=datadir ;;
5213506e 994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 995 datadir=$ac_optarg ;;
671aa708 996
5213506e
RW
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
671aa708 1004 -disable-* | --disable-*)
5213506e 1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 1006 # Reject names that are not valid shell variable names.
5213506e 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1008 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
671aa708
NN
1029
1030 -enable-* | --enable-*)
5213506e 1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1032 # Reject names that are not valid shell variable names.
5213506e 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1034 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
2aeb72e9 1043 esac
5213506e 1044 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1c710c3c 1053 exec_prefix=$ac_optarg ;;
671aa708
NN
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
1c710c3c
DJ
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
671aa708
NN
1065
1066 -host | --host | --hos | --ho)
1c710c3c 1067 ac_prev=host_alias ;;
671aa708 1068 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1069 host_alias=$ac_optarg ;;
671aa708 1070
5213506e
RW
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
671aa708
NN
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1082 includedir=$ac_optarg ;;
671aa708
NN
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1087 infodir=$ac_optarg ;;
671aa708
NN
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1092 libdir=$ac_optarg ;;
671aa708
NN
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1099 libexecdir=$ac_optarg ;;
671aa708 1100
5213506e
RW
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
671aa708 1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1107 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1111 localstatedir=$ac_optarg ;;
671aa708
NN
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1116 mandir=$ac_optarg ;;
671aa708
NN
1117
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1123 | --no-cr | --no-c | -n)
671aa708
NN
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1137 oldincludedir=$ac_optarg ;;
671aa708
NN
1138
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1142 prefix=$ac_optarg ;;
671aa708
NN
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1149 program_prefix=$ac_optarg ;;
671aa708
NN
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1156 program_suffix=$ac_optarg ;;
671aa708
NN
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1173 program_transform_name=$ac_optarg ;;
671aa708 1174
5213506e
RW
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
671aa708
NN
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
1c710c3c 1193 sbindir=$ac_optarg ;;
671aa708
NN
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
1c710c3c 1204 sharedstatedir=$ac_optarg ;;
671aa708
NN
1205
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
1c710c3c 1209 site=$ac_optarg ;;
671aa708
NN
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1214 srcdir=$ac_optarg ;;
671aa708
NN
1215
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1221 sysconfdir=$ac_optarg ;;
671aa708
NN
1222
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1224 ac_prev=target_alias ;;
671aa708 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1226 target_alias=$ac_optarg ;;
671aa708
NN
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
1c710c3c
DJ
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
671aa708
NN
1233
1234 -with-* | --with-*)
5213506e 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1236 # Reject names that are not valid shell variable names.
5213506e 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1238 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
2aeb72e9 1247 esac
5213506e 1248 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1249
1250 -without-* | --without-*)
5213506e 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1252 # Reject names that are not valid shell variable names.
5213506e 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1254 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
671aa708
NN
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1275 x_includes=$ac_optarg ;;
671aa708
NN
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1282 x_libraries=$ac_optarg ;;
671aa708 1283
22e05272
JM
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
671aa708
NN
1286 ;;
1287
1c710c3c
DJ
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
5213506e
RW
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1294 esac
1295 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1296 export $ac_envvar ;;
1297
671aa708 1298 *)
1c710c3c 1299 # FIXME: should be removed in autoconf 3.0.
5213506e 1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
1c710c3c 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1311 as_fn_error $? "missing argument to $ac_option"
af71363e 1312fi
af71363e 1313
5213506e
RW
1314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
22e05272 1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1319 esac
5213506e 1320fi
2aeb72e9 1321
5213506e
RW
1322# Check all directory arguments for consistency.
1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
2aeb72e9 1327do
5213506e
RW
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
2aeb72e9 1336 case $ac_val in
5213506e
RW
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1339 esac
22e05272 1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1341done
1342
1c710c3c
DJ
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
0b0dc272 1349
1c710c3c
DJ
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1c710c3c
DJ
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357fi
1358
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
671aa708 1363
671aa708 1364
5213506e
RW
1365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1368 as_fn_error $? "working directory cannot be determined"
5213506e 1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1370 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1371
1372
671aa708
NN
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
5213506e
RW
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
671aa708 1400 srcdir=$ac_confdir
5213506e 1401 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1402 srcdir=..
1403 fi
1404else
1405 ac_srcdir_defaulted=no
1406fi
5213506e
RW
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1410fi
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
22e05272 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1414 pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
87841584
AM
1425case $srcdir in
1426 *" "*)
22e05272 1427 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1428 ;;
1429esac
ac9e6043
RW
1430ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1431
5213506e
RW
1432for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
1c710c3c
DJ
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446\`configure' configures this package to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE. See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
22e05272 1460 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465
1c710c3c
DJ
1466Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1468 [$ac_default_prefix]
1c710c3c 1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1470 [PREFIX]
1c710c3c
DJ
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
5213506e
RW
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1499_ACEOF
1500
1501 cat <<\_ACEOF
1502
1503Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507
1508System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1512_ACEOF
1513fi
1514
1515if test -n "$ac_init_help"; then
1516
1517 cat <<\_ACEOF
1518
1519Optional Features:
5213506e 1520 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1523 --enable-as-accelerator-for=ARG
1524 build as offload target compiler. Specify offload
1525 host triple by ARG
1526 --enable-offload-targets=LIST
1527 enable offloading to devices from comma-separated
1528 LIST of TARGET[=DIR]. Use optional path to find
1529 offload target compiler during the build
fe5bfa67
TB
1530 --enable-offload-defaulted
1531 If enabled, configured but not installed offload compilers and
1532 libgomp plugins are silently ignored. Useful for distribution
1533 compilers where those are in separate optional packages.
1534
21539e2e 1535 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1536 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1537 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1538 Enable compressed debug sections for gas, gold or ld
1539 by default
87e6d9dc
TB
1540 --disable-libquadmath do not build libquadmath directory
1541 --disable-libquadmath-support
1542 disable libquadmath support for Fortran
30b74385
RW
1543 --enable-libada build libada directory
1544 --enable-libssp build libssp directory
1873ec0c 1545 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1546 --enable-liboffloadmic=ARG
1547 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1548 --enable-bootstrap enable bootstrapping [yes if native build]
4a5e71f2
L
1549 --enable-pgo-build[=lto]
1550 enable the PGO build
33ad93b9 1551 --disable-isl-version-check
560d18d3 1552 disable check for isl version
d7f09764 1553 --enable-lto enable link time optimization support
45b3824d
TS
1554 --enable-linker-plugin-configure-flags=FLAGS
1555 additional flags for configuring linker plugins
1556 [none]
1557 --enable-linker-plugin-flags=FLAGS
1558 additional flags for configuring and building linker
1559 plugins [none]
cdfee50a 1560 --enable-host-shared build host code as shared libraries
33e39b66
AS
1561 --enable-stage1-languages[=all]
1562 choose additional languages to build during stage1.
1563 Mostly useful for compiler development
43c40f3e
RO
1564 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1565 Objective-C runtime
318a4e6d 1566 --enable-vtable-verify Enable vtable verification feature
30b74385 1567 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1568 force sequential configuration of sub-packages for
1569 the host, target or build machine, or all
1570 sub-packages
1571 --enable-maintainer-mode
1572 enable make rules and dependencies not useful (and
1573 sometimes confusing) to the casual installer
1574 --enable-stage1-checking[=all]
1575 choose additional checking for stage1 of the
1576 compiler
1c710c3c
DJ
1577 --enable-werror enable -Werror in bootstrap stage2 and later
1578
1579Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1583 --with-system-zlib use installed libz
33e39b66
AS
1584 --with-mpc=PATH specify prefix directory for installed MPC package.
1585 Equivalent to --with-mpc-include=PATH/include plus
1586 --with-mpc-lib=PATH/lib
1587 --with-mpc-include=PATH specify directory for installed MPC include files
1588 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385 1589 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1590 Equivalent to --with-mpfr-include=PATH/include plus
1591 --with-mpfr-lib=PATH/lib
1c710c3c 1592 --with-mpfr-include=PATH
30b74385
RW
1593 specify directory for installed MPFR include files
1594 --with-mpfr-lib=PATH specify directory for the installed MPFR library
33e39b66
AS
1595 --with-gmp=PATH specify prefix directory for the installed GMP
1596 package. Equivalent to
1597 --with-gmp-include=PATH/include plus
1598 --with-gmp-lib=PATH/lib
30b74385
RW
1599 --with-gmp-include=PATH specify directory for installed GMP include files
1600 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1601 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1602 --with-static-standard-libraries
1603 use -static-libstdc++ and -static-libgcc
1604 (default=auto)
33e39b66
AS
1605 --with-stage1-ldflags=FLAGS
1606 linker flags for stage1
33e39b66
AS
1607 --with-boot-libs=LIBS libraries for stage2 and later
1608 --with-boot-ldflags=FLAGS
1609 linker flags for stage2 and later
e357a5e0 1610 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1611 package. Equivalent to
33ad93b9
RG
1612 --with-isl-include=PATH/include plus
1613 --with-isl-lib=PATH/lib
560d18d3
AK
1614 --with-isl-include=PATH Specify directory for installed isl include files
1615 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1616 --with-target-bdw-gc=PATHLIST
1617 specify prefix directory for installed bdw-gc
1618 package. Equivalent to
1619 --with-target-bdw-gc-include=PATH/include plus
1620 --with-target-bdw-gc-lib=PATH/lib
1621 --with-target-bdw-gc-include=PATHLIST
1622 specify directories for installed bdw-gc include
1623 files
1624 --with-target-bdw-gc-lib=PATHLIST
1625 specify directories for installed bdw-gc library
3c36aa6b
JJ
1626 --with-gcc-major-version-only
1627 use only GCC major number in filesystem paths
30b74385 1628 --with-build-sysroot=SYSROOT
1c710c3c 1629 use sysroot as the system root during the build
c8aea42c 1630 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1631 map A to B, C to D ... in debug information
1632 --with-build-config='NAME NAME2...'
1633 use config/NAME.mk build configuration
30b74385 1634 --with-build-time-tools=PATH
1c710c3c 1635 use given path to find target tools during the build
1c710c3c
DJ
1636
1637Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
5213506e 1642 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1644 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
ffedf511
RW
1647 build_configargs
1648 additional configure arguments for build directories
1649 host_configargs
1650 additional configure arguments for host directories
1651 target_configargs
1652 additional configure arguments for target directories
278a7a38
AO
1653 AR AR for the host
1654 AS AS for the host
1655 DLLTOOL DLLTOOL for the host
3b5e8ee4 1656 DSYMUTIL DSYMUTIL for the host
278a7a38
AO
1657 LD LD for the host
1658 LIPO LIPO for the host
1659 NM NM for the host
1660 RANLIB RANLIB for the host
1661 STRIP STRIP for the host
1662 WINDRES WINDRES for the host
901119ae 1663 WINDMC WINDMC for the host
278a7a38
AO
1664 OBJCOPY OBJCOPY for the host
1665 OBJDUMP OBJDUMP for the host
e4a9a572 1666 OTOOL OTOOL for the host
e7a82751 1667 READELF READELF for the host
278a7a38
AO
1668 CC_FOR_TARGET
1669 CC for the target
1670 CXX_FOR_TARGET
1671 CXX for the target
1672 GCC_FOR_TARGET
1673 GCC for the target
278a7a38
AO
1674 GFORTRAN_FOR_TARGET
1675 GFORTRAN for the target
632e2a07
ILT
1676 GOC_FOR_TARGET
1677 GOC for the target
b4c522fa
IB
1678 GDC_FOR_TARGET
1679 GDC for the target
278a7a38
AO
1680 AR_FOR_TARGET
1681 AR for the target
1682 AS_FOR_TARGET
1683 AS for the target
1684 DLLTOOL_FOR_TARGET
1685 DLLTOOL for the target
3b5e8ee4
IS
1686 DSYMUTIL_FOR_TARGET
1687 DSYMUTIL for the target
278a7a38
AO
1688 LD_FOR_TARGET
1689 LD for the target
1690 LIPO_FOR_TARGET
1691 LIPO for the target
1692 NM_FOR_TARGET
1693 NM for the target
9bccfdf5
AP
1694 OBJCOPY_FOR_TARGET
1695 OBJCOPY for the target
278a7a38
AO
1696 OBJDUMP_FOR_TARGET
1697 OBJDUMP for the target
e4a9a572
IS
1698 OTOOL_FOR_TARGET
1699 OTOOL for the target
278a7a38
AO
1700 RANLIB_FOR_TARGET
1701 RANLIB for the target
e7a82751
RM
1702 READELF_FOR_TARGET
1703 READELF for the target
278a7a38
AO
1704 STRIP_FOR_TARGET
1705 STRIP for the target
1706 WINDRES_FOR_TARGET
1707 WINDRES for the target
901119ae
KT
1708 WINDMC_FOR_TARGET
1709 WINDMC for the target
1c710c3c
DJ
1710
1711Use these variables to override the choices made by `configure' or to help
1712it to find libraries and programs with nonstandard names/locations.
1713
5213506e 1714Report bugs to the package provider.
1c710c3c 1715_ACEOF
5213506e 1716ac_status=$?
1c710c3c
DJ
1717fi
1718
1719if test "$ac_init_help" = "recursive"; then
1720 # If there are subdirs, report their specific --help.
1c710c3c 1721 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1722 test -d "$ac_dir" ||
1723 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1724 continue
1c710c3c
DJ
1725 ac_builddir=.
1726
5213506e
RW
1727case "$ac_dir" in
1728.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1729*)
1730 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731 # A ".." for each directory in $ac_dir_suffix.
1732 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733 case $ac_top_builddir_sub in
1734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1736 esac ;;
1737esac
1738ac_abs_top_builddir=$ac_pwd
1739ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740# for backward compatibility:
1741ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1742
1743case $srcdir in
5213506e 1744 .) # We are building in place.
1c710c3c 1745 ac_srcdir=.
5213506e
RW
1746 ac_top_srcdir=$ac_top_builddir_sub
1747 ac_abs_top_srcdir=$ac_pwd ;;
1748 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1749 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1750 ac_top_srcdir=$srcdir
1751 ac_abs_top_srcdir=$srcdir ;;
1752 *) # Relative name.
1753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754 ac_top_srcdir=$ac_top_build_prefix$srcdir
1755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1756esac
5213506e
RW
1757ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1758
1759 cd "$ac_dir" || { ac_status=$?; continue; }
1760 # Check for guested configure.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1762 echo &&
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1767 else
5213506e
RW
1768 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769 fi || ac_status=$?
1770 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1771 done
1772fi
1773
5213506e 1774test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1775if $ac_init_version; then
1776 cat <<\_ACEOF
5213506e 1777configure
22e05272 1778generated by GNU Autoconf 2.69
1c710c3c 1779
22e05272 1780Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1781This configure script is free software; the Free Software Foundation
1782gives unlimited permission to copy, distribute and modify it.
1783_ACEOF
5213506e 1784 exit
0b0dc272 1785fi
5213506e
RW
1786
1787## ------------------------ ##
1788## Autoconf initialization. ##
1789## ------------------------ ##
1790
1791# ac_fn_c_try_compile LINENO
1792# --------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_compile ()
1795{
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1806 ac_status=$?
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1811 fi
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
22e05272
JM
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
5213506e
RW
1826
1827} # ac_fn_c_try_compile
1828
1829# ac_fn_cxx_try_compile LINENO
1830# ----------------------------
1831# Try to compile conftest.$ac_ext, and return whether this succeeded.
1832ac_fn_cxx_try_compile ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1837case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1844 ac_status=$?
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1849 fi
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1855 ac_retval=0
1856else
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=1
1861fi
22e05272
JM
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
5213506e
RW
1864
1865} # ac_fn_cxx_try_compile
1866
0b21f5d3
EB
1867# ac_fn_cxx_try_link LINENO
1868# -------------------------
1869# Try to link conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_link ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1875case "(($ac_try" in
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1882 ac_status=$?
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1887 fi
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
22e05272 1894 test -x conftest$ac_exeext
0b21f5d3
EB
1895 }; then :
1896 ac_retval=0
1897else
1898 $as_echo "$as_me: failed program was:" >&5
1899sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_retval=1
1902fi
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
0b21f5d3
EB
1910
1911} # ac_fn_cxx_try_link
1912
5213506e
RW
1913# ac_fn_c_try_link LINENO
1914# -----------------------
1915# Try to link conftest.$ac_ext, and return whether this succeeded.
1916ac_fn_c_try_link ()
1917{
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1921case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1928 ac_status=$?
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1933 fi
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
22e05272 1940 test -x conftest$ac_exeext
5213506e
RW
1941 }; then :
1942 ac_retval=0
1943else
1944 $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947 ac_retval=1
1948fi
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
5213506e
RW
1956
1957} # ac_fn_c_try_link
1958cat >config.log <<_ACEOF
1c710c3c
DJ
1959This file contains any messages produced by compilers while
1960running configure, to aid debugging if configure makes a mistake.
1961
1962It was created by $as_me, which was
22e05272 1963generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1964
1965 $ $0 $@
1966
1967_ACEOF
5213506e 1968exec 5>>config.log
1c710c3c
DJ
1969{
1970cat <<_ASUNAME
1971## --------- ##
1972## Platform. ##
1973## --------- ##
1974
1975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980
1981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1983
1984/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1987/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1988/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1991
1992_ASUNAME
1993
1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995for as_dir in $PATH
1996do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
5213506e
RW
1999 $as_echo "PATH: $as_dir"
2000 done
2001IFS=$as_save_IFS
1c710c3c
DJ
2002
2003} >&5
2004
2005cat >&5 <<_ACEOF
2006
2007
2008## ----------- ##
2009## Core tests. ##
2010## ----------- ##
2011
2012_ACEOF
2013
2014
2015# Keep a trace of the command line.
2016# Strip out --no-create and --no-recursion so they do not pile up.
2017# Strip out --silent because we don't want to record it for future runs.
2018# Also quote any args containing shell meta-characters.
2019# Make two passes to allow for proper duplicate-argument suppression.
2020ac_configure_args=
2021ac_configure_args0=
2022ac_configure_args1=
1c710c3c
DJ
2023ac_must_keep_next=false
2024for ac_pass in 1 2
2025do
2026 for ac_arg
2027 do
2028 case $ac_arg in
2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031 | -silent | --silent | --silen | --sile | --sil)
2032 continue ;;
5213506e
RW
2033 *\'*)
2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2035 esac
2036 case $ac_pass in
5213506e 2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2038 2)
5213506e 2039 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2040 if test $ac_must_keep_next = true; then
2041 ac_must_keep_next=false # Got value, back to normal.
2042 else
2043 case $ac_arg in
2044 *=* | --config-cache | -C | -disable-* | --disable-* \
2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047 | -with-* | --with-* | -without-* | --without-* | --x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2050 esac
2051 ;;
2052 -* ) ac_must_keep_next=true ;;
2053 esac
2054 fi
5213506e 2055 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2056 ;;
2057 esac
2058 done
2059done
5213506e
RW
2060{ ac_configure_args0=; unset ac_configure_args0;}
2061{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2062
2063# When interrupted or exit'd, cleanup temporary files, and complete
2064# config.log. We remove comments because anyway the quotes in there
2065# would cause problems or look ugly.
5213506e
RW
2066# WARNING: Use '\'' to represent an apostrophe within the trap.
2067# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2068trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2070 {
2071 echo
2072
22e05272 2073 $as_echo "## ---------------- ##
1c710c3c 2074## Cache variables. ##
22e05272 2075## ---------------- ##"
1c710c3c
DJ
2076 echo
2077 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2078(
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2081 case $ac_val in #(
2082 *${as_nl}*)
2083 case $ac_var in #(
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2086 esac
2087 case $ac_var in #(
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2091 esac ;;
2092 esac
2093 done
1c710c3c 2094 (set) 2>&1 |
5213506e
RW
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
1c710c3c 2097 sed -n \
5213506e
RW
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2100 ;; #(
1c710c3c 2101 *)
5213506e 2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2103 ;;
5213506e
RW
2104 esac |
2105 sort
2106)
1c710c3c
DJ
2107 echo
2108
22e05272 2109 $as_echo "## ----------------- ##
1c710c3c 2110## Output variables. ##
22e05272 2111## ----------------- ##"
1c710c3c
DJ
2112 echo
2113 for ac_var in $ac_subst_vars
2114 do
5213506e
RW
2115 eval ac_val=\$$ac_var
2116 case $ac_val in
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 esac
2119 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2120 done | sort
2121 echo
2122
2123 if test -n "$ac_subst_files"; then
22e05272 2124 $as_echo "## ------------------- ##
5213506e 2125## File substitutions. ##
22e05272 2126## ------------------- ##"
1c710c3c
DJ
2127 echo
2128 for ac_var in $ac_subst_files
2129 do
5213506e
RW
2130 eval ac_val=\$$ac_var
2131 case $ac_val in
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 esac
2134 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2135 done | sort
2136 echo
2137 fi
2138
2139 if test -s confdefs.h; then
22e05272 2140 $as_echo "## ----------- ##
1c710c3c 2141## confdefs.h. ##
22e05272 2142## ----------- ##"
1c710c3c 2143 echo
5213506e 2144 cat confdefs.h
1c710c3c
DJ
2145 echo
2146 fi
2147 test "$ac_signal" != 0 &&
5213506e
RW
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
1c710c3c 2150 } >&5
5213506e
RW
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2153 exit $exit_status
5213506e 2154' 0
1c710c3c 2155for ac_signal in 1 2 13 15; do
5213506e 2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2157done
2158ac_signal=0
2159
2160# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2161rm -f -r conftest* confdefs.h
2162
2163$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2164
2165# Predefined preprocessor variables.
2166
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_NAME "$PACKAGE_NAME"
2169_ACEOF
2170
1c710c3c
DJ
2171cat >>confdefs.h <<_ACEOF
2172#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2173_ACEOF
2174
1c710c3c
DJ
2175cat >>confdefs.h <<_ACEOF
2176#define PACKAGE_VERSION "$PACKAGE_VERSION"
2177_ACEOF
0b0dc272 2178
1c710c3c
DJ
2179cat >>confdefs.h <<_ACEOF
2180#define PACKAGE_STRING "$PACKAGE_STRING"
2181_ACEOF
2182
1c710c3c
DJ
2183cat >>confdefs.h <<_ACEOF
2184#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2185_ACEOF
2186
5213506e
RW
2187cat >>confdefs.h <<_ACEOF
2188#define PACKAGE_URL "$PACKAGE_URL"
2189_ACEOF
2190
1c710c3c
DJ
2191
2192# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2193# Prefer an explicitly selected file to automatically selected ones.
2194ac_site_file1=NONE
2195ac_site_file2=NONE
2196if test -n "$CONFIG_SITE"; then
22e05272
JM
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1=./$CONFIG_SITE;;
2200 */*) ac_site_file1=$CONFIG_SITE;;
2201 *) ac_site_file1=./$CONFIG_SITE;;
2202 esac
5213506e
RW
2203elif test "x$prefix" != xNONE; then
2204 ac_site_file1=$prefix/share/config.site
2205 ac_site_file2=$prefix/etc/config.site
2206else
2207 ac_site_file1=$ac_default_prefix/share/config.site
2208 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2209fi
5213506e
RW
2210for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211do
2212 test "x$ac_site_file" = xNONE && continue
22e05272 2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2216 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2217 . "$ac_site_file" \
2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220as_fn_error $? "failed to load site script $ac_site_file
2221See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2222 fi
2223done
2224
2225if test -r "$cache_file"; then
22e05272
JM
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2231 case $cache_file in
5213506e
RW
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
1c710c3c
DJ
2234 esac
2235 fi
671aa708 2236else
5213506e
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2239 >$cache_file
2240fi
2241
2242# Check that the precious variables saved in the cache have kept the same
2243# value.
2244ac_cache_corrupted=false
5213506e 2245for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2250 case $ac_old_set,$ac_new_set in
2251 set,)
5213506e
RW
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2254 ac_cache_corrupted=: ;;
2255 ,set)
5213506e
RW
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2258 ac_cache_corrupted=: ;;
2259 ,);;
2260 *)
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2269 else
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2273 fi
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2278 fi;;
2279 esac
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2282 case $ac_new_val in
5213506e 2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2285 esac
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2289 esac
2290 fi
2291done
2292if $ac_cache_corrupted; then
5213506e
RW
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2298fi
5213506e
RW
2299## -------------------- ##
2300## Main body of script. ##
2301## -------------------- ##
671aa708 2302
2aeb72e9
DD
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308
1c710c3c
DJ
2309
2310
2311
1c710c3c
DJ
2312
2313
0115d4a3 2314
1c710c3c 2315
ad33ff57
RW
2316progname=$0
2317# if PWD already has a value, it is probably wrong.
2318if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2319
2320# Export original configure arguments for use by sub-configures.
2321# Quote arguments with shell meta charatcers.
2322TOPLEVEL_CONFIGURE_ARGUMENTS=
2323set -- "$progname" "$@"
2324for ac_arg
2325do
2326 case "$ac_arg" in
2327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329 # if the argument is of the form -foo=baz, quote the baz part only
2330 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2331 *) ;;
2332 esac
2333 # Add the quoted argument to the list.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2335done
2336if test "$silent" = yes; then
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2338fi
2339# Remove the initial space we just introduced and, as these will be
2340# expanded by make, quote '$'.
2341TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2342
1c710c3c
DJ
2343
2344# Find the build, host, and target systems.
671aa708 2345ac_aux_dir=
5213506e 2346for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2347 if test -f "$ac_dir/install-sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install-sh -c"
2350 break
2351 elif 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/shtool"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/shtool install -c"
2358 break
2359 fi
671aa708
NN
2360done
2361if test -z "$ac_aux_dir"; then
22e05272 2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2363fi
5213506e
RW
2364
2365# These three variables are undocumented and unsupported,
2366# and are intended to be withdrawn in a future Autoconf release.
2367# They can cause serious problems if a builder's source tree is in a directory
2368# whose full name contains unusual characters.
2369ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2372
671aa708 2373
1c710c3c 2374# Make sure we can run config.sub.
5213506e 2375$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2377
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379$as_echo_n "checking build system type... " >&6; }
22e05272 2380if ${ac_cv_build+:} false; then :
5213506e
RW
2381 $as_echo_n "(cached) " >&6
2382else
2383 ac_build_alias=$build_alias
2384test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386test "x$ac_build_alias" = x &&
22e05272 2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2388ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2390
2391fi
2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393$as_echo "$ac_cv_build" >&6; }
2394case $ac_cv_build in
2395*-*-*) ;;
22e05272 2396*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2397esac
1c710c3c 2398build=$ac_cv_build
5213506e
RW
2399ac_save_IFS=$IFS; IFS='-'
2400set x $ac_cv_build
2401shift
2402build_cpu=$1
2403build_vendor=$2
2404shift; shift
2405# Remember, the first character of IFS is used to create $*,
2406# except with old shells:
2407build_os=$*
2408IFS=$ac_save_IFS
2409case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2410
671aa708 2411
1c710c3c
DJ
2412 case ${build_alias} in
2413 "") build_noncanonical=${build} ;;
2414 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2415esac
2416
2417
af71363e 2418
1c710c3c
DJ
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2422esac
2423
af71363e 2424
1c710c3c
DJ
2425
2426 case ${target_alias} in
2427 "") target_noncanonical=${host_noncanonical} ;;
2428 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2429esac
2430
af71363e 2431
1c710c3c
DJ
2432
2433
2434test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
1c710c3c 2437 program_transform_name=s,y,y,
af71363e 2438
5213506e
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440$as_echo_n "checking host system type... " >&6; }
22e05272 2441if ${ac_cv_host+:} false; then :
5213506e 2442 $as_echo_n "(cached) " >&6
af71363e 2443else
5213506e
RW
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2446else
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2449fi
1c710c3c 2450
af71363e 2451fi
5213506e
RW
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453$as_echo "$ac_cv_host" >&6; }
2454case $ac_cv_host in
2455*-*-*) ;;
22e05272 2456*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2457esac
1c710c3c 2458host=$ac_cv_host
5213506e
RW
2459ac_save_IFS=$IFS; IFS='-'
2460set x $ac_cv_host
2461shift
2462host_cpu=$1
2463host_vendor=$2
2464shift; shift
2465# Remember, the first character of IFS is used to create $*,
2466# except with old shells:
2467host_os=$*
2468IFS=$ac_save_IFS
2469case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2470
2471
5213506e
RW
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473$as_echo_n "checking target system type... " >&6; }
22e05272 2474if ${ac_cv_target+:} false; then :
5213506e 2475 $as_echo_n "(cached) " >&6
1c710c3c 2476else
5213506e
RW
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2479else
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2482fi
1c710c3c
DJ
2483
2484fi
5213506e
RW
2485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486$as_echo "$ac_cv_target" >&6; }
2487case $ac_cv_target in
2488*-*-*) ;;
22e05272 2489*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2490esac
1c710c3c 2491target=$ac_cv_target
5213506e
RW
2492ac_save_IFS=$IFS; IFS='-'
2493set x $ac_cv_target
2494shift
2495target_cpu=$1
2496target_vendor=$2
2497shift; shift
2498# Remember, the first character of IFS is used to create $*,
2499# except with old shells:
2500target_os=$*
2501IFS=$ac_save_IFS
2502case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2503
2504
2505# The aliases save the names the user supplied, while $host etc.
2506# will get canonicalized.
2507test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2509 NONENONEs,x,x, &&
2510 program_prefix=${target_alias}-
5213506e 2511
671aa708 2512test "$program_prefix" != NONE &&
5213506e 2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2514# Use a double $ so make ignores it.
2515test "$program_suffix" != NONE &&
5213506e
RW
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517# Double any \ or $.
1c710c3c 2518# By default was `s,x,x', remove it if useless.
5213506e
RW
2519ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2521
671aa708
NN
2522
2523
775956d0
NN
2524# Get 'install' or 'install-sh' and its variants.
2525# Find a good install program. We prefer a C program (faster),
2526# so one script is as good as another. But avoid the broken or
2527# incompatible versions:
2528# SysV /etc/install, /usr/sbin/install
2529# SunOS /usr/etc/install
2530# IRIX /sbin/install
2531# AIX /bin/install
1c710c3c 2532# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2533# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2536# OS/2's system install, which has a completely different semantic
775956d0 2537# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2538# Reject install programs that cannot install multiple files.
5213506e
RW
2539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2541if test -z "$INSTALL"; then
22e05272 2542if ${ac_cv_path_install+:} false; then :
5213506e 2543 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2544else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
5213506e
RW
2550 # Account for people who put trailing slashes in PATH elements.
2551case $as_dir/ in #((
2552 ./ | .// | /[cC]/* | \
1c710c3c 2553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2554 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2555 /usr/ucb/* ) ;;
2556 *)
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2559 # by default.
2560 for ac_prog in ginstall scoinst install; do
2561 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2562 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2563 if test $ac_prog = install &&
1c710c3c 2564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2565 # AIX install. It has an incompatible calling convention.
2566 :
1c710c3c
DJ
2567 elif test $ac_prog = install &&
2568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2570 :
775956d0 2571 else
38d24731
RW
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one > conftest.one
2574 echo two > conftest.two
2575 mkdir conftest.dir
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577 test -s conftest.one && test -s conftest.two &&
2578 test -s conftest.dir/conftest.one &&
2579 test -s conftest.dir/conftest.two
2580 then
2581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2582 break 3
2583 fi
775956d0
NN
2584 fi
2585 fi
2586 done
1c710c3c
DJ
2587 done
2588 ;;
2589esac
5213506e
RW
2590
2591 done
2592IFS=$as_save_IFS
1c710c3c 2593
38d24731 2594rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2595
2596fi
2597 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2598 INSTALL=$ac_cv_path_install
775956d0 2599 else
38d24731
RW
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
775956d0 2602 # break other packages using the cache if that directory is
38d24731 2603 # removed, or if the value is a relative name.
1c710c3c 2604 INSTALL=$ac_install_sh
775956d0
NN
2605 fi
2606fi
5213506e
RW
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608$as_echo "$INSTALL" >&6; }
775956d0
NN
2609
2610# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611# It thinks the first close brace ends the variable substitution.
2612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2613
1c710c3c 2614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2615
2616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2617
5213506e
RW
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619$as_echo_n "checking whether ln works... " >&6; }
22e05272 2620if ${acx_cv_prog_LN+:} false; then :
5213506e 2621 $as_echo_n "(cached) " >&6
ad6717df
PB
2622else
2623 rm -f conftestdata_t
2624echo >conftestdata_f
2625if ln conftestdata_f conftestdata_t 2>/dev/null
2626then
2627 acx_cv_prog_LN=ln
2628else
2629 acx_cv_prog_LN=no
2630fi
2631rm -f conftestdata_f conftestdata_t
2632
2633fi
2634if test $acx_cv_prog_LN = no; then
2635 LN="cp"
5213506e
RW
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637$as_echo "no, using $LN" >&6; }
ad6717df
PB
2638else
2639 LN="$acx_cv_prog_LN"
5213506e
RW
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641$as_echo "yes" >&6; }
ad6717df
PB
2642fi
2643
5213506e
RW
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2646LN_S=$as_ln_s
2647if test "$LN_S" = "ln -s"; then
5213506e
RW
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649$as_echo "yes" >&6; }
fb0103e5 2650else
5213506e
RW
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2653fi
2654
87264276
PB
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2657if ${ac_cv_path_SED+:} false; then :
87264276
PB
2658 $as_echo_n "(cached) " >&6
2659else
2660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661 for ac_i in 1 2 3 4 5 6 7; do
2662 ac_script="$ac_script$as_nl$ac_script"
2663 done
2664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665 { ac_script=; unset ac_script;}
2666 if test -z "$SED"; then
2667 ac_path_SED_found=false
2668 # Loop through the user's path and test for each of PROGNAME-LIST
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in sed gsed; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2677 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2678# Check for GNU ac_path_SED and select it if it is found.
2679 # Check for GNU $ac_path_SED
2680case `"$ac_path_SED" --version 2>&1` in
2681*GNU*)
2682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2683*)
2684 ac_count=0
2685 $as_echo_n 0123456789 >"conftest.in"
2686 while :
2687 do
2688 cat "conftest.in" "conftest.in" >"conftest.tmp"
2689 mv "conftest.tmp" "conftest.in"
2690 cp "conftest.in" "conftest.nl"
2691 $as_echo '' >> "conftest.nl"
2692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694 as_fn_arith $ac_count + 1 && ac_count=$as_val
2695 if test $ac_count -gt ${ac_path_SED_max-0}; then
2696 # Best one so far, save it but keep looking for a better one
2697 ac_cv_path_SED="$ac_path_SED"
2698 ac_path_SED_max=$ac_count
2699 fi
2700 # 10*(2^10) chars as input seems more than enough
2701 test $ac_count -gt 10 && break
2702 done
2703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2704esac
2705
2706 $ac_path_SED_found && break 3
2707 done
2708 done
2709 done
2710IFS=$as_save_IFS
2711 if test -z "$ac_cv_path_SED"; then
22e05272 2712 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2713 fi
2714else
2715 ac_cv_path_SED=$SED
2716fi
2717
2718fi
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720$as_echo "$ac_cv_path_SED" >&6; }
2721 SED="$ac_cv_path_SED"
2722 rm -f conftest.sed
2723
2724for ac_prog in gawk mawk nawk awk
2725do
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727set dummy $ac_prog; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2730if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2731 $as_echo_n "(cached) " >&6
2732else
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748 done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753AWK=$ac_cv_prog_AWK
2754if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756$as_echo "$AWK" >&6; }
2757else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763 test -n "$AWK" && break
2764done
2765
775956d0 2766
ee6a22df
L
2767srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2768
2769# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2770# a relative path.
2771if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772 INSTALL="${srcpwd}/install-sh -c"
2773fi
2774
671aa708
NN
2775# Set srcdir to "." if that's what it is.
2776# This is important for multilib support.
2777pwd=`${PWDCMD-pwd}`
671aa708
NN
2778if test "${pwd}" = "${srcpwd}" ; then
2779 srcdir=.
79c06341
JL
2780fi
2781
671aa708 2782topsrcdir=$srcpwd
5d4a5ee6 2783
671aa708 2784extra_host_args=
afabd8e6 2785
671aa708
NN
2786### To add a new directory to the tree, first choose whether it is a target
2787### or a host dependent tool. Then put it into the appropriate list
2788### (library or tools, host or target), doing a dependency sort.
79c06341 2789
1c710c3c 2790# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2791# configdirs, or target_configdirs; see the serialization section below.
79c06341 2792
1c710c3c
DJ
2793# Dependency sorting is only needed when *configuration* must be done in
2794# a particular order. In all cases a dependency should be specified in
671aa708 2795# the Makefile, whether or not it's implicitly specified here.
79c06341 2796
671aa708
NN
2797# Double entries in build_configdirs, configdirs, or target_configdirs may
2798# cause circular dependencies and break everything horribly.
79c06341 2799
23f6b2f9
PB
2800# these library is used by various programs built for the build
2801# environment
2802#
929315a9 2803build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2804
2805# these tools are built for the build environment
85bfb75e 2806build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2807
671aa708 2808# these libraries are used by various programs built for the host environment
eae1a5d4 2809#f
9d2d38a4 2810host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
671aa708 2811
671aa708
NN
2812# these tools are built for the host environment
2813# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814# know that we are building the simulator.
2815# binutils, gas and ld appear in that order because it makes sense to run
2816# "make check" in that particular order.
38e3d868 2817# If --enable-gold is used, "gold" may replace "ld".
2efd8b1f 2818host_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 2819
671aa708
NN
2820# these libraries are built for the target environment, and are built after
2821# the host libraries and the host tools (which may be a cross compiler)
8499116a 2822# Note that libiberty is not a target library.
291f172e 2823target_libraries="target-libgcc \
eff02e4f 2824 target-libbacktrace \
671aa708
NN
2825 target-libgloss \
2826 target-newlib \
6d3b5aea 2827 target-libgomp \
5f520819 2828 target-liboffloadmic \
48310492 2829 target-libatomic \
0a35513e 2830 target-libitm \
cb543528 2831 target-libstdc++-v3 \
f35db108 2832 target-libsanitizer \
2077db1b 2833 target-libvtv \
77008252 2834 target-libssp \
1ec601bf 2835 target-libquadmath \
6de9cd9a 2836 target-libgfortran \
012447ea 2837 target-libffi \
d9cdb878 2838 target-libobjc \
632e2a07 2839 target-libada \
b4c522fa 2840 target-libgo \
bb50312e
IB
2841 target-libphobos \
2842 target-zlib"
671aa708 2843
4dbda6f0
NN
2844# these tools are built using the target libraries, and are intended to
2845# run only in the target environment
671aa708 2846#
4dbda6f0 2847# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2848# list belongs in this list.
671aa708 2849#
85bfb75e 2850target_tools="target-rda"
79c06341 2851
671aa708 2852################################################################################
79c06341 2853
671aa708
NN
2854## All tools belong in one of the four categories, and are assigned above
2855## We assign ${configdirs} this way to remove all embedded newlines. This
2856## is important because configure will choke if they ever get through.
2857## ${configdirs} is directories we build using the host tools.
2858## ${target_configdirs} is directories we build using the target tools.
671aa708 2859configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2860target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2861build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2862
ac9e6043
RW
2863
2864
671aa708 2865################################################################################
79c06341 2866
671aa708 2867srcname="gnu development package"
79c06341 2868
671aa708
NN
2869# This gets set non-empty for some net releases of packages.
2870appdirs=""
79c06341 2871
671aa708
NN
2872# Define is_cross_compiler to save on calls to 'test'.
2873is_cross_compiler=
2874if test x"${host}" = x"${target}" ; then
2875 is_cross_compiler=no
79c06341 2876else
671aa708 2877 is_cross_compiler=yes
1c710c3c 2878fi
79c06341 2879
b4acb5ef 2880# Find the build and target subdir names.
8b87bb96 2881
2e9e6f68
DJ
2882# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883# have matching libraries, they should use host libraries: Makefile.tpl
2884# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885# However, they still use the build modules, because the corresponding
2886# host modules (e.g. bison) are only built for the host when bootstrap
2887# finishes. So:
2888# - build_subdir is where we find build modules, and never changes.
2889# - build_libsubdir is where we find build libraries, and can be overridden.
2890
2891# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2892build_subdir="build-${build_noncanonical}"
1c710c3c 2893
5213506e
RW
2894# Check whether --with-build-libsubdir was given.
2895if test "${with_build_libsubdir+set}" = set; then :
2896 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2897else
2898 build_libsubdir="$build_subdir"
5213506e
RW
2899fi
2900
215c351a
PB
2901# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902if ( test $srcdir = . && test -d gcc ) \
2903 || test -d $srcdir/../host-${host_noncanonical}; then
2904 host_subdir="host-${host_noncanonical}"
2905else
2906 host_subdir=.
2907fi
8b87bb96
NN
2908# No prefix.
2909target_subdir=${target_noncanonical}
1c710c3c 2910
0db770bd
RW
2911# Be sure to cover against remnants of an in-tree build.
2912if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2913 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2914Use a pristine source tree when building in a separate tree" "$LINENO" 5
2915fi
79c06341 2916
671aa708
NN
2917# Skipdirs are removed silently.
2918skipdirs=
2919# Noconfigdirs are removed loudly.
2920noconfigdirs=""
79c06341 2921
671aa708
NN
2922use_gnu_ld=
2923# Make sure we don't let GNU ld be added if we didn't want it.
2924if test x$with_gnu_ld = xno ; then
2925 use_gnu_ld=no
5afab7ad 2926 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2927fi
2928
671aa708
NN
2929use_gnu_as=
2930# Make sure we don't let GNU as be added if we didn't want it.
2931if test x$with_gnu_as = xno ; then
2932 use_gnu_as=no
2933 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2934fi
2935
d7f09764 2936use_included_zlib=
a05c2c75
L
2937
2938# Check whether --with-system-zlib was given.
2939if test "${with_system_zlib+set}" = set; then :
2940 withval=$with_system_zlib;
2941fi
2942
d7f09764
DN
2943# Make sure we don't let ZLIB be added if we didn't want it.
2944if test x$with_system_zlib = xyes ; then
2945 use_included_zlib=no
2946 noconfigdirs="$noconfigdirs zlib"
2947fi
2948
1c710c3c 2949# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2950# it's not even worth trying to configure, much less build, that tool.
79c06341 2951
671aa708
NN
2952case ${with_x} in
2953 yes | "") ;; # the default value for this tree is that X11 is available
2954 no)
b4f96efe 2955 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2956 # We won't be able to build gdbtk without X.
1c710c3c 2957 enable_gdbtk=no
671aa708
NN
2958 ;;
2959 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2960esac
79c06341 2961
1bcce263 2962# Some are only suitable for cross toolchains.
671aa708
NN
2963# Remove these if host=target.
2964cross_only="target-libgloss target-newlib target-opcodes"
2965
2966case $is_cross_compiler in
2967 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2968esac
79c06341 2969
671aa708
NN
2970# If both --with-headers and --with-libs are specified, default to
2971# --without-newlib.
ee6a22df
L
2972if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2974 if test x"${with_newlib}" = x ; then
2975 with_newlib=no
2976 fi
79c06341
JL
2977fi
2978
671aa708
NN
2979# Recognize --with-newlib/--without-newlib.
2980case ${with_newlib} in
2981 no) skipdirs="${skipdirs} target-newlib" ;;
2982 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2983esac
79c06341 2984
85c64bbe
BS
2985# Check whether --enable-as-accelerator-for was given.
2986if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2987 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2988fi
2989
2990
2991# Check whether --enable-offload-targets was given.
2992if test "${enable_offload_targets+set}" = set; then :
2993 enableval=$enable_offload_targets;
2994 if test x"$enable_offload_targets" = x; then
22e05272 2995 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2996 fi
2997
2998else
2999 enable_offload_targets=
3000fi
3001
3002
fe5bfa67
TB
3003# Check whether --enable-offload-defaulted was given.
3004if test "${enable_offload_defaulted+set}" = set; then :
3005 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3006else
3007 enable_offload_defaulted=
3008fi
3009
3010
21539e2e
MK
3011# Handle --enable-gold, --enable-ld.
3012# --disable-gold [--enable-ld]
3013# Build only ld. Default option.
9580395f
L
3014# --enable-gold [--enable-ld]
3015# Build both gold and ld. Install gold as "ld.gold", install ld
3016# as "ld.bfd" and "ld".
3017# --enable-gold=default [--enable-ld]
21539e2e
MK
3018# Build both gold and ld. Install gold as "ld.gold" and "ld",
3019# install ld as "ld.bfd".
3020# --enable-gold[=default] --disable-ld
3021# Build only gold, which is then installed as both "ld.gold" and "ld".
3022# --enable-gold --enable-ld=default
9580395f
L
3023# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3024# and ld.bfd).
21539e2e
MK
3025# In other words, ld is default
3026# --enable-gold=default --enable-ld=default
3027# Error.
3028
3029default_ld=
5213506e
RW
3030# Check whether --enable-gold was given.
3031if test "${enable_gold+set}" = set; then :
3032 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3033else
3034 ENABLE_GOLD=no
5213506e
RW
3035fi
3036
21539e2e
MK
3037case "${ENABLE_GOLD}" in
3038 yes|default)
38e3d868
RM
3039 # Check for ELF target.
3040 is_elf=no
3041 case "${target}" in
3042 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3043 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3044 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3045 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3046 case "${target}" in
3047 *-*-linux*aout* | *-*-linux*oldld*)
3048 ;;
3049 *)
3050 is_elf=yes
3051 ;;
3052 esac
3053 esac
3054
3055 if test "$is_elf" = "yes"; then
3056 # Check for target supported by gold.
5afab7ad 3057 case "${target}" in
7705dfd1 3058 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
fc259b52 3059 | aarch64*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
21539e2e
MK
3060 configdirs="$configdirs gold"
3061 if test x${ENABLE_GOLD} = xdefault; then
3062 default_ld=gold
3063 fi
38e3d868 3064 ENABLE_GOLD=yes
5afab7ad
ILT
3065 ;;
3066 esac
38e3d868
RM
3067 fi
3068 ;;
3069 no)
3070 ;;
3071 *)
22e05272 3072 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3073 ;;
21539e2e
MK
3074esac
3075
3076# Check whether --enable-ld was given.
3077if test "${enable_ld+set}" = set; then :
3078 enableval=$enable_ld; ENABLE_LD=$enableval
3079else
3080 ENABLE_LD=yes
3081fi
3082
3083
3084case "${ENABLE_LD}" in
3085 default)
9580395f 3086 if test x${default_ld} != x; then
22e05272 3087 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3088 fi
3089 ;;
3090 yes)
3091 ;;
3092 no)
3093 if test x${ENABLE_GOLD} != xyes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3096 fi
3097 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3098 ;;
3099 *)
22e05272 3100 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3101 ;;
3102esac
5afab7ad 3103
78edb32f
L
3104# PR gas/19109
3105# Decide the default method for compressing debug sections.
3106# Provide a configure time option to override our default.
3107# Check whether --enable-compressed_debug_sections was given.
3108if test "${enable_compressed_debug_sections+set}" = set; then :
3109 enableval=$enable_compressed_debug_sections;
3110 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3111 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3112 fi
3113
3114else
3115 enable_compressed_debug_sections=
3116fi
3117
3118
671aa708 3119# Configure extra directories which are host specific
79c06341 3120
671aa708
NN
3121case "${host}" in
3122 *-cygwin*)
3123 configdirs="$configdirs libtermcap" ;;
3124esac
79c06341 3125
4fab7234
HPN
3126# A target can indicate whether a language isn't supported for some reason.
3127# Only spaces may be used in this macro; not newlines or tabs.
3128unsupported_languages=
3129
1c710c3c 3130# Remove more programs from consideration, based on the host or
671aa708
NN
3131# target this usually means that a port of the program doesn't
3132# exist yet.
ec8d6ddc 3133
671aa708 3134case "${host}" in
111eeb6e 3135 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3136 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3137 ;;
671aa708 3138esac
ec8d6ddc 3139
6de9cd9a 3140
87e6d9dc
TB
3141# Check whether --enable-libquadmath was given.
3142if test "${enable_libquadmath+set}" = set; then :
3143 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3144else
3145 ENABLE_LIBQUADMATH=yes
3146fi
3147
3148if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149 noconfigdirs="$noconfigdirs target-libquadmath"
3150fi
3151
3152
3153# Check whether --enable-libquadmath-support was given.
3154if test "${enable_libquadmath_support+set}" = set; then :
3155 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3156else
3157 ENABLE_LIBQUADMATH_SUPPORT=yes
3158fi
3159
3160enable_libquadmath_support=
3161if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162 enable_libquadmath_support=no
3163fi
3164
3165
5213506e
RW
3166# Check whether --enable-libada was given.
3167if test "${enable_libada+set}" = set; then :
3168 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3169else
3170 ENABLE_LIBADA=yes
5213506e
RW
3171fi
3172
d9cdb878 3173if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3174 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3175fi
3176
5213506e
RW
3177# Check whether --enable-libssp was given.
3178if test "${enable_libssp+set}" = set; then :
3179 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3180else
3181 ENABLE_LIBSSP=yes
5213506e
RW
3182fi
3183
ef0087a7 3184
1873ec0c
L
3185# Check whether --enable-libstdcxx was given.
3186if test "${enable_libstdcxx+set}" = set; then :
3187 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3188else
3189 ENABLE_LIBSTDCXX=default
3190fi
3191
3192if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3194fi
3195
5f520819
KY
3196# If this is accelerator compiler and its target is intelmic we enable
3197# target liboffloadmic by default. If this is compiler with offloading
3198# for intelmic we enable host liboffloadmic by default. Otherwise
3199# liboffloadmic is disabled by default.
3200# Check whether --enable-liboffloadmic was given.
3201if test "${enable_liboffloadmic+set}" = set; then :
3202 enableval=$enable_liboffloadmic; case "$enableval" in
3203 no | host | target)
3204 enable_liboffloadmic=$enableval ;;
3205 *)
22e05272 3206 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3207esac
3208else
4b4f2e35 3209 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3210 case "${target}" in
3211 *-intelmic-* | *-intelmicemul-*)
3212 enable_liboffloadmic=target
3213 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3214 ;;
3215 *)
3216 enable_liboffloadmic=no
3217 ;;
3218 esac
3219else
3220 case "${enable_offload_targets}" in
3221 *-intelmic-* | *-intelmicemul-*)
3222 enable_liboffloadmic=host
3223 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3224 ;;
3225 *)
3226 enable_liboffloadmic=no
3227 ;;
3228 esac
3229fi
3230fi
3231
3232
3233
44a7d18d 3234# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3235if test x$enable_libgomp = x ; then
953ff289 3236 case "${target}" in
416ac4d4 3237 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3238 ;;
8c6d158a 3239 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3240 ;;
b24513a1 3241 *-*-solaris2* | *-*-hpux11*)
953ff289 3242 ;;
cac90078 3243 *-*-darwin* | *-*-aix*)
953ff289 3244 ;;
29b1533a 3245 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3246 ;;
953ff289
DN
3247 *)
3248 noconfigdirs="$noconfigdirs target-libgomp"
3249 ;;
3250 esac
27079765 3251fi
953ff289 3252
48310492
RH
3253# Disable libatomic on unsupported systems.
3254if test -d ${srcdir}/libatomic; then
3255 if test x$enable_libatomic = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257$as_echo_n "checking for libatomic support... " >&6; }
3258 if (srcdir=${srcdir}/libatomic; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3261 then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263$as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libatomic"
3265 else
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267$as_echo "yes" >&6; }
3268 fi
3269 fi
3270fi
3271
5f520819
KY
3272# Disable liboffloadmic on unsupported systems.
3273if test -d ${srcdir}/liboffloadmic; then
3274 if test x$enable_liboffloadmic != xno; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276$as_echo_n "checking for liboffloadmic support... " >&6; }
3277 if (srcdir=${srcdir}/liboffloadmic; \
3278 . ${srcdir}/configure.tgt; \
3279 test -n "$UNSUPPORTED")
3280 then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-liboffloadmic"
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286$as_echo "yes" >&6; }
3287 fi
3288 fi
3289fi
3290
e948157d
RH
3291# Disable libitm on unsupported systems.
3292if test -d ${srcdir}/libitm; then
3293 if test x$enable_libitm = x; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3295$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3296 if (srcdir=${srcdir}/libitm; \
3297 . ${srcdir}/configure.tgt; \
3298 test -n "$UNSUPPORTED")
3299 then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3301$as_echo "no" >&6; }
e948157d
RH
3302 noconfigdirs="$noconfigdirs target-libitm"
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3305$as_echo "yes" >&6; }
e948157d
RH
3306 fi
3307 fi
0a35513e
AH
3308fi
3309
93bf5390
RH
3310# Disable libsanitizer on unsupported systems.
3311if test -d ${srcdir}/libsanitizer; then
3312 if test x$enable_libsanitizer = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314$as_echo_n "checking for libsanitizer support... " >&6; }
3315 if (srcdir=${srcdir}/libsanitizer; \
3316 . ${srcdir}/configure.tgt; \
3317 test -n "$UNSUPPORTED")
3318 then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321 noconfigdirs="$noconfigdirs target-libsanitizer"
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
3325 fi
3326 fi
3327fi
3328
2077db1b
CT
3329# Disable libvtv on unsupported systems.
3330if test -d ${srcdir}/libvtv; then
3331 if test x$enable_libvtv = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333$as_echo_n "checking for libvtv support... " >&6; }
3334 if (srcdir=${srcdir}/libvtv; \
3335 . ${srcdir}/configure.tgt; \
1e74b850 3336 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3337 then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340 noconfigdirs="$noconfigdirs target-libvtv"
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343$as_echo "yes" >&6; }
3344 fi
3345 fi
3346fi
3347
d91491e5
SE
3348# Disable libquadmath for some systems.
3349case "${target}" in
e7fae550
DE
3350 avr-*-*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
d91491e5
SE
3353 # libquadmath is unused on AIX and libquadmath build process use of
3354 # LD_LIBRARY_PATH can break AIX bootstrap.
3355 powerpc-*-aix* | rs6000-*-aix*)
3356 noconfigdirs="$noconfigdirs target-libquadmath"
3357 ;;
3358esac
3359
1e9e0e23
JM
3360# Disable libssp for some systems.
3361case "${target}" in
3362 avr-*-*)
b318fb4b 3363 # No hosted I/O support.
1e9e0e23
JM
3364 noconfigdirs="$noconfigdirs target-libssp"
3365 ;;
91dfef96
JM
3366 bpf-*-*)
3367 noconfigdirs="$noconfigdirs target-libssp"
3368 ;;
1e9e0e23
JM
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3371 ;;
8d2af3a2
DD
3372 pru-*-*)
3373 # No hosted I/O support.
3374 noconfigdirs="$noconfigdirs target-libssp"
3375 ;;
85b8555e 3376 rl78-*-*)
7cb62ef1
EB
3377 # libssp uses a misaligned load to trigger a fault, but the RL78
3378 # doesn't fault for those - instead, it gives a build-time error
3379 # for explicit misaligned loads.
85b8555e 3380 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3381 ;;
0969ec7d
EB
3382 visium-*-*)
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3385 ;;
1e9e0e23
JM
3386esac
3387
1e9e0e23 3388# Disable libstdc++-v3 for some systems.
67a1cb2a 3389# Allow user to override this if they pass --enable-libstdcxx
1873ec0c
L
3390if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3391 case "${target}" in
3392 *-*-vxworks*)
3393 # VxWorks uses the Dinkumware C++ library.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
afa3d80e
TS
3396 amdgcn*-*-*)
3397 # Not ported/fails to build when using newlib.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
1873ec0c
L
3400 arm*-wince-pe*)
3401 # the C++ libraries don't build on top of CE's C libraries
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3403 ;;
3404 avr-*-*)
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3406 ;;
91dfef96
JM
3407 bpf-*-*)
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3409 ;;
fef939d6
JB
3410 ft32-*-*)
3411 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3412 ;;
1873ec0c
L
3413 esac
3414fi
1e9e0e23 3415
91dfef96
JM
3416# Disable C++ on systems where it is known to not work.
3417# For testing, you can override this with --enable-languages=c++.
3418case ,${enable_languages}, in
3419 *,c++,*)
3420 ;;
3421 *)
3422 case "${target}" in
3423 bpf-*-*)
3424 unsupported_languages="$unsupported_languages c++"
3425 ;;
3426 esac
3427 ;;
3428esac
3429
3430# Disable Objc on systems where it is known to not work.
3431# For testing, you can override this with --enable-languages=objc.
3432case ,${enable_languages}, in
3433 *,objc,*)
3434 ;;
3435 *)
3436 case "${target}" in
3437 bpf-*-*)
3438 unsupported_languages="$unsupported_languages objc"
3439 ;;
3440 esac
3441 ;;
3442esac
3443
260eedb9
IB
3444# Disable D on systems where it is known to not work.
3445# For testing, you can override this with --enable-languages=d.
3446case ,${enable_languages}, in
3447 *,d,*)
3448 ;;
3449 *)
3450 case "${target}" in
91dfef96 3451 bpf-*-*)
260eedb9
IB
3452 unsupported_languages="$unsupported_languages d"
3453 ;;
3454 esac
3455 ;;
3456esac
3457
3458# Disable libphobos on unsupported systems.
3459# For testing, you can override this with --enable-libphobos.
3460if test -d ${srcdir}/libphobos; then
3461 if test x$enable_libphobos = x; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463$as_echo_n "checking for libphobos support... " >&6; }
3464 if (srcdir=${srcdir}/libphobos; \
3465 . ${srcdir}/configure.tgt; \
7d31d331 3466 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3467 then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469$as_echo "no" >&6; }
3470 noconfigdirs="$noconfigdirs target-libphobos"
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473$as_echo "yes" >&6; }
3474 fi
3475 fi
3476fi
3477
1e9e0e23
JM
3478# Disable Fortran for some systems.
3479case "${target}" in
3480 mmix-*-*)
3481 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482 unsupported_languages="$unsupported_languages fortran"
3483 ;;
91dfef96
JM
3484 bpf-*-*)
3485 unsupported_languages="$unsupported_languages fortran"
3486 ;;
1e9e0e23
JM
3487esac
3488
012447ea
JJ
3489# Disable libffi for some systems.
3490case "${target}" in
3491 powerpc-*-darwin*)
3492 ;;
3493 i[3456789]86-*-darwin*)
3494 ;;
3495 x86_64-*-darwin[912]*)
3496 ;;
3497 *-*-darwin*)
3498 noconfigdirs="$noconfigdirs target-libffi"
3499 ;;
3500 *-*-netware*)
3501 noconfigdirs="$noconfigdirs target-libffi"
3502 ;;
3503 *-*-phoenix*)
3504 noconfigdirs="$noconfigdirs target-libffi"
3505 ;;
3506 *-*-rtems*)
3507 noconfigdirs="$noconfigdirs target-libffi"
3508 ;;
3509 *-*-tpf*)
3510 noconfigdirs="$noconfigdirs target-libffi"
3511 ;;
3512 *-*-uclinux*)
3513 noconfigdirs="$noconfigdirs target-libffi"
3514 ;;
3515 *-*-vxworks*)
3516 noconfigdirs="$noconfigdirs target-libffi"
3517 ;;
b20e7532
AT
3518 aarch64*-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3520 ;;
012447ea
JJ
3521 alpha*-*-*vms*)
3522 noconfigdirs="$noconfigdirs target-libffi"
3523 ;;
3524 arm*-*-freebsd*)
3525 noconfigdirs="$noconfigdirs target-libffi"
3526 ;;
3527 arm-wince-pe)
3528 noconfigdirs="$noconfigdirs target-libffi"
3529 ;;
3530 arm*-*-symbianelf*)
3531 noconfigdirs="$noconfigdirs target-libffi"
3532 ;;
91dfef96
JM
3533 bpf-*-*)
3534 noconfigdirs="$noconfigdirs target-libffi"
3535 ;;
012447ea
JJ
3536 cris-*-* | crisv32-*-*)
3537 case "${target}" in
3538 *-*-linux*)
3539 ;;
3540 *) # See PR46792 regarding target-libffi.
3541 noconfigdirs="$noconfigdirs target-libffi";;
3542 esac
3543 ;;
3544 hppa*64*-*-hpux*)
3545 noconfigdirs="$noconfigdirs target-libffi"
3546 ;;
3547 hppa*-hp-hpux11*)
3548 ;;
3549 hppa*-*-hpux*)
3550 noconfigdirs="$noconfigdirs target-libffi"
3551 ;;
3552 ia64*-*-*vms*)
3553 noconfigdirs="$noconfigdirs target-libffi"
3554 ;;
3555 i[3456789]86-w64-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3557 ;;
3558 i[3456789]86-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3560 ;;
3561 x86_64-*-mingw*)
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
3564 mmix-*-*)
3565 noconfigdirs="$noconfigdirs target-libffi"
3566 ;;
3567 powerpc-*-aix*)
012447ea
JJ
3568 ;;
3569 rs6000-*-aix*)
012447ea
JJ
3570 ;;
3571 ft32-*-*)
3572 noconfigdirs="$noconfigdirs target-libffi"
3573 ;;
3574 *-*-lynxos*)
3575 noconfigdirs="$noconfigdirs target-libffi"
3576 ;;
3577esac
3578
3579# Disable the go frontend on systems where it is known to not work. Please keep
3580# this in sync with contrib/config-list.mk.
3581case "${target}" in
91dfef96 3582*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3583 unsupported_languages="$unsupported_languages go"
3584 ;;
3585esac
3586
f9d09df0
TT
3587# Only allow gdbserver on some systems.
3588if test -d ${srcdir}/gdbserver; then
3589 if test x$enable_gdbserver = x; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3591$as_echo_n "checking for gdbserver support... " >&6; }
3592 if (srcdir=${srcdir}/gdbserver; \
3593 . ${srcdir}/configure.srv; \
3594 test -n "$UNSUPPORTED")
3595 then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598 noconfigdirs="$noconfigdirs gdbserver"
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601$as_echo "yes" >&6; }
3602 fi
3603 fi
3604fi
3605
cdbc9e92
ILT
3606# Disable libgo for some systems where it is known to not work.
3607# For testing, you can easily override this with --enable-libgo.
3608if test x$enable_libgo = x; then
3609 case "${target}" in
3610 *-*-darwin*)
3611 # PR 46986
3612 noconfigdirs="$noconfigdirs target-libgo"
3613 ;;
3614 *-*-cygwin* | *-*-mingw*)
3615 noconfigdirs="$noconfigdirs target-libgo"
3616 ;;
91dfef96
JM
3617 bpf-*-*)
3618 noconfigdirs="$noconfigdirs target-libgo"
3619 ;;
cdbc9e92
ILT
3620 esac
3621fi
3622
c03353e2
RIL
3623# Default libgloss CPU subdirectory.
3624libgloss_dir="$target_cpu"
6de9cd9a 3625
fbcf0dca
JM
3626case "${target}" in
3627 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3628 libgloss_dir=wince
3629 ;;
4dddfc74
YZ
3630 aarch64*-*-* )
3631 libgloss_dir=aarch64
3632 ;;
fbcf0dca
JM
3633 arm*-*-*)
3634 libgloss_dir=arm
3635 ;;
3636 cris-*-* | crisv32-*-*)
3637 libgloss_dir=cris
3638 ;;
3639 hppa*-*-*)
3640 libgloss_dir=pa
3641 ;;
3642 i[3456789]86-*-*)
3643 libgloss_dir=i386
3644 ;;
c6c0594e 3645 loongarch*-*-*)
3646 libgloss_dir=loongarch
3647 ;;
fbcf0dca
JM
3648 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3649 libgloss_dir=m68hc11
3650 ;;
3651 m68*-*-* | fido-*-*)
3652 libgloss_dir=m68k
3653 ;;
3654 mips*-*-*)
3655 libgloss_dir=mips
3656 ;;
3657 powerpc*-*-*)
3658 libgloss_dir=rs6000
3659 ;;
8d2af3a2
DD
3660 pru-*-*)
3661 libgloss_dir=pru
3662 ;;
fbcf0dca
JM
3663 sparc*-*-*)
3664 libgloss_dir=sparc
3665 ;;
3666esac
3667
6a789d5e 3668# Disable newlib and libgloss for various target OSes.
671aa708 3669case "${target}" in
6a789d5e
JM
3670 alpha*-dec-osf*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 i[3456789]86-*-linux*)
3674 # This section makes it possible to build newlib natively on linux.
3675 # If we are using a cross compiler then don't configure newlib.
3676 if test x${is_cross_compiler} != xno ; then
3677 noconfigdirs="$noconfigdirs target-newlib"
3678 fi
3679 noconfigdirs="$noconfigdirs target-libgloss"
3680 # If we are not using a cross compiler, do configure newlib.
3681 # Note however, that newlib will only be configured in this situation
3682 # if the --with-newlib option has been given, because otherwise
3683 # 'target-newlib' will appear in skipdirs.
3684 ;;
3685 i[3456789]86-*-rdos*)
3686 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3687 ;;
3688 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3689 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3690 ;;
3691 sparc-*-sunos4*)
3692 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3693 ;;
91dfef96
JM
3694 bpf-*-*)
3695 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3696 ;;
6a789d5e
JM
3697 *-*-aix*)
3698 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3699 ;;
3700 *-*-beos*)
3701 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3702 ;;
671aa708 3703 *-*-chorusos)
0036370f 3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3705 ;;
6a789d5e
JM
3706 *-*-dragonfly*)
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3708 ;;
3709 *-*-freebsd*)
3710 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3711 ;;
3712 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3713 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3714 ;;
3715 *-*-lynxos*)
3716 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3717 ;;
3718 *-*-mingw*)
3719 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3720 ;;
3721 *-*-netbsd*)
3722 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3723 ;;
3724 *-*-netware*)
3725 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3726 ;;
3727 *-*-tpf*)
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3729 ;;
3730 *-*-uclinux*)
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3732 ;;
3733 *-*-vxworks*)
3734 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3735 ;;
3736esac
3737
3738case "${target}" in
3739 *-*-chorusos)
3740 ;;
3be96231
TG
3741 aarch64-*-darwin*)
3742 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3743 noconfigdirs="$noconfigdirs sim target-rda"
3744 ;;
7431c1a1
AS
3745 amdgcn*-*-*)
3746 ;;
3be96231
TG
3747 arm-*-darwin*)
3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3749 noconfigdirs="$noconfigdirs sim target-rda"
3750 ;;
75eeae1a 3751 powerpc-*-darwin*)
e1514c3f 3752 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3753 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3754 ;;
354ebf88
RW
3755 i[3456789]86-*-darwin*)
3756 noconfigdirs="$noconfigdirs ld gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3758 ;;
3759 x86_64-*-darwin[912]*)
0db3a858
TG
3760 noconfigdirs="$noconfigdirs ld gas gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
3762 ;;
42c1cd8a
AT
3763 *-*-darwin*)
3764 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3765 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3766 ;;
8c6d158a 3767 *-*-dragonfly*)
8c6d158a 3768 ;;
c3f84f61 3769 *-*-freebsd*)
88252529 3770 if test "x$with_gmp" = x \
c0d0a722 3771 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3772 && test -f /usr/local/include/gmp.h; then
3773 with_gmp=/usr/local
3774 fi
6de9cd9a 3775 ;;
ef4e7569
US
3776 *-*-kaos*)
3777 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3778 noconfigdirs="$noconfigdirs target-libgloss"
3779 ;;
671aa708 3780 *-*-netbsd*)
671aa708 3781 ;;
61fec9ff 3782 *-*-netware*)
671aa708 3783 ;;
fd6487af
JS
3784 *-*-phoenix*)
3785 noconfigdirs="$noconfigdirs target-libgloss"
3786 ;;
671aa708 3787 *-*-rtems*)
2909494b 3788 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3789 ;;
a8ba31f2
EC
3790 # The tpf target doesn't support gdb yet.
3791 *-*-tpf*)
6a789d5e 3792 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3793 ;;
5785c0ed 3794 *-*-uclinux*)
6a789d5e 3795 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3796 ;;
671aa708 3797 *-*-vxworks*)
671aa708
NN
3798 ;;
3799 alpha*-dec-osf*)
3800 # ld works, but does not support shared libraries.
671aa708 3801 # gas doesn't generate exception information.
6a789d5e 3802 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3803 ;;
3804 alpha*-*-*vms*)
2909494b 3805 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3806 ;;
671aa708
NN
3807 alpha*-*-*)
3808 # newlib is not 64 bit ready
2909494b 3809 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3810 ;;
91dfef96
JM
3811 bpf-*-*)
3812 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3813 ;;
671aa708 3814 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3815 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3816 ;;
2fd88f4f
AK
3817 arc*-*-*)
3818 noconfigdirs="$noconfigdirs sim"
3819 ;;
671aa708 3820 arm-*-pe*)
2909494b 3821 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3822 ;;
671aa708 3823 arm-*-riscix*)
0036370f 3824 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3825 ;;
b588ae30
GJL
3826 avr-*-*)
3827 if test x${with_avrlibc} != xno; then
3828 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3829 fi
3830 ;;
671aa708 3831 c4x-*-* | tic4x-*-*)
0036370f 3832 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3833 ;;
0036370f
JM
3834 tic54x-*-*)
3835 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3836 ;;
671aa708 3837 d10v-*-*)
0036370f 3838 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3839 ;;
3840 d30v-*-*)
0036370f 3841 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3842 ;;
3843 fr30-*-elf*)
2909494b 3844 noconfigdirs="$noconfigdirs gdb"
671aa708 3845 ;;
a05c2c75
L
3846 ft32-*-*)
3847 noconfigdirs="$noconfigdirs target-rda gprof"
3848 ;;
55f2d967 3849 moxie-*-*)
a05c2c75 3850 noconfigdirs="$noconfigdirs"
55f2d967 3851 ;;
671aa708 3852 h8300*-*-*)
2909494b 3853 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3854 ;;
3855 h8500-*-*)
0036370f 3856 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3857 ;;
ee6a22df 3858 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3859 ;;
a05c2c75
L
3860 hppa*64*-*-hpux*)
3861 noconfigdirs="$noconfigdirs gdb"
3862 ;;
3863 hppa*-*-hpux11*)
3864 noconfigdirs="$noconfigdirs gdb ld"
3865 ;;
4569f85e 3866 hppa*64*-*-linux*)
671aa708 3867 ;;
56f8587a 3868 hppa*-*-linux*)
3e732ba0 3869 ;;
671aa708 3870 hppa*-*-*elf* | \
671aa708
NN
3871 hppa*-*-lites* | \
3872 hppa*-*-openbsd* | \
3873 hppa*64*-*-*)
671aa708 3874 ;;
c03353e2 3875 hppa*-*-pro*)
c03353e2 3876 ;;
671aa708 3877 hppa*-*-*)
2909494b 3878 noconfigdirs="$noconfigdirs ld"
671aa708 3879 ;;
fb87ad5d 3880 i960-*-*)
0036370f 3881 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3882 ;;
671aa708
NN
3883 ia64*-*-elf*)
3884 # No gdb support yet.
1bcce263 3885 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3886 ;;
3887 ia64*-**-hpux*)
5a2931d1 3888 # No ld support yet.
a05c2c75 3889 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3890 ;;
52535a64 3891 ia64*-*-*vms*)
091fe9ca
TG
3892 # No ld support yet.
3893 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3894 ;;
ef4c4300 3895 i[3456789]86-w64-mingw*)
ef4c4300
KT
3896 ;;
3897 i[3456789]86-*-mingw*)
b91f0a41 3898 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3899 ;;
671aa708
NN
3900 *-*-cygwin*)
3901 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3902 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3903 # always build newlib if winsup directory is present.
b91f0a41 3904 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3905 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3906 elif test -d "$srcdir/newlib"; then
b91f0a41 3907 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3908 fi
1c710c3c 3909 ;;
f2a0e225 3910 i[3456789]86-*-pe)
ebb9f8b0 3911 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3912 ;;
f2a0e225 3913 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3914 # The linker does not yet know about weak symbols in COFF,
3915 # and is not configured to handle mixed ELF and COFF.
0036370f 3916 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3917 ;;
f2a0e225 3918 i[3456789]86-*-sco*)
0036370f 3919 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3920 ;;
fbdd5d87 3921 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3922 noconfigdirs="$noconfigdirs target-libgloss"
3923 ;;
f2a0e225 3924 i[3456789]86-*-sysv4*)
0036370f 3925 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3926 ;;
f2a0e225 3927 i[3456789]86-*-beos*)
6a789d5e 3928 noconfigdirs="$noconfigdirs gdb"
3aa83176 3929 ;;
d1f8db0c 3930 i[3456789]86-*-rdos*)
6a789d5e 3931 noconfigdirs="$noconfigdirs gdb"
c03353e2 3932 ;;
671aa708 3933 mmix-*-*)
2909494b 3934 noconfigdirs="$noconfigdirs gdb"
671aa708 3935 ;;
ab34901f 3936 mt-*-*)
79dd769c
AH
3937 noconfigdirs="$noconfigdirs sim"
3938 ;;
58b40a67
FT
3939 nfp-*-*)
3940 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3941 noconfigdirs="$noconfigdirs $target_libraries"
3942 ;;
e6cbe965
SC
3943 pdp11-*-*)
3944 noconfigdirs="$noconfigdirs gdb gprof"
3945 ;;
671aa708
NN
3946 powerpc-*-aix*)
3947 # copied from rs6000-*-* entry
6a789d5e 3948 noconfigdirs="$noconfigdirs gprof"
671aa708 3949 ;;
4569f85e 3950 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3951 target_configdirs="$target_configdirs target-winsup"
0036370f 3952 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3953 # always build newlib.
3954 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3955 ;;
3956 # This is temporary until we can link against shared libraries
3957 powerpcle-*-solaris*)
0036370f 3958 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3959 ;;
3960 powerpc-*-beos*)
6a789d5e 3961 noconfigdirs="$noconfigdirs gdb"
671aa708 3962 ;;
671aa708 3963 rs6000-*-lynxos*)
6a789d5e 3964 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3965 ;;
3966 rs6000-*-aix*)
6a789d5e 3967 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3968 ;;
3969 rs6000-*-*)
2909494b 3970 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3971 ;;
3972 m68k-apollo-*)
0036370f 3973 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3974 ;;
ca9fe997 3975 microblaze*)
2909494b 3976 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3977 ;;
d896cc4d 3978 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3979 if test x$with_newlib = xyes; then
3980 noconfigdirs="$noconfigdirs gprof"
3981 fi
d9dced13 3982 ;;
671aa708 3983 mips*-*-irix5*)
0036370f 3984 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3985 ;;
3986 mips*-*-irix6*)
2909494b 3987 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3988 ;;
671aa708 3989 mips*-*-bsd*)
bc98bcc4 3990 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3991 ;;
671aa708 3992 mips*-*-linux*)
671aa708 3993 ;;
bc98bcc4
JBG
3994 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3995 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3996 noconfigdirs="$noconfigdirs ld gas gprof"
3997 ;;
671aa708 3998 mips*-*-*)
2909494b 3999 noconfigdirs="$noconfigdirs gprof"
671aa708 4000 ;;
738f2522 4001 nvptx*-*-*)
738f2522
BS
4002 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4003 ;;
bc6d9014 4004 sh-*-*)
ea2002ba
CB
4005 case "${target}" in
4006 sh*-*-elf)
2909494b 4007 ;;
ea2002ba 4008 *)
2909494b 4009 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4010 esac
671aa708 4011 ;;
671aa708 4012 sparc-*-sunos4*)
6a789d5e 4013 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4014 use_gnu_ld=no
4015 fi
4016 ;;
b42f0d7e 4017 tic6x-*-*)
0d557ff8 4018 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4019 ;;
671aa708 4020 v810-*-*)
0036370f 4021 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4022 ;;
4023 vax-*-*)
2909494b 4024 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4025 ;;
1fc1d82e
MR
4026 wasm32-*-*)
4027 noconfigdirs="$noconfigdirs ld"
4028 ;;
c6c0594e 4029 loongarch*-*-linux*)
4030 ;;
4031 loongarch*-*-*)
4032 noconfigdirs="$noconfigdirs gprof"
4033 ;;
671aa708 4034esac
79c06341 4035
671aa708
NN
4036# If we aren't building newlib, then don't build libgloss, since libgloss
4037# depends upon some newlib header files.
4038case "${noconfigdirs}" in
4039 *target-libgloss*) ;;
4040 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4041esac
4042
671aa708 4043# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4044host_makefile_frag=/dev/null
4045if test -d ${srcdir}/config ; then
4046case "${host}" in
f2a0e225 4047 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4048 host_makefile_frag="config/mh-djgpp"
4049 ;;
4050 *-cygwin*)
2a79c47f 4051
5213506e
RW
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4053$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4054echo a >cygwin-cat-check
e25a8c82 4055if test `cat cygwin-cat-check` = a ; then
2a79c47f 4056 rm cygwin-cat-check
5213506e
RW
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4058$as_echo "yes" >&6; }
2a79c47f
NC
4059else
4060 rm cygwin-cat-check
5213506e
RW
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062$as_echo "no" >&6; }
22e05272 4063 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4064 Please either mount the build directory in binary mode or run the following
4065 commands before running any configure script:
4066set -o igncr
4067export SHELLOPTS
5213506e 4068 " "$LINENO" 5
2a79c47f
NC
4069fi
4070
671aa708
NN
4071 host_makefile_frag="config/mh-cygwin"
4072 ;;
c53a18d3 4073 *-mingw*)
1f5a6b84 4074 host_makefile_frag="config/mh-mingw"
95af8923 4075 ;;
cabb9d59 4076 alpha*-linux*)
13be44ed
UB
4077 host_makefile_frag="config/mh-alpha-linux"
4078 ;;
efd41714 4079 hppa*-hp-hpux10*)
efd41714 4080 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4081 ;;
111eeb6e 4082 hppa*-hp-hpux*)
efd41714
PB
4083 host_makefile_frag="config/mh-pa"
4084 ;;
4085 hppa*-*)
4086 host_makefile_frag="config/mh-pa"
4087 ;;
54258e22 4088 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
d8ed14ce 4089 host_makefile_frag="config/mh-darwin"
be8fff81 4090 ;;
d19bca38
PB
4091 powerpc-*-aix*)
4092 host_makefile_frag="config/mh-ppc-aix"
4093 ;;
4094 rs6000-*-aix*)
4095 host_makefile_frag="config/mh-ppc-aix"
4096 ;;
671aa708
NN
4097esac
4098fi
4099
55ffb5ed 4100if test "${build}" != "${host}" ; then
0999159b
PB
4101 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4102 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4103 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
c841dc0a 4104 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
0999159b 4105 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3b5e8ee4 4106 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
0999159b 4107 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4108 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4109 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4110 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4111 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4112 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4113 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4114 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4115 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4116else
4117 AR_FOR_BUILD="\$(AR)"
4118 AS_FOR_BUILD="\$(AS)"
fb0103e5 4119 CC_FOR_BUILD="\$(CC)"
0999159b 4120 CXX_FOR_BUILD="\$(CXX)"
3b5e8ee4 4121 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
0999159b 4122 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4123 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4124 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4125 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4126 LD_FOR_BUILD="\$(LD)"
4127 NM_FOR_BUILD="\$(NM)"
4128 RANLIB_FOR_BUILD="\$(RANLIB)"
4129 WINDRES_FOR_BUILD="\$(WINDRES)"
4130 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4131fi
4132
4133ac_ext=c
1c710c3c
DJ
4134ac_cpp='$CPP $CPPFLAGS'
4135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137ac_compiler_gnu=$ac_cv_c_compiler_gnu
4138if test -n "$ac_tool_prefix"; then
4139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4140set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4143if ${ac_cv_prog_CC+:} false; then :
5213506e 4144 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4145else
4146 if test -n "$CC"; then
4147 ac_cv_prog_CC="$CC" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152 IFS=$as_save_IFS
4153 test -z "$as_dir" && as_dir=.
5213506e 4154 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4158 break 2
4159 fi
4160done
5213506e
RW
4161 done
4162IFS=$as_save_IFS
1c710c3c
DJ
4163
4164fi
4165fi
4166CC=$ac_cv_prog_CC
4167if test -n "$CC"; then
5213506e
RW
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169$as_echo "$CC" >&6; }
1c710c3c 4170else
5213506e
RW
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172$as_echo "no" >&6; }
1c710c3c
DJ
4173fi
4174
5213506e 4175
1c710c3c
DJ
4176fi
4177if test -z "$ac_cv_prog_CC"; then
4178 ac_ct_CC=$CC
fb0103e5
RG
4179 # Extract the first word of "gcc", so it can be a program name with args.
4180set dummy gcc; ac_word=$2
5213506e
RW
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4183if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4184 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4185else
4186 if test -n "$ac_ct_CC"; then
4187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192 IFS=$as_save_IFS
4193 test -z "$as_dir" && as_dir=.
5213506e 4194 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4196 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4198 break 2
4199 fi
4200done
5213506e
RW
4201 done
4202IFS=$as_save_IFS
1c710c3c
DJ
4203
4204fi
4205fi
4206ac_ct_CC=$ac_cv_prog_ac_ct_CC
4207if test -n "$ac_ct_CC"; then
5213506e
RW
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4209$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4210else
5213506e
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212$as_echo "no" >&6; }
1c710c3c
DJ
4213fi
4214
5213506e
RW
4215 if test "x$ac_ct_CC" = x; then
4216 CC=""
4217 else
4218 case $cross_compiling:$ac_tool_warned in
4219yes:)
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4222ac_tool_warned=yes ;;
4223esac
4224 CC=$ac_ct_CC
4225 fi
1c710c3c
DJ
4226else
4227 CC="$ac_cv_prog_CC"
4228fi
4229
4230if test -z "$CC"; then
5213506e
RW
4231 if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4233set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4236if ${ac_cv_prog_CC+:} false; then :
5213506e 4237 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4238else
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4241else
1c710c3c
DJ
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
5213506e 4247 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4249 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4251 break 2
4252 fi
4253done
5213506e
RW
4254 done
4255IFS=$as_save_IFS
1c710c3c 4256
0b0dc272 4257fi
0b0dc272 4258fi
1c710c3c 4259CC=$ac_cv_prog_CC
af71363e 4260if test -n "$CC"; then
5213506e
RW
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4262$as_echo "$CC" >&6; }
2aeb72e9 4263else
5213506e
RW
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
2aeb72e9
DD
4266fi
4267
2aeb72e9 4268
5213506e 4269 fi
1c710c3c 4270fi
55ffb5ed
NN
4271if test -z "$CC"; then
4272 # Extract the first word of "cc", so it can be a program name with args.
4273set dummy cc; ac_word=$2
5213506e
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4276if ${ac_cv_prog_CC+:} false; then :
5213506e 4277 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4278else
4279 if test -n "$CC"; then
4280 ac_cv_prog_CC="$CC" # Let the user override the test.
4281else
0b0dc272 4282 ac_prog_rejected=no
1c710c3c
DJ
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH
4285do
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
5213506e 4288 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4291 ac_prog_rejected=yes
4292 continue
4293 fi
4294 ac_cv_prog_CC="cc"
5213506e 4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4296 break 2
4297 fi
4298done
5213506e
RW
4299 done
4300IFS=$as_save_IFS
1c710c3c 4301
55ffb5ed
NN
4302if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy $ac_cv_prog_CC
4305 shift
1c710c3c 4306 if test $# != 0; then
55ffb5ed
NN
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4310 shift
1c710c3c 4311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4312 fi
4313fi
4314fi
4315fi
1c710c3c 4316CC=$ac_cv_prog_CC
55ffb5ed 4317if test -n "$CC"; then
5213506e
RW
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319$as_echo "$CC" >&6; }
55ffb5ed 4320else
5213506e
RW
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
55ffb5ed
NN
4323fi
4324
5213506e 4325
1c710c3c
DJ
4326fi
4327if test -z "$CC"; then
4328 if test -n "$ac_tool_prefix"; then
5213506e 4329 for ac_prog in cl.exe
1c710c3c
DJ
4330 do
4331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4332set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4335if ${ac_cv_prog_CC+:} false; then :
5213506e 4336 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4337else
4338 if test -n "$CC"; then
4339 ac_cv_prog_CC="$CC" # Let the user override the test.
4340else
1c710c3c
DJ
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
5213506e 4346 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4350 break 2
4351 fi
4352done
5213506e
RW
4353 done
4354IFS=$as_save_IFS
1c710c3c 4355
55ffb5ed
NN
4356fi
4357fi
1c710c3c 4358CC=$ac_cv_prog_CC
55ffb5ed 4359if test -n "$CC"; then
5213506e
RW
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4361$as_echo "$CC" >&6; }
a4b9e93e 4362else
5213506e
RW
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364$as_echo "no" >&6; }
fb0103e5 4365fi
af71363e 4366
5213506e 4367
1c710c3c
DJ
4368 test -n "$CC" && break
4369 done
af71363e 4370fi
1c710c3c
DJ
4371if test -z "$CC"; then
4372 ac_ct_CC=$CC
5213506e 4373 for ac_prog in cl.exe
1c710c3c
DJ
4374do
4375 # Extract the first word of "$ac_prog", so it can be a program name with args.
4376set dummy $ac_prog; ac_word=$2
5213506e
RW
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4379if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4380 $as_echo_n "(cached) " >&6
0b0dc272 4381else
1c710c3c
DJ
4382 if test -n "$ac_ct_CC"; then
4383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4384else
1c710c3c
DJ
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388 IFS=$as_save_IFS
4389 test -z "$as_dir" && as_dir=.
5213506e 4390 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4392 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4394 break 2
4395 fi
4396done
5213506e
RW
4397 done
4398IFS=$as_save_IFS
1c710c3c 4399
af71363e
AS
4400fi
4401fi
1c710c3c
DJ
4402ac_ct_CC=$ac_cv_prog_ac_ct_CC
4403if test -n "$ac_ct_CC"; then
5213506e
RW
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4405$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4406else
5213506e
RW
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
af71363e 4409fi
0b0dc272 4410
5213506e 4411
1c710c3c
DJ
4412 test -n "$ac_ct_CC" && break
4413done
4414
5213506e
RW
4415 if test "x$ac_ct_CC" = x; then
4416 CC=""
4417 else
4418 case $cross_compiling:$ac_tool_warned in
4419yes:)
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4422ac_tool_warned=yes ;;
4423esac
4424 CC=$ac_ct_CC
4425 fi
1c710c3c
DJ
4426fi
4427
4428fi
4429
4430
5213506e
RW
4431test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4433as_fn_error $? "no acceptable C compiler found in \$PATH
4434See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4435
4436# Provide some information about the compiler.
5213506e
RW
4437$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4438set X $ac_compile
4439ac_compiler=$2
4440for ac_option in --version -v -V -qversion; do
4441 { { ac_try="$ac_compiler $ac_option >&5"
4442case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447$as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4449 ac_status=$?
5213506e
RW
4450 if test -s conftest.err; then
4451 sed '10a\
4452... rest of stderr output deleted ...
4453 10q' conftest.err >conftest.er1
4454 cat conftest.er1 >&5
5213506e 4455 fi
22e05272 4456 rm -f conftest.er1 conftest.err
5213506e
RW
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }
4459done
1c710c3c 4460
5213506e 4461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4462/* end confdefs.h. */
4463
4464int
4465main ()
4466{
4467
4468 ;
4469 return 0;
4470}
4471_ACEOF
4472ac_clean_files_save=$ac_clean_files
22e05272 4473ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4474# Try to create an executable without -o first, disregard a.out.
4475# It will help us diagnose broken compilers, and finding out an intuition
4476# of exeext.
22e05272
JM
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4478$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4479ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4480
4481# The possible output files:
4482ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4483
4484ac_rmfiles=
4485for ac_file in $ac_files
4486do
4487 case $ac_file in
4488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4490 esac
4491done
4492rm -f $ac_rmfiles
4493
4494if { { ac_try="$ac_link_default"
4495case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500$as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_link_default") 2>&5
1c710c3c 4502 ac_status=$?
5213506e
RW
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; then :
4505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4506# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4507# in a Makefile. We should not override ac_cv_exeext if it was cached,
4508# so that the user can short-circuit this test for compilers unknown to
4509# Autoconf.
4510for ac_file in $ac_files ''
1c710c3c
DJ
4511do
4512 test -f "$ac_file" || continue
4513 case $ac_file in
5213506e 4514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4515 ;;
4516 [ab].out )
4517 # We found the default executable, but exeext='' is most
4518 # certainly right.
4519 break;;
4520 *.* )
5213506e
RW
4521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4522 then :; else
4523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 fi
4525 # We set ac_cv_exeext here because the later test for it is not
4526 # safe: cross compilers may not add the suffix if given an `-o'
4527 # argument, so we may need to know it at that point already.
4528 # Even if this section looks crufty: it has the advantage of
4529 # actually working.
1c710c3c
DJ
4530 break;;
4531 * )
4532 break;;
4533 esac
4534done
5213506e
RW
4535test "$ac_cv_exeext" = no && ac_cv_exeext=
4536
1c710c3c 4537else
5213506e
RW
4538 ac_file=''
4539fi
5213506e 4540if test -z "$ac_file"; then :
22e05272
JM
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542$as_echo "no" >&6; }
4543$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4544sed 's/^/| /' conftest.$ac_ext >&5
4545
5213506e
RW
4546{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4548as_fn_error 77 "C compiler cannot create executables
4549See \`config.log' for more details" "$LINENO" 5; }
4550else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4552$as_echo "yes" >&6; }
1c710c3c 4553fi
22e05272
JM
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4555$as_echo_n "checking for C compiler default output file name... " >&6; }
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4557$as_echo "$ac_file" >&6; }
1c710c3c 4558ac_exeext=$ac_cv_exeext
1c710c3c 4559
22e05272 4560rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4561ac_clean_files=$ac_clean_files_save
5213506e
RW
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4563$as_echo_n "checking for suffix of executables... " >&6; }
4564if { { ac_try="$ac_link"
4565case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570$as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_link") 2>&5
1c710c3c 4572 ac_status=$?
5213506e
RW
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; then :
1c710c3c
DJ
4575 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4576# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4577# work properly (i.e., refer to `conftest.exe'), while it won't with
4578# `rm'.
4579for ac_file in conftest.exe conftest conftest.*; do
4580 test -f "$ac_file" || continue
4581 case $ac_file in
5213506e 4582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4583 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4584 break;;
4585 * ) break;;
4586 esac
4587done
af71363e 4588else
5213506e
RW
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4591as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4592See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4593fi
22e05272 4594rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4596$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4597
4598rm -f conftest.$ac_ext
4599EXEEXT=$ac_cv_exeext
4600ac_exeext=$EXEEXT
22e05272
JM
4601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603#include <stdio.h>
4604int
4605main ()
4606{
4607FILE *f = fopen ("conftest.out", "w");
4608 return ferror (f) || fclose (f) != 0;
4609
4610 ;
4611 return 0;
4612}
4613_ACEOF
4614ac_clean_files="$ac_clean_files conftest.out"
4615# Check that the compiler produces executables we can run. If not, either
4616# the compiler is broken, or we cross compile.
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4618$as_echo_n "checking whether we are cross compiling... " >&6; }
4619if test "$cross_compiling" != yes; then
4620 { { ac_try="$ac_link"
4621case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4628 ac_status=$?
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }
4631 if { ac_try='./conftest$ac_cv_exeext'
4632 { { case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4637$as_echo "$ac_try_echo"; } >&5
4638 (eval "$ac_try") 2>&5
4639 ac_status=$?
4640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4641 test $ac_status = 0; }; }; then
4642 cross_compiling=no
4643 else
4644 if test "$cross_compiling" = maybe; then
4645 cross_compiling=yes
4646 else
4647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4649as_fn_error $? "cannot run C compiled programs.
4650If you meant to cross compile, use \`--host'.
4651See \`config.log' for more details" "$LINENO" 5; }
4652 fi
4653 fi
4654fi
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4656$as_echo "$cross_compiling" >&6; }
4657
4658rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4659ac_clean_files=$ac_clean_files_save
5213506e
RW
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4661$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4662if ${ac_cv_objext+:} false; then :
5213506e 4663 $as_echo_n "(cached) " >&6
1c710c3c 4664else
5213506e 4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4666/* end confdefs.h. */
4667
4668int
4669main ()
4670{
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
4676rm -f conftest.o conftest.obj
5213506e
RW
4677if { { ac_try="$ac_compile"
4678case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681esac
4682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683$as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compile") 2>&5
1c710c3c 4685 ac_status=$?
5213506e
RW
4686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4687 test $ac_status = 0; }; then :
4688 for ac_file in conftest.o conftest.obj conftest.*; do
4689 test -f "$ac_file" || continue;
1c710c3c 4690 case $ac_file in
5213506e 4691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4692 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4693 break;;
4694 esac
4695done
4696else
5213506e 4697 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4698sed 's/^/| /' conftest.$ac_ext >&5
4699
5213506e
RW
4700{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4702as_fn_error $? "cannot compute suffix of object files: cannot compile
4703See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4704fi
1c710c3c
DJ
4705rm -f conftest.$ac_cv_objext conftest.$ac_ext
4706fi
5213506e
RW
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4708$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4709OBJEXT=$ac_cv_objext
4710ac_objext=$OBJEXT
5213506e
RW
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4713if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4714 $as_echo_n "(cached) " >&6
1c710c3c 4715else
5213506e 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4717/* end confdefs.h. */
4718
4719int
4720main ()
4721{
4722#ifndef __GNUC__
4723 choke me
4724#endif
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
5213506e 4730if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4731 ac_compiler_gnu=yes
4732else
5213506e 4733 ac_compiler_gnu=no
1c710c3c 4734fi
5213506e 4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4736ac_cv_c_compiler_gnu=$ac_compiler_gnu
4737
4738fi
5213506e
RW
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4741if test $ac_compiler_gnu = yes; then
4742 GCC=yes
4743else
4744 GCC=
4745fi
1c710c3c
DJ
4746ac_test_CFLAGS=${CFLAGS+set}
4747ac_save_CFLAGS=$CFLAGS
5213506e
RW
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4750if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4751 $as_echo_n "(cached) " >&6
4752else
4753 ac_save_c_werror_flag=$ac_c_werror_flag
4754 ac_c_werror_flag=yes
4755 ac_cv_prog_cc_g=no
4756 CFLAGS="-g"
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4758/* end confdefs.h. */
4759
4760int
4761main ()
4762{
4763
4764 ;
4765 return 0;
4766}
4767_ACEOF
5213506e 4768if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4769 ac_cv_prog_cc_g=yes
4770else
5213506e
RW
4771 CFLAGS=""
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
4774
4775int
4776main ()
4777{
4778
4779 ;
4780 return 0;
4781}
4782_ACEOF
4783if ac_fn_c_try_compile "$LINENO"; then :
4784
4785else
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4787 CFLAGS="-g"
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h. */
af71363e 4790
5213506e
RW
4791int
4792main ()
4793{
4794
4795 ;
4796 return 0;
4797}
4798_ACEOF
4799if ac_fn_c_try_compile "$LINENO"; then :
4800 ac_cv_prog_cc_g=yes
4801fi
4802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4803fi
5213506e 4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4805fi
5213506e
RW
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 ac_c_werror_flag=$ac_save_c_werror_flag
4808fi
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4811if test "$ac_test_CFLAGS" = set; then
1c710c3c 4812 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4813elif test $ac_cv_prog_cc_g = yes; then
4814 if test "$GCC" = yes; then
4815 CFLAGS="-g -O2"
4816 else
4817 CFLAGS="-g"
4818 fi
4819else
4820 if test "$GCC" = yes; then
4821 CFLAGS="-O2"
4822 else
4823 CFLAGS=
4824 fi
4825fi
5213506e
RW
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4828if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4829 $as_echo_n "(cached) " >&6
1c710c3c 4830else
5213506e 4831 ac_cv_prog_cc_c89=no
1c710c3c 4832ac_save_CC=$CC
5213506e 4833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4834/* end confdefs.h. */
4835#include <stdarg.h>
4836#include <stdio.h>
22e05272 4837struct stat;
1c710c3c
DJ
4838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839struct buf { int x; };
4840FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841static char *e (p, i)
4842 char **p;
4843 int i;
4844{
4845 return p[i];
4846}
4847static char *f (char * (*g) (char **, int), char **p, ...)
4848{
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4855}
4856
4857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4858 function prototypes and stuff, but not '\xHH' hex character constants.
4859 These don't provoke an error unfortunately, instead are silently treated
5213506e 4860 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4862 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4863 that's true only with -std. */
1c710c3c
DJ
4864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4865
5213506e
RW
4866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867 inside strings and character constants. */
4868#define FOO(x) 'x'
4869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4870
1c710c3c
DJ
4871int test (int i, double x);
4872struct s1 {int (*f) (int a);};
4873struct s2 {int (*f) (double a);};
4874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875int argc;
4876char **argv;
4877int
4878main ()
4879{
4880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4881 ;
4882 return 0;
4883}
4884_ACEOF
5213506e
RW
4885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4887do
4888 CC="$ac_save_CC $ac_arg"
5213506e
RW
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4891fi
5213506e
RW
4892rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4894done
5213506e 4895rm -f conftest.$ac_ext
1c710c3c
DJ
4896CC=$ac_save_CC
4897
4898fi
5213506e
RW
4899# AC_CACHE_VAL
4900case "x$ac_cv_prog_cc_c89" in
4901 x)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903$as_echo "none needed" >&6; } ;;
4904 xno)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906$as_echo "unsupported" >&6; } ;;
1c710c3c 4907 *)
5213506e
RW
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4911esac
5213506e 4912if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4913
2aeb72e9
DD
4914fi
4915
2aeb72e9
DD
4916ac_ext=c
4917ac_cpp='$CPP $CPPFLAGS'
4918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
91743432
NC
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4923$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4924if ${ac_cv_prog_cc_c99+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926else
4927 ac_cv_prog_cc_c99=no
4928ac_save_CC=$CC
4929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930/* end confdefs.h. */
4931#include <stdarg.h>
4932#include <stdbool.h>
4933#include <stdlib.h>
4934#include <wchar.h>
4935#include <stdio.h>
4936
4937// Check varargs macros. These examples are taken from C99 6.10.3.5.
4938#define debug(...) fprintf (stderr, __VA_ARGS__)
4939#define showlist(...) puts (#__VA_ARGS__)
4940#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4941static void
4942test_varargs_macros (void)
4943{
4944 int x = 1234;
4945 int y = 5678;
4946 debug ("Flag");
4947 debug ("X = %d\n", x);
4948 showlist (The first, second, and third items.);
4949 report (x>y, "x is %d but y is %d", x, y);
4950}
4951
4952// Check long long types.
4953#define BIG64 18446744073709551615ull
4954#define BIG32 4294967295ul
4955#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4956#if !BIG_OK
4957 your preprocessor is broken;
4958#endif
4959#if BIG_OK
4960#else
4961 your preprocessor is broken;
4962#endif
4963static long long int bignum = -9223372036854775807LL;
4964static unsigned long long int ubignum = BIG64;
4965
4966struct incomplete_array
4967{
4968 int datasize;
4969 double data[];
4970};
4971
4972struct named_init {
4973 int number;
4974 const wchar_t *name;
4975 double average;
4976};
4977
4978typedef const char *ccp;
4979
4980static inline int
4981test_restrict (ccp restrict text)
4982{
4983 // See if C++-style comments work.
4984 // Iterate through items via the restricted pointer.
4985 // Also check for declarations in for loops.
4986 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4987 continue;
4988 return 0;
4989}
4990
4991// Check varargs and va_copy.
4992static void
4993test_varargs (const char *format, ...)
4994{
4995 va_list args;
4996 va_start (args, format);
4997 va_list args_copy;
4998 va_copy (args_copy, args);
4999
5000 const char *str;
5001 int number;
5002 float fnumber;
5003
5004 while (*format)
5005 {
5006 switch (*format++)
5007 {
5008 case 's': // string
5009 str = va_arg (args_copy, const char *);
5010 break;
5011 case 'd': // int
5012 number = va_arg (args_copy, int);
5013 break;
5014 case 'f': // float
5015 fnumber = va_arg (args_copy, double);
5016 break;
5017 default:
5018 break;
5019 }
5020 }
5021 va_end (args_copy);
5022 va_end (args);
5023}
5024
5025int
5026main ()
5027{
5028
5029 // Check bool.
5030 _Bool success = false;
5031
5032 // Check restrict.
5033 if (test_restrict ("String literal") == 0)
5034 success = true;
5035 char *restrict newvar = "Another string";
5036
5037 // Check varargs.
5038 test_varargs ("s, d' f .", "string", 65, 34.234);
5039 test_varargs_macros ();
5040
5041 // Check flexible array members.
5042 struct incomplete_array *ia =
5043 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5044 ia->datasize = 10;
5045 for (int i = 0; i < ia->datasize; ++i)
5046 ia->data[i] = i * 1.234;
5047
5048 // Check named initializers.
5049 struct named_init ni = {
5050 .number = 34,
5051 .name = L"Test wide string",
5052 .average = 543.34343,
5053 };
5054
5055 ni.number = 58;
5056
5057 int dynamic_array[ni.number];
5058 dynamic_array[ni.number - 1] = 543;
5059
5060 // work around unused variable warnings
5061 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5062 || dynamic_array[ni.number - 1] != 543);
5063
5064 ;
5065 return 0;
5066}
5067_ACEOF
5068for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5069do
5070 CC="$ac_save_CC $ac_arg"
5071 if ac_fn_c_try_compile "$LINENO"; then :
5072 ac_cv_prog_cc_c99=$ac_arg
5073fi
5074rm -f core conftest.err conftest.$ac_objext
5075 test "x$ac_cv_prog_cc_c99" != "xno" && break
5076done
5077rm -f conftest.$ac_ext
5078CC=$ac_save_CC
5079
5080fi
5081# AC_CACHE_VAL
5082case "x$ac_cv_prog_cc_c99" in
5083 x)
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5085$as_echo "none needed" >&6; } ;;
5086 xno)
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5088$as_echo "unsupported" >&6; } ;;
5089 *)
5090 CC="$CC $ac_cv_prog_cc_c99"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5092$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5093esac
5094if test "x$ac_cv_prog_cc_c99" != xno; then :
5095
5096fi
5097
5098
5213506e 5099ac_ext=cpp
2aeb72e9
DD
5100ac_cpp='$CXXCPP $CPPFLAGS'
5101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
5104if test -z "$CXX"; then
5105 if test -n "$CCC"; then
5106 CXX=$CCC
5107 else
5108 if test -n "$ac_tool_prefix"; then
5109 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
5110 do
5111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5115if ${ac_cv_prog_CXX+:} false; then :
5213506e 5116 $as_echo_n "(cached) " >&6
2aeb72e9
DD
5117else
5118 if test -n "$CXX"; then
5119 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5120else
5121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122for as_dir in $PATH
5123do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5213506e 5126 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 5128 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 5129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
5130 break 2
5131 fi
5132done
5213506e
RW
5133 done
5134IFS=$as_save_IFS
55ffb5ed 5135
c3a86da9
DJ
5136fi
5137fi
5138CXX=$ac_cv_prog_CXX
5139if test -n "$CXX"; then
5213506e
RW
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5141$as_echo "$CXX" >&6; }
c3a86da9 5142else
5213506e
RW
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144$as_echo "no" >&6; }
c3a86da9
DJ
5145fi
5146
5213506e 5147
c3a86da9
DJ
5148 test -n "$CXX" && break
5149 done
5150fi
5151if test -z "$CXX"; then
5152 ac_ct_CXX=$CXX
5213506e 5153 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
5154do
5155 # Extract the first word of "$ac_prog", so it can be a program name with args.
5156set dummy $ac_prog; ac_word=$2
5213506e
RW
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5159if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 5160 $as_echo_n "(cached) " >&6
c3a86da9
DJ
5161else
5162 if test -n "$ac_ct_CXX"; then
5163 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5164else
5165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166for as_dir in $PATH
5167do
5168 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=.
5213506e 5170 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 5172 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
5174 break 2
5175 fi
5176done
5213506e
RW
5177 done
5178IFS=$as_save_IFS
c3a86da9
DJ
5179
5180fi
5181fi
5182ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5183if test -n "$ac_ct_CXX"; then
5213506e
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5185$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5186else
5213506e
RW
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188$as_echo "no" >&6; }
c3a86da9
DJ
5189fi
5190
5213506e 5191
c3a86da9
DJ
5192 test -n "$ac_ct_CXX" && break
5193done
c3a86da9 5194
5213506e
RW
5195 if test "x$ac_ct_CXX" = x; then
5196 CXX="g++"
5197 else
5198 case $cross_compiling:$ac_tool_warned in
5199yes:)
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202ac_tool_warned=yes ;;
5203esac
5204 CXX=$ac_ct_CXX
5205 fi
c3a86da9
DJ
5206fi
5207
5213506e
RW
5208 fi
5209fi
c3a86da9 5210# Provide some information about the compiler.
5213506e
RW
5211$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5212set X $ac_compile
5213ac_compiler=$2
5214for ac_option in --version -v -V -qversion; do
5215 { { ac_try="$ac_compiler $ac_option >&5"
5216case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219esac
5220eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5221$as_echo "$ac_try_echo"; } >&5
5222 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5223 ac_status=$?
5213506e
RW
5224 if test -s conftest.err; then
5225 sed '10a\
5226... rest of stderr output deleted ...
5227 10q' conftest.err >conftest.er1
5228 cat conftest.er1 >&5
5213506e 5229 fi
22e05272 5230 rm -f conftest.er1 conftest.err
5213506e
RW
5231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5232 test $ac_status = 0; }
5233done
c3a86da9 5234
5213506e
RW
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5236$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5237if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5238 $as_echo_n "(cached) " >&6
c3a86da9 5239else
5213506e 5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5241/* end confdefs.h. */
5242
5243int
5244main ()
5245{
5246#ifndef __GNUC__
5247 choke me
5248#endif
5249
5250 ;
5251 return 0;
5252}
5253_ACEOF
5213506e 5254if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5255 ac_compiler_gnu=yes
5256else
5213506e 5257 ac_compiler_gnu=no
c3a86da9 5258fi
5213506e 5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5260ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5261
5262fi
5213506e
RW
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5264$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5265if test $ac_compiler_gnu = yes; then
5266 GXX=yes
5267else
5268 GXX=
5269fi
c3a86da9
DJ
5270ac_test_CXXFLAGS=${CXXFLAGS+set}
5271ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5273$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5274if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5275 $as_echo_n "(cached) " >&6
5276else
5277 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5278 ac_cxx_werror_flag=yes
5279 ac_cv_prog_cxx_g=no
5280 CXXFLAGS="-g"
5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5282/* end confdefs.h. */
5283
5284int
5285main ()
5286{
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5213506e 5292if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5293 ac_cv_prog_cxx_g=yes
5294else
5213506e
RW
5295 CXXFLAGS=""
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5297/* end confdefs.h. */
5213506e 5298
c3a86da9
DJ
5299int
5300main ()
5301{
5213506e 5302
c3a86da9
DJ
5303 ;
5304 return 0;
5305}
5306_ACEOF
5213506e 5307if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5308
5213506e
RW
5309else
5310 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5311 CXXFLAGS="-g"
5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5313/* end confdefs.h. */
5213506e 5314
c3a86da9
DJ
5315int
5316main ()
5317{
5213506e 5318
c3a86da9
DJ
5319 ;
5320 return 0;
5321}
5322_ACEOF
5213506e
RW
5323if ac_fn_cxx_try_compile "$LINENO"; then :
5324 ac_cv_prog_cxx_g=yes
11a67599 5325fi
5213506e
RW
5326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5327fi
5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329fi
5330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5334$as_echo "$ac_cv_prog_cxx_g" >&6; }
5335if test "$ac_test_CXXFLAGS" = set; then
5336 CXXFLAGS=$ac_save_CXXFLAGS
5337elif test $ac_cv_prog_cxx_g = yes; then
5338 if test "$GXX" = yes; then
5339 CXXFLAGS="-g -O2"
5340 else
5341 CXXFLAGS="-g"
5342 fi
5343else
5344 if test "$GXX" = yes; then
5345 CXXFLAGS="-O2"
5346 else
5347 CXXFLAGS=
5348 fi
c3a86da9 5349fi
c3a86da9
DJ
5350ac_ext=c
5351ac_cpp='$CPP $CPPFLAGS'
5352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5354ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
5356
5357# We must set the default linker to the linker used by gcc for the correct
5358# operation of libtool. If LD is not defined and we are using gcc, try to
5359# set the LD default to the ld used by gcc.
5360if test -z "$LD"; then
5361 if test "$GCC" = yes; then
5362 case $build in
5363 *-*-mingw*)
5364 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5365 *)
5366 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5367 esac
5368 case $gcc_prog_ld in
5369 # Accept absolute paths.
5370 [\\/]* | [A-Za-z]:[\\/]*)
5371 LD="$gcc_prog_ld" ;;
5372 esac
5373 fi
23f6b2f9
PB
5374fi
5375
0b21f5d3
EB
5376# Check whether -static-libstdc++ -static-libgcc is supported.
5377have_static_libs=no
5378if test "$GCC" = yes; then
5379 saved_LDFLAGS="$LDFLAGS"
5380
5381 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5383$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5384 ac_ext=cpp
5385ac_cpp='$CXXCPP $CPPFLAGS'
5386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5389
5390
5391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
0d6414b2
EB
5393
5394#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5395#error -static-libstdc++ not implemented
5396#endif
0b21f5d3
EB
5397int main() {}
5398_ACEOF
5399if ac_fn_cxx_try_link "$LINENO"; then :
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401$as_echo "yes" >&6; }; have_static_libs=yes
5402else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404$as_echo "no" >&6; }
5405fi
5406rm -f core conftest.err conftest.$ac_objext \
5407 conftest$ac_exeext conftest.$ac_ext
5408 ac_ext=c
5409ac_cpp='$CPP $CPPFLAGS'
5410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413
5414
5415 LDFLAGS="$saved_LDFLAGS"
5416fi
5417
23f6b2f9
PB
5418
5419
55ffb5ed 5420
1c710c3c
DJ
5421if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5423set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5426if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5427 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5428else
5429 if test -n "$GNATBIND"; then
5430 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5431else
1c710c3c
DJ
5432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433for as_dir in $PATH
5434do
5435 IFS=$as_save_IFS
5436 test -z "$as_dir" && as_dir=.
5213506e 5437 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5439 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5441 break 2
5442 fi
5443done
5213506e
RW
5444 done
5445IFS=$as_save_IFS
1c710c3c 5446
55ffb5ed
NN
5447fi
5448fi
1c710c3c 5449GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5450if test -n "$GNATBIND"; then
5213506e
RW
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5452$as_echo "$GNATBIND" >&6; }
55ffb5ed 5453else
5213506e
RW
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }
55ffb5ed
NN
5456fi
5457
5213506e 5458
1c710c3c 5459fi
55ffb5ed 5460if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5461 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5462 # Extract the first word of "gnatbind", so it can be a program name with args.
5463set dummy gnatbind; ac_word=$2
5213506e
RW
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5466if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5467 $as_echo_n "(cached) " >&6
55ffb5ed 5468else
1c710c3c
DJ
5469 if test -n "$ac_ct_GNATBIND"; then
5470 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5471else
1c710c3c
DJ
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5213506e 5477 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5479 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5481 break 2
5482 fi
5483done
5213506e
RW
5484 done
5485IFS=$as_save_IFS
1c710c3c 5486
55ffb5ed
NN
5487fi
5488fi
1c710c3c
DJ
5489ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5490if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5492$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5493else
5213506e
RW
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
55ffb5ed
NN
5496fi
5497
5213506e
RW
5498 if test "x$ac_ct_GNATBIND" = x; then
5499 GNATBIND="no"
5500 else
5501 case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507 GNATBIND=$ac_ct_GNATBIND
5508 fi
55ffb5ed 5509else
1c710c3c 5510 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5511fi
5512
1c710c3c
DJ
5513if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5515set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5517$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5518if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5519 $as_echo_n "(cached) " >&6
5305be7e
RG
5520else
5521 if test -n "$GNATMAKE"; then
5522 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5523else
1c710c3c
DJ
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5213506e 5529 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5531 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5533 break 2
5534 fi
5535done
5213506e
RW
5536 done
5537IFS=$as_save_IFS
1c710c3c 5538
5305be7e
RG
5539fi
5540fi
1c710c3c 5541GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5542if test -n "$GNATMAKE"; then
5213506e
RW
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5544$as_echo "$GNATMAKE" >&6; }
5305be7e 5545else
5213506e
RW
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547$as_echo "no" >&6; }
5305be7e
RG
5548fi
5549
5213506e 5550
1c710c3c 5551fi
5305be7e 5552if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5553 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5554 # Extract the first word of "gnatmake", so it can be a program name with args.
5555set dummy gnatmake; ac_word=$2
5213506e
RW
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5558if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5559 $as_echo_n "(cached) " >&6
5305be7e 5560else
1c710c3c
DJ
5561 if test -n "$ac_ct_GNATMAKE"; then
5562 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5563else
1c710c3c
DJ
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5213506e 5569 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5571 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5573 break 2
5574 fi
5575done
5213506e
RW
5576 done
5577IFS=$as_save_IFS
1c710c3c 5578
5305be7e
RG
5579fi
5580fi
1c710c3c
DJ
5581ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5582if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5584$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5585else
5213506e
RW
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5305be7e
RG
5588fi
5589
5213506e
RW
5590 if test "x$ac_ct_GNATMAKE" = x; then
5591 GNATMAKE="no"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594yes:)
5595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5597ac_tool_warned=yes ;;
5598esac
5599 GNATMAKE=$ac_ct_GNATMAKE
5600 fi
5305be7e 5601else
1c710c3c 5602 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5603fi
5604
71f068a9
RS
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5606$as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
22e05272 5607if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5608 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5609else
5610 cat >conftest.adb <<EOF
71f068a9
RS
5611pragma Warnings (Off);
5612with System.CRTL;
5613pragma Warnings (On);
5614use type System.CRTL.int64;
55ffb5ed
NN
5615procedure conftest is begin null; end conftest;
5616EOF
5617acx_cv_cc_gcc_supports_ada=no
5618# There is a bug in old released versions of GCC which causes the
5619# driver to exit successfully when the appropriate language module
5620# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5621# Therefore we must check for the error message as well as an
5622# unsuccessful exit.
1db673ca
RO
5623# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5624# given a .adb file, but produce no object file. So we must check
5625# if an object file was really produced to guard against this.
55ffb5ed 5626errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5627if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5628 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5629fi
5630rm -f conftest.*
5631fi
5213506e
RW
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5633$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5634
7cb62ef1 5635if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5636 have_gnat=yes
5637else
5638 have_gnat=no
5639fi
5640
5fee5ec3
IB
5641
5642
5643if test -n "$ac_tool_prefix"; then
5644 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5645set dummy ${ac_tool_prefix}gdc; ac_word=$2
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647$as_echo_n "checking for $ac_word... " >&6; }
5648if ${ac_cv_prog_GDC+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 if test -n "$GDC"; then
5652 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5653else
5654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in $PATH
5656do
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5664 fi
5665done
5666 done
5667IFS=$as_save_IFS
5668
5669fi
5670fi
5671GDC=$ac_cv_prog_GDC
5672if test -n "$GDC"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5674$as_echo "$GDC" >&6; }
5675else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677$as_echo "no" >&6; }
5678fi
5679
5680
5681fi
5682if test -z "$ac_cv_prog_GDC"; then
5683 ac_ct_GDC=$GDC
5684 # Extract the first word of "gdc", so it can be a program name with args.
5685set dummy gdc; ac_word=$2
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687$as_echo_n "checking for $ac_word... " >&6; }
5688if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 if test -n "$ac_ct_GDC"; then
5692 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5701 ac_cv_prog_ac_ct_GDC="gdc"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5704 fi
5705done
5706 done
5707IFS=$as_save_IFS
5708
5709fi
5710fi
5711ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5712if test -n "$ac_ct_GDC"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5714$as_echo "$ac_ct_GDC" >&6; }
5715else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717$as_echo "no" >&6; }
5718fi
5719
5720 if test "x$ac_ct_GDC" = x; then
5721 GDC="no"
5722 else
5723 case $cross_compiling:$ac_tool_warned in
5724yes:)
5725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727ac_tool_warned=yes ;;
5728esac
5729 GDC=$ac_ct_GDC
5730 fi
5731else
5732 GDC="$ac_cv_prog_GDC"
5733fi
5734
7c6ae994
IB
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5736$as_echo_n "checking whether the D compiler works... " >&6; }
5737if ${acx_cv_d_compiler_works+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739else
5740 cat >conftest.d <<EOF
5741module conftest; int main() { return 0; }
5742EOF
5743acx_cv_d_compiler_works=no
5fee5ec3 5744if test "x$GDC" != xno; then
7c6ae994
IB
5745 errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5746 if test x"$errors" = x && test -f conftest.$ac_objext; then
5747 acx_cv_d_compiler_works=yes
5748 fi
5749 rm -f conftest.*
5750fi
5751fi
5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5753$as_echo "$acx_cv_d_compiler_works" >&6; }
5754if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
5fee5ec3
IB
5755 have_gdc=yes
5756else
5757 have_gdc=no
5758fi
5759
5213506e
RW
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5761$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5762if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5763 $as_echo_n "(cached) " >&6
a76494aa
PB
5764else
5765 echo abfoo >t1
5766 echo cdfoo >t2
b55e6680 5767 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5768 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5769 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5770 :
5771 else
5772 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5773 fi
5774 fi
a76494aa
PB
5775 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5776 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5777 :
a76494aa
PB
5778 else
5779 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5780 fi
5781 fi
5782 rm t1 t2
5783
5784fi
5213506e
RW
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5786$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5787do_compare="$gcc_cv_prog_cmp_skip"
5788
5789
55ffb5ed 5790
ff3ac0f4
ILT
5791# Check whether --enable-bootstrap was given.
5792if test "${enable_bootstrap+set}" = set; then :
5793 enableval=$enable_bootstrap;
5794else
5795 enable_bootstrap=default
5796fi
5797
5798
5799# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5800if test -r $srcdir/gcc/configure; then
5801 have_compiler=yes
5802else
5803 have_compiler=no
5804fi
ff3ac0f4
ILT
5805
5806case "$have_compiler:$host:$target:$enable_bootstrap" in
5807 *:*:*:no) ;;
5808
5809 # Default behavior. Enable bootstrap if we have a compiler
5810 # and we are in a native configuration.
5811 yes:$build:$build:default)
5812 enable_bootstrap=yes ;;
5813
5814 *:*:*:default)
5815 enable_bootstrap=no ;;
5816
5817 # We have a compiler and we are in a native configuration, bootstrap is ok
5818 yes:$build:$build:yes)
5819 ;;
5820
5821 # Other configurations, but we have a compiler. Assume the user knows
5822 # what he's doing.
5823 yes:*:*:yes)
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5825$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5826 ;;
5827
5828 # No compiler: if they passed --enable-bootstrap explicitly, fail
5829 no:*:*:yes)
22e05272 5830 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5831
5832 # Fail if wrong command line
5833 *)
22e05272 5834 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5835 ;;
5836esac
5837
5329b59a 5838# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5839# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5840# require C++11 (or higher).
46070488 5841if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5842 CXX="$CXX -std=c++11"
ffac9597
JM
5843elif test "$have_compiler" = yes; then
5844 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5845 ac_ext=cpp
5846ac_cpp='$CXXCPP $CPPFLAGS'
5847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5850 ac_success=no
5851
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5853$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5854if ${ax_cv_cxx_compile_cxx11+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856else
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858/* end confdefs.h. */
5859
5860
5861// If the compiler admits that it is not ready for C++11, why torture it?
5862// Hopefully, this will speed up the test.
5863
5864#ifndef __cplusplus
5865
5866#error "This is not a C++ compiler"
5867
5868#elif __cplusplus < 201103L
5869
5870#error "This is not a C++11 compiler"
5871
5872#else
5873
5874namespace cxx11
5875{
5876
5877 namespace test_static_assert
5878 {
5879
5880 template <typename T>
5881 struct check
5882 {
5883 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5884 };
5885
5886 }
5887
5888 namespace test_final_override
5889 {
5890
5891 struct Base
5892 {
5893 virtual ~Base() {}
5894 virtual void f() {}
5895 };
5896
5897 struct Derived : public Base
5898 {
5899 virtual ~Derived() override {}
5900 virtual void f() override {}
5901 };
5902
5903 }
5904
5905 namespace test_double_right_angle_brackets
5906 {
5907
5908 template < typename T >
5909 struct check {};
5910
5911 typedef check<void> single_type;
5912 typedef check<check<void>> double_type;
5913 typedef check<check<check<void>>> triple_type;
5914 typedef check<check<check<check<void>>>> quadruple_type;
5915
5916 }
5917
5918 namespace test_decltype
5919 {
5920
5921 int
5922 f()
5923 {
5924 int a = 1;
5925 decltype(a) b = 2;
5926 return a + b;
5927 }
5928
5929 }
5930
5931 namespace test_type_deduction
5932 {
5933
5934 template < typename T1, typename T2 >
5935 struct is_same
5936 {
5937 static const bool value = false;
5938 };
5939
5940 template < typename T >
5941 struct is_same<T, T>
5942 {
5943 static const bool value = true;
5944 };
5945
5946 template < typename T1, typename T2 >
5947 auto
5948 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5949 {
5950 return a1 + a2;
5951 }
5952
5953 int
5954 test(const int c, volatile int v)
5955 {
5956 static_assert(is_same<int, decltype(0)>::value == true, "");
5957 static_assert(is_same<int, decltype(c)>::value == false, "");
5958 static_assert(is_same<int, decltype(v)>::value == false, "");
5959 auto ac = c;
5960 auto av = v;
5961 auto sumi = ac + av + 'x';
5962 auto sumf = ac + av + 1.0;
5963 static_assert(is_same<int, decltype(ac)>::value == true, "");
5964 static_assert(is_same<int, decltype(av)>::value == true, "");
5965 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5966 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5967 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5968 return (sumf > 0.0) ? sumi : add(c, v);
5969 }
5970
5971 }
5972
5973 namespace test_noexcept
5974 {
5975
5976 int f() { return 0; }
5977 int g() noexcept { return 0; }
5978
5979 static_assert(noexcept(f()) == false, "");
5980 static_assert(noexcept(g()) == true, "");
5981
5982 }
5983
5984 namespace test_constexpr
5985 {
5986
5987 template < typename CharT >
5988 unsigned long constexpr
5989 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5990 {
5991 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5992 }
5993
5994 template < typename CharT >
5995 unsigned long constexpr
5996 strlen_c(const CharT *const s) noexcept
5997 {
5998 return strlen_c_r(s, 0UL);
5999 }
6000
6001 static_assert(strlen_c("") == 0UL, "");
6002 static_assert(strlen_c("1") == 1UL, "");
6003 static_assert(strlen_c("example") == 7UL, "");
6004 static_assert(strlen_c("another\0example") == 7UL, "");
6005
6006 }
6007
6008 namespace test_rvalue_references
6009 {
6010
6011 template < int N >
6012 struct answer
6013 {
6014 static constexpr int value = N;
6015 };
6016
6017 answer<1> f(int&) { return answer<1>(); }
6018 answer<2> f(const int&) { return answer<2>(); }
6019 answer<3> f(int&&) { return answer<3>(); }
6020
6021 void
6022 test()
6023 {
6024 int i = 0;
6025 const int c = 0;
6026 static_assert(decltype(f(i))::value == 1, "");
6027 static_assert(decltype(f(c))::value == 2, "");
6028 static_assert(decltype(f(0))::value == 3, "");
6029 }
6030
6031 }
6032
6033 namespace test_uniform_initialization
6034 {
6035
6036 struct test
6037 {
6038 static const int zero {};
6039 static const int one {1};
6040 };
6041
6042 static_assert(test::zero == 0, "");
6043 static_assert(test::one == 1, "");
6044
6045 }
6046
6047 namespace test_lambdas
6048 {
6049
6050 void
6051 test1()
6052 {
6053 auto lambda1 = [](){};
6054 auto lambda2 = lambda1;
6055 lambda1();
6056 lambda2();
6057 }
6058
6059 int
6060 test2()
6061 {
6062 auto a = [](int i, int j){ return i + j; }(1, 2);
6063 auto b = []() -> int { return '0'; }();
6064 auto c = [=](){ return a + b; }();
6065 auto d = [&](){ return c; }();
6066 auto e = [a, &b](int x) mutable {
6067 const auto identity = [](int y){ return y; };
6068 for (auto i = 0; i < a; ++i)
6069 a += b--;
6070 return x + identity(a + b);
6071 }(0);
6072 return a + b + c + d + e;
6073 }
6074
6075 int
6076 test3()
6077 {
6078 const auto nullary = [](){ return 0; };
6079 const auto unary = [](int x){ return x; };
6080 using nullary_t = decltype(nullary);
6081 using unary_t = decltype(unary);
6082 const auto higher1st = [](nullary_t f){ return f(); };
6083 const auto higher2nd = [unary](nullary_t f1){
6084 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6085 };
6086 return higher1st(nullary) + higher2nd(nullary)(unary);
6087 }
6088
6089 }
6090
6091 namespace test_variadic_templates
6092 {
6093
6094 template <int...>
6095 struct sum;
6096
6097 template <int N0, int... N1toN>
6098 struct sum<N0, N1toN...>
6099 {
6100 static constexpr auto value = N0 + sum<N1toN...>::value;
6101 };
6102
6103 template <>
6104 struct sum<>
6105 {
6106 static constexpr auto value = 0;
6107 };
6108
6109 static_assert(sum<>::value == 0, "");
6110 static_assert(sum<1>::value == 1, "");
6111 static_assert(sum<23>::value == 23, "");
6112 static_assert(sum<1, 2>::value == 3, "");
6113 static_assert(sum<5, 5, 11>::value == 21, "");
6114 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6115
6116 }
6117
6118 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6119 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6120 // because of this.
6121 namespace test_template_alias_sfinae
6122 {
6123
6124 struct foo {};
6125
6126 template<typename T>
6127 using member = typename T::member_type;
6128
6129 template<typename T>
6130 void func(...) {}
6131
6132 template<typename T>
6133 void func(member<T>*) {}
6134
6135 void test();
6136
6137 void test() { func<foo>(0); }
6138
6139 }
6140
6141} // namespace cxx11
6142
6143#endif // __cplusplus >= 201103L
6144
6145
6146
6147_ACEOF
6148if ac_fn_cxx_try_compile "$LINENO"; then :
6149 ax_cv_cxx_compile_cxx11=yes
6150else
6151 ax_cv_cxx_compile_cxx11=no
6152fi
6153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154fi
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6156$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6157 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6158 ac_success=yes
6159 fi
6160
6161 if test x$ac_success = xno; then
6162 for alternative in ${ax_cxx_compile_alternatives}; do
6163 switch="-std=gnu++${alternative}"
6164 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6166$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6167if eval \${$cachevar+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169else
6170 ac_save_CXX="$CXX"
6171 CXX="$CXX $switch"
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173/* end confdefs.h. */
6174
6175
6176// If the compiler admits that it is not ready for C++11, why torture it?
6177// Hopefully, this will speed up the test.
6178
6179#ifndef __cplusplus
6180
6181#error "This is not a C++ compiler"
6182
6183#elif __cplusplus < 201103L
6184
6185#error "This is not a C++11 compiler"
6186
6187#else
6188
6189namespace cxx11
6190{
6191
6192 namespace test_static_assert
6193 {
6194
6195 template <typename T>
6196 struct check
6197 {
6198 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6199 };
6200
6201 }
6202
6203 namespace test_final_override
6204 {
6205
6206 struct Base
6207 {
6208 virtual ~Base() {}
6209 virtual void f() {}
6210 };
6211
6212 struct Derived : public Base
6213 {
6214 virtual ~Derived() override {}
6215 virtual void f() override {}
6216 };
6217
6218 }
6219
6220 namespace test_double_right_angle_brackets
6221 {
6222
6223 template < typename T >
6224 struct check {};
6225
6226 typedef check<void> single_type;
6227 typedef check<check<void>> double_type;
6228 typedef check<check<check<void>>> triple_type;
6229 typedef check<check<check<check<void>>>> quadruple_type;
6230
6231 }
6232
6233 namespace test_decltype
6234 {
6235
6236 int
6237 f()
6238 {
6239 int a = 1;
6240 decltype(a) b = 2;
6241 return a + b;
6242 }
6243
6244 }
6245
6246 namespace test_type_deduction
6247 {
6248
6249 template < typename T1, typename T2 >
6250 struct is_same
6251 {
6252 static const bool value = false;
6253 };
6254
6255 template < typename T >
6256 struct is_same<T, T>
6257 {
6258 static const bool value = true;
6259 };
6260
6261 template < typename T1, typename T2 >
6262 auto
6263 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6264 {
6265 return a1 + a2;
6266 }
6267
6268 int
6269 test(const int c, volatile int v)
6270 {
6271 static_assert(is_same<int, decltype(0)>::value == true, "");
6272 static_assert(is_same<int, decltype(c)>::value == false, "");
6273 static_assert(is_same<int, decltype(v)>::value == false, "");
6274 auto ac = c;
6275 auto av = v;
6276 auto sumi = ac + av + 'x';
6277 auto sumf = ac + av + 1.0;
6278 static_assert(is_same<int, decltype(ac)>::value == true, "");
6279 static_assert(is_same<int, decltype(av)>::value == true, "");
6280 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6281 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6282 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6283 return (sumf > 0.0) ? sumi : add(c, v);
6284 }
6285
6286 }
6287
6288 namespace test_noexcept
6289 {
6290
6291 int f() { return 0; }
6292 int g() noexcept { return 0; }
6293
6294 static_assert(noexcept(f()) == false, "");
6295 static_assert(noexcept(g()) == true, "");
6296
6297 }
6298
6299 namespace test_constexpr
6300 {
6301
6302 template < typename CharT >
6303 unsigned long constexpr
6304 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6305 {
6306 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6307 }
6308
6309 template < typename CharT >
6310 unsigned long constexpr
6311 strlen_c(const CharT *const s) noexcept
6312 {
6313 return strlen_c_r(s, 0UL);
6314 }
6315
6316 static_assert(strlen_c("") == 0UL, "");
6317 static_assert(strlen_c("1") == 1UL, "");
6318 static_assert(strlen_c("example") == 7UL, "");
6319 static_assert(strlen_c("another\0example") == 7UL, "");
6320
6321 }
6322
6323 namespace test_rvalue_references
6324 {
6325
6326 template < int N >
6327 struct answer
6328 {
6329 static constexpr int value = N;
6330 };
6331
6332 answer<1> f(int&) { return answer<1>(); }
6333 answer<2> f(const int&) { return answer<2>(); }
6334 answer<3> f(int&&) { return answer<3>(); }
6335
6336 void
6337 test()
6338 {
6339 int i = 0;
6340 const int c = 0;
6341 static_assert(decltype(f(i))::value == 1, "");
6342 static_assert(decltype(f(c))::value == 2, "");
6343 static_assert(decltype(f(0))::value == 3, "");
6344 }
6345
6346 }
6347
6348 namespace test_uniform_initialization
6349 {
6350
6351 struct test
6352 {
6353 static const int zero {};
6354 static const int one {1};
6355 };
6356
6357 static_assert(test::zero == 0, "");
6358 static_assert(test::one == 1, "");
6359
6360 }
6361
6362 namespace test_lambdas
6363 {
6364
6365 void
6366 test1()
6367 {
6368 auto lambda1 = [](){};
6369 auto lambda2 = lambda1;
6370 lambda1();
6371 lambda2();
6372 }
6373
6374 int
6375 test2()
6376 {
6377 auto a = [](int i, int j){ return i + j; }(1, 2);
6378 auto b = []() -> int { return '0'; }();
6379 auto c = [=](){ return a + b; }();
6380 auto d = [&](){ return c; }();
6381 auto e = [a, &b](int x) mutable {
6382 const auto identity = [](int y){ return y; };
6383 for (auto i = 0; i < a; ++i)
6384 a += b--;
6385 return x + identity(a + b);
6386 }(0);
6387 return a + b + c + d + e;
6388 }
6389
6390 int
6391 test3()
6392 {
6393 const auto nullary = [](){ return 0; };
6394 const auto unary = [](int x){ return x; };
6395 using nullary_t = decltype(nullary);
6396 using unary_t = decltype(unary);
6397 const auto higher1st = [](nullary_t f){ return f(); };
6398 const auto higher2nd = [unary](nullary_t f1){
6399 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6400 };
6401 return higher1st(nullary) + higher2nd(nullary)(unary);
6402 }
6403
6404 }
6405
6406 namespace test_variadic_templates
6407 {
6408
6409 template <int...>
6410 struct sum;
6411
6412 template <int N0, int... N1toN>
6413 struct sum<N0, N1toN...>
6414 {
6415 static constexpr auto value = N0 + sum<N1toN...>::value;
6416 };
6417
6418 template <>
6419 struct sum<>
6420 {
6421 static constexpr auto value = 0;
6422 };
6423
6424 static_assert(sum<>::value == 0, "");
6425 static_assert(sum<1>::value == 1, "");
6426 static_assert(sum<23>::value == 23, "");
6427 static_assert(sum<1, 2>::value == 3, "");
6428 static_assert(sum<5, 5, 11>::value == 21, "");
6429 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6430
6431 }
6432
6433 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6434 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6435 // because of this.
6436 namespace test_template_alias_sfinae
6437 {
6438
6439 struct foo {};
6440
6441 template<typename T>
6442 using member = typename T::member_type;
6443
6444 template<typename T>
6445 void func(...) {}
6446
6447 template<typename T>
6448 void func(member<T>*) {}
6449
6450 void test();
6451
6452 void test() { func<foo>(0); }
6453
6454 }
6455
6456} // namespace cxx11
6457
6458#endif // __cplusplus >= 201103L
6459
6460
6461
6462_ACEOF
6463if ac_fn_cxx_try_compile "$LINENO"; then :
6464 eval $cachevar=yes
6465else
6466 eval $cachevar=no
6467fi
6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 CXX="$ac_save_CXX"
6470fi
6471eval ac_res=\$$cachevar
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6473$as_echo "$ac_res" >&6; }
6474 if eval test x\$$cachevar = xyes; then
6475 CXX="$CXX $switch"
6476 if test -n "$CXXCPP" ; then
6477 CXXCPP="$CXXCPP $switch"
6478 fi
6479 ac_success=yes
6480 break
6481 fi
6482 done
6483 fi
6484
6485 if test x$ac_success = xno; then
6486 for alternative in ${ax_cxx_compile_alternatives}; do
6487 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6488 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6490$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6491if eval \${$cachevar+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493else
6494 ac_save_CXX="$CXX"
6495 CXX="$CXX $switch"
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h. */
6498
6499
6500// If the compiler admits that it is not ready for C++11, why torture it?
6501// Hopefully, this will speed up the test.
6502
6503#ifndef __cplusplus
6504
6505#error "This is not a C++ compiler"
6506
6507#elif __cplusplus < 201103L
6508
6509#error "This is not a C++11 compiler"
6510
6511#else
6512
6513namespace cxx11
6514{
6515
6516 namespace test_static_assert
6517 {
6518
6519 template <typename T>
6520 struct check
6521 {
6522 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6523 };
6524
6525 }
6526
6527 namespace test_final_override
6528 {
6529
6530 struct Base
6531 {
6532 virtual ~Base() {}
6533 virtual void f() {}
6534 };
6535
6536 struct Derived : public Base
6537 {
6538 virtual ~Derived() override {}
6539 virtual void f() override {}
6540 };
6541
6542 }
6543
6544 namespace test_double_right_angle_brackets
6545 {
6546
6547 template < typename T >
6548 struct check {};
6549
6550 typedef check<void> single_type;
6551 typedef check<check<void>> double_type;
6552 typedef check<check<check<void>>> triple_type;
6553 typedef check<check<check<check<void>>>> quadruple_type;
6554
6555 }
6556
6557 namespace test_decltype
6558 {
6559
6560 int
6561 f()
6562 {
6563 int a = 1;
6564 decltype(a) b = 2;
6565 return a + b;
6566 }
6567
6568 }
6569
6570 namespace test_type_deduction
6571 {
6572
6573 template < typename T1, typename T2 >
6574 struct is_same
6575 {
6576 static const bool value = false;
6577 };
6578
6579 template < typename T >
6580 struct is_same<T, T>
6581 {
6582 static const bool value = true;
6583 };
6584
6585 template < typename T1, typename T2 >
6586 auto
6587 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6588 {
6589 return a1 + a2;
6590 }
6591
6592 int
6593 test(const int c, volatile int v)
6594 {
6595 static_assert(is_same<int, decltype(0)>::value == true, "");
6596 static_assert(is_same<int, decltype(c)>::value == false, "");
6597 static_assert(is_same<int, decltype(v)>::value == false, "");
6598 auto ac = c;
6599 auto av = v;
6600 auto sumi = ac + av + 'x';
6601 auto sumf = ac + av + 1.0;
6602 static_assert(is_same<int, decltype(ac)>::value == true, "");
6603 static_assert(is_same<int, decltype(av)>::value == true, "");
6604 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6605 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6606 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6607 return (sumf > 0.0) ? sumi : add(c, v);
6608 }
6609
6610 }
6611
6612 namespace test_noexcept
6613 {
6614
6615 int f() { return 0; }
6616 int g() noexcept { return 0; }
6617
6618 static_assert(noexcept(f()) == false, "");
6619 static_assert(noexcept(g()) == true, "");
6620
6621 }
6622
6623 namespace test_constexpr
6624 {
6625
6626 template < typename CharT >
6627 unsigned long constexpr
6628 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6629 {
6630 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6631 }
6632
6633 template < typename CharT >
6634 unsigned long constexpr
6635 strlen_c(const CharT *const s) noexcept
6636 {
6637 return strlen_c_r(s, 0UL);
6638 }
6639
6640 static_assert(strlen_c("") == 0UL, "");
6641 static_assert(strlen_c("1") == 1UL, "");
6642 static_assert(strlen_c("example") == 7UL, "");
6643 static_assert(strlen_c("another\0example") == 7UL, "");
6644
6645 }
6646
6647 namespace test_rvalue_references
6648 {
6649
6650 template < int N >
6651 struct answer
6652 {
6653 static constexpr int value = N;
6654 };
6655
6656 answer<1> f(int&) { return answer<1>(); }
6657 answer<2> f(const int&) { return answer<2>(); }
6658 answer<3> f(int&&) { return answer<3>(); }
6659
6660 void
6661 test()
6662 {
6663 int i = 0;
6664 const int c = 0;
6665 static_assert(decltype(f(i))::value == 1, "");
6666 static_assert(decltype(f(c))::value == 2, "");
6667 static_assert(decltype(f(0))::value == 3, "");
6668 }
6669
6670 }
6671
6672 namespace test_uniform_initialization
6673 {
6674
6675 struct test
6676 {
6677 static const int zero {};
6678 static const int one {1};
6679 };
6680
6681 static_assert(test::zero == 0, "");
6682 static_assert(test::one == 1, "");
6683
6684 }
6685
6686 namespace test_lambdas
6687 {
6688
6689 void
6690 test1()
6691 {
6692 auto lambda1 = [](){};
6693 auto lambda2 = lambda1;
6694 lambda1();
6695 lambda2();
6696 }
6697
6698 int
6699 test2()
6700 {
6701 auto a = [](int i, int j){ return i + j; }(1, 2);
6702 auto b = []() -> int { return '0'; }();
6703 auto c = [=](){ return a + b; }();
6704 auto d = [&](){ return c; }();
6705 auto e = [a, &b](int x) mutable {
6706 const auto identity = [](int y){ return y; };
6707 for (auto i = 0; i < a; ++i)
6708 a += b--;
6709 return x + identity(a + b);
6710 }(0);
6711 return a + b + c + d + e;
6712 }
6713
6714 int
6715 test3()
6716 {
6717 const auto nullary = [](){ return 0; };
6718 const auto unary = [](int x){ return x; };
6719 using nullary_t = decltype(nullary);
6720 using unary_t = decltype(unary);
6721 const auto higher1st = [](nullary_t f){ return f(); };
6722 const auto higher2nd = [unary](nullary_t f1){
6723 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6724 };
6725 return higher1st(nullary) + higher2nd(nullary)(unary);
6726 }
6727
6728 }
6729
6730 namespace test_variadic_templates
6731 {
6732
6733 template <int...>
6734 struct sum;
6735
6736 template <int N0, int... N1toN>
6737 struct sum<N0, N1toN...>
6738 {
6739 static constexpr auto value = N0 + sum<N1toN...>::value;
6740 };
6741
6742 template <>
6743 struct sum<>
6744 {
6745 static constexpr auto value = 0;
6746 };
6747
6748 static_assert(sum<>::value == 0, "");
6749 static_assert(sum<1>::value == 1, "");
6750 static_assert(sum<23>::value == 23, "");
6751 static_assert(sum<1, 2>::value == 3, "");
6752 static_assert(sum<5, 5, 11>::value == 21, "");
6753 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6754
6755 }
6756
6757 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6758 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6759 // because of this.
6760 namespace test_template_alias_sfinae
6761 {
6762
6763 struct foo {};
6764
6765 template<typename T>
6766 using member = typename T::member_type;
6767
6768 template<typename T>
6769 void func(...) {}
6770
6771 template<typename T>
6772 void func(member<T>*) {}
6773
6774 void test();
6775
6776 void test() { func<foo>(0); }
6777
6778 }
6779
6780} // namespace cxx11
6781
6782#endif // __cplusplus >= 201103L
6783
6784
6785
6786_ACEOF
6787if ac_fn_cxx_try_compile "$LINENO"; then :
6788 eval $cachevar=yes
6789else
6790 eval $cachevar=no
6791fi
6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 CXX="$ac_save_CXX"
6794fi
6795eval ac_res=\$$cachevar
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6797$as_echo "$ac_res" >&6; }
6798 if eval test x\$$cachevar = xyes; then
6799 CXX="$CXX $switch"
6800 if test -n "$CXXCPP" ; then
6801 CXXCPP="$CXXCPP $switch"
6802 fi
6803 ac_success=yes
6804 break
6805 fi
6806 done
6807 if test x$ac_success = xyes; then
6808 break
6809 fi
6810 done
6811 fi
7ffcf5d6 6812
ffac9597
JM
6813 ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818
6819 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6820 if test x$ac_success = xno; then
6821 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6822 fi
6823 fi
6824 if test x$ac_success = xno; then
6825 HAVE_CXX11=0
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6827$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6828 else
6829 HAVE_CXX11=1
6830
6831$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6832
6833 fi
6834
6835
7ffcf5d6
TB
6836
6837 if test "${build}" != "${host}"; then
6838 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6839 ac_ext=cpp
6840ac_cpp='$CXXCPP $CPPFLAGS'
6841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6844 ac_success=no
6845 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6846 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6847 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6848 CXX="$CXX_FOR_BUILD"
6849 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6850 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6852$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6853if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855else
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h. */
6858
6859
6860// If the compiler admits that it is not ready for C++11, why torture it?
6861// Hopefully, this will speed up the test.
6862
6863#ifndef __cplusplus
6864
6865#error "This is not a C++ compiler"
6866
6867#elif __cplusplus < 201103L
6868
6869#error "This is not a C++11 compiler"
6870
6871#else
6872
6873namespace cxx11
6874{
6875
6876 namespace test_static_assert
6877 {
6878
6879 template <typename T>
6880 struct check
6881 {
6882 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6883 };
6884
6885 }
6886
6887 namespace test_final_override
6888 {
6889
6890 struct Base
6891 {
6892 virtual ~Base() {}
6893 virtual void f() {}
6894 };
6895
6896 struct Derived : public Base
6897 {
6898 virtual ~Derived() override {}
6899 virtual void f() override {}
6900 };
6901
6902 }
6903
6904 namespace test_double_right_angle_brackets
6905 {
6906
6907 template < typename T >
6908 struct check {};
6909
6910 typedef check<void> single_type;
6911 typedef check<check<void>> double_type;
6912 typedef check<check<check<void>>> triple_type;
6913 typedef check<check<check<check<void>>>> quadruple_type;
6914
6915 }
6916
6917 namespace test_decltype
6918 {
6919
6920 int
6921 f()
6922 {
6923 int a = 1;
6924 decltype(a) b = 2;
6925 return a + b;
6926 }
6927
6928 }
6929
6930 namespace test_type_deduction
6931 {
6932
6933 template < typename T1, typename T2 >
6934 struct is_same
6935 {
6936 static const bool value = false;
6937 };
6938
6939 template < typename T >
6940 struct is_same<T, T>
6941 {
6942 static const bool value = true;
6943 };
6944
6945 template < typename T1, typename T2 >
6946 auto
6947 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6948 {
6949 return a1 + a2;
6950 }
6951
6952 int
6953 test(const int c, volatile int v)
6954 {
6955 static_assert(is_same<int, decltype(0)>::value == true, "");
6956 static_assert(is_same<int, decltype(c)>::value == false, "");
6957 static_assert(is_same<int, decltype(v)>::value == false, "");
6958 auto ac = c;
6959 auto av = v;
6960 auto sumi = ac + av + 'x';
6961 auto sumf = ac + av + 1.0;
6962 static_assert(is_same<int, decltype(ac)>::value == true, "");
6963 static_assert(is_same<int, decltype(av)>::value == true, "");
6964 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6965 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6966 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6967 return (sumf > 0.0) ? sumi : add(c, v);
6968 }
6969
6970 }
6971
6972 namespace test_noexcept
6973 {
6974
6975 int f() { return 0; }
6976 int g() noexcept { return 0; }
6977
6978 static_assert(noexcept(f()) == false, "");
6979 static_assert(noexcept(g()) == true, "");
6980
6981 }
6982
6983 namespace test_constexpr
6984 {
6985
6986 template < typename CharT >
6987 unsigned long constexpr
6988 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6989 {
6990 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6991 }
6992
6993 template < typename CharT >
6994 unsigned long constexpr
6995 strlen_c(const CharT *const s) noexcept
6996 {
6997 return strlen_c_r(s, 0UL);
6998 }
6999
7000 static_assert(strlen_c("") == 0UL, "");
7001 static_assert(strlen_c("1") == 1UL, "");
7002 static_assert(strlen_c("example") == 7UL, "");
7003 static_assert(strlen_c("another\0example") == 7UL, "");
7004
7005 }
7006
7007 namespace test_rvalue_references
7008 {
7009
7010 template < int N >
7011 struct answer
7012 {
7013 static constexpr int value = N;
7014 };
7015
7016 answer<1> f(int&) { return answer<1>(); }
7017 answer<2> f(const int&) { return answer<2>(); }
7018 answer<3> f(int&&) { return answer<3>(); }
7019
7020 void
7021 test()
7022 {
7023 int i = 0;
7024 const int c = 0;
7025 static_assert(decltype(f(i))::value == 1, "");
7026 static_assert(decltype(f(c))::value == 2, "");
7027 static_assert(decltype(f(0))::value == 3, "");
7028 }
7029
7030 }
7031
7032 namespace test_uniform_initialization
7033 {
7034
7035 struct test
7036 {
7037 static const int zero {};
7038 static const int one {1};
7039 };
7040
7041 static_assert(test::zero == 0, "");
7042 static_assert(test::one == 1, "");
7043
7044 }
7045
7046 namespace test_lambdas
7047 {
7048
7049 void
7050 test1()
7051 {
7052 auto lambda1 = [](){};
7053 auto lambda2 = lambda1;
7054 lambda1();
7055 lambda2();
7056 }
7057
7058 int
7059 test2()
7060 {
7061 auto a = [](int i, int j){ return i + j; }(1, 2);
7062 auto b = []() -> int { return '0'; }();
7063 auto c = [=](){ return a + b; }();
7064 auto d = [&](){ return c; }();
7065 auto e = [a, &b](int x) mutable {
7066 const auto identity = [](int y){ return y; };
7067 for (auto i = 0; i < a; ++i)
7068 a += b--;
7069 return x + identity(a + b);
7070 }(0);
7071 return a + b + c + d + e;
7072 }
7073
7074 int
7075 test3()
7076 {
7077 const auto nullary = [](){ return 0; };
7078 const auto unary = [](int x){ return x; };
7079 using nullary_t = decltype(nullary);
7080 using unary_t = decltype(unary);
7081 const auto higher1st = [](nullary_t f){ return f(); };
7082 const auto higher2nd = [unary](nullary_t f1){
7083 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7084 };
7085 return higher1st(nullary) + higher2nd(nullary)(unary);
7086 }
7087
7088 }
7089
7090 namespace test_variadic_templates
7091 {
7092
7093 template <int...>
7094 struct sum;
7095
7096 template <int N0, int... N1toN>
7097 struct sum<N0, N1toN...>
7098 {
7099 static constexpr auto value = N0 + sum<N1toN...>::value;
7100 };
7101
7102 template <>
7103 struct sum<>
7104 {
7105 static constexpr auto value = 0;
7106 };
7107
7108 static_assert(sum<>::value == 0, "");
7109 static_assert(sum<1>::value == 1, "");
7110 static_assert(sum<23>::value == 23, "");
7111 static_assert(sum<1, 2>::value == 3, "");
7112 static_assert(sum<5, 5, 11>::value == 21, "");
7113 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7114
7115 }
7116
7117 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7118 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7119 // because of this.
7120 namespace test_template_alias_sfinae
7121 {
7122
7123 struct foo {};
7124
7125 template<typename T>
7126 using member = typename T::member_type;
7127
7128 template<typename T>
7129 void func(...) {}
7130
7131 template<typename T>
7132 void func(member<T>*) {}
7133
7134 void test();
7135
7136 void test() { func<foo>(0); }
7137
7138 }
7139
7140} // namespace cxx11
7141
7142#endif // __cplusplus >= 201103L
7143
7144
7145
7146_ACEOF
7147if ac_fn_cxx_try_compile "$LINENO"; then :
7148 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7149else
7150 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7151fi
7152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7155$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7156 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7157 ac_success=yes
7158 fi
7159
7160 if test x$ac_success = xno; then
7161 for alternative in ${ax_cxx_compile_alternatives}; do
7162 switch="-std=gnu++${alternative}"
7163 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7165$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7166if eval \${$cachevar+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168else
7169 ac_save_CXX="$CXX"
7170 CXX="$CXX $switch"
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172/* end confdefs.h. */
7173
7174
7175// If the compiler admits that it is not ready for C++11, why torture it?
7176// Hopefully, this will speed up the test.
7177
7178#ifndef __cplusplus
7179
7180#error "This is not a C++ compiler"
7181
7182#elif __cplusplus < 201103L
7183
7184#error "This is not a C++11 compiler"
7185
7186#else
7187
7188namespace cxx11
7189{
7190
7191 namespace test_static_assert
7192 {
7193
7194 template <typename T>
7195 struct check
7196 {
7197 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7198 };
7199
7200 }
7201
7202 namespace test_final_override
7203 {
7204
7205 struct Base
7206 {
7207 virtual ~Base() {}
7208 virtual void f() {}
7209 };
7210
7211 struct Derived : public Base
7212 {
7213 virtual ~Derived() override {}
7214 virtual void f() override {}
7215 };
7216
7217 }
7218
7219 namespace test_double_right_angle_brackets
7220 {
7221
7222 template < typename T >
7223 struct check {};
7224
7225 typedef check<void> single_type;
7226 typedef check<check<void>> double_type;
7227 typedef check<check<check<void>>> triple_type;
7228 typedef check<check<check<check<void>>>> quadruple_type;
7229
7230 }
7231
7232 namespace test_decltype
7233 {
7234
7235 int
7236 f()
7237 {
7238 int a = 1;
7239 decltype(a) b = 2;
7240 return a + b;
7241 }
7242
7243 }
7244
7245 namespace test_type_deduction
7246 {
7247
7248 template < typename T1, typename T2 >
7249 struct is_same
7250 {
7251 static const bool value = false;
7252 };
7253
7254 template < typename T >
7255 struct is_same<T, T>
7256 {
7257 static const bool value = true;
7258 };
7259
7260 template < typename T1, typename T2 >
7261 auto
7262 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7263 {
7264 return a1 + a2;
7265 }
7266
7267 int
7268 test(const int c, volatile int v)
7269 {
7270 static_assert(is_same<int, decltype(0)>::value == true, "");
7271 static_assert(is_same<int, decltype(c)>::value == false, "");
7272 static_assert(is_same<int, decltype(v)>::value == false, "");
7273 auto ac = c;
7274 auto av = v;
7275 auto sumi = ac + av + 'x';
7276 auto sumf = ac + av + 1.0;
7277 static_assert(is_same<int, decltype(ac)>::value == true, "");
7278 static_assert(is_same<int, decltype(av)>::value == true, "");
7279 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7280 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7281 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7282 return (sumf > 0.0) ? sumi : add(c, v);
7283 }
7284
7285 }
7286
7287 namespace test_noexcept
7288 {
7289
7290 int f() { return 0; }
7291 int g() noexcept { return 0; }
7292
7293 static_assert(noexcept(f()) == false, "");
7294 static_assert(noexcept(g()) == true, "");
7295
7296 }
7297
7298 namespace test_constexpr
7299 {
7300
7301 template < typename CharT >
7302 unsigned long constexpr
7303 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7304 {
7305 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7306 }
7307
7308 template < typename CharT >
7309 unsigned long constexpr
7310 strlen_c(const CharT *const s) noexcept
7311 {
7312 return strlen_c_r(s, 0UL);
7313 }
7314
7315 static_assert(strlen_c("") == 0UL, "");
7316 static_assert(strlen_c("1") == 1UL, "");
7317 static_assert(strlen_c("example") == 7UL, "");
7318 static_assert(strlen_c("another\0example") == 7UL, "");
7319
7320 }
7321
7322 namespace test_rvalue_references
7323 {
7324
7325 template < int N >
7326 struct answer
7327 {
7328 static constexpr int value = N;
7329 };
7330
7331 answer<1> f(int&) { return answer<1>(); }
7332 answer<2> f(const int&) { return answer<2>(); }
7333 answer<3> f(int&&) { return answer<3>(); }
7334
7335 void
7336 test()
7337 {
7338 int i = 0;
7339 const int c = 0;
7340 static_assert(decltype(f(i))::value == 1, "");
7341 static_assert(decltype(f(c))::value == 2, "");
7342 static_assert(decltype(f(0))::value == 3, "");
7343 }
7344
7345 }
7346
7347 namespace test_uniform_initialization
7348 {
7349
7350 struct test
7351 {
7352 static const int zero {};
7353 static const int one {1};
7354 };
7355
7356 static_assert(test::zero == 0, "");
7357 static_assert(test::one == 1, "");
7358
7359 }
7360
7361 namespace test_lambdas
7362 {
7363
7364 void
7365 test1()
7366 {
7367 auto lambda1 = [](){};
7368 auto lambda2 = lambda1;
7369 lambda1();
7370 lambda2();
7371 }
7372
7373 int
7374 test2()
7375 {
7376 auto a = [](int i, int j){ return i + j; }(1, 2);
7377 auto b = []() -> int { return '0'; }();
7378 auto c = [=](){ return a + b; }();
7379 auto d = [&](){ return c; }();
7380 auto e = [a, &b](int x) mutable {
7381 const auto identity = [](int y){ return y; };
7382 for (auto i = 0; i < a; ++i)
7383 a += b--;
7384 return x + identity(a + b);
7385 }(0);
7386 return a + b + c + d + e;
7387 }
7388
7389 int
7390 test3()
7391 {
7392 const auto nullary = [](){ return 0; };
7393 const auto unary = [](int x){ return x; };
7394 using nullary_t = decltype(nullary);
7395 using unary_t = decltype(unary);
7396 const auto higher1st = [](nullary_t f){ return f(); };
7397 const auto higher2nd = [unary](nullary_t f1){
7398 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7399 };
7400 return higher1st(nullary) + higher2nd(nullary)(unary);
7401 }
7402
7403 }
7404
7405 namespace test_variadic_templates
7406 {
7407
7408 template <int...>
7409 struct sum;
7410
7411 template <int N0, int... N1toN>
7412 struct sum<N0, N1toN...>
7413 {
7414 static constexpr auto value = N0 + sum<N1toN...>::value;
7415 };
7416
7417 template <>
7418 struct sum<>
7419 {
7420 static constexpr auto value = 0;
7421 };
7422
7423 static_assert(sum<>::value == 0, "");
7424 static_assert(sum<1>::value == 1, "");
7425 static_assert(sum<23>::value == 23, "");
7426 static_assert(sum<1, 2>::value == 3, "");
7427 static_assert(sum<5, 5, 11>::value == 21, "");
7428 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7429
7430 }
7431
7432 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7433 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7434 // because of this.
7435 namespace test_template_alias_sfinae
7436 {
7437
7438 struct foo {};
7439
7440 template<typename T>
7441 using member = typename T::member_type;
7442
7443 template<typename T>
7444 void func(...) {}
7445
7446 template<typename T>
7447 void func(member<T>*) {}
7448
7449 void test();
7450
7451 void test() { func<foo>(0); }
7452
7453 }
7454
7455} // namespace cxx11
7456
7457#endif // __cplusplus >= 201103L
7458
7459
7460
7461_ACEOF
7462if ac_fn_cxx_try_compile "$LINENO"; then :
7463 eval $cachevar=yes
7464else
7465 eval $cachevar=no
7466fi
7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468 CXX="$ac_save_CXX"
7469fi
7470eval ac_res=\$$cachevar
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7472$as_echo "$ac_res" >&6; }
7473 if eval test x\$$cachevar = xyes; then
7474 CXX="$CXX $switch"
7475 if test -n "$CXXCPP" ; then
7476 CXXCPP="$CXXCPP $switch"
7477 fi
7478 ac_success=yes
7479 break
7480 fi
7481 done
7482 fi
7483
7484 if test x$ac_success = xno; then
7485 for alternative in ${ax_cxx_compile_alternatives}; do
7486 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7487 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7489$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7490if eval \${$cachevar+:} false; then :
7491 $as_echo_n "(cached) " >&6
7492else
7493 ac_save_CXX="$CXX"
7494 CXX="$CXX $switch"
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h. */
7497
7498
7499// If the compiler admits that it is not ready for C++11, why torture it?
7500// Hopefully, this will speed up the test.
7501
7502#ifndef __cplusplus
7503
7504#error "This is not a C++ compiler"
7505
7506#elif __cplusplus < 201103L
7507
7508#error "This is not a C++11 compiler"
7509
7510#else
7511
7512namespace cxx11
7513{
7514
7515 namespace test_static_assert
7516 {
7517
7518 template <typename T>
7519 struct check
7520 {
7521 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7522 };
7523
7524 }
7525
7526 namespace test_final_override
7527 {
7528
7529 struct Base
7530 {
7531 virtual ~Base() {}
7532 virtual void f() {}
7533 };
7534
7535 struct Derived : public Base
7536 {
7537 virtual ~Derived() override {}
7538 virtual void f() override {}
7539 };
7540
7541 }
7542
7543 namespace test_double_right_angle_brackets
7544 {
7545
7546 template < typename T >
7547 struct check {};
7548
7549 typedef check<void> single_type;
7550 typedef check<check<void>> double_type;
7551 typedef check<check<check<void>>> triple_type;
7552 typedef check<check<check<check<void>>>> quadruple_type;
7553
7554 }
7555
7556 namespace test_decltype
7557 {
7558
7559 int
7560 f()
7561 {
7562 int a = 1;
7563 decltype(a) b = 2;
7564 return a + b;
7565 }
7566
7567 }
7568
7569 namespace test_type_deduction
7570 {
7571
7572 template < typename T1, typename T2 >
7573 struct is_same
7574 {
7575 static const bool value = false;
7576 };
7577
7578 template < typename T >
7579 struct is_same<T, T>
7580 {
7581 static const bool value = true;
7582 };
7583
7584 template < typename T1, typename T2 >
7585 auto
7586 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7587 {
7588 return a1 + a2;
7589 }
7590
7591 int
7592 test(const int c, volatile int v)
7593 {
7594 static_assert(is_same<int, decltype(0)>::value == true, "");
7595 static_assert(is_same<int, decltype(c)>::value == false, "");
7596 static_assert(is_same<int, decltype(v)>::value == false, "");
7597 auto ac = c;
7598 auto av = v;
7599 auto sumi = ac + av + 'x';
7600 auto sumf = ac + av + 1.0;
7601 static_assert(is_same<int, decltype(ac)>::value == true, "");
7602 static_assert(is_same<int, decltype(av)>::value == true, "");
7603 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7604 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7605 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7606 return (sumf > 0.0) ? sumi : add(c, v);
7607 }
7608
7609 }
7610
7611 namespace test_noexcept
7612 {
7613
7614 int f() { return 0; }
7615 int g() noexcept { return 0; }
7616
7617 static_assert(noexcept(f()) == false, "");
7618 static_assert(noexcept(g()) == true, "");
7619
7620 }
7621
7622 namespace test_constexpr
7623 {
7624
7625 template < typename CharT >
7626 unsigned long constexpr
7627 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7628 {
7629 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7630 }
7631
7632 template < typename CharT >
7633 unsigned long constexpr
7634 strlen_c(const CharT *const s) noexcept
7635 {
7636 return strlen_c_r(s, 0UL);
7637 }
7638
7639 static_assert(strlen_c("") == 0UL, "");
7640 static_assert(strlen_c("1") == 1UL, "");
7641 static_assert(strlen_c("example") == 7UL, "");
7642 static_assert(strlen_c("another\0example") == 7UL, "");
7643
7644 }
7645
7646 namespace test_rvalue_references
7647 {
7648
7649 template < int N >
7650 struct answer
7651 {
7652 static constexpr int value = N;
7653 };
7654
7655 answer<1> f(int&) { return answer<1>(); }
7656 answer<2> f(const int&) { return answer<2>(); }
7657 answer<3> f(int&&) { return answer<3>(); }
7658
7659 void
7660 test()
7661 {
7662 int i = 0;
7663 const int c = 0;
7664 static_assert(decltype(f(i))::value == 1, "");
7665 static_assert(decltype(f(c))::value == 2, "");
7666 static_assert(decltype(f(0))::value == 3, "");
7667 }
7668
7669 }
7670
7671 namespace test_uniform_initialization
7672 {
7673
7674 struct test
7675 {
7676 static const int zero {};
7677 static const int one {1};
7678 };
7679
7680 static_assert(test::zero == 0, "");
7681 static_assert(test::one == 1, "");
7682
7683 }
7684
7685 namespace test_lambdas
7686 {
7687
7688 void
7689 test1()
7690 {
7691 auto lambda1 = [](){};
7692 auto lambda2 = lambda1;
7693 lambda1();
7694 lambda2();
7695 }
7696
7697 int
7698 test2()
7699 {
7700 auto a = [](int i, int j){ return i + j; }(1, 2);
7701 auto b = []() -> int { return '0'; }();
7702 auto c = [=](){ return a + b; }();
7703 auto d = [&](){ return c; }();
7704 auto e = [a, &b](int x) mutable {
7705 const auto identity = [](int y){ return y; };
7706 for (auto i = 0; i < a; ++i)
7707 a += b--;
7708 return x + identity(a + b);
7709 }(0);
7710 return a + b + c + d + e;
7711 }
7712
7713 int
7714 test3()
7715 {
7716 const auto nullary = [](){ return 0; };
7717 const auto unary = [](int x){ return x; };
7718 using nullary_t = decltype(nullary);
7719 using unary_t = decltype(unary);
7720 const auto higher1st = [](nullary_t f){ return f(); };
7721 const auto higher2nd = [unary](nullary_t f1){
7722 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7723 };
7724 return higher1st(nullary) + higher2nd(nullary)(unary);
7725 }
7726
7727 }
7728
7729 namespace test_variadic_templates
7730 {
7731
7732 template <int...>
7733 struct sum;
7734
7735 template <int N0, int... N1toN>
7736 struct sum<N0, N1toN...>
7737 {
7738 static constexpr auto value = N0 + sum<N1toN...>::value;
7739 };
7740
7741 template <>
7742 struct sum<>
7743 {
7744 static constexpr auto value = 0;
7745 };
7746
7747 static_assert(sum<>::value == 0, "");
7748 static_assert(sum<1>::value == 1, "");
7749 static_assert(sum<23>::value == 23, "");
7750 static_assert(sum<1, 2>::value == 3, "");
7751 static_assert(sum<5, 5, 11>::value == 21, "");
7752 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7753
7754 }
7755
7756 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7757 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7758 // because of this.
7759 namespace test_template_alias_sfinae
7760 {
7761
7762 struct foo {};
7763
7764 template<typename T>
7765 using member = typename T::member_type;
7766
7767 template<typename T>
7768 void func(...) {}
7769
7770 template<typename T>
7771 void func(member<T>*) {}
7772
7773 void test();
7774
7775 void test() { func<foo>(0); }
7776
7777 }
7778
7779} // namespace cxx11
7780
7781#endif // __cplusplus >= 201103L
7782
7783
7784
7785_ACEOF
7786if ac_fn_cxx_try_compile "$LINENO"; then :
7787 eval $cachevar=yes
7788else
7789 eval $cachevar=no
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 CXX="$ac_save_CXX"
7793fi
7794eval ac_res=\$$cachevar
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7796$as_echo "$ac_res" >&6; }
7797 if eval test x\$$cachevar = xyes; then
7798 CXX="$CXX $switch"
7799 if test -n "$CXXCPP" ; then
7800 CXXCPP="$CXXCPP $switch"
7801 fi
7802 ac_success=yes
7803 break
7804 fi
7805 done
7806 if test x$ac_success = xyes; then
7807 break
7808 fi
7809 done
7810 fi
7811 CXX_FOR_BUILD="$CXX"
7812 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7813 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7814 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7815 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7816 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7817 ac_ext=c
7818ac_cpp='$CPP $CPPFLAGS'
7819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822
7823 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7824 if test x$ac_success = xno; then
7825 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7826 fi
7827 fi
7828 if test x$ac_success = xno; then
7829 HAVE_CXX11_FOR_BUILD=0
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7831$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7832 else
7833 HAVE_CXX11_FOR_BUILD=1
7834
7835$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7836
7837 fi
7838
7839
7840 fi
46070488
JM
7841fi
7842
4a5e71f2
L
7843# Check whether --enable-pgo-build was given.
7844if test "${enable_pgo_build+set}" = set; then :
7845 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7846else
7847 enable_pgo_build=no
7848fi
7849
7850
7851# Issue errors and warnings for invalid/strange PGO build combinations.
7852case "$have_compiler:$host:$target:$enable_pgo_build" in
7853 *:*:*:no) ;;
7854
7855 # Allow the PGO build only if we aren't building a compiler and
7856 # we are in a native configuration.
7857 no:$build:$build:yes | no:$build:$build:lto) ;;
7858
7859 # Disallow the PGO bootstrap if we are building a compiler.
7860 yes:*:*:yes | yes:*:*:lto)
7861 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7862
7863 *)
7864 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7865 ;;
7866esac
7867
7868if test "$enable_pgo_build" != "no"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7870$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7871 old_CFLAGS="$CFLAGS"
7872 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7873 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7874
7875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h. */
7877int foo;
7878_ACEOF
7879if ac_fn_c_try_compile "$LINENO"; then :
7880
7881else
7882 PGO_BUILD_GEN_CFLAGS=
7883fi
7884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885 CFLAGS="$old_CFLAGS"
7886 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7888$as_echo "yes" >&6; }
7889 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892$as_echo "no" >&6; }
7893 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7894 fi
7895
7896 if test "$enable_pgo_build" = "lto"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7898$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7899 old_CFLAGS="$CFLAGS"
7900 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7901 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h. */
7904int foo;
7905_ACEOF
7906if ac_fn_c_try_compile "$LINENO"; then :
7907
7908else
7909 PGO_BUILD_LTO_CFLAGS=
7910fi
7911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 CFLAGS="$old_CFLAGS"
7913 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915$as_echo "yes" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7920$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7921 fi
7922 fi
7923fi
7924
7925
7926
7927
592c90ff
KG
7928# Used for setting $lt_cv_objdir
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7930$as_echo_n "checking for objdir... " >&6; }
22e05272 7931if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7932 $as_echo_n "(cached) " >&6
7933else
7934 rm -f .libs 2>/dev/null
7935mkdir .libs 2>/dev/null
7936if test -d .libs; then
7937 lt_cv_objdir=.libs
7938else
7939 # MS-DOS does not allow filenames that begin with a dot.
7940 lt_cv_objdir=_libs
7941fi
7942rmdir .libs 2>/dev/null
7943fi
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7945$as_echo "$lt_cv_objdir" >&6; }
7946objdir=$lt_cv_objdir
7947
7948
7949
7950
7951
7952cat >>confdefs.h <<_ACEOF
7953#define LT_OBJDIR "$lt_cv_objdir/"
7954_ACEOF
7955
7956
7957
acd26225 7958# Check for GMP, MPFR and MPC
3a5729ea 7959gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7960gmpinc=
e69bf64b 7961have_gmp=no
acd26225
KG
7962
7963# Specify a location for mpc
7964# check for this first so it ends up on the link line before mpfr.
7965
5213506e
RW
7966# Check whether --with-mpc was given.
7967if test "${with_mpc+set}" = set; then :
7968 withval=$with_mpc;
7969fi
acd26225 7970
acd26225 7971
9965e3cd 7972# Check whether --with-mpc-include was given.
5213506e
RW
7973if test "${with_mpc_include+set}" = set; then :
7974 withval=$with_mpc_include;
7975fi
acd26225 7976
acd26225 7977
9965e3cd 7978# Check whether --with-mpc-lib was given.
5213506e
RW
7979if test "${with_mpc_lib+set}" = set; then :
7980 withval=$with_mpc_lib;
7981fi
acd26225 7982
acd26225
KG
7983
7984if test "x$with_mpc" != x; then
3a5729ea
KG
7985 gmplibs="-L$with_mpc/lib $gmplibs"
7986 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7987fi
7988if test "x$with_mpc_include" != x; then
3a5729ea 7989 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7990fi
7991if test "x$with_mpc_lib" != x; then
3a5729ea 7992 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7993fi
7994if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7995 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7996 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7997 # Do not test the mpc version. Assume that it is sufficient, since
7998 # it is in the source tree, and the library has not been built yet
7999 # but it would be included on the link line in the version check below
8000 # hence making the test fail.
3a5729ea 8001 have_gmp=yes
acd26225 8002fi
e69bf64b 8003
bebf829d
PB
8004# Specify a location for mpfr
8005# check for this first so it ends up on the link line before gmp.
1c710c3c 8006
5213506e
RW
8007# Check whether --with-mpfr was given.
8008if test "${with_mpfr+set}" = set; then :
8009 withval=$with_mpfr;
8010fi
1c710c3c 8011
bebf829d 8012
9965e3cd 8013# Check whether --with-mpfr-include was given.
5213506e
RW
8014if test "${with_mpfr_include+set}" = set; then :
8015 withval=$with_mpfr_include;
8016fi
1c710c3c 8017
8a877c9c 8018
9965e3cd 8019# Check whether --with-mpfr-lib was given.
5213506e
RW
8020if test "${with_mpfr_lib+set}" = set; then :
8021 withval=$with_mpfr_lib;
8022fi
8a877c9c 8023
bebf829d
PB
8024
8025if test "x$with_mpfr" != x; then
8026 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 8027 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 8028fi
8a877c9c 8029if test "x$with_mpfr_include" != x; then
3a5729ea 8030 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
8031fi
8032if test "x$with_mpfr_lib" != x; then
8033 gmplibs="-L$with_mpfr_lib $gmplibs"
8034fi
e69bf64b 8035if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
8036 # MPFR v3.1.0 moved the sources into a src sub-directory.
8037 if ! test -d ${srcdir}/mpfr/src; then
22e05272 8038 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 8039 fi
00f35794
BE
8040 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8041 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8042 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
8043 # Do not test the mpfr version. Assume that it is sufficient, since
8044 # it is in the source tree, and the library has not been built yet
8045 # but it would be included on the link line in the version check below
8046 # hence making the test fail.
8047 have_gmp=yes
8048fi
bebf829d 8049
6de9cd9a 8050# Specify a location for gmp
1c710c3c 8051
5213506e
RW
8052# Check whether --with-gmp was given.
8053if test "${with_gmp+set}" = set; then :
8054 withval=$with_gmp;
8055fi
1c710c3c 8056
6de9cd9a 8057
9965e3cd 8058# Check whether --with-gmp-include was given.
5213506e
RW
8059if test "${with_gmp_include+set}" = set; then :
8060 withval=$with_gmp_include;
8061fi
1c710c3c 8062
8a877c9c 8063
9965e3cd 8064# Check whether --with-gmp-lib was given.
5213506e
RW
8065if test "${with_gmp_lib+set}" = set; then :
8066 withval=$with_gmp_lib;
8067fi
8a877c9c
KG
8068
8069
6de9cd9a 8070
bebf829d
PB
8071if test "x$with_gmp" != x; then
8072 gmplibs="-L$with_gmp/lib $gmplibs"
8073 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 8074fi
8a877c9c
KG
8075if test "x$with_gmp_include" != x; then
8076 gmpinc="-I$with_gmp_include $gmpinc"
8077fi
8078if test "x$with_gmp_lib" != x; then
8079 gmplibs="-L$with_gmp_lib $gmplibs"
8080fi
e69bf64b 8081if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 8082 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 8083 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 8084 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 8085 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 8086 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
8087 # Do not test the gmp version. Assume that it is sufficient, since
8088 # it is in the source tree, and the library has not been built yet
8089 # but it would be included on the link line in the version check below
8090 # hence making the test fail.
8091 have_gmp=yes
8092fi
6de9cd9a 8093
d943d7c4 8094if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
8095 have_gmp=yes
8096 saved_CFLAGS="$CFLAGS"
8097 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
8098 # Check for the recommended and required versions of GMP.
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8100$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4a5e71f2 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
8102/* end confdefs.h. */
8103#include "gmp.h"
8104int
8105main ()
8106{
8107
8108 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8109 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 8110 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
8111 choke me
8112 #endif
8113
8114 ;
8115 return 0;
8116}
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8120/* end confdefs.h. */
362c6d2f 8121#include <gmp.h>
1c710c3c
DJ
8122int
8123main ()
8124{
6de9cd9a 8125
362c6d2f
KG
8126 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8127 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8128 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
8129 choke me
8130 #endif
1c710c3c
DJ
8131
8132 ;
8133 return 0;
8134}
8135_ACEOF
5213506e
RW
8136if ac_fn_c_try_compile "$LINENO"; then :
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8138$as_echo "yes" >&6; }
362c6d2f
KG
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8141$as_echo "buggy but acceptable" >&6; }
8142fi
8143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 8144else
5213506e
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8147fi
5213506e 8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 8149
acd26225 8150 # If we have GMP, check the MPFR version.
e69bf64b 8151 if test x"$have_gmp" = xyes; then
362c6d2f
KG
8152 # Check for the recommended and required versions of MPFR.
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8154$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8156/* end confdefs.h. */
70ec446f 8157#include <gmp.h>
e69bf64b 8158 #include <mpfr.h>
1c710c3c
DJ
8159int
8160main ()
8161{
e48d66a9 8162
8be34204 8163 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
8164 choke me
8165 #endif
1c710c3c
DJ
8166
8167 ;
8168 return 0;
8169}
8170_ACEOF
5213506e
RW
8171if ac_fn_c_try_compile "$LINENO"; then :
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 8173/* end confdefs.h. */
a3993f33 8174#include <gmp.h>
e69bf64b 8175 #include <mpfr.h>
1c710c3c
DJ
8176int
8177main ()
8178{
a3993f33 8179
8be34204 8180 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
8181 choke me
8182 #endif
acd26225
KG
8183
8184 ;
8185 return 0;
8186}
8187_ACEOF
5213506e
RW
8188if ac_fn_c_try_compile "$LINENO"; then :
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8190$as_echo "yes" >&6; }
acd26225 8191else
5213506e
RW
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8193$as_echo "buggy but acceptable" >&6; }
acd26225 8194fi
5213506e 8195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8196else
5213506e
RW
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }; have_gmp=no
acd26225 8199fi
5213506e 8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8201 fi
8202
8203 # Check for the MPC header version.
3a5729ea 8204 if test x"$have_gmp" = xyes ; then
362c6d2f 8205 # Check for the recommended and required versions of MPC.
5213506e
RW
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8207$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
8209/* end confdefs.h. */
8210#include <mpc.h>
8211int
8212main ()
8213{
8214
362c6d2f
KG
8215 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8216 choke me
8217 #endif
8218
8219 ;
8220 return 0;
8221}
8222_ACEOF
8223if ac_fn_c_try_compile "$LINENO"; then :
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225/* end confdefs.h. */
8226#include <mpc.h>
8227int
8228main ()
8229{
8230
8231 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
8232 choke me
8233 #endif
8234
8235 ;
8236 return 0;
8237}
8238_ACEOF
5213506e
RW
8239if ac_fn_c_try_compile "$LINENO"; then :
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 8241$as_echo "yes" >&6; }
362c6d2f
KG
8242else
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8244$as_echo "buggy but acceptable" >&6; }
8245fi
8246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 8247else
5213506e 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 8249$as_echo "no" >&6; }; have_gmp=no
acd26225 8250fi
5213506e 8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
8252 fi
8253
8254 # Now check the MPFR library.
8255 if test x"$have_gmp" = xyes; then
8256 saved_LIBS="$LIBS"
8257 LIBS="$LIBS $gmplibs"
3a5729ea
KG
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8259$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 8260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 8261/* end confdefs.h. */
3a5729ea 8262#include <mpc.h>
acd26225
KG
8263int
8264main ()
8265{
8266
8267 mpfr_t n;
8268 mpfr_t x;
3a5729ea 8269 mpc_t c;
acd26225
KG
8270 int t;
8271 mpfr_init (n);
8272 mpfr_init (x);
90ca6847
TB
8273 mpfr_atan2 (n, n, x, MPFR_RNDN);
8274 mpfr_erfc (n, x, MPFR_RNDN);
8275 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
8276 mpfr_clear(n);
8277 mpfr_clear(x);
8278 mpc_init2 (c, 53);
8279 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8280 mpc_cosh (c, c, MPC_RNDNN);
8281 mpc_pow (c, c, c, MPC_RNDNN);
8282 mpc_acosh (c, c, MPC_RNDNN);
8283 mpc_clear (c);
1c710c3c
DJ
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
5213506e
RW
8289if ac_fn_c_try_link "$LINENO"; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291$as_echo "yes" >&6; }
1c710c3c 8292else
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }; have_gmp=no
1c710c3c 8295fi
5213506e
RW
8296rm -f core conftest.err conftest.$ac_objext \
8297 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
8298 LIBS="$saved_LIBS"
8299 fi
8300
e69bf64b 8301 CFLAGS="$saved_CFLAGS"
6de9cd9a 8302
362c6d2f
KG
8303# The library versions listed in the error message below should match
8304# the HARD-minimums enforced above.
e69bf64b 8305 if test x$have_gmp != xyes; then
8be34204 8306 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
8307Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8308their locations. Source code for these libraries can be found at
8309their respective hosting sites as well as at
aeebd94c 8310https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
8311http://gcc.gnu.org/install/prerequisites.html for additional info. If
8312you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8313make sure that you have installed both the libraries and the header
8314files. They may be located in separate packages." "$LINENO" 5
e69bf64b 8315 fi
70ec446f
KG
8316fi
8317
acd26225
KG
8318# Flags needed for both GMP, MPFR and/or MPC.
8319
8320
6de9cd9a
DN
8321
8322
8323
9e3eba15 8324
0ff2d841 8325
0b21f5d3 8326# Libraries to use for stage1 or when not bootstrapping.
00020c16 8327
0b21f5d3
EB
8328# Check whether --with-stage1-libs was given.
8329if test "${with_stage1_libs+set}" = set; then :
8330 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8331 stage1_libs=
00020c16 8332 else
0b21f5d3 8333 stage1_libs=$withval
00020c16
ILT
8334 fi
8335else
5dc85f7e 8336 stage1_libs=
5213506e
RW
8337fi
8338
00020c16
ILT
8339
8340
aac9103b
TT
8341# Whether or not to use -static-libstdc++ and -static-libgcc. The
8342# default is yes if gcc is being built; no otherwise. The reason for
8343# this default is that gdb is sometimes linked against GNU Source
8344# Highlight, which is a shared library that uses C++ exceptions. In
8345# this case, -static-libstdc++ will cause crashes.
8346
8347# Check whether --with-static-standard-libraries was given.
8348if test "${with_static_standard_libraries+set}" = set; then :
8349 withval=$with_static_standard_libraries;
8350else
8351 with_static_standard_libraries=auto
8352fi
8353
8354if test "$with_static_standard_libraries" = auto; then
8355 with_static_standard_libraries=$have_compiler
8356fi
8357
0b21f5d3 8358# Linker flags to use for stage1 or when not bootstrapping.
00020c16 8359
0b21f5d3
EB
8360# Check whether --with-stage1-ldflags was given.
8361if test "${with_stage1_ldflags+set}" = set; then :
8362 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8363 stage1_ldflags=
00020c16 8364 else
0b21f5d3 8365 stage1_ldflags=$withval
00020c16
ILT
8366 fi
8367else
0b21f5d3
EB
8368 stage1_ldflags=
8369 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8370 # if supported. But if the user explicitly specified the libraries to use,
8371 # trust that they are doing what they want.
aac9103b
TT
8372 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8373 -a "$have_static_libs" = yes; then
0b21f5d3
EB
8374 stage1_ldflags="-static-libstdc++ -static-libgcc"
8375 fi
5213506e
RW
8376fi
8377
00020c16
ILT
8378
8379
5dc85f7e 8380# Libraries to use for stage2 and later builds.
00020c16 8381
5213506e
RW
8382# Check whether --with-boot-libs was given.
8383if test "${with_boot_libs+set}" = set; then :
8384 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8385 poststage1_libs=
8386 else
8387 poststage1_libs=$withval
8388 fi
8389else
5dc85f7e 8390 poststage1_libs=
5213506e
RW
8391fi
8392
00020c16
ILT
8393
8394
ed2eaa9f
ILT
8395# Linker flags to use for stage2 and later builds.
8396
8397# Check whether --with-boot-ldflags was given.
8398if test "${with_boot_ldflags+set}" = set; then :
8399 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8400 poststage1_ldflags=
8401 else
8402 poststage1_ldflags=$withval
8403 fi
8404else
8405 poststage1_ldflags=
bec93d73
ILT
8406 # In stages 2 and 3, default to linking libstdc++ and libgcc
8407 # statically. But if the user explicitly specified the libraries to
8408 # use, trust that they are doing what they want.
8409 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8410 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8411 fi
8412fi
8413
8414
8415
e357a5e0 8416# GCC GRAPHITE dependency isl.
4a9bb2aa 8417# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8418
8419
33ad93b9
RG
8420# Check whether --with-isl was given.
8421if test "${with_isl+set}" = set; then :
8422 withval=$with_isl;
5213506e 8423fi
f8bf9252 8424
f8bf9252 8425
eae1a5d4 8426# Treat --without-isl as a request to disable
625afa23 8427# GRAPHITE support and skip all following checks.
eae1a5d4 8428if test "x$with_isl" != "xno"; then
e357a5e0 8429 # Check for isl
625afa23
RG
8430
8431
33ad93b9
RG
8432# Check whether --with-isl-include was given.
8433if test "${with_isl_include+set}" = set; then :
8434 withval=$with_isl_include;
5213506e
RW
8435fi
8436
f8bf9252 8437
33ad93b9
RG
8438# Check whether --with-isl-lib was given.
8439if test "${with_isl_lib+set}" = set; then :
8440 withval=$with_isl_lib;
5213506e 8441fi
f8bf9252 8442
f8bf9252 8443
33ad93b9
RG
8444 # Check whether --enable-isl-version-check was given.
8445if test "${enable_isl_version_check+set}" = set; then :
8446 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8447else
8448 ENABLE_ISL_CHECK=yes
7d32a440
SP
8449fi
8450
8451
33ad93b9
RG
8452 # Initialize isllibs and islinc.
8453 case $with_isl in
8454 no)
8455 isllibs=
8456 islinc=
8457 ;;
8458 "" | yes)
8459 ;;
8460 *)
8461 isllibs="-L$with_isl/lib"
8462 islinc="-I$with_isl/include"
8463 ;;
8464 esac
8465 if test "x${with_isl_include}" != x ; then
8466 islinc="-I$with_isl_include"
8467 fi
8468 if test "x${with_isl_lib}" != x; then
8469 isllibs="-L$with_isl_lib"
8470 fi
8471 if test "x${islinc}" = x && test "x${isllibs}" = x \
8472 && test -d ${srcdir}/isl; then
8473 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8474 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8475 ENABLE_ISL_CHECK=no
560d18d3
AK
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8477$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8478 fi
7d32a440 8479
eae1a5d4
RG
8480 isllibs="${isllibs} -lisl"
8481
7d32a440 8482
7d32a440 8483
9847828b
RB
8484 if test "${ENABLE_ISL_CHECK}" = yes ; then
8485 _isl_saved_CFLAGS=$CFLAGS
8486 _isl_saved_LDFLAGS=$LDFLAGS
8487 _isl_saved_LIBS=$LIBS
8488
8489 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8490 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8491 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8492
f877b3ad
RB
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8494$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8496/* end confdefs.h. */
f877b3ad 8497#include <isl/schedule.h>
622dbadf
BC
8498int
8499main ()
8500{
f877b3ad 8501isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8502 ;
8503 return 0;
8504}
8505_ACEOF
8506if ac_fn_c_try_link "$LINENO"; then :
9847828b 8507 gcc_cv_isl=yes
622dbadf
BC
8508else
8509 gcc_cv_isl=no
8510fi
8511rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8514$as_echo "$gcc_cv_isl" >&6; }
8515
560d18d3 8516 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8518$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8519 fi
8520
9847828b
RB
8521 CFLAGS=$_isl_saved_CFLAGS
8522 LDFLAGS=$_isl_saved_LDFLAGS
8523 LIBS=$_isl_saved_LIBS
8524 fi
8525
8526
f8bf9252 8527
f8bf9252 8528
33ad93b9
RG
8529
8530
33ad93b9
RG
8531 if test "x${with_isl}" = xno; then
8532 graphite_requested=no
8533 elif test "x${with_isl}" != x \
8534 || test "x${with_isl_include}" != x \
8535 || test "x${with_isl_lib}" != x ; then
8536 graphite_requested=yes
8537 else
8538 graphite_requested=no
7d32a440 8539 fi
d789184e 8540
d789184e
SP
8541
8542
33ad93b9
RG
8543 if test "${gcc_cv_isl}" = no ; then
8544 isllibs=
8545 islinc=
8546 fi
8547
8548 if test "${graphite_requested}" = yes \
8549 && test "x${isllibs}" = x \
8550 && test "x${islinc}" = x ; then
f8bf9252 8551
22e05272 8552 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8553 fi
f8bf9252 8554
d32ef397 8555
d32ef397
AS
8556fi
8557
e357a5e0 8558# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8559if test "x$with_isl" = xno ||
625afa23 8560 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8561 noconfigdirs="$noconfigdirs isl"
625afa23 8562 islinc=
32d024bf
RG
8563fi
8564
625afa23
RG
8565
8566
8567
d7f09764
DN
8568# Check for LTO support.
8569# Check whether --enable-lto was given.
8570if test "${enable_lto+set}" = set; then :
8571 enableval=$enable_lto; enable_lto=$enableval
8572else
8573 enable_lto=yes; default_enable_lto=yes
8574fi
8575
8576
7413962d 8577
9a02962b
DK
8578
8579
8580target_elf=no
8581case $target in
8582 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8583 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8584 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8585 nvptx-*-none)
9a02962b
DK
8586 target_elf=no
8587 ;;
8588 *)
8589 target_elf=yes
8590 ;;
8591esac
8592
8593if test $target_elf = yes; then :
48215350
DK
8594 # ELF platforms build the lto-plugin always.
8595 build_lto_plugin=yes
9a02962b 8596
9a02962b
DK
8597else
8598 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8599 case $target in
deeba76a 8600 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8601 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8602 *) enable_lto=no ;;
8603 esac
9a02962b 8604 else
db50fe7d
IS
8605 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8606 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8607 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8608 # warn during gcc/ subconfigure; unless you're bootstrapping with
8609 # -flto it won't be needed until after installation anyway.
8610 case $target in
9e530bcd 8611 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8612 *) if test x"$enable_lto" = x"yes"; then
22e05272 8613 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8614 fi
8615 ;;
8616 esac
8617 fi
1cd0b716 8618 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8619 # Build it unless LTO was explicitly disabled.
1cd0b716 8620 case $target in
48215350 8621 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8622 *) ;;
8623 esac
48215350 8624
9a02962b
DK
8625fi
8626
d7f09764 8627
45b3824d
TS
8628# Check whether --enable-linker-plugin-configure-flags was given.
8629if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8630 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8631else
8632 extra_linker_plugin_configure_flags=
8633fi
8634
8635
8636# Check whether --enable-linker-plugin-flags was given.
8637if test "${enable_linker_plugin_flags+set}" = set; then :
8638 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8639else
8640 extra_linker_plugin_flags=
8641fi
8642
8643
8644
cdfee50a
NS
8645# Enable --enable-host-shared.
8646# Checked early to determine whether jit is an 'all' language
8647# Check whether --enable-host-shared was given.
8648if test "${enable_host_shared+set}" = set; then :
8649 enableval=$enable_host_shared; host_shared=$enableval
1edfc8f2 8650 case $host in
a1d2b162
IS
8651 x86_64-*-darwin* | aarch64-*-darwin*)
8652 if test x$host_shared != xyes ; then
8653 # PIC is the default, and actually cannot be switched off.
8654 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8655 host_shared=yes
8656 fi ;;
8657 *) ;;
8658 esac
cdfee50a 8659else
1edfc8f2 8660 case $host in
a1d2b162
IS
8661 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8662 *) host_shared=no ;;
8663 esac
cdfee50a
NS
8664fi
8665
8666
f8bf9252 8667
0823efed 8668# By default, C and C++ are the only stage 1 languages.
e1888513 8669stage1_languages=,c,
2805b53a 8670
00020c16 8671# Target libraries that we bootstrap.
ad1e5170 8672bootstrap_target_libs=,target-libgcc,
00020c16 8673
55ffb5ed
NN
8674# Figure out what language subdirectories are present.
8675# Look if the user specified --enable-languages="..."; if not, use
8676# the environment variable $LANGUAGES if defined. $LANGUAGES might
8677# go away some day.
8678# NB: embedded tabs in this IF block -- do not untabify
8679if test -d ${srcdir}/gcc; then
8680 if test x"${enable_languages+set}" != xset; then
8681 if test x"${LANGUAGES+set}" = xset; then
8682 enable_languages="${LANGUAGES}"
6b1786aa 8683 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8684 else
cdfee50a 8685 enable_languages=default
55ffb5ed
NN
8686 fi
8687 else
8688 if test x"${enable_languages}" = x ||
8689 test x"${enable_languages}" = xyes;
8690 then
6b1786aa 8691 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8692 exit 1
8693 fi
8694 fi
8695 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8696
7f26dfa3
FXC
8697 # 'f95' is the old name for the 'fortran' language. We issue a warning
8698 # and make the substitution.
8699 case ,${enable_languages}, in
8700 *,f95,*)
6b1786aa 8701 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8702 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8703 ;;
8704 esac
8705
0823efed
DN
8706 # If bootstrapping, C++ must be enabled.
8707 case ",$enable_languages,:$enable_bootstrap" in
8708 *,c++,*:*) ;;
8709 *:yes)
ff3ac0f4
ILT
8710 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8711 enable_languages="${enable_languages},c++"
8712 else
22e05272 8713 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8714 fi
8715 ;;
8716 esac
8717
55ffb5ed
NN
8718 # First scan to see if an enabled language requires some other language.
8719 # We assume that a given config-lang.in will list all the language
8720 # front ends it requires, even if some are required indirectly.
8721 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8722 case ${lang_frag} in
8723 ..) ;;
8724 # The odd quoting in the next line works around
8725 # an apparent bug in bash 1.12 on linux.
8726 ${srcdir}/gcc/[*]/config-lang.in) ;;
8727 *)
69ecd18f
ILT
8728 # From the config-lang.in, get $language, $lang_requires, and
8729 # $lang_requires_boot_languages.
55ffb5ed
NN
8730 language=
8731 lang_requires=
69ecd18f 8732 lang_requires_boot_languages=
d4360477
NS
8733 # set srcdir during sourcing lang_frag to the gcc dir.
8734 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8735 # polutes this shell
8736 saved_srcdir=${srcdir}
8737 srcdir=${srcdir}/gcc . ${lang_frag}
8738 srcdir=${saved_srcdir}
69ecd18f 8739 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8740 case ,${enable_languages}, in
8741 *,$other,*) ;;
cdfee50a 8742 *,default,*) ;;
55ffb5ed
NN
8743 *,all,*) ;;
8744 *,$language,*)
8745 echo " \`$other' language required by \`$language'; enabling" 1>&2
8746 enable_languages="${enable_languages},${other}"
8747 ;;
8748 esac
8749 done
69ecd18f
ILT
8750 for other in ${lang_requires_boot_languages} ; do
8751 if test "$other" != "c"; then
8752 case ,${enable_stage1_languages}, in
8753 *,$other,*) ;;
cdfee50a 8754 *,default,*) ;;
69ecd18f
ILT
8755 *,all,*) ;;
8756 *)
8757 case ,${enable_languages}, in
8758 *,$language,*)
8759 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8760 enable_stage1_languages="$enable_stage1_languages,${other}"
8761 ;;
8762 esac
8763 ;;
8764 esac
8765 fi
8766 done
55ffb5ed
NN
8767 ;;
8768 esac
8769 done
8770
e1888513 8771 new_enable_languages=,c,
d7f09764
DN
8772
8773 # If LTO is enabled, add the LTO front end.
d7f09764 8774 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8775 case ,${enable_languages}, in
8776 *,lto,*) ;;
8777 *) enable_languages="${enable_languages},lto" ;;
8778 esac
1cd0b716 8779 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8780 configdirs="$configdirs lto-plugin"
d7f09764
DN
8781 fi
8782 fi
8783
426c1eb0
TS
8784 # If we're building an offloading compiler, add the LTO front end.
8785 if test x"$enable_as_accelerator_for" != x ; then
8786 case ,${enable_languages}, in
8787 *,lto,*) ;;
8788 *) enable_languages="${enable_languages},lto" ;;
8789 esac
8790 fi
8791
cdfee50a 8792 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8793 potential_languages=,c,
55ffb5ed 8794
4da3b0f8
ILT
8795 enabled_target_libs=
8796 disabled_target_libs=
8797
55ffb5ed
NN
8798 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8799 case ${lang_frag} in
8800 ..) ;;
8801 # The odd quoting in the next line works around
8802 # an apparent bug in bash 1.12 on linux.
8803 ${srcdir}/gcc/[*]/config-lang.in) ;;
8804 *)
1c710c3c 8805 # From the config-lang.in, get $language, $target_libs,
2805b53a 8806 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8807 language=
8808 target_libs=
8809 lang_dirs=
1546bb64 8810 subdir_requires=
e1888513
PB
8811 boot_language=no
8812 build_by_default=yes
d4360477
NS
8813 # set srcdir during sourcing. See above about save & restore
8814 saved_srcdir=${srcdir}
8815 srcdir=${srcdir}/gcc . ${lang_frag}
8816 srcdir=${saved_srcdir}
e1888513
PB
8817 if test x${language} = x; then
8818 echo "${lang_frag} doesn't set \$language." 1>&2
8819 exit 1
8820 fi
8821
78767fd9 8822 if test "$language" = "c++"; then
0823efed 8823 boot_language=yes
00020c16
ILT
8824 fi
8825
178f875a 8826 add_this_lang=no
cdfee50a
NS
8827 # C is always enabled, so no need to add it again
8828 if test "$language" != "c"; then
8829 case ,${enable_languages}, in
8830 *,${language},*)
8831 # Language was explicitly selected; include it
d4a10d0a 8832 add_this_lang=yes
cdfee50a
NS
8833 ;;
8834 *,all,*)
8835 # All languages are enabled
8836 add_this_lang=all
8837 ;;
8838 *,default,*)
8839 # 'default' was selected, select it if it is a default language
178f875a 8840 add_this_lang=${build_by_default}
cdfee50a
NS
8841 ;;
8842 esac
8843 fi
6de9cd9a 8844
1546bb64 8845 # Disable languages that need other directories if these aren't available.
95695ad3 8846 for i in $subdir_requires; do
b6348cb3 8847 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8848 case ${add_this_lang} in
8849 yes)
1546bb64 8850 # Specifically requested language; tell them.
22e05272 8851 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8852 ;;
cdfee50a
NS
8853 all)
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8855$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8856 add_this_lang=unsupported
8857 ;;
1546bb64
PB
8858 *)
8859 # Silently disable.
e1888513 8860 add_this_lang=unsupported
1546bb64
PB
8861 ;;
8862 esac
8863 done
8864
e1888513 8865 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8866 case ${add_this_lang}:${language}:${have_gnat} in
8867 yes:ada:no)
e1888513 8868 # Specifically requested language; tell them.
22e05272 8869 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8870 ;;
cdfee50a
NS
8871 all:ada:no)
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8873$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8874 add_this_lang=unsupported
8875 ;;
e1888513
PB
8876 *:ada:no)
8877 # Silently disable.
8878 add_this_lang=unsupported
8879 ;;
8880 esac
8881
5fee5ec3
IB
8882 # Disable D if no preexisting GDC is available.
8883 case ${add_this_lang}:${language}:${have_gdc} in
8884 yes:d:no)
8885 # Specifically requested language; tell them.
8886 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8887 ;;
8888 all:d:no)
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8890$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8891 add_this_lang=unsupported
8892 ;;
8893 *:d:no)
8894 # Silently disable.
8895 add_this_lang=unsupported
8896 ;;
8897 esac
8898
cdfee50a 8899 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8900 # but not if building for Mingw. All code in Windows
8901 # is position independent code (PIC).
c83027f3
NB
8902 case $target in
8903 *mingw*) ;;
8904 *)
8905 case ${add_this_lang}:${language}:${host_shared} in
8906 yes:jit:no)
8907 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8908 as_fn_error $? "
cdfee50a
NS
8909Enabling language \"jit\" requires --enable-host-shared.
8910
8911--enable-host-shared typically slows the rest of the compiler down by
8912a few %, so you must explicitly enable it.
8913
8914If you want to build both the jit and the regular compiler, it is often
8915best to do this via two separate configure/builds, in separate
8916directories, to avoid imposing the performance cost of
8917--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8918 ;;
8919 all:jit:no)
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8921$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8922 add_this_lang=unsupported
8923 ;;
8924 *:jit:no)
8925 # Silently disable.
8926 add_this_lang=unsupported
8927 ;;
8928 esac
8929 ;;
8930 esac
cdfee50a
NS
8931
8932 # Disable a language that is unsupported by the target.
8933 case "${add_this_lang}: $unsupported_languages " in
8934 no:*) ;;
8935 unsupported:*) ;;
8936 *:*" $language "*)
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8938$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8939 add_this_lang=unsupported
4fab7234
HPN
8940 ;;
8941 esac
8942
6de9cd9a 8943 case $add_this_lang in
e1888513 8944 unsupported)
55ffb5ed 8945 # Remove language-dependent dirs.
4da3b0f8
ILT
8946 disabled_target_libs="$disabled_target_libs $target_libs"
8947 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8948 ;;
e1888513
PB
8949 no)
8950 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8951 disabled_target_libs="$disabled_target_libs $target_libs"
8952 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8953 potential_languages="${potential_languages}${language},"
8954 ;;
cdfee50a 8955 all|yes)
e1888513
PB
8956 new_enable_languages="${new_enable_languages}${language},"
8957 potential_languages="${potential_languages}${language},"
2805b53a 8958 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8959 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8960 case "${boot_language}:,$enable_stage1_languages," in
8961 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8962 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8963 case ",$stage1_languages," in
8964 *,$language,* | ,yes, | ,all,) ;;
8965 *) stage1_languages="${stage1_languages}${language}," ;;
8966 esac
00020c16 8967 # We need to bootstrap any supporting libraries.
5fee5ec3 8968 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
2805b53a
NN
8969 ;;
8970 esac
8971 ;;
55ffb5ed
NN
8972 esac
8973 ;;
8974 esac
8975 done
8976
4da3b0f8
ILT
8977 # Add target libraries which are only needed for disabled languages
8978 # to noconfigdirs.
8979 if test -n "$disabled_target_libs"; then
8980 for dir in $disabled_target_libs; do
8981 case " $enabled_target_libs " in
8982 *" ${dir} "*) ;;
8983 *) noconfigdirs="$noconfigdirs $dir" ;;
8984 esac
8985 done
8986 fi
8987
5213506e
RW
8988 # Check whether --enable-stage1-languages was given.
8989if test "${enable_stage1_languages+set}" = set; then :
8990 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8991 ,no,|,,)
8992 # Set it to something that will have no effect in the loop below
8993 enable_stage1_languages=c ;;
8994 ,yes,)
8995 enable_stage1_languages=`echo $new_enable_languages | \
8996 sed -e "s/^,//" -e "s/,$//" ` ;;
8997 *,all,*)
8998 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8999 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9000 esac
9001
9002 # Add "good" languages from enable_stage1_languages to stage1_languages,
9003 # while "bad" languages go in missing_languages. Leave no duplicates.
9004 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9005 case $potential_languages in
9006 *,$i,*)
9007 case $stage1_languages in
9008 *,$i,*) ;;
9009 *) stage1_languages="$stage1_languages$i," ;;
9010 esac ;;
9011 *)
9012 case $missing_languages in
9013 *,$i,*) ;;
9014 *) missing_languages="$missing_languages$i," ;;
9015 esac ;;
9016 esac
9017 done
5213506e
RW
9018fi
9019
e1888513
PB
9020
9021 # Remove leading/trailing commas that were added for simplicity
9022 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 9023 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
9024 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9025 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9026
55ffb5ed 9027 if test "x$missing_languages" != x; then
22e05272 9028 as_fn_error $? "
0cf085e4 9029The following requested languages could not be built: ${missing_languages}
5213506e 9030Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 9031 fi
55ffb5ed
NN
9032 if test "x$new_enable_languages" != "x$enable_languages"; then
9033 echo The following languages will be built: ${new_enable_languages}
e1888513 9034 enable_languages="$new_enable_languages"
55ffb5ed 9035 fi
e1888513 9036
1c710c3c 9037
b2eaac4a 9038 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
9039fi
9040
27079765
AH
9041# Handle --disable-<component> generically.
9042for dir in $configdirs $build_configdirs $target_configdirs ; do
9043 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
9044 varname=`echo $dirname | sed -e s/+/_/g`
9045 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
9046 noconfigdirs="$noconfigdirs $dir"
9047 fi
9048done
9049
43c40f3e
RO
9050# Check for Boehm's garbage collector
9051# Check whether --enable-objc-gc was given.
9052if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
9053 enableval=$enable_objc_gc;
9054fi
9055
9056
9057# Check whether --with-target-bdw-gc was given.
9058if test "${with_target_bdw_gc+set}" = set; then :
9059 withval=$with_target_bdw_gc;
9060fi
9061
9062
9063# Check whether --with-target-bdw-gc-include was given.
9064if test "${with_target_bdw_gc_include+set}" = set; then :
9065 withval=$with_target_bdw_gc_include;
9066fi
9067
9068
9069# Check whether --with-target-bdw-gc-lib was given.
9070if test "${with_target_bdw_gc_lib+set}" = set; then :
9071 withval=$with_target_bdw_gc_lib;
9072fi
9073
9074
9075case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9077$as_echo_n "checking for bdw garbage collector... " >&6; }
9078 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9080$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
9081 else
9082 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 9083 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 9084 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 9085 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9088$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9089 fi
9090 fi
43c40f3e
RO
9091esac
9092
5e9d6aa4 9093# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 9094case ,${enable_languages}, in
1007a55c 9095 *,c++,*)
5e9d6aa4 9096 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
9097 case "${noconfigdirs}" in
9098 *target-libstdc++-v3*)
5e9d6aa4 9099 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
9100 ;;
9101 *) ;;
9102 esac
9103 ;;
99776ebd 9104 *)
5e9d6aa4 9105 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
9106 ;;
9107esac
9108
dc614a83
AB
9109# If gcc/ is not in the source tree then we'll not be building a
9110# target compiler, assume in that case we don't want to build any
9111# target libraries or tools.
9112#
9113# This was added primarily for the benefit for binutils-gdb who reuse
9114# this configure script, but don't always have target tools available.
9115if test ! -d ${srcdir}/gcc; then
9116 skipdirs="${skipdirs} ${target_configdirs}"
9117fi
9118
ee6a22df
L
9119# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9120# $build_configdirs and $target_configdirs.
55ffb5ed
NN
9121# If we have the source for $noconfigdirs entries, add them to $notsupp.
9122
9123notsupp=""
9124for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 9125 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
9126 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9127 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9128 if test -r $srcdir/$dirname/configure ; then
9129 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9130 true
9131 else
9132 notsupp="$notsupp $dir"
9133 fi
9134 fi
9135 fi
ee6a22df
L
9136 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9137 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9138 if test -r $srcdir/$dirname/configure ; then
9139 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9140 true
9141 else
9142 notsupp="$notsupp $dir"
9143 fi
9144 fi
9145 fi
55ffb5ed
NN
9146 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9147 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9148 if test -r $srcdir/$dirname/configure ; then
9149 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9150 true
9151 else
9152 notsupp="$notsupp $dir"
9153 fi
9154 fi
9155 fi
9156done
9157
55ffb5ed
NN
9158# Quietly strip out all directories which aren't configurable in this tree.
9159# This relies on all configurable subdirectories being autoconfiscated, which
9160# is now the case.
23f6b2f9
PB
9161build_configdirs_all="$build_configdirs"
9162build_configdirs=
9163for i in ${build_configdirs_all} ; do
1c710c3c 9164 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
9165 if test -f ${srcdir}/$j/configure ; then
9166 build_configdirs="${build_configdirs} $i"
9167 fi
9168done
9169
55ffb5ed
NN
9170configdirs_all="$configdirs"
9171configdirs=
9172for i in ${configdirs_all} ; do
9173 if test -f ${srcdir}/$i/configure ; then
9174 configdirs="${configdirs} $i"
9175 fi
9176done
23f6b2f9 9177
55ffb5ed
NN
9178target_configdirs_all="$target_configdirs"
9179target_configdirs=
9180for i in ${target_configdirs_all} ; do
1c710c3c 9181 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
9182 if test -f ${srcdir}/$j/configure ; then
9183 target_configdirs="${target_configdirs} $i"
9184 fi
9185done
9186
45b3824d
TS
9187# libiberty-linker-plugin is special: it doesn't have its own source directory,
9188# so we have to add it after the preceding checks.
9189if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9190then
9191 case " $configdirs " in
9192 *" libiberty "*)
9193 # If we can build libiberty, we can also build libiberty-linker-plugin.
9194 configdirs="$configdirs libiberty-linker-plugin"
9195 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9196 --with-libiberty=../libiberty-linker-plugin";;
9197 *)
22e05272 9198 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
9199 esac
9200fi
9201
fca38047
TS
9202# Sometimes we have special requirements for the host libiberty.
9203extra_host_libiberty_configure_flags=
1c01ebf6 9204extra_host_zlib_configure_flags=
fca38047 9205case " $configdirs " in
15368960 9206 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
fca38047
TS
9207 # When these are to be built as shared libraries, the same applies to
9208 # libiberty.
9209 extra_host_libiberty_configure_flags=--enable-shared
9210 ;;
1c01ebf6
L
9211 *" bfd "*)
9212 # When bfd is to be built as a shared library, the same applies to
9213 # zlib.
9214 if test "$enable_shared" = "yes"; then
9215 extra_host_zlib_configure_flags=--enable-host-shared
9216 fi
9217 ;;
fca38047
TS
9218esac
9219
9220
1c01ebf6 9221
55ffb5ed
NN
9222# Produce a warning message for the subdirs we can't configure.
9223# This isn't especially interesting in the Cygnus tree, but in the individual
9224# FSF releases, it's important to let people know when their machine isn't
9225# supported by the one or two programs in a package.
9226
9227if test -n "${notsupp}" && test -z "${norecursion}" ; then
9228 # If $appdirs is non-empty, at least one of those directories must still
9229 # be configured, or we error out. (E.g., if the gas release supports a
9230 # specified target in some subdirs but not the gas subdir, we shouldn't
9231 # pretend that all is well.)
9232 if test -n "$appdirs" ; then
9233 for dir in $appdirs ; do
9234 if test -r $dir/Makefile.in ; then
9235 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9236 appdirs=""
9237 break
9238 fi
23f6b2f9 9239 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
9240 appdirs=""
9241 break
9242 fi
9243 fi
9244 done
9245 if test -n "$appdirs" ; then
9246 echo "*** This configuration is not supported by this package." 1>&2
9247 exit 1
9248 fi
9249 fi
9250 # Okay, some application will build, or we don't care to check. Still
9251 # notify of subdirs not getting built.
9252 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9253 echo " ${notsupp}" 1>&2
9254 echo " (Any other directories should still work fine.)" 1>&2
9255fi
9256
9257case "$host" in
9258 *msdosdjgpp*)
9259 enable_gdbtk=no ;;
9260esac
9261
c3a86da9
DJ
9262# To find our prefix, in gcc_cv_tool_prefix.
9263
9264# The user is always right.
9265if test "${PATH_SEPARATOR+set}" != set; then
9266 echo "#! /bin/sh" >conf$$.sh
9267 echo "exit 0" >>conf$$.sh
9268 chmod +x conf$$.sh
9269 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9270 PATH_SEPARATOR=';'
9271 else
9272 PATH_SEPARATOR=:
9273 fi
9274 rm -f conf$$.sh
9275fi
9276
9277
3c36aa6b
JJ
9278 get_gcc_base_ver="cat"
9279
9280# Check whether --with-gcc-major-version-only was given.
9281if test "${with_gcc_major_version_only+set}" = set; then :
9282 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 9283 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
9284 fi
9285
9286fi
9287
9288
9289
9290
9291
c3a86da9
DJ
9292
9293if test "x$exec_prefix" = xNONE; then
9294 if test "x$prefix" = xNONE; then
9295 gcc_cv_tool_prefix=$ac_default_prefix
9296 else
9297 gcc_cv_tool_prefix=$prefix
9298 fi
9299else
9300 gcc_cv_tool_prefix=$exec_prefix
9301fi
9302
9303# If there is no compiler in the tree, use the PATH only. In any
9304# case, if there is no compiler in the tree nobody should use
9305# AS_FOR_TARGET and LD_FOR_TARGET.
9306if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
9307 if test x$with_gcc_major_version_only = xyes ; then
9308 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9309 else
9310 gcc_version=`cat $srcdir/gcc/BASE-VER`
9311 fi
c3a86da9
DJ
9312 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9313 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9314 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9315 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9316 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9317 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9318else
9319 gcc_cv_tool_dirs=
9320fi
9321
9322if test x$build = x$target && test -n "$md_exec_prefix"; then
9323 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9324fi
9325
9326
9327
55ffb5ed
NN
9328copy_dirs=
9329
1c710c3c 9330
5213506e
RW
9331# Check whether --with-build-sysroot was given.
9332if test "${with_build_sysroot+set}" = set; then :
9333 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
9334 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9335 fi
9336else
9337 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 9338fi
526635cb
MM
9339
9340
c8aea42c 9341
5213506e
RW
9342
9343# Check whether --with-debug-prefix-map was given.
9344if test "${with_debug_prefix_map+set}" = set; then :
9345 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
9346 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9347 for debug_map in $withval; do
9348 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9349 done
9350 fi
9351else
9352 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
9353fi
9354
c8aea42c
PB
9355
9356
1c8bd6a3
PB
9357# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9358# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9359# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9360# We want to ensure that TARGET libraries (which we know are built with
9361# gcc) are built with "-O2 -g", so include those options when setting
9362# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9363if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9364 if test "x${is_cross_compiler}" = xyes; then
9365 CFLAGS_FOR_TARGET="-g -O2"
9366 else
9367 CFLAGS_FOR_TARGET=$CFLAGS
9368 case " $CFLAGS " in
9369 *" -O2 "*) ;;
9370 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9371 esac
9372 case " $CFLAGS " in
9373 *" -g "* | *" -g3 "*) ;;
9374 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9375 esac
9376 fi
1c8bd6a3
PB
9377fi
9378
9379
9380if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
9381 if test "x${is_cross_compiler}" = xyes; then
9382 CXXFLAGS_FOR_TARGET="-g -O2"
9383 else
9384 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9385 case " $CXXFLAGS " in
9386 *" -O2 "*) ;;
9387 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9388 esac
9389 case " $CXXFLAGS " in
9390 *" -g "* | *" -g3 "*) ;;
9391 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9392 esac
9393 fi
1c8bd6a3
PB
9394fi
9395
9396
6f57bdf6
DK
9397
9398
55ffb5ed
NN
9399# Handle --with-headers=XXX. If the value is not "yes", the contents of
9400# the named directory are copied to $(tooldir)/sys-include.
9401if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9402 if test x${is_cross_compiler} = xno ; then
9403 echo 1>&2 '***' --with-headers is only supported when cross compiling
9404 exit 1
9405 fi
9406 if test x"${with_headers}" != xyes ; then
c3a86da9 9407 x=${gcc_cv_tool_prefix}
1c710c3c 9408 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
9409 fi
9410fi
9411
9412# Handle --with-libs=XXX. If the value is not "yes", the contents of
9413# the name directories are copied to $(tooldir)/lib. Multiple directories
9414# are permitted.
9415if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9416 if test x${is_cross_compiler} = xno ; then
9417 echo 1>&2 '***' --with-libs is only supported when cross compiling
9418 exit 1
9419 fi
9420 if test x"${with_libs}" != xyes ; then
9421 # Copy the libraries in reverse order, so that files in the first named
9422 # library override files in subsequent libraries.
c3a86da9 9423 x=${gcc_cv_tool_prefix}
55ffb5ed 9424 for l in ${with_libs}; do
1c710c3c 9425 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9426 done
9427 fi
9428fi
9429
d7f09764 9430# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9431#
9432# This is done by determining whether or not the appropriate directory
9433# is available, and by checking whether or not specific configurations
9434# have requested that this magic not happen.
1c710c3c
DJ
9435#
9436# The command line options always override the explicit settings in
6b1786aa 9437# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9438#
1c710c3c 9439# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9440# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9441# --without-gnu-ld options for the configure script. Similarly, if
9442# the default is to use the included zlib and you don't want to do that,
9443# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9444
9445if test x${use_gnu_as} = x &&
9446 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9447 with_gnu_as=yes
9448 extra_host_args="$extra_host_args --with-gnu-as"
9449fi
9450
9451if test x${use_gnu_ld} = x &&
5afab7ad 9452 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9453 with_gnu_ld=yes
9454 extra_host_args="$extra_host_args --with-gnu-ld"
9455fi
9456
d7f09764
DN
9457if test x${use_included_zlib} = x &&
9458 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9459 :
9460else
9461 with_system_zlib=yes
9462 extra_host_args="$extra_host_args --with-system-zlib"
9463fi
9464
e8b05380
PB
9465# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9466# can detect this case.
9467
9468if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9469 with_newlib=yes
9470 extra_host_args="$extra_host_args --with-newlib"
9471fi
9472
55ffb5ed
NN
9473# Handle ${copy_dirs}
9474set fnord ${copy_dirs}
9475shift
9476while test $# != 0 ; do
9477 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9478 :
9479 else
9480 echo Copying $1 to $2
9481
9482 # Use the install script to create the directory and all required
9483 # parent directories.
9484 if test -d $2 ; then
9485 :
9486 else
9487 echo >config.temp
9488 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9489 fi
9490
9491 # Copy the directory, assuming we have tar.
9492 # FIXME: Should we use B in the second tar? Not all systems support it.
9493 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9494
9495 # It is the responsibility of the user to correctly adjust all
9496 # symlinks. If somebody can figure out how to handle them correctly
9497 # here, feel free to add the code.
9498
9499 echo $1 > $2/COPIED
9500 fi
9501 shift; shift
9502done
9503
e8b05380
PB
9504# Determine a target-dependent exec_prefix that the installed
9505# gcc will search in. Keep this list sorted by triplet, with
9506# the *-*-osname triplets last.
9507md_exec_prefix=
9508case "${target}" in
30b74385 9509 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9510 md_exec_prefix=/dev/env/DJDIR/bin
9511 ;;
e8b05380 9512 *-*-hpux* | \
e8b05380 9513 *-*-nto-qnx* | \
6de66370 9514 *-*-solaris2*)
e8b05380
PB
9515 md_exec_prefix=/usr/ccs/bin
9516 ;;
9517esac
9518
671aa708
NN
9519extra_arflags_for_target=
9520extra_nmflags_for_target=
9521extra_ranlibflags_for_target=
9522target_makefile_frag=/dev/null
9523case "${target}" in
58e24147
AM
9524 spu-*-*)
9525 target_makefile_frag="config/mt-spu"
9526 ;;
d896cc4d 9527 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9528 target_makefile_frag="config/mt-sde"
9529 ;;
1ec3b87b
RS
9530 mipsisa*-*-elfoabi*)
9531 target_makefile_frag="config/mt-mips-elfoabi"
9532 ;;
08d0963a
RS
9533 mips*-*-*linux* | mips*-*-gnu*)
9534 target_makefile_frag="config/mt-mips-gnu"
9535 ;;
707f1839
SL
9536 nios2-*-elf*)
9537 target_makefile_frag="config/mt-nios2-elf"
9538 ;;
76052545
EB
9539 *-*-linux-android*)
9540 target_makefile_frag="config/mt-android"
9541 ;;
416ac4d4 9542 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9543 target_makefile_frag="config/mt-gnu"
671aa708
NN
9544 ;;
9545 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9546 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9547 # commands to handle both 32-bit and 64-bit objects. These flags are
9548 # harmless if we're using GNU nm or ar.
9549 extra_arflags_for_target=" -X32_64"
9550 extra_nmflags_for_target=" -B -X32_64"
9551 ;;
671aa708
NN
9552esac
9553
9554alphaieee_frag=/dev/null
9555case $target in
9556 alpha*-*-*)
9557 # This just makes sure to use the -mieee option to build target libs.
9558 # This should probably be set individually by each library.
9559 alphaieee_frag="config/mt-alphaieee"
9560 ;;
9561esac
9562
9563# If --enable-target-optspace always use -Os instead of -O2 to build
9564# the target libraries, similarly if it is not specified, use -Os
9565# on selected platforms.
9566ospace_frag=/dev/null
9567case "${enable_target_optspace}:${target}" in
9568 yes:*)
9569 ospace_frag="config/mt-ospace"
9570 ;;
9571 :d30v-*)
9572 ospace_frag="config/mt-d30v"
9573 ;;
d9063947 9574 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9575 ospace_frag="config/mt-ospace"
9576 ;;
9577 no:* | :*)
9578 ;;
9579 *)
9580 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9581 ;;
9582esac
9583
671aa708
NN
9584# Some systems (e.g., one of the i386-aix systems the gas testers are
9585# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9586tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9587build_tooldir=${tooldir}
9588
671aa708
NN
9589# Create a .gdbinit file which runs the one in srcdir
9590# and tells GDB to look there for source files.
9591
9592if test -r ${srcdir}/.gdbinit ; then
9593 case ${srcdir} in
9594 .) ;;
9595 *) cat > ./.gdbinit <<EOF
9596# ${NO_EDIT}
9597dir ${srcdir}
9598dir .
9599source ${srcdir}/.gdbinit
9600EOF
9601 ;;
9602 esac
9603fi
9604
671aa708
NN
9605# Make sure that the compiler is able to generate an executable. If it
9606# can't, we are probably in trouble. We don't care whether we can run the
9607# executable--we might be using a cross compiler--we only care whether it
9608# can be created. At this point the main configure script has set CC.
9609we_are_ok=no
9610echo "int main () { return 0; }" > conftest.c
9611${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9612if test $? = 0 ; then
9613 if test -s conftest || test -s conftest.exe ; then
9614 we_are_ok=yes
9615 fi
1c710c3c 9616fi
671aa708
NN
9617case $we_are_ok in
9618 no)
9619 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9620 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9621 rm -f conftest*
9622 exit 1
9623 ;;
9624esac
9625rm -f conftest*
9626
d89f0ad6 9627# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9628case "${host}" in
9629 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9630 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9631 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9632 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9633esac
9634
d89f0ad6
AL
9635# On systems where the dynamic library environment variable is PATH,
9636# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9637# built executables to PATH.
9638if test "$RPATH_ENVVAR" = PATH; then
9639 GCC_SHLIB_SUBDIR=/shlib
9640else
9641 GCC_SHLIB_SUBDIR=
9642fi
9643
beeda1d9
JJ
9644# Adjust the toplevel makefile according to whether bootstrap was selected.
9645case $enable_bootstrap in
9646 yes)
9647 bootstrap_suffix=bootstrap
9648 BUILD_CONFIG=bootstrap-debug
9649 ;;
9650 no)
9651 bootstrap_suffix=no-bootstrap
9652 BUILD_CONFIG=
9653 ;;
9654esac
9655
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9657$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9658
9659
9660# Check whether --with-build-config was given.
9661if test "${with_build_config+set}" = set; then :
9662 withval=$with_build_config; case $with_build_config in
9663 yes) with_build_config= ;;
9664 no) with_build_config= BUILD_CONFIG= ;;
9665 esac
9666fi
9667
9668
9669if test "x${with_build_config}" != x; then
9670 BUILD_CONFIG=$with_build_config
9671else
9672 case $BUILD_CONFIG in
9673 bootstrap-debug)
9674 if echo "int f (void) { return 0; }" > conftest.c &&
9675 ${CC} -c conftest.c &&
9676 mv conftest.o conftest.o.g0 &&
9677 ${CC} -c -g conftest.c &&
9678 mv conftest.o conftest.o.g &&
9679 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9680 :
9681 else
9682 BUILD_CONFIG=
9683 fi
9684 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9685 ;;
9686 esac
9687fi
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9689$as_echo "$BUILD_CONFIG" >&6; }
9690
9691
9692# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9694$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9695# Check whether --enable-vtable-verify was given.
9696if test "${enable_vtable_verify+set}" = set; then :
9697 enableval=$enable_vtable_verify; case "$enableval" in
9698 yes) enable_vtable_verify=yes ;;
9699 no) enable_vtable_verify=no ;;
9700 *) enable_vtable_verify=no;;
9701 esac
9702else
9703 enable_vtable_verify=no
9704fi
9705
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9707$as_echo "$enable_vtable_verify" >&6; }
9708
671aa708
NN
9709# Record target_configdirs and the configure arguments for target and
9710# build configuration in Makefile.
9711target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9712build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9713bootstrap_fixincludes=no
671aa708 9714
ad1e5170
JR
9715# If we are building libgomp, bootstrap it.
9716if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9717 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9718fi
9719
beeda1d9
JJ
9720# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9721# or bootstrap-ubsan, bootstrap it.
9722if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9723 case "$BUILD_CONFIG" in
170e618e 9724 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
beeda1d9 9725 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9726 bootstrap_fixincludes=yes
beeda1d9
JJ
9727 ;;
9728 esac
ac8701fe
L
9729fi
9730
beeda1d9
JJ
9731# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9732if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9733 test "$enable_vtable_verify" != no; then
2077db1b
CT
9734 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9735fi
9736
5fee5ec3
IB
9737# If we are building libatomic and the list of enabled languages includes the
9738# D frontend, bootstrap it.
9739if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9740 case ,${enable_languages}, in
9741 *,d,*)
9742 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9743 ;;
9744 esac
9745fi
9746
671aa708
NN
9747# Determine whether gdb needs tk/tcl or not.
9748# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9749# and in that case we want gdb to be built without tk. Ugh!
9750# In fact I believe gdb is the *only* package directly dependent on tk,
9751# so we should be able to put the 'maybe's in unconditionally and
9752# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9753# 100% sure that that's safe though.
e914a571 9754
b4f96efe 9755gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9756case "$enable_gdbtk" in
9757 no)
9758 GDB_TK="" ;;
e914a571
AC
9759 yes)
9760 GDB_TK="${gdb_tk}" ;;
671aa708 9761 *)
e914a571
AC
9762 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9763 # distro. Eventually someone will fix this and move Insight, nee
9764 # gdbtk to a separate directory.
9765 if test -d ${srcdir}/gdb/gdbtk ; then
9766 GDB_TK="${gdb_tk}"
9767 else
9768 GDB_TK=""
9769 fi
9770 ;;
671aa708 9771esac
ef9db8d5
DJ
9772CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9773INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9774
f9d09df0
TT
9775# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9776# else does, only include them if one of these is built. The Makefile
9777# provides the ordering, so it's enough here to add to the list.
9778case " ${configdirs} " in
9779 *\ gdb\ *)
9780 configdirs="${configdirs} gnulib gdbsupport"
9781 ;;
9782 *\ gdbserver\ *)
9783 configdirs="${configdirs} gnulib gdbsupport"
9784 ;;
f14c9bd4
MF
9785 *\ sim\ *)
9786 configdirs="${configdirs} gnulib"
9787 ;;
f9d09df0 9788esac
98e5be21 9789
60975492 9790# Strip out unwanted targets.
8b87bb96
NN
9791
9792# While at that, we remove Makefiles if we were started for recursive
9793# configuration, so that the top-level Makefile reconfigures them,
9794# like we used to do when configure itself was recursive.
8b87bb96 9795
3e54529c
RW
9796# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9797# but now we're fixing up the Makefile ourselves with the additional
9798# commands passed to AC_CONFIG_FILES. Use separate variables
9799# extrasub-{build,host,target} not because there is any reason to split
9800# the substitutions up that way, but only to remain below the limit of
9801# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9802
9803# Do not nest @if/@endif or @unless/@endunless pairs, because
9804# configure will not warn you at all.
8b87bb96 9805
79cd2b23
RW
9806case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9807 yes:yes:*\ gold\ *:*,c++,*) ;;
9808 yes:yes:*\ gold\ *:*)
22e05272 9809 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9810 ;;
9811esac
9812
3e54529c 9813extrasub_build=
23f6b2f9 9814for module in ${build_configdirs} ; do
5607edfd
PB
9815 if test -z "${no_recursion}" \
9816 && test -f ${build_subdir}/${module}/Makefile; then
9817 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9818 rm -f ${build_subdir}/${module}/Makefile
9819 fi
3e54529c 9820 extrasub_build="$extrasub_build
5607edfd
PB
9821/^@if build-$module\$/d
9822/^@endif build-$module\$/d
da34ca3f 9823/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9824/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9825/^@endif build-$module-$bootstrap_suffix\$/d
9826/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9827done
3e54529c 9828extrasub_host=
5607edfd 9829for module in ${configdirs} ; do
a6fbc1e2 9830 if test -z "${no_recursion}"; then
f063a9ed 9831 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9832 if test -f ${file}; then
9833 echo 1>&2 "*** removing ${file} to force reconfigure"
9834 rm -f ${file}
9835 fi
9836 done
5607edfd 9837 fi
9e1c8fc1
JJ
9838 case ${module},${bootstrap_fixincludes} in
9839 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9840 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9841 esac
3e54529c 9842 extrasub_host="$extrasub_host
5607edfd
PB
9843/^@if $module\$/d
9844/^@endif $module\$/d
da34ca3f 9845/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9846/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9847/^@endif $module-$host_bootstrap_suffix\$/d
9848/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9849done
3e54529c 9850extrasub_target=
5607edfd
PB
9851for module in ${target_configdirs} ; do
9852 if test -z "${no_recursion}" \
9853 && test -f ${target_subdir}/${module}/Makefile; then
9854 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9855 rm -f ${target_subdir}/${module}/Makefile
9856 fi
00020c16
ILT
9857
9858 # We only bootstrap target libraries listed in bootstrap_target_libs.
9859 case $bootstrap_target_libs in
9860 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9861 *) target_bootstrap_suffix=no-bootstrap ;;
9862 esac
9863
3e54529c 9864 extrasub_target="$extrasub_target
5607edfd
PB
9865/^@if target-$module\$/d
9866/^@endif target-$module\$/d
da34ca3f 9867/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9868/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9869/^@endif target-$module-$target_bootstrap_suffix\$/d
9870/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9871done
9872
3e54529c
RW
9873# Do the final fixup along with target modules.
9874extrasub_target="$extrasub_target
da34ca3f
AO
9875/^@if /,/^@endif /d
9876/^@unless /d
9877/^@endunless /d"
671aa708 9878
4a5e71f2
L
9879if test "$enable_pgo_build" != "no"; then
9880 extrasub_build="$extrasub_build
9881/^@if pgo-build\$/d
9882/^@endif pgo-build\$/d"
9883fi
9884
671aa708
NN
9885# Create the serialization dependencies. This uses a temporary file.
9886
5213506e
RW
9887# Check whether --enable-serial-configure was given.
9888if test "${enable_serial_configure+set}" = set; then :
9889 enableval=$enable_serial_configure;
9890fi
ade82b16
AO
9891
9892
bf1d3e81
NN
9893case ${enable_serial_configure} in
9894 yes)
9895 enable_serial_build_configure=yes
9896 enable_serial_host_configure=yes
9897 enable_serial_target_configure=yes
9898 ;;
9899esac
9900
671aa708
NN
9901# These force 'configure's to be done one at a time, to avoid problems
9902# with contention over a shared config.cache.
9903rm -f serdep.tmp
ade82b16 9904echo '# serdep.tmp' > serdep.tmp
671aa708 9905olditem=
bf1d3e81 9906test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9907for item in ${build_configdirs} ; do
9908 case ${olditem} in
9909 "") ;;
ade82b16 9910 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9911 esac
9912 olditem=${item}
9913done
9914olditem=
bf1d3e81 9915test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9916for item in ${configdirs} ; do
9917 case ${olditem} in
9918 "") ;;
ade82b16 9919 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9920 esac
9921 olditem=${item}
9922done
9923olditem=
bf1d3e81 9924test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9925for item in ${target_configdirs} ; do
9926 case ${olditem} in
9927 "") ;;
ade82b16 9928 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9929 esac
9930 olditem=${item}
9931done
9932serialization_dependencies=serdep.tmp
9933
9934
ade82b16 9935# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9936# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9937# might not want to pass down to subconfigures. The exception being
9938# --cache-file=/dev/null, which is used to turn off the use of cache
9939# files altogether, and which should be passed on to subconfigures.
9940# Also strip program-prefix, program-suffix, and program-transform-name,
9941# so that we can pass down a consistent program-transform-name.
1c710c3c 9942baseargs=
29a63921 9943tbaseargs=
1c710c3c
DJ
9944keep_next=no
9945skip_next=no
9946eval "set -- $ac_configure_args"
44bfc3ac
DJ
9947for ac_arg
9948do
1c710c3c
DJ
9949 if test X"$skip_next" = X"yes"; then
9950 skip_next=no
9951 continue
9952 fi
9953 if test X"$keep_next" = X"yes"; then
9954 case $ac_arg in
9955 *\'*)
9956 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9957 esac
9958 baseargs="$baseargs '$ac_arg'"
29a63921 9959 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9960 keep_next=no
9961 continue
9962 fi
9963
9964 # Handle separated arguments. Based on the logic generated by
9965 # autoconf 2.59.
9966 case $ac_arg in
9967 *=* | --config-cache | -C | -disable-* | --disable-* \
9968 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9969 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9970 | -with-* | --with-* | -without-* | --without-* | --x)
9971 separate_arg=no
9972 ;;
9973 -*)
9974 separate_arg=yes
9975 ;;
9976 *)
9977 separate_arg=no
9978 ;;
9979 esac
9980
29a63921
AO
9981 skip_targ=no
9982 case $ac_arg in
9983
9984 --with-* | --without-*)
9985 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9986
9987 case $libopt in
9988 *[-_]include)
9989 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9990 ;;
9991 *[-_]lib)
9992 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9993 ;;
9994 *)
9995 lib=$libopt
9996 ;;
9997 esac
9998
9999
10000 case $lib in
4a9bb2aa 10001 mpc | mpfr | gmp | isl)
29a63921
AO
10002 # If we're processing --with-$lib, --with-$lib-include or
10003 # --with-$lib-lib, for one of the libs above, and target is
10004 # different from host, don't pass the current argument to any
10005 # target library's configure.
10006 if test x$is_cross_compiler = xyes; then
10007 skip_targ=yes
10008 fi
10009 ;;
10010 esac
10011 ;;
10012 esac
10013
1c710c3c 10014 case "$ac_arg" in
f1a036e4
NC
10015 --cache-file=/dev/null | \
10016 -cache-file=/dev/null )
10017 # Handled here to avoid the test to skip args below.
10018 baseargs="$baseargs '$ac_arg'"
29a63921 10019 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
10020 # Assert: $separate_arg should always be no.
10021 keep_next=$separate_arg
10022 ;;
1c710c3c
DJ
10023 --no*)
10024 continue
10025 ;;
10026 --c* | \
10027 --sr* | \
10028 --ho* | \
10029 --bu* | \
10030 --t* | \
10031 --program-* | \
10032 -cache_file* | \
10033 -srcdir* | \
10034 -host* | \
10035 -build* | \
10036 -target* | \
10037 -program-prefix* | \
10038 -program-suffix* | \
10039 -program-transform-name* )
10040 skip_next=$separate_arg
10041 continue
10042 ;;
10043 -*)
10044 # An option. Add it.
10045 case $ac_arg in
10046 *\'*)
10047 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10048 esac
10049 baseargs="$baseargs '$ac_arg'"
29a63921
AO
10050 if test X"$skip_targ" = Xno; then
10051 tbaseargs="$tbaseargs '$ac_arg'"
10052 fi
1c710c3c
DJ
10053 keep_next=$separate_arg
10054 ;;
10055 *)
10056 # Either a variable assignment, or a nonopt (triplet). Don't
10057 # pass it down; let the Makefile handle this.
10058 continue
10059 ;;
10060 esac
10061done
10062# Remove the initial space we just introduced and, as these will be
10063# expanded by make, quote '$'.
10064baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 10065
43bb47c2
DJ
10066# Add in --program-transform-name, after --program-prefix and
10067# --program-suffix have been applied to it. Autoconf has already
10068# doubled dollar signs and backslashes in program_transform_name; we want
10069# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 10070# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
10071# Also, because we want to override the logic in subdir configure scripts to
10072# choose program_transform_name, replace any s,x,x, with s,y,y,.
10073sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10074${program_transform_name}
10075EOF_SED
10076gcc_transform_name=`cat conftestsed.out`
10077rm -f conftestsed.out
10078baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 10079tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
10080if test "$silent" = yes; then
10081 baseargs="$baseargs --silent"
29a63921 10082 tbaseargs="$tbaseargs --silent"
d9acb717 10083fi
0115d4a3 10084baseargs="$baseargs --disable-option-checking"
29a63921 10085tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 10086
ffedf511
RW
10087# Record and document user additions to sub configure arguments.
10088
10089
10090
10091
671aa708
NN
10092# For the build-side libraries, we just need to pretend we're native,
10093# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
10094# desired. We can't even use the same cache file for all build-side
10095# libraries, as they're compiled differently; some with C, some with
10096# C++ or with different feature-enabling options.
10097build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
10098
10099# For host modules, accept cache file option, or specification as blank.
10100case "${cache_file}" in
10101"") # empty
10102 cache_file_option="" ;;
10103/* | [A-Za-z]:[\\/]* ) # absolute path
10104 cache_file_option="--cache-file=${cache_file}" ;;
10105*) # relative path
10106 cache_file_option="--cache-file=../${cache_file}" ;;
10107esac
10108
09438bde
NN
10109# Host dirs don't like to share a cache file either, horribly enough.
10110# This seems to be due to autoconf 2.5x stupidity.
ffedf511 10111host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 10112
29a63921 10113target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
10114
10115# Passing a --with-cross-host argument lets the target libraries know
10116# whether they are being built with a cross-compiler or being built
10117# native. However, it would be better to use other mechanisms to make the
10118# sorts of decisions they want to make on this basis. Please consider
10119# this option to be deprecated. FIXME.
10120if test x${is_cross_compiler} = xyes ; then
1c710c3c 10121 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
10122fi
10123
79e0604d
FXC
10124# Special user-friendly check for native x86_64-linux build, if
10125# multilib is not explicitly enabled.
10126case "$target:$have_compiler:$host:$target:$enable_multilib" in
10127 x86_64-*linux*:yes:$build:$build:)
e640447c 10128 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
10129 dev64=no
10130 echo "int main () { return 0; }" > conftest.c
10131 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10132 if test $? = 0 ; then
10133 if test -s conftest || test -s conftest.exe ; then
10134 dev64=yes
10135 fi
10136 fi
10137 rm -f conftest*
10138 if test x${dev64} != xyes ; then
22e05272 10139 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
10140 fi
10141 ;;
10142esac
10143
dc683a3f
RW
10144# Default to --enable-multilib.
10145if test x${enable_multilib} = x ; then
671aa708 10146 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 10147fi
671aa708
NN
10148
10149# Pass --with-newlib if appropriate. Note that target_configdirs has
10150# changed from the earlier setting of with_newlib.
10151if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10152 target_configargs="--with-newlib ${target_configargs}"
10153fi
10154
6b9eb62c
NN
10155# Different target subdirs use different values of certain variables
10156# (notably CXX). Worse, multilibs use *lots* of different values.
10157# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10158# it doesn't automatically accept command-line overrides of them.
10159# This means it's not safe for target subdirs to share a cache file,
10160# which is disgusting, but there you have it. Hopefully this can be
10161# fixed in future. It's still worthwhile to use a cache file for each
10162# directory. I think.
10163
bebcd931
MS
10164# Pass the appropriate --build, --host, --target and --cache-file arguments.
10165# We need to pass --target, as newer autoconf's requires consistency
10166# for target_alias and gcc doesn't manage it consistently.
e69bf64b 10167target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 10168
671aa708
NN
10169FLAGS_FOR_TARGET=
10170case " $target_configdirs " in
10171 *" newlib "*)
10172 case " $target_configargs " in
10173 *" --with-newlib "*)
10174 case "$target" in
5d571eaa 10175 *-cygwin*)
443e6238 10176 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 10177 ;;
671aa708
NN
10178 esac
10179
10180 # If we're not building GCC, don't discard standard headers.
10181 if test -d ${srcdir}/gcc; then
10182 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10183
10184 if test "${build}" != "${host}"; then
10185 # On Canadian crosses, CC_FOR_TARGET will have already been set
10186 # by `configure', so we won't have an opportunity to add -Bgcc/
10187 # to it. This is right: we don't want to search that directory
10188 # for binaries, but we want the header files in there, so add
10189 # them explicitly.
0463992b 10190 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
10191
10192 # Someone might think of using the pre-installed headers on
10193 # Canadian crosses, in case the installed compiler is not fully
10194 # compatible with the compiler being built. In this case, it
10195 # would be better to flag an error than risking having
10196 # incompatible object files being constructed. We can't
10197 # guarantee that an error will be flagged, but let's hope the
10198 # compiler will do it, when presented with incompatible header
10199 # files.
10200 fi
10201 fi
10202
10203 case "${target}-${is_cross_compiler}" in
f2a0e225 10204 i[3456789]86-*-linux*-no)
671aa708
NN
10205 # Here host == target, so we don't need to build gcc,
10206 # so we don't want to discard standard headers.
10207 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10208 ;;
10209 *)
10210 # If we're building newlib, use its generic headers last, but search
10211 # for any libc-related directories first (so make it the last -B
10212 # switch).
10213 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
10214
10215 # If we're building libgloss, find the startup file, simulator library
10216 # and linker script.
10217 case " $target_configdirs " in
10218 *" libgloss "*)
10219 # Look for startup file, simulator library and maybe linker script.
10220 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10221 # Look for libnosys.a in case the target needs it.
10222 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10223 # Most targets have the linker script in the source directory.
10224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10225 ;;
10226 esac
671aa708
NN
10227 ;;
10228 esac
10229 ;;
10230 esac
10231 ;;
10232esac
5d571eaa 10233
b91f0a41 10234case "$target" in
5d571eaa
OS
10235 x86_64-*mingw* | *-w64-mingw*)
10236 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10237 # however, use a symlink named 'mingw' in ${prefix} .
10238 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10239 ;;
10240 *-mingw*)
10241 # MinGW can't be handled as Cygwin above since it does not use newlib.
10242 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'
10243 ;;
b91f0a41 10244esac
671aa708 10245
6691a79e
ME
10246# Allow the user to override the flags for
10247# our build compiler if desired.
f019adc1
MF
10248if test x"${build}" = x"${host}" ; then
10249 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
84401ce5 10250 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
f019adc1
MF
10251 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10252 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10253fi
6691a79e 10254
671aa708
NN
10255# On Canadian crosses, we'll be searching the right directories for
10256# the previously-installed cross compiler, so don't bother to add
10257# flags for directories within the install tree of the compiler
10258# being built; programs in there won't even run.
10259if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10260 # Search for pre-installed headers if nothing else fits.
9124bc53 10261 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
10262fi
10263
10264if test "x${use_gnu_ld}" = x &&
10265 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10266 # Arrange for us to find uninstalled linker scripts.
215c351a 10267 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
10268fi
10269
e88a2c09
DD
10270# Search for other target-specific linker scripts and such.
10271case "${target}" in
3e19841a
PB
10272 mep*)
10273 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10274 ;;
e88a2c09
DD
10275esac
10276
671aa708 10277# Makefile fragments.
7b61653a
PE
10278for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10279do
10280 eval fragval=\$$frag
10281 if test $fragval != /dev/null; then
10282 eval $frag=${srcdir}/$fragval
10283 fi
10284done
671aa708
NN
10285
10286
10287
10288
10289
10290# Miscellanea: directories, flags, etc.
10291
10292
10293
10294
10295
10296
10297
d89f0ad6 10298
23f6b2f9 10299# Build module lists & subconfigure args.
671aa708
NN
10300
10301
10302
2abefe3d
PB
10303# Host module lists & subconfigure args.
10304
10305
10306
aae29963 10307
2abefe3d
PB
10308# Target module lists & subconfigure args.
10309
10310
10311
10312# Build tools.
10313
10314
10315
0999159b
PB
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
b4c522fa 10329
3b5e8ee4 10330
a1d2b162
IS
10331
10332
2abefe3d
PB
10333# Generate default definitions for YACC, M4, LEX and other programs that run
10334# on the build machine. These are used if the Makefile can't locate these
10335# programs in objdir.
10336MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10337
10338for ac_prog in 'bison -y' byacc yacc
10339do
1c710c3c 10340 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10341set dummy $ac_prog; ac_word=$2
5213506e
RW
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10344if ${ac_cv_prog_YACC+:} false; then :
5213506e 10345 $as_echo_n "(cached) " >&6
2abefe3d
PB
10346else
10347 if test -n "$YACC"; then
10348 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10349else
1c710c3c
DJ
10350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351for as_dir in $PATH
10352do
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
5213506e 10355 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10357 ac_cv_prog_YACC="$ac_prog"
5213506e 10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10359 break 2
10360 fi
10361done
5213506e
RW
10362 done
10363IFS=$as_save_IFS
1c710c3c 10364
2abefe3d
PB
10365fi
10366fi
1c710c3c 10367YACC=$ac_cv_prog_YACC
2abefe3d 10368if test -n "$YACC"; then
5213506e
RW
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10370$as_echo "$YACC" >&6; }
2abefe3d 10371else
5213506e
RW
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373$as_echo "no" >&6; }
2abefe3d
PB
10374fi
10375
5213506e 10376
1c710c3c 10377 test -n "$YACC" && break
2abefe3d
PB
10378done
10379test -n "$YACC" || YACC="$MISSING bison -y"
10380
10381case " $build_configdirs " in
10382 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
10383esac
10384
10385for ac_prog in bison
10386do
1c710c3c 10387 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10388set dummy $ac_prog; ac_word=$2
5213506e
RW
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10391if ${ac_cv_prog_BISON+:} false; then :
5213506e 10392 $as_echo_n "(cached) " >&6
2abefe3d
PB
10393else
10394 if test -n "$BISON"; then
10395 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10396else
1c710c3c
DJ
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
5213506e 10402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10404 ac_cv_prog_BISON="$ac_prog"
5213506e 10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10406 break 2
10407 fi
10408done
5213506e
RW
10409 done
10410IFS=$as_save_IFS
1c710c3c 10411
2abefe3d
PB
10412fi
10413fi
1c710c3c 10414BISON=$ac_cv_prog_BISON
2abefe3d 10415if test -n "$BISON"; then
5213506e
RW
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10417$as_echo "$BISON" >&6; }
2abefe3d 10418else
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420$as_echo "no" >&6; }
2abefe3d
PB
10421fi
10422
5213506e 10423
1c710c3c 10424 test -n "$BISON" && break
2abefe3d
PB
10425done
10426test -n "$BISON" || BISON="$MISSING bison"
10427
10428case " $build_configdirs " in
10429 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10430esac
10431
10432for ac_prog in gm4 gnum4 m4
10433do
1c710c3c 10434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10435set dummy $ac_prog; ac_word=$2
5213506e
RW
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10437$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10438if ${ac_cv_prog_M4+:} false; then :
5213506e 10439 $as_echo_n "(cached) " >&6
2abefe3d
PB
10440else
10441 if test -n "$M4"; then
10442 ac_cv_prog_M4="$M4" # Let the user override the test.
10443else
1c710c3c
DJ
10444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445for as_dir in $PATH
10446do
10447 IFS=$as_save_IFS
10448 test -z "$as_dir" && as_dir=.
5213506e 10449 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10451 ac_cv_prog_M4="$ac_prog"
5213506e 10452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10453 break 2
10454 fi
10455done
5213506e
RW
10456 done
10457IFS=$as_save_IFS
1c710c3c 10458
2abefe3d
PB
10459fi
10460fi
1c710c3c 10461M4=$ac_cv_prog_M4
2abefe3d 10462if test -n "$M4"; then
5213506e
RW
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10464$as_echo "$M4" >&6; }
2abefe3d 10465else
5213506e
RW
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467$as_echo "no" >&6; }
2abefe3d
PB
10468fi
10469
5213506e 10470
1c710c3c 10471 test -n "$M4" && break
2abefe3d
PB
10472done
10473test -n "$M4" || M4="$MISSING m4"
10474
10475case " $build_configdirs " in
10476 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10477esac
10478
10479for ac_prog in flex lex
10480do
1c710c3c 10481 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10482set dummy $ac_prog; ac_word=$2
5213506e
RW
10483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10485if ${ac_cv_prog_LEX+:} false; then :
5213506e 10486 $as_echo_n "(cached) " >&6
2abefe3d
PB
10487else
10488 if test -n "$LEX"; then
10489 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10490else
1c710c3c
DJ
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
5213506e 10496 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10498 ac_cv_prog_LEX="$ac_prog"
5213506e 10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10500 break 2
10501 fi
10502done
5213506e
RW
10503 done
10504IFS=$as_save_IFS
1c710c3c 10505
2abefe3d
PB
10506fi
10507fi
1c710c3c 10508LEX=$ac_cv_prog_LEX
2abefe3d 10509if test -n "$LEX"; then
5213506e
RW
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10511$as_echo "$LEX" >&6; }
2abefe3d 10512else
5213506e
RW
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514$as_echo "no" >&6; }
2abefe3d
PB
10515fi
10516
5213506e 10517
1c710c3c 10518 test -n "$LEX" && break
2abefe3d
PB
10519done
10520test -n "$LEX" || LEX="$MISSING flex"
10521
10522case " $build_configdirs " in
10523 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10524 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10525esac
10526
10527for ac_prog in flex
10528do
1c710c3c 10529 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10530set dummy $ac_prog; ac_word=$2
5213506e
RW
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10533if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10534 $as_echo_n "(cached) " >&6
2abefe3d
PB
10535else
10536 if test -n "$FLEX"; then
10537 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10538else
1c710c3c
DJ
10539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540for as_dir in $PATH
10541do
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
5213506e 10544 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10546 ac_cv_prog_FLEX="$ac_prog"
5213506e 10547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10548 break 2
10549 fi
10550done
5213506e
RW
10551 done
10552IFS=$as_save_IFS
1c710c3c 10553
2abefe3d
PB
10554fi
10555fi
1c710c3c 10556FLEX=$ac_cv_prog_FLEX
2abefe3d 10557if test -n "$FLEX"; then
5213506e
RW
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10559$as_echo "$FLEX" >&6; }
2abefe3d 10560else
5213506e
RW
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562$as_echo "no" >&6; }
2abefe3d
PB
10563fi
10564
5213506e 10565
1c710c3c 10566 test -n "$FLEX" && break
2abefe3d
PB
10567done
10568test -n "$FLEX" || FLEX="$MISSING flex"
10569
10570case " $build_configdirs " in
10571 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10572esac
10573
10574for ac_prog in makeinfo
10575do
1c710c3c 10576 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10577set dummy $ac_prog; ac_word=$2
5213506e
RW
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10580if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10581 $as_echo_n "(cached) " >&6
2abefe3d
PB
10582else
10583 if test -n "$MAKEINFO"; then
10584 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10585else
1c710c3c
DJ
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
5213506e 10591 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10593 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10595 break 2
10596 fi
10597done
5213506e
RW
10598 done
10599IFS=$as_save_IFS
1c710c3c 10600
2abefe3d
PB
10601fi
10602fi
1c710c3c 10603MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10604if test -n "$MAKEINFO"; then
5213506e
RW
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10606$as_echo "$MAKEINFO" >&6; }
2abefe3d 10607else
5213506e
RW
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
2abefe3d
PB
10610fi
10611
5213506e 10612
1c710c3c 10613 test -n "$MAKEINFO" && break
2abefe3d
PB
10614done
10615test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10616
10617case " $build_configdirs " in
10618 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10619 *)
10620
d18ff35a 10621 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10622 # higher, else we use the "missing" dummy.
10623 if ${MAKEINFO} --version \
d18ff35a 10624 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10625 :
10626 else
10627 MAKEINFO="$MISSING makeinfo"
10628 fi
10629 ;;
10630
10631esac
671aa708 10632
2abefe3d 10633# FIXME: expect and dejagnu may become build tools?
671aa708 10634
2abefe3d
PB
10635for ac_prog in expect
10636do
1c710c3c 10637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10638set dummy $ac_prog; ac_word=$2
5213506e
RW
10639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10641if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10642 $as_echo_n "(cached) " >&6
2abefe3d
PB
10643else
10644 if test -n "$EXPECT"; then
10645 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10646else
1c710c3c
DJ
10647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648for as_dir in $PATH
10649do
10650 IFS=$as_save_IFS
10651 test -z "$as_dir" && as_dir=.
5213506e 10652 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10654 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10656 break 2
10657 fi
10658done
5213506e
RW
10659 done
10660IFS=$as_save_IFS
1c710c3c 10661
2abefe3d
PB
10662fi
10663fi
1c710c3c 10664EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10665if test -n "$EXPECT"; then
5213506e
RW
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10667$as_echo "$EXPECT" >&6; }
2abefe3d 10668else
5213506e
RW
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670$as_echo "no" >&6; }
2abefe3d 10671fi
671aa708 10672
5213506e 10673
1c710c3c 10674 test -n "$EXPECT" && break
2abefe3d
PB
10675done
10676test -n "$EXPECT" || EXPECT="expect"
671aa708 10677
2abefe3d
PB
10678case " $configdirs " in
10679 *" expect "*)
10680 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10681 ;;
10682esac
671aa708 10683
2abefe3d
PB
10684for ac_prog in runtest
10685do
1c710c3c 10686 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10687set dummy $ac_prog; ac_word=$2
5213506e
RW
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10689$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10690if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10691 $as_echo_n "(cached) " >&6
2abefe3d
PB
10692else
10693 if test -n "$RUNTEST"; then
10694 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10695else
1c710c3c
DJ
10696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10697for as_dir in $PATH
10698do
10699 IFS=$as_save_IFS
10700 test -z "$as_dir" && as_dir=.
5213506e 10701 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10703 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10705 break 2
10706 fi
10707done
5213506e
RW
10708 done
10709IFS=$as_save_IFS
1c710c3c 10710
2abefe3d
PB
10711fi
10712fi
1c710c3c 10713RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10714if test -n "$RUNTEST"; then
5213506e
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10716$as_echo "$RUNTEST" >&6; }
2abefe3d 10717else
5213506e
RW
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719$as_echo "no" >&6; }
2abefe3d 10720fi
671aa708 10721
5213506e 10722
1c710c3c 10723 test -n "$RUNTEST" && break
2abefe3d
PB
10724done
10725test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10726
2abefe3d
PB
10727case " $configdirs " in
10728 *" dejagnu "*)
c394e891 10729 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10730 ;;
10731esac
671aa708
NN
10732
10733
671aa708 10734# Host tools.
ca9f4b81
AO
10735ncn_tool_prefix=
10736test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10737ncn_target_tool_prefix=
10738test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10739
278a7a38
AO
10740
10741
10742if test -n "$AR"; then
10743 ac_cv_prog_AR=$AR
10744elif test -n "$ac_cv_prog_AR"; then
10745 AR=$ac_cv_prog_AR
10746fi
10747
10748if test -n "$ac_cv_prog_AR"; then
10749 for ncn_progname in ar; do
10750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10751set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10754if ${ac_cv_prog_AR+:} false; then :
5213506e 10755 $as_echo_n "(cached) " >&6
278a7a38
AO
10756else
10757 if test -n "$AR"; then
10758 ac_cv_prog_AR="$AR" # Let the user override the test.
10759else
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
5213506e 10765 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10767 ac_cv_prog_AR="${ncn_progname}"
5213506e 10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10769 break 2
10770 fi
10771done
5213506e
RW
10772 done
10773IFS=$as_save_IFS
278a7a38
AO
10774
10775fi
10776fi
10777AR=$ac_cv_prog_AR
10778if test -n "$AR"; then
5213506e
RW
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10780$as_echo "$AR" >&6; }
278a7a38 10781else
5213506e
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
278a7a38
AO
10784fi
10785
5213506e 10786
278a7a38
AO
10787 done
10788fi
10789
10790for ncn_progname in ar; do
2693c0b0
PB
10791 if test -n "$ncn_tool_prefix"; then
10792 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10793set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10796if ${ac_cv_prog_AR+:} false; then :
5213506e 10797 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10798else
10799 if test -n "$AR"; then
10800 ac_cv_prog_AR="$AR" # Let the user override the test.
10801else
1c710c3c
DJ
10802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803for as_dir in $PATH
10804do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
5213506e 10807 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10809 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10811 break 2
10812 fi
10813done
5213506e
RW
10814 done
10815IFS=$as_save_IFS
1c710c3c 10816
ca9f4b81
AO
10817fi
10818fi
1c710c3c 10819AR=$ac_cv_prog_AR
ca9f4b81 10820if test -n "$AR"; then
5213506e
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10822$as_echo "$AR" >&6; }
ca9f4b81 10823else
5213506e
RW
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825$as_echo "no" >&6; }
ca9f4b81
AO
10826fi
10827
5213506e 10828
2693c0b0
PB
10829 fi
10830 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10832set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10835if ${ac_cv_prog_AR+:} false; then :
5213506e 10836 $as_echo_n "(cached) " >&6
ca9f4b81 10837else
2693c0b0 10838 if test -n "$AR"; then
af71363e
AS
10839 ac_cv_prog_AR="$AR" # Let the user override the test.
10840else
1c710c3c
DJ
10841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842for as_dir in $PATH
10843do
10844 IFS=$as_save_IFS
10845 test -z "$as_dir" && as_dir=.
5213506e 10846 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10848 ac_cv_prog_AR="${ncn_progname}"
5213506e 10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10850 break 2
10851 fi
10852done
5213506e
RW
10853 done
10854IFS=$as_save_IFS
1c710c3c 10855
ca9f4b81
AO
10856fi
10857fi
1c710c3c 10858AR=$ac_cv_prog_AR
2693c0b0 10859if test -n "$AR"; then
5213506e
RW
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10861$as_echo "$AR" >&6; }
ca9f4b81 10862else
5213506e
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864$as_echo "no" >&6; }
ca9f4b81 10865fi
1c710c3c 10866
5213506e 10867
2693c0b0
PB
10868 fi
10869 test -n "$ac_cv_prog_AR" && break
10870done
10871
10872if test -z "$ac_cv_prog_AR" ; then
10873 set dummy ar
10874 if test $build = $host ; then
10875 AR="$2"
ca9f4b81 10876 else
2693c0b0 10877 AR="${ncn_tool_prefix}$2"
ca9f4b81 10878 fi
ca9f4b81
AO
10879fi
10880
278a7a38
AO
10881
10882
10883if test -n "$AS"; then
10884 ac_cv_prog_AS=$AS
10885elif test -n "$ac_cv_prog_AS"; then
10886 AS=$ac_cv_prog_AS
10887fi
10888
10889if test -n "$ac_cv_prog_AS"; then
10890 for ncn_progname in as; do
10891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10892set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10895if ${ac_cv_prog_AS+:} false; then :
5213506e 10896 $as_echo_n "(cached) " >&6
278a7a38
AO
10897else
10898 if test -n "$AS"; then
10899 ac_cv_prog_AS="$AS" # Let the user override the test.
10900else
10901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902for as_dir in $PATH
10903do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
5213506e 10906 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10908 ac_cv_prog_AS="${ncn_progname}"
5213506e 10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10910 break 2
10911 fi
10912done
5213506e
RW
10913 done
10914IFS=$as_save_IFS
278a7a38
AO
10915
10916fi
10917fi
10918AS=$ac_cv_prog_AS
10919if test -n "$AS"; then
5213506e
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10921$as_echo "$AS" >&6; }
278a7a38 10922else
5213506e
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
278a7a38
AO
10925fi
10926
5213506e 10927
278a7a38
AO
10928 done
10929fi
10930
10931for ncn_progname in as; do
2693c0b0
PB
10932 if test -n "$ncn_tool_prefix"; then
10933 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10934set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10937if ${ac_cv_prog_AS+:} false; then :
5213506e 10938 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10939else
10940 if test -n "$AS"; then
10941 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10942else
1c710c3c
DJ
10943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in $PATH
10945do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
5213506e 10948 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10950 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10952 break 2
10953 fi
10954done
5213506e
RW
10955 done
10956IFS=$as_save_IFS
1c710c3c 10957
ca9f4b81
AO
10958fi
10959fi
1c710c3c 10960AS=$ac_cv_prog_AS
ca9f4b81 10961if test -n "$AS"; then
5213506e
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10963$as_echo "$AS" >&6; }
ca9f4b81 10964else
5213506e
RW
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966$as_echo "no" >&6; }
ca9f4b81
AO
10967fi
10968
5213506e 10969
2693c0b0
PB
10970 fi
10971 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10976if ${ac_cv_prog_AS+:} false; then :
5213506e 10977 $as_echo_n "(cached) " >&6
ca9f4b81 10978else
2693c0b0
PB
10979 if test -n "$AS"; then
10980 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10981else
1c710c3c
DJ
10982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983for as_dir in $PATH
10984do
10985 IFS=$as_save_IFS
10986 test -z "$as_dir" && as_dir=.
5213506e 10987 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10989 ac_cv_prog_AS="${ncn_progname}"
5213506e 10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10991 break 2
10992 fi
10993done
5213506e
RW
10994 done
10995IFS=$as_save_IFS
1c710c3c 10996
ca9f4b81
AO
10997fi
10998fi
1c710c3c 10999AS=$ac_cv_prog_AS
2693c0b0 11000if test -n "$AS"; then
5213506e
RW
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11002$as_echo "$AS" >&6; }
ca9f4b81 11003else
5213506e
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005$as_echo "no" >&6; }
ca9f4b81 11006fi
1c710c3c 11007
5213506e 11008
2693c0b0
PB
11009 fi
11010 test -n "$ac_cv_prog_AS" && break
11011done
11012
11013if test -z "$ac_cv_prog_AS" ; then
11014 set dummy as
11015 if test $build = $host ; then
11016 AS="$2"
ca9f4b81 11017 else
2693c0b0 11018 AS="${ncn_tool_prefix}$2"
ca9f4b81 11019 fi
ca9f4b81
AO
11020fi
11021
278a7a38
AO
11022
11023
11024if test -n "$DLLTOOL"; then
11025 ac_cv_prog_DLLTOOL=$DLLTOOL
11026elif test -n "$ac_cv_prog_DLLTOOL"; then
11027 DLLTOOL=$ac_cv_prog_DLLTOOL
11028fi
11029
11030if test -n "$ac_cv_prog_DLLTOOL"; then
11031 for ncn_progname in dlltool; do
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11036if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11037 $as_echo_n "(cached) " >&6
278a7a38
AO
11038else
11039 if test -n "$DLLTOOL"; then
11040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
5213506e 11047 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11049 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11051 break 2
11052 fi
11053done
5213506e
RW
11054 done
11055IFS=$as_save_IFS
278a7a38
AO
11056
11057fi
11058fi
11059DLLTOOL=$ac_cv_prog_DLLTOOL
11060if test -n "$DLLTOOL"; then
5213506e
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11062$as_echo "$DLLTOOL" >&6; }
278a7a38 11063else
5213506e
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
278a7a38
AO
11066fi
11067
5213506e 11068
278a7a38
AO
11069 done
11070fi
11071
11072for ncn_progname in dlltool; do
2693c0b0
PB
11073 if test -n "$ncn_tool_prefix"; then
11074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11075set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11078if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11079 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11080else
11081 if test -n "$DLLTOOL"; then
11082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11083else
1c710c3c
DJ
11084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085for as_dir in $PATH
11086do
11087 IFS=$as_save_IFS
11088 test -z "$as_dir" && as_dir=.
5213506e 11089 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11091 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 11092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11093 break 2
11094 fi
11095done
5213506e
RW
11096 done
11097IFS=$as_save_IFS
1c710c3c 11098
ca9f4b81
AO
11099fi
11100fi
1c710c3c 11101DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 11102if test -n "$DLLTOOL"; then
5213506e
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11104$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11105else
5213506e
RW
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11107$as_echo "no" >&6; }
ca9f4b81
AO
11108fi
11109
5213506e 11110
2693c0b0
PB
11111 fi
11112 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11114set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11117if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 11118 $as_echo_n "(cached) " >&6
ca9f4b81 11119else
2693c0b0
PB
11120 if test -n "$DLLTOOL"; then
11121 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 11122else
1c710c3c
DJ
11123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124for as_dir in $PATH
11125do
11126 IFS=$as_save_IFS
11127 test -z "$as_dir" && as_dir=.
5213506e 11128 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11130 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11132 break 2
11133 fi
11134done
5213506e
RW
11135 done
11136IFS=$as_save_IFS
1c710c3c 11137
ca9f4b81
AO
11138fi
11139fi
1c710c3c 11140DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 11141if test -n "$DLLTOOL"; then
5213506e
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11143$as_echo "$DLLTOOL" >&6; }
ca9f4b81 11144else
5213506e
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
ca9f4b81 11147fi
1c710c3c 11148
5213506e 11149
2693c0b0
PB
11150 fi
11151 test -n "$ac_cv_prog_DLLTOOL" && break
11152done
11153
11154if test -z "$ac_cv_prog_DLLTOOL" ; then
11155 set dummy dlltool
11156 if test $build = $host ; then
11157 DLLTOOL="$2"
ca9f4b81 11158 else
2693c0b0 11159 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 11160 fi
ca9f4b81
AO
11161fi
11162
278a7a38
AO
11163
11164
3b5e8ee4
IS
11165if test -n "$DSYMUTIL"; then
11166 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11167elif test -n "$ac_cv_prog_DSYMUTIL"; then
11168 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11169fi
11170
11171if test -n "$ac_cv_prog_DSYMUTIL"; then
11172 for ncn_progname in dsymutil; do
11173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11174set dummy ${ncn_progname}; ac_word=$2
11175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176$as_echo_n "checking for $ac_word... " >&6; }
11177if ${ac_cv_prog_DSYMUTIL+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179else
11180 if test -n "$DSYMUTIL"; then
11181 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11182else
11183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184for as_dir in $PATH
11185do
11186 IFS=$as_save_IFS
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195 done
11196IFS=$as_save_IFS
11197
11198fi
11199fi
11200DSYMUTIL=$ac_cv_prog_DSYMUTIL
11201if test -n "$DSYMUTIL"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11203$as_echo "$DSYMUTIL" >&6; }
11204else
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
11207fi
11208
11209
11210 done
11211fi
11212
11213for ncn_progname in dsymutil; do
11214 if test -n "$ncn_tool_prefix"; then
11215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218$as_echo_n "checking for $ac_word... " >&6; }
11219if ${ac_cv_prog_DSYMUTIL+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221else
11222 if test -n "$DSYMUTIL"; then
11223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11224else
11225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226for as_dir in $PATH
11227do
11228 IFS=$as_save_IFS
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11234 break 2
11235 fi
11236done
11237 done
11238IFS=$as_save_IFS
11239
11240fi
11241fi
11242DSYMUTIL=$ac_cv_prog_DSYMUTIL
11243if test -n "$DSYMUTIL"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11245$as_echo "$DSYMUTIL" >&6; }
11246else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248$as_echo "no" >&6; }
11249fi
11250
11251
11252 fi
11253 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11255set dummy ${ncn_progname}; ac_word=$2
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257$as_echo_n "checking for $ac_word... " >&6; }
11258if ${ac_cv_prog_DSYMUTIL+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260else
11261 if test -n "$DSYMUTIL"; then
11262 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11263else
11264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265for as_dir in $PATH
11266do
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11273 break 2
11274 fi
11275done
11276 done
11277IFS=$as_save_IFS
11278
11279fi
11280fi
11281DSYMUTIL=$ac_cv_prog_DSYMUTIL
11282if test -n "$DSYMUTIL"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11284$as_echo "$DSYMUTIL" >&6; }
11285else
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287$as_echo "no" >&6; }
11288fi
11289
11290
11291 fi
11292 test -n "$ac_cv_prog_DSYMUTIL" && break
11293done
11294
11295if test -z "$ac_cv_prog_DSYMUTIL" ; then
11296 set dummy dsymutil
11297 if test $build = $host ; then
11298 DSYMUTIL="$2"
11299 else
11300 DSYMUTIL="${ncn_tool_prefix}$2"
11301 fi
11302fi
11303
11304
11305
278a7a38
AO
11306if test -n "$LD"; then
11307 ac_cv_prog_LD=$LD
11308elif test -n "$ac_cv_prog_LD"; then
11309 LD=$ac_cv_prog_LD
11310fi
11311
11312if test -n "$ac_cv_prog_LD"; then
11313 for ncn_progname in ld; do
11314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11318if ${ac_cv_prog_LD+:} false; then :
5213506e 11319 $as_echo_n "(cached) " >&6
278a7a38
AO
11320else
11321 if test -n "$LD"; then
11322 ac_cv_prog_LD="$LD" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
5213506e 11329 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11331 ac_cv_prog_LD="${ncn_progname}"
5213506e 11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11333 break 2
11334 fi
11335done
5213506e
RW
11336 done
11337IFS=$as_save_IFS
278a7a38
AO
11338
11339fi
11340fi
11341LD=$ac_cv_prog_LD
11342if test -n "$LD"; then
5213506e
RW
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11344$as_echo "$LD" >&6; }
278a7a38 11345else
5213506e
RW
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347$as_echo "no" >&6; }
278a7a38
AO
11348fi
11349
5213506e 11350
278a7a38
AO
11351 done
11352fi
11353
11354for ncn_progname in ld; do
2693c0b0
PB
11355 if test -n "$ncn_tool_prefix"; then
11356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11360if ${ac_cv_prog_LD+:} false; then :
5213506e 11361 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11362else
11363 if test -n "$LD"; then
11364 ac_cv_prog_LD="$LD" # Let the user override the test.
11365else
1c710c3c
DJ
11366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367for as_dir in $PATH
11368do
11369 IFS=$as_save_IFS
11370 test -z "$as_dir" && as_dir=.
5213506e 11371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11373 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 11374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11375 break 2
11376 fi
11377done
5213506e
RW
11378 done
11379IFS=$as_save_IFS
1c710c3c 11380
ca9f4b81
AO
11381fi
11382fi
1c710c3c 11383LD=$ac_cv_prog_LD
ca9f4b81 11384if test -n "$LD"; then
5213506e
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11386$as_echo "$LD" >&6; }
ca9f4b81 11387else
5213506e
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389$as_echo "no" >&6; }
ca9f4b81
AO
11390fi
11391
5213506e 11392
2693c0b0
PB
11393 fi
11394 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11399if ${ac_cv_prog_LD+:} false; then :
5213506e 11400 $as_echo_n "(cached) " >&6
ca9f4b81 11401else
2693c0b0
PB
11402 if test -n "$LD"; then
11403 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 11404else
1c710c3c
DJ
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
5213506e 11410 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11412 ac_cv_prog_LD="${ncn_progname}"
5213506e 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11414 break 2
11415 fi
11416done
5213506e
RW
11417 done
11418IFS=$as_save_IFS
1c710c3c 11419
ca9f4b81
AO
11420fi
11421fi
1c710c3c 11422LD=$ac_cv_prog_LD
2693c0b0 11423if test -n "$LD"; then
5213506e
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11425$as_echo "$LD" >&6; }
ca9f4b81 11426else
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
ca9f4b81 11429fi
1c710c3c 11430
5213506e 11431
2693c0b0
PB
11432 fi
11433 test -n "$ac_cv_prog_LD" && break
11434done
11435
11436if test -z "$ac_cv_prog_LD" ; then
11437 set dummy ld
11438 if test $build = $host ; then
11439 LD="$2"
ca9f4b81 11440 else
2693c0b0 11441 LD="${ncn_tool_prefix}$2"
ca9f4b81 11442 fi
ca9f4b81
AO
11443fi
11444
278a7a38
AO
11445
11446
11447if test -n "$LIPO"; then
11448 ac_cv_prog_LIPO=$LIPO
11449elif test -n "$ac_cv_prog_LIPO"; then
11450 LIPO=$ac_cv_prog_LIPO
11451fi
11452
11453if test -n "$ac_cv_prog_LIPO"; then
11454 for ncn_progname in lipo; do
11455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11456set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11459if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11460 $as_echo_n "(cached) " >&6
278a7a38
AO
11461else
11462 if test -n "$LIPO"; then
11463 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11464else
11465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466for as_dir in $PATH
11467do
11468 IFS=$as_save_IFS
11469 test -z "$as_dir" && as_dir=.
5213506e 11470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11472 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11474 break 2
11475 fi
11476done
5213506e
RW
11477 done
11478IFS=$as_save_IFS
278a7a38
AO
11479
11480fi
11481fi
11482LIPO=$ac_cv_prog_LIPO
11483if test -n "$LIPO"; then
5213506e
RW
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11485$as_echo "$LIPO" >&6; }
278a7a38 11486else
5213506e
RW
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488$as_echo "no" >&6; }
278a7a38
AO
11489fi
11490
5213506e 11491
278a7a38
AO
11492 done
11493fi
11494
11495for ncn_progname in lipo; do
2abefe3d
PB
11496 if test -n "$ncn_tool_prefix"; then
11497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11498set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11500$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11501if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11502 $as_echo_n "(cached) " >&6
2abefe3d
PB
11503else
11504 if test -n "$LIPO"; then
11505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11506else
1c710c3c
DJ
11507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508for as_dir in $PATH
11509do
11510 IFS=$as_save_IFS
11511 test -z "$as_dir" && as_dir=.
5213506e 11512 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11514 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 11515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11516 break 2
11517 fi
11518done
5213506e
RW
11519 done
11520IFS=$as_save_IFS
1c710c3c 11521
2abefe3d
PB
11522fi
11523fi
1c710c3c 11524LIPO=$ac_cv_prog_LIPO
2abefe3d 11525if test -n "$LIPO"; then
5213506e
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11527$as_echo "$LIPO" >&6; }
2abefe3d 11528else
5213506e
RW
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11530$as_echo "no" >&6; }
2abefe3d
PB
11531fi
11532
5213506e 11533
2abefe3d
PB
11534 fi
11535 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11537set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11540if ${ac_cv_prog_LIPO+:} false; then :
5213506e 11541 $as_echo_n "(cached) " >&6
2abefe3d
PB
11542else
11543 if test -n "$LIPO"; then
11544 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11545else
1c710c3c
DJ
11546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
5213506e 11551 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11553 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11555 break 2
11556 fi
11557done
5213506e
RW
11558 done
11559IFS=$as_save_IFS
1c710c3c 11560
2abefe3d
PB
11561fi
11562fi
1c710c3c 11563LIPO=$ac_cv_prog_LIPO
2abefe3d 11564if test -n "$LIPO"; then
5213506e
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11566$as_echo "$LIPO" >&6; }
2abefe3d 11567else
5213506e
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
2abefe3d 11570fi
1c710c3c 11571
5213506e 11572
2abefe3d
PB
11573 fi
11574 test -n "$ac_cv_prog_LIPO" && break
11575done
11576
11577if test -z "$ac_cv_prog_LIPO" ; then
11578 set dummy lipo
11579 if test $build = $host ; then
11580 LIPO="$2"
11581 else
11582 LIPO="${ncn_tool_prefix}$2"
11583 fi
11584fi
11585
278a7a38
AO
11586
11587
11588if test -n "$NM"; then
11589 ac_cv_prog_NM=$NM
11590elif test -n "$ac_cv_prog_NM"; then
11591 NM=$ac_cv_prog_NM
11592fi
11593
11594if test -n "$ac_cv_prog_NM"; then
11595 for ncn_progname in nm; do
11596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11597set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11600if ${ac_cv_prog_NM+:} false; then :
5213506e 11601 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11602else
11603 if test -n "$NM"; then
11604 ac_cv_prog_NM="$NM" # Let the user override the test.
11605else
1c710c3c
DJ
11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607for as_dir in $PATH
11608do
11609 IFS=$as_save_IFS
11610 test -z "$as_dir" && as_dir=.
5213506e 11611 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11613 ac_cv_prog_NM="${ncn_progname}"
5213506e 11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11615 break 2
11616 fi
11617done
5213506e
RW
11618 done
11619IFS=$as_save_IFS
1c710c3c 11620
ca9f4b81
AO
11621fi
11622fi
1c710c3c 11623NM=$ac_cv_prog_NM
ca9f4b81 11624if test -n "$NM"; then
5213506e
RW
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11626$as_echo "$NM" >&6; }
ca9f4b81 11627else
5213506e
RW
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629$as_echo "no" >&6; }
ca9f4b81
AO
11630fi
11631
5213506e 11632
278a7a38
AO
11633 done
11634fi
11635
11636for ncn_progname in nm; do
11637 if test -n "$ncn_tool_prefix"; then
11638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11639set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11642if ${ac_cv_prog_NM+:} false; then :
5213506e 11643 $as_echo_n "(cached) " >&6
ca9f4b81 11644else
2693c0b0
PB
11645 if test -n "$NM"; then
11646 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11647else
1c710c3c
DJ
11648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
5213506e 11653 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11655 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11657 break 2
11658 fi
11659done
5213506e
RW
11660 done
11661IFS=$as_save_IFS
1c710c3c 11662
ca9f4b81
AO
11663fi
11664fi
1c710c3c 11665NM=$ac_cv_prog_NM
2693c0b0 11666if test -n "$NM"; then
5213506e
RW
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11668$as_echo "$NM" >&6; }
ca9f4b81 11669else
5213506e
RW
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671$as_echo "no" >&6; }
ca9f4b81 11672fi
1c710c3c 11673
5213506e 11674
2693c0b0 11675 fi
278a7a38
AO
11676 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11681if ${ac_cv_prog_NM+:} false; then :
5213506e 11682 $as_echo_n "(cached) " >&6
278a7a38
AO
11683else
11684 if test -n "$NM"; then
11685 ac_cv_prog_NM="$NM" # Let the user override the test.
11686else
11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688for as_dir in $PATH
11689do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
5213506e 11692 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11694 ac_cv_prog_NM="${ncn_progname}"
5213506e 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11696 break 2
11697 fi
11698done
5213506e
RW
11699 done
11700IFS=$as_save_IFS
278a7a38
AO
11701
11702fi
11703fi
11704NM=$ac_cv_prog_NM
11705if test -n "$NM"; then
5213506e
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11707$as_echo "$NM" >&6; }
278a7a38 11708else
5213506e
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
278a7a38
AO
11711fi
11712
5213506e 11713
278a7a38
AO
11714 fi
11715 test -n "$ac_cv_prog_NM" && break
11716done
11717
11718if test -z "$ac_cv_prog_NM" ; then
11719 set dummy nm
11720 if test $build = $host ; then
11721 NM="$2"
11722 else
11723 NM="${ncn_tool_prefix}$2"
11724 fi
11725fi
11726
11727
11728
11729if test -n "$RANLIB"; then
11730 ac_cv_prog_RANLIB=$RANLIB
11731elif test -n "$ac_cv_prog_RANLIB"; then
11732 RANLIB=$ac_cv_prog_RANLIB
11733fi
11734
11735if test -n "$ac_cv_prog_RANLIB"; then
11736 for ncn_progname in ranlib; do
11737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11738set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11741if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11742 $as_echo_n "(cached) " >&6
278a7a38
AO
11743else
11744 if test -n "$RANLIB"; then
11745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11746else
11747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
5213506e 11752 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11754 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11756 break 2
11757 fi
11758done
5213506e
RW
11759 done
11760IFS=$as_save_IFS
278a7a38
AO
11761
11762fi
11763fi
11764RANLIB=$ac_cv_prog_RANLIB
11765if test -n "$RANLIB"; then
5213506e
RW
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11767$as_echo "$RANLIB" >&6; }
278a7a38 11768else
5213506e
RW
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11770$as_echo "no" >&6; }
278a7a38
AO
11771fi
11772
5213506e 11773
278a7a38
AO
11774 done
11775fi
ca9f4b81 11776
278a7a38 11777for ncn_progname in ranlib; do
2693c0b0
PB
11778 if test -n "$ncn_tool_prefix"; then
11779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11780set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11783if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11784 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11785else
11786 if test -n "$RANLIB"; then
11787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11788else
1c710c3c
DJ
11789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790for as_dir in $PATH
11791do
11792 IFS=$as_save_IFS
11793 test -z "$as_dir" && as_dir=.
5213506e 11794 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11796 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11798 break 2
11799 fi
11800done
5213506e
RW
11801 done
11802IFS=$as_save_IFS
1c710c3c 11803
ca9f4b81
AO
11804fi
11805fi
1c710c3c 11806RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11807if test -n "$RANLIB"; then
5213506e
RW
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11809$as_echo "$RANLIB" >&6; }
ca9f4b81 11810else
5213506e
RW
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812$as_echo "no" >&6; }
ca9f4b81
AO
11813fi
11814
5213506e 11815
2693c0b0
PB
11816 fi
11817 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11819set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11821$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11822if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11823 $as_echo_n "(cached) " >&6
ca9f4b81 11824else
2693c0b0
PB
11825 if test -n "$RANLIB"; then
11826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11827else
1c710c3c
DJ
11828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829for as_dir in $PATH
11830do
11831 IFS=$as_save_IFS
11832 test -z "$as_dir" && as_dir=.
5213506e 11833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11835 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11837 break 2
11838 fi
11839done
5213506e
RW
11840 done
11841IFS=$as_save_IFS
1c710c3c 11842
ca9f4b81
AO
11843fi
11844fi
1c710c3c 11845RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11846if test -n "$RANLIB"; then
5213506e
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11848$as_echo "$RANLIB" >&6; }
ca9f4b81 11849else
5213506e
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
ca9f4b81 11852fi
1c710c3c 11853
5213506e 11854
ca9f4b81 11855 fi
2693c0b0
PB
11856 test -n "$ac_cv_prog_RANLIB" && break
11857done
11858
11859if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11860 RANLIB="true"
ca9f4b81
AO
11861fi
11862
278a7a38
AO
11863
11864
11865if test -n "$STRIP"; then
11866 ac_cv_prog_STRIP=$STRIP
11867elif test -n "$ac_cv_prog_STRIP"; then
11868 STRIP=$ac_cv_prog_STRIP
11869fi
11870
11871if test -n "$ac_cv_prog_STRIP"; then
11872 for ncn_progname in strip; do
11873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11874set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11877if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11878 $as_echo_n "(cached) " >&6
278a7a38
AO
11879else
11880 if test -n "$STRIP"; then
11881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11882else
11883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884for as_dir in $PATH
11885do
11886 IFS=$as_save_IFS
11887 test -z "$as_dir" && as_dir=.
5213506e 11888 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11890 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11892 break 2
11893 fi
11894done
5213506e
RW
11895 done
11896IFS=$as_save_IFS
278a7a38
AO
11897
11898fi
11899fi
11900STRIP=$ac_cv_prog_STRIP
11901if test -n "$STRIP"; then
5213506e
RW
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11903$as_echo "$STRIP" >&6; }
278a7a38 11904else
5213506e
RW
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906$as_echo "no" >&6; }
278a7a38
AO
11907fi
11908
5213506e 11909
278a7a38
AO
11910 done
11911fi
11912
11913for ncn_progname in strip; do
2abefe3d
PB
11914 if test -n "$ncn_tool_prefix"; then
11915 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11916set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11918$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11919if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11920 $as_echo_n "(cached) " >&6
2abefe3d
PB
11921else
11922 if test -n "$STRIP"; then
11923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11924else
1c710c3c
DJ
11925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926for as_dir in $PATH
11927do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
5213506e 11930 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11932 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11934 break 2
11935 fi
11936done
5213506e
RW
11937 done
11938IFS=$as_save_IFS
1c710c3c 11939
2abefe3d
PB
11940fi
11941fi
1c710c3c 11942STRIP=$ac_cv_prog_STRIP
2abefe3d 11943if test -n "$STRIP"; then
5213506e
RW
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11945$as_echo "$STRIP" >&6; }
2abefe3d 11946else
5213506e
RW
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948$as_echo "no" >&6; }
2abefe3d
PB
11949fi
11950
5213506e 11951
2abefe3d
PB
11952 fi
11953 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11955set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11957$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11958if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11959 $as_echo_n "(cached) " >&6
2abefe3d
PB
11960else
11961 if test -n "$STRIP"; then
11962 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11963else
1c710c3c
DJ
11964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965for as_dir in $PATH
11966do
11967 IFS=$as_save_IFS
11968 test -z "$as_dir" && as_dir=.
5213506e 11969 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11971 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11973 break 2
11974 fi
11975done
5213506e
RW
11976 done
11977IFS=$as_save_IFS
1c710c3c 11978
2abefe3d
PB
11979fi
11980fi
1c710c3c 11981STRIP=$ac_cv_prog_STRIP
2abefe3d 11982if test -n "$STRIP"; then
5213506e
RW
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11984$as_echo "$STRIP" >&6; }
2abefe3d 11985else
5213506e
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
2abefe3d 11988fi
1c710c3c 11989
5213506e 11990
2abefe3d
PB
11991 fi
11992 test -n "$ac_cv_prog_STRIP" && break
11993done
11994
11995if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11996 STRIP="true"
2abefe3d
PB
11997fi
11998
278a7a38
AO
11999
12000
12001if test -n "$WINDRES"; then
12002 ac_cv_prog_WINDRES=$WINDRES
12003elif test -n "$ac_cv_prog_WINDRES"; then
12004 WINDRES=$ac_cv_prog_WINDRES
12005fi
12006
12007if test -n "$ac_cv_prog_WINDRES"; then
12008 for ncn_progname in windres; do
12009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12010set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12013if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12014 $as_echo_n "(cached) " >&6
278a7a38
AO
12015else
12016 if test -n "$WINDRES"; then
12017 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12018else
12019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020for as_dir in $PATH
12021do
12022 IFS=$as_save_IFS
12023 test -z "$as_dir" && as_dir=.
5213506e 12024 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12026 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12028 break 2
12029 fi
12030done
5213506e
RW
12031 done
12032IFS=$as_save_IFS
278a7a38
AO
12033
12034fi
12035fi
12036WINDRES=$ac_cv_prog_WINDRES
12037if test -n "$WINDRES"; then
5213506e
RW
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12039$as_echo "$WINDRES" >&6; }
278a7a38 12040else
5213506e
RW
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042$as_echo "no" >&6; }
278a7a38
AO
12043fi
12044
5213506e 12045
278a7a38
AO
12046 done
12047fi
12048
12049for ncn_progname in windres; do
2693c0b0
PB
12050 if test -n "$ncn_tool_prefix"; then
12051 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12052set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12055if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12056 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12057else
12058 if test -n "$WINDRES"; then
12059 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12060else
1c710c3c
DJ
12061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062for as_dir in $PATH
12063do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
5213506e 12066 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12068 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12070 break 2
12071 fi
12072done
5213506e
RW
12073 done
12074IFS=$as_save_IFS
1c710c3c 12075
ca9f4b81
AO
12076fi
12077fi
1c710c3c 12078WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 12079if test -n "$WINDRES"; then
5213506e
RW
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12081$as_echo "$WINDRES" >&6; }
ca9f4b81 12082else
5213506e
RW
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084$as_echo "no" >&6; }
ca9f4b81
AO
12085fi
12086
5213506e 12087
2693c0b0
PB
12088 fi
12089 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12091set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12094if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 12095 $as_echo_n "(cached) " >&6
ca9f4b81 12096else
2693c0b0
PB
12097 if test -n "$WINDRES"; then
12098 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 12099else
1c710c3c
DJ
12100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $PATH
12102do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
5213506e 12105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12107 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12109 break 2
12110 fi
12111done
5213506e
RW
12112 done
12113IFS=$as_save_IFS
1c710c3c 12114
ca9f4b81
AO
12115fi
12116fi
1c710c3c 12117WINDRES=$ac_cv_prog_WINDRES
2693c0b0 12118if test -n "$WINDRES"; then
5213506e
RW
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12120$as_echo "$WINDRES" >&6; }
ca9f4b81 12121else
5213506e
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
ca9f4b81 12124fi
1c710c3c 12125
5213506e 12126
2693c0b0
PB
12127 fi
12128 test -n "$ac_cv_prog_WINDRES" && break
12129done
12130
12131if test -z "$ac_cv_prog_WINDRES" ; then
12132 set dummy windres
12133 if test $build = $host ; then
12134 WINDRES="$2"
ca9f4b81 12135 else
2693c0b0 12136 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 12137 fi
ca9f4b81
AO
12138fi
12139
278a7a38
AO
12140
12141
901119ae
KT
12142if test -n "$WINDMC"; then
12143 ac_cv_prog_WINDMC=$WINDMC
12144elif test -n "$ac_cv_prog_WINDMC"; then
12145 WINDMC=$ac_cv_prog_WINDMC
12146fi
12147
12148if test -n "$ac_cv_prog_WINDMC"; then
12149 for ncn_progname in windmc; do
12150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12151set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12153$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12154if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12155 $as_echo_n "(cached) " >&6
901119ae
KT
12156else
12157 if test -n "$WINDMC"; then
12158 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12159else
12160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161for as_dir in $PATH
12162do
12163 IFS=$as_save_IFS
12164 test -z "$as_dir" && as_dir=.
5213506e 12165 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12167 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12169 break 2
12170 fi
12171done
5213506e
RW
12172 done
12173IFS=$as_save_IFS
901119ae
KT
12174
12175fi
12176fi
12177WINDMC=$ac_cv_prog_WINDMC
12178if test -n "$WINDMC"; then
5213506e
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12180$as_echo "$WINDMC" >&6; }
901119ae 12181else
5213506e
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12183$as_echo "no" >&6; }
901119ae
KT
12184fi
12185
5213506e 12186
901119ae
KT
12187 done
12188fi
12189
12190for ncn_progname in windmc; do
12191 if test -n "$ncn_tool_prefix"; then
12192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12193set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12196if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12197 $as_echo_n "(cached) " >&6
901119ae
KT
12198else
12199 if test -n "$WINDMC"; then
12200 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12201else
12202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203for as_dir in $PATH
12204do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
5213506e 12207 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12209 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12211 break 2
12212 fi
12213done
5213506e
RW
12214 done
12215IFS=$as_save_IFS
901119ae
KT
12216
12217fi
12218fi
12219WINDMC=$ac_cv_prog_WINDMC
12220if test -n "$WINDMC"; then
5213506e
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12222$as_echo "$WINDMC" >&6; }
901119ae 12223else
5213506e
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
901119ae
KT
12226fi
12227
5213506e 12228
901119ae
KT
12229 fi
12230 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12232set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12235if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 12236 $as_echo_n "(cached) " >&6
901119ae
KT
12237else
12238 if test -n "$WINDMC"; then
12239 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12240else
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
5213506e 12246 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 12248 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12250 break 2
12251 fi
12252done
5213506e
RW
12253 done
12254IFS=$as_save_IFS
901119ae
KT
12255
12256fi
12257fi
12258WINDMC=$ac_cv_prog_WINDMC
12259if test -n "$WINDMC"; then
5213506e
RW
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12261$as_echo "$WINDMC" >&6; }
901119ae 12262else
5213506e
RW
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264$as_echo "no" >&6; }
901119ae
KT
12265fi
12266
5213506e 12267
901119ae
KT
12268 fi
12269 test -n "$ac_cv_prog_WINDMC" && break
12270done
12271
12272if test -z "$ac_cv_prog_WINDMC" ; then
12273 set dummy windmc
12274 if test $build = $host ; then
12275 WINDMC="$2"
12276 else
12277 WINDMC="${ncn_tool_prefix}$2"
12278 fi
12279fi
12280
12281
12282
278a7a38
AO
12283if test -n "$OBJCOPY"; then
12284 ac_cv_prog_OBJCOPY=$OBJCOPY
12285elif test -n "$ac_cv_prog_OBJCOPY"; then
12286 OBJCOPY=$ac_cv_prog_OBJCOPY
12287fi
12288
12289if test -n "$ac_cv_prog_OBJCOPY"; then
12290 for ncn_progname in objcopy; do
12291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12295if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12296 $as_echo_n "(cached) " >&6
278a7a38
AO
12297else
12298 if test -n "$OBJCOPY"; then
12299 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12300else
12301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302for as_dir in $PATH
12303do
12304 IFS=$as_save_IFS
12305 test -z "$as_dir" && as_dir=.
5213506e 12306 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12308 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12310 break 2
12311 fi
12312done
5213506e
RW
12313 done
12314IFS=$as_save_IFS
278a7a38
AO
12315
12316fi
12317fi
12318OBJCOPY=$ac_cv_prog_OBJCOPY
12319if test -n "$OBJCOPY"; then
5213506e
RW
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12321$as_echo "$OBJCOPY" >&6; }
278a7a38 12322else
5213506e
RW
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324$as_echo "no" >&6; }
278a7a38
AO
12325fi
12326
5213506e 12327
278a7a38
AO
12328 done
12329fi
12330
12331for ncn_progname in objcopy; do
2693c0b0
PB
12332 if test -n "$ncn_tool_prefix"; then
12333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12337if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12338 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12339else
12340 if test -n "$OBJCOPY"; then
12341 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12342else
1c710c3c
DJ
12343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344for as_dir in $PATH
12345do
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
5213506e 12348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12350 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 12351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12352 break 2
12353 fi
12354done
5213506e
RW
12355 done
12356IFS=$as_save_IFS
1c710c3c 12357
ca9f4b81
AO
12358fi
12359fi
1c710c3c 12360OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 12361if test -n "$OBJCOPY"; then
5213506e
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12363$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12364else
5213506e
RW
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12366$as_echo "no" >&6; }
ca9f4b81
AO
12367fi
12368
5213506e 12369
2693c0b0
PB
12370 fi
12371 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12376if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 12377 $as_echo_n "(cached) " >&6
ca9f4b81 12378else
2693c0b0
PB
12379 if test -n "$OBJCOPY"; then
12380 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 12381else
1c710c3c
DJ
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
5213506e 12387 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12389 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12391 break 2
12392 fi
12393done
5213506e
RW
12394 done
12395IFS=$as_save_IFS
1c710c3c 12396
ca9f4b81
AO
12397fi
12398fi
1c710c3c 12399OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 12400if test -n "$OBJCOPY"; then
5213506e
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12402$as_echo "$OBJCOPY" >&6; }
ca9f4b81 12403else
5213506e
RW
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405$as_echo "no" >&6; }
ca9f4b81 12406fi
1c710c3c 12407
5213506e 12408
2693c0b0
PB
12409 fi
12410 test -n "$ac_cv_prog_OBJCOPY" && break
12411done
12412
12413if test -z "$ac_cv_prog_OBJCOPY" ; then
12414 set dummy objcopy
12415 if test $build = $host ; then
12416 OBJCOPY="$2"
ca9f4b81 12417 else
2693c0b0 12418 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 12419 fi
ca9f4b81
AO
12420fi
12421
278a7a38
AO
12422
12423
12424if test -n "$OBJDUMP"; then
12425 ac_cv_prog_OBJDUMP=$OBJDUMP
12426elif test -n "$ac_cv_prog_OBJDUMP"; then
12427 OBJDUMP=$ac_cv_prog_OBJDUMP
12428fi
12429
12430if test -n "$ac_cv_prog_OBJDUMP"; then
12431 for ncn_progname in objdump; do
12432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12436if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12437 $as_echo_n "(cached) " >&6
278a7a38
AO
12438else
12439 if test -n "$OBJDUMP"; then
12440 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12441else
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
5213506e 12447 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12449 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12451 break 2
12452 fi
12453done
5213506e
RW
12454 done
12455IFS=$as_save_IFS
278a7a38
AO
12456
12457fi
12458fi
12459OBJDUMP=$ac_cv_prog_OBJDUMP
12460if test -n "$OBJDUMP"; then
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12462$as_echo "$OBJDUMP" >&6; }
278a7a38 12463else
5213506e
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
278a7a38
AO
12466fi
12467
5213506e 12468
278a7a38
AO
12469 done
12470fi
12471
12472for ncn_progname in objdump; do
2693c0b0
PB
12473 if test -n "$ncn_tool_prefix"; then
12474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12477$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12478if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12479 $as_echo_n "(cached) " >&6
ca9f4b81
AO
12480else
12481 if test -n "$OBJDUMP"; then
12482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12483else
1c710c3c
DJ
12484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485for as_dir in $PATH
12486do
12487 IFS=$as_save_IFS
12488 test -z "$as_dir" && as_dir=.
5213506e 12489 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12491 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 12492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12493 break 2
12494 fi
12495done
5213506e
RW
12496 done
12497IFS=$as_save_IFS
1c710c3c 12498
ca9f4b81
AO
12499fi
12500fi
1c710c3c 12501OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 12502if test -n "$OBJDUMP"; then
5213506e
RW
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12504$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12505else
5213506e
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12507$as_echo "no" >&6; }
ca9f4b81
AO
12508fi
12509
5213506e 12510
2693c0b0
PB
12511 fi
12512 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12514set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12517if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 12518 $as_echo_n "(cached) " >&6
ca9f4b81 12519else
2693c0b0
PB
12520 if test -n "$OBJDUMP"; then
12521 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 12522else
1c710c3c
DJ
12523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524for as_dir in $PATH
12525do
12526 IFS=$as_save_IFS
12527 test -z "$as_dir" && as_dir=.
5213506e 12528 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12530 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12532 break 2
12533 fi
12534done
5213506e
RW
12535 done
12536IFS=$as_save_IFS
1c710c3c 12537
ca9f4b81
AO
12538fi
12539fi
1c710c3c 12540OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 12541if test -n "$OBJDUMP"; then
5213506e
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12543$as_echo "$OBJDUMP" >&6; }
ca9f4b81 12544else
5213506e
RW
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546$as_echo "no" >&6; }
ca9f4b81 12547fi
1c710c3c 12548
5213506e 12549
2693c0b0
PB
12550 fi
12551 test -n "$ac_cv_prog_OBJDUMP" && break
12552done
12553
12554if test -z "$ac_cv_prog_OBJDUMP" ; then
12555 set dummy objdump
12556 if test $build = $host ; then
12557 OBJDUMP="$2"
ca9f4b81 12558 else
2693c0b0 12559 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 12560 fi
ca9f4b81
AO
12561fi
12562
671aa708
NN
12563
12564
e4a9a572
IS
12565if test -n "$OTOOL"; then
12566 ac_cv_prog_OTOOL=$OTOOL
12567elif test -n "$ac_cv_prog_OTOOL"; then
12568 OTOOL=$ac_cv_prog_OTOOL
12569fi
12570
12571if test -n "$ac_cv_prog_OTOOL"; then
12572 for ncn_progname in otool; do
12573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12574set dummy ${ncn_progname}; ac_word=$2
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576$as_echo_n "checking for $ac_word... " >&6; }
12577if ${ac_cv_prog_OTOOL+:} false; then :
12578 $as_echo_n "(cached) " >&6
12579else
12580 if test -n "$OTOOL"; then
12581 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12582else
12583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584for as_dir in $PATH
12585do
12586 IFS=$as_save_IFS
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_OTOOL="${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12592 break 2
12593 fi
12594done
12595 done
12596IFS=$as_save_IFS
12597
12598fi
12599fi
12600OTOOL=$ac_cv_prog_OTOOL
12601if test -n "$OTOOL"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12603$as_echo "$OTOOL" >&6; }
12604else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
12607fi
12608
12609
12610 done
12611fi
12612
12613for ncn_progname in otool; do
12614 if test -n "$ncn_tool_prefix"; then
12615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12616set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12618$as_echo_n "checking for $ac_word... " >&6; }
12619if ${ac_cv_prog_OTOOL+:} false; then :
12620 $as_echo_n "(cached) " >&6
12621else
12622 if test -n "$OTOOL"; then
12623 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12624else
12625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626for as_dir in $PATH
12627do
12628 IFS=$as_save_IFS
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12634 break 2
12635 fi
12636done
12637 done
12638IFS=$as_save_IFS
12639
12640fi
12641fi
12642OTOOL=$ac_cv_prog_OTOOL
12643if test -n "$OTOOL"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12645$as_echo "$OTOOL" >&6; }
12646else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649fi
12650
12651
12652 fi
12653 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12655set dummy ${ncn_progname}; ac_word=$2
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657$as_echo_n "checking for $ac_word... " >&6; }
12658if ${ac_cv_prog_OTOOL+:} false; then :
12659 $as_echo_n "(cached) " >&6
12660else
12661 if test -n "$OTOOL"; then
12662 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12663else
12664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665for as_dir in $PATH
12666do
12667 IFS=$as_save_IFS
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_prog_OTOOL="${ncn_progname}"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 break 2
12674 fi
12675done
12676 done
12677IFS=$as_save_IFS
12678
12679fi
12680fi
12681OTOOL=$ac_cv_prog_OTOOL
12682if test -n "$OTOOL"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12684$as_echo "$OTOOL" >&6; }
12685else
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687$as_echo "no" >&6; }
12688fi
12689
12690
12691 fi
12692 test -n "$ac_cv_prog_OTOOL" && break
12693done
12694
12695if test -z "$ac_cv_prog_OTOOL" ; then
12696 set dummy otool
12697 if test $build = $host ; then
12698 OTOOL="$2"
12699 else
12700 OTOOL="${ncn_tool_prefix}$2"
12701 fi
12702fi
12703
12704
12705
e7a82751
RM
12706if test -n "$READELF"; then
12707 ac_cv_prog_READELF=$READELF
12708elif test -n "$ac_cv_prog_READELF"; then
12709 READELF=$ac_cv_prog_READELF
12710fi
12711
12712if test -n "$ac_cv_prog_READELF"; then
12713 for ncn_progname in readelf; do
12714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12715set dummy ${ncn_progname}; ac_word=$2
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12718if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12719 $as_echo_n "(cached) " >&6
12720else
12721 if test -n "$READELF"; then
12722 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12723else
12724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725for as_dir in $PATH
12726do
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12731 ac_cv_prog_READELF="${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 break 2
12734 fi
12735done
12736 done
12737IFS=$as_save_IFS
12738
12739fi
12740fi
12741READELF=$ac_cv_prog_READELF
12742if test -n "$READELF"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12744$as_echo "$READELF" >&6; }
12745else
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12747$as_echo "no" >&6; }
12748fi
12749
12750
12751 done
12752fi
12753
12754for ncn_progname in readelf; do
12755 if test -n "$ncn_tool_prefix"; then
12756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12757set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12760if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12761 $as_echo_n "(cached) " >&6
12762else
12763 if test -n "$READELF"; then
12764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12765else
12766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767for as_dir in $PATH
12768do
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12773 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12776 fi
12777done
12778 done
12779IFS=$as_save_IFS
12780
12781fi
12782fi
12783READELF=$ac_cv_prog_READELF
12784if test -n "$READELF"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12786$as_echo "$READELF" >&6; }
12787else
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789$as_echo "no" >&6; }
12790fi
12791
12792
12793 fi
12794 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12796set dummy ${ncn_progname}; ac_word=$2
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12798$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12799if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12800 $as_echo_n "(cached) " >&6
12801else
12802 if test -n "$READELF"; then
12803 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12804else
12805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12806for as_dir in $PATH
12807do
12808 IFS=$as_save_IFS
12809 test -z "$as_dir" && as_dir=.
12810 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12812 ac_cv_prog_READELF="${ncn_progname}"
12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 break 2
12815 fi
12816done
12817 done
12818IFS=$as_save_IFS
12819
12820fi
12821fi
12822READELF=$ac_cv_prog_READELF
12823if test -n "$READELF"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12825$as_echo "$READELF" >&6; }
12826else
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828$as_echo "no" >&6; }
12829fi
12830
12831
12832 fi
12833 test -n "$ac_cv_prog_READELF" && break
12834done
12835
12836if test -z "$ac_cv_prog_READELF" ; then
12837 set dummy readelf
12838 if test $build = $host ; then
12839 READELF="$2"
12840 else
12841 READELF="${ncn_tool_prefix}$2"
12842 fi
12843fi
12844
12845
12846
671aa708
NN
12847
12848
12849
5fee5ec3
IB
12850
12851
2abefe3d 12852# Target tools.
1c710c3c 12853
5213506e
RW
12854# Check whether --with-build-time-tools was given.
12855if test "${with_build_time_tools+set}" = set; then :
12856 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12857 x/*) ;;
12858 *)
12859 with_build_time_tools=
5213506e
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12861$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12862 ;;
12863 esac
ca9f4b81 12864else
e8b05380 12865 with_build_time_tools=
5213506e
RW
12866fi
12867
ca9f4b81 12868
278a7a38
AO
12869
12870
12871if test -n "$CC_FOR_TARGET"; then
12872 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12873elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12874 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12875fi
12876
12877if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12878 for ncn_progname in cc gcc; do
12879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12880set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12882$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12883if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12884 $as_echo_n "(cached) " >&6
278a7a38
AO
12885else
12886 if test -n "$CC_FOR_TARGET"; then
12887 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12888else
12889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890for as_dir in $PATH
12891do
12892 IFS=$as_save_IFS
12893 test -z "$as_dir" && as_dir=.
5213506e 12894 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12896 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12898 break 2
12899 fi
12900done
5213506e
RW
12901 done
12902IFS=$as_save_IFS
278a7a38
AO
12903
12904fi
12905fi
12906CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12907if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12909$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12910else
5213506e
RW
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912$as_echo "no" >&6; }
278a7a38
AO
12913fi
12914
5213506e 12915
278a7a38
AO
12916 done
12917fi
12918
12919if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12920 for ncn_progname in cc gcc; do
5213506e
RW
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12922$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12923 if test -x $with_build_time_tools/${ncn_progname}; then
12924 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12926$as_echo "yes" >&6; }
72a7ab82 12927 break
e8b05380 12928 else
5213506e
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
72a7ab82
AP
12931 fi
12932 done
4de997d1
PB
12933fi
12934
e8b05380
PB
12935if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12936 for ncn_progname in cc gcc; do
12937 if test -n "$ncn_target_tool_prefix"; then
12938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12939set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12942if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12943 $as_echo_n "(cached) " >&6
4de997d1
PB
12944else
12945 if test -n "$CC_FOR_TARGET"; then
12946 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12947else
1c710c3c
DJ
12948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
5213506e 12953 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12955 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12957 break 2
12958 fi
12959done
5213506e
RW
12960 done
12961IFS=$as_save_IFS
1c710c3c 12962
4de997d1
PB
12963fi
12964fi
1c710c3c 12965CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12966if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12968$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12969else
5213506e
RW
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971$as_echo "no" >&6; }
4de997d1
PB
12972fi
12973
5213506e 12974
e8b05380
PB
12975 fi
12976 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12978set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12981if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12982 $as_echo_n "(cached) " >&6
4de997d1 12983else
2693c0b0
PB
12984 if test -n "$CC_FOR_TARGET"; then
12985 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12986else
1c710c3c
DJ
12987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12988for as_dir in $PATH
12989do
12990 IFS=$as_save_IFS
12991 test -z "$as_dir" && as_dir=.
5213506e 12992 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12994 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12996 break 2
12997 fi
12998done
5213506e
RW
12999 done
13000IFS=$as_save_IFS
1c710c3c 13001
4de997d1
PB
13002fi
13003fi
1c710c3c 13004CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 13005if test -n "$CC_FOR_TARGET"; then
5213506e
RW
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13007$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 13008else
5213506e
RW
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010$as_echo "no" >&6; }
4de997d1 13011fi
1c710c3c 13012
5213506e 13013
e8b05380
PB
13014 fi
13015 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13016 done
13017fi
1c710c3c 13018
2693c0b0
PB
13019if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13020 set dummy cc gcc
13021 if test $build = $target ; then
13022 CC_FOR_TARGET="$2"
4de997d1 13023 else
2693c0b0 13024 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13025 fi
1c00b503
PB
13026else
13027 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
13028fi
13029
278a7a38
AO
13030
13031
13032if test -n "$CXX_FOR_TARGET"; then
13033 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13034elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13035 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13036fi
13037
13038if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13039 for ncn_progname in c++ g++ cxx gxx; do
13040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13041set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13043$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13044if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13045 $as_echo_n "(cached) " >&6
278a7a38
AO
13046else
13047 if test -n "$CXX_FOR_TARGET"; then
13048 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13049else
13050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051for as_dir in $PATH
13052do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
5213506e 13055 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13057 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13059 break 2
13060 fi
13061done
5213506e
RW
13062 done
13063IFS=$as_save_IFS
278a7a38
AO
13064
13065fi
13066fi
13067CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13068if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13070$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 13071else
5213506e
RW
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13073$as_echo "no" >&6; }
278a7a38
AO
13074fi
13075
5213506e 13076
278a7a38
AO
13077 done
13078fi
13079
13080if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13081 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13083$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13084 if test -x $with_build_time_tools/${ncn_progname}; then
13085 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13087$as_echo "yes" >&6; }
e8b05380
PB
13088 break
13089 else
5213506e
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
e8b05380
PB
13092 fi
13093 done
13094fi
13095
13096if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13097 for ncn_progname in c++ g++ cxx gxx; do
13098 if test -n "$ncn_target_tool_prefix"; then
13099 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13100set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13102$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13103if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13104 $as_echo_n "(cached) " >&6
4de997d1
PB
13105else
13106 if test -n "$CXX_FOR_TARGET"; then
13107 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13108else
1c710c3c
DJ
13109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13110for as_dir in $PATH
13111do
13112 IFS=$as_save_IFS
13113 test -z "$as_dir" && as_dir=.
5213506e 13114 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13116 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13118 break 2
13119 fi
13120done
5213506e
RW
13121 done
13122IFS=$as_save_IFS
1c710c3c 13123
4de997d1
PB
13124fi
13125fi
1c710c3c 13126CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 13127if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13129$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13130else
5213506e
RW
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13132$as_echo "no" >&6; }
4de997d1
PB
13133fi
13134
5213506e 13135
e8b05380
PB
13136 fi
13137 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13139set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13141$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13142if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 13143 $as_echo_n "(cached) " >&6
4de997d1 13144else
2693c0b0
PB
13145 if test -n "$CXX_FOR_TARGET"; then
13146 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 13147else
1c710c3c
DJ
13148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151 IFS=$as_save_IFS
13152 test -z "$as_dir" && as_dir=.
5213506e 13153 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13155 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13157 break 2
13158 fi
13159done
5213506e
RW
13160 done
13161IFS=$as_save_IFS
1c710c3c 13162
4de997d1
PB
13163fi
13164fi
1c710c3c 13165CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 13166if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13168$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 13169else
5213506e
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171$as_echo "no" >&6; }
4de997d1 13172fi
1c710c3c 13173
5213506e 13174
e8b05380
PB
13175 fi
13176 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13177 done
13178fi
1c710c3c 13179
2693c0b0
PB
13180if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13181 set dummy c++ g++ cxx gxx
13182 if test $build = $target ; then
13183 CXX_FOR_TARGET="$2"
4de997d1 13184 else
2693c0b0 13185 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13186 fi
1c00b503
PB
13187else
13188 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
13189fi
13190
278a7a38
AO
13191
13192
13193if test -n "$GCC_FOR_TARGET"; then
13194 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13195elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13196 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13197fi
13198
13199if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13200 for ncn_progname in gcc; do
13201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13202set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13204$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13205if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13206 $as_echo_n "(cached) " >&6
278a7a38
AO
13207else
13208 if test -n "$GCC_FOR_TARGET"; then
13209 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13210else
13211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13212for as_dir in $PATH
13213do
13214 IFS=$as_save_IFS
13215 test -z "$as_dir" && as_dir=.
5213506e 13216 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13218 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13220 break 2
13221 fi
13222done
5213506e
RW
13223 done
13224IFS=$as_save_IFS
278a7a38
AO
13225
13226fi
13227fi
13228GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13229if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13231$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 13232else
5213506e
RW
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234$as_echo "no" >&6; }
278a7a38
AO
13235fi
13236
5213506e 13237
278a7a38
AO
13238 done
13239fi
13240
13241if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13242 for ncn_progname in gcc; do
5213506e
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13244$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13245 if test -x $with_build_time_tools/${ncn_progname}; then
13246 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13248$as_echo "yes" >&6; }
e8b05380
PB
13249 break
13250 else
5213506e
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13252$as_echo "no" >&6; }
e8b05380
PB
13253 fi
13254 done
13255fi
13256
13257if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13258 for ncn_progname in gcc; do
13259 if test -n "$ncn_target_tool_prefix"; then
13260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13261set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13264if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13265 $as_echo_n "(cached) " >&6
ca9f4b81 13266else
e8b05380
PB
13267 if test -n "$GCC_FOR_TARGET"; then
13268 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13269else
1c710c3c
DJ
13270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13271for as_dir in $PATH
13272do
13273 IFS=$as_save_IFS
13274 test -z "$as_dir" && as_dir=.
5213506e 13275 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13277 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13279 break 2
13280 fi
13281done
5213506e
RW
13282 done
13283IFS=$as_save_IFS
1c710c3c 13284
ca9f4b81
AO
13285fi
13286fi
1c710c3c 13287GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13288if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13290$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13291else
5213506e
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293$as_echo "no" >&6; }
ca9f4b81
AO
13294fi
13295
5213506e 13296
e8b05380
PB
13297 fi
13298 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13300set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13302$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13303if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 13304 $as_echo_n "(cached) " >&6
ca9f4b81 13305else
e8b05380
PB
13306 if test -n "$GCC_FOR_TARGET"; then
13307 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 13308else
1c710c3c
DJ
13309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13310for as_dir in $PATH
13311do
13312 IFS=$as_save_IFS
13313 test -z "$as_dir" && as_dir=.
5213506e 13314 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13316 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 13317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13318 break 2
13319 fi
13320done
5213506e
RW
13321 done
13322IFS=$as_save_IFS
1c710c3c 13323
ca9f4b81
AO
13324fi
13325fi
1c710c3c 13326GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 13327if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13329$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 13330else
5213506e
RW
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13332$as_echo "no" >&6; }
ca9f4b81 13333fi
1c710c3c 13334
5213506e 13335
e8b05380
PB
13336 fi
13337 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13338 done
13339fi
1c710c3c 13340
e8b05380
PB
13341if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13342 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
13343else
13344 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
13345fi
13346
278a7a38
AO
13347
13348
278a7a38
AO
13349if test -n "$GFORTRAN_FOR_TARGET"; then
13350 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13351elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13352 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
13353fi
13354
278a7a38
AO
13355if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13356 for ncn_progname in gfortran; do
13357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 13358set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13361if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13362 $as_echo_n "(cached) " >&6
e8b05380 13363else
278a7a38
AO
13364 if test -n "$GFORTRAN_FOR_TARGET"; then
13365 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 13366else
1c710c3c
DJ
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
5213506e 13372 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13374 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13376 break 2
13377 fi
13378done
5213506e
RW
13379 done
13380IFS=$as_save_IFS
1c710c3c 13381
e8b05380
PB
13382fi
13383fi
278a7a38
AO
13384GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13385if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13387$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13388else
5213506e
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
e8b05380 13391fi
1c710c3c 13392
5213506e 13393
e8b05380
PB
13394 done
13395fi
1c710c3c 13396
278a7a38 13397if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13398 for ncn_progname in gfortran; do
5213506e
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13400$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13401 if test -x $with_build_time_tools/${ncn_progname}; then
13402 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13404$as_echo "yes" >&6; }
e8b05380
PB
13405 break
13406 else
5213506e
RW
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
e8b05380
PB
13409 fi
13410 done
13411fi
13412
13413if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13414 for ncn_progname in gfortran; do
13415 if test -n "$ncn_target_tool_prefix"; then
13416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13417set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13420if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13421 $as_echo_n "(cached) " >&6
e8b05380
PB
13422else
13423 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
13424 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13425else
13426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427for as_dir in $PATH
13428do
13429 IFS=$as_save_IFS
13430 test -z "$as_dir" && as_dir=.
5213506e 13431 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13433 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13435 break 2
13436 fi
13437done
5213506e
RW
13438 done
13439IFS=$as_save_IFS
1c710c3c 13440
e8b05380
PB
13441fi
13442fi
1c710c3c 13443GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13444if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13446$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13447else
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
e8b05380
PB
13450fi
13451
5213506e 13452
e8b05380
PB
13453 fi
13454 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13456set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13458$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13459if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 13460 $as_echo_n "(cached) " >&6
e8b05380
PB
13461else
13462 if test -n "$GFORTRAN_FOR_TARGET"; then
13463 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13464else
1c710c3c
DJ
13465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13466for as_dir in $PATH
13467do
13468 IFS=$as_save_IFS
13469 test -z "$as_dir" && as_dir=.
5213506e 13470 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13472 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 13473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13474 break 2
13475 fi
13476done
5213506e
RW
13477 done
13478IFS=$as_save_IFS
1c710c3c 13479
e8b05380
PB
13480fi
13481fi
1c710c3c 13482GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 13483if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13485$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 13486else
5213506e
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488$as_echo "no" >&6; }
e8b05380 13489fi
1c710c3c 13490
5213506e 13491
e8b05380
PB
13492 fi
13493 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13494 done
13495fi
1c710c3c 13496
e8b05380
PB
13497if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13498 set dummy gfortran
2693c0b0 13499 if test $build = $target ; then
e8b05380 13500 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 13501 else
e8b05380
PB
13502 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13503 fi
1c00b503
PB
13504else
13505 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
13506fi
13507
13508
13509
632e2a07
ILT
13510if test -n "$GOC_FOR_TARGET"; then
13511 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13512elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13513 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13514fi
13515
13516if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13517 for ncn_progname in gccgo; do
13518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13519set dummy ${ncn_progname}; ac_word=$2
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13522if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13523 $as_echo_n "(cached) " >&6
13524else
13525 if test -n "$GOC_FOR_TARGET"; then
13526 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13535 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539done
13540 done
13541IFS=$as_save_IFS
13542
13543fi
13544fi
13545GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13546if test -n "$GOC_FOR_TARGET"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13548$as_echo "$GOC_FOR_TARGET" >&6; }
13549else
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
13552fi
13553
13554
13555 done
13556fi
13557
13558if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13559 for ncn_progname in gccgo; do
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13561$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13562 if test -x $with_build_time_tools/${ncn_progname}; then
13563 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13565$as_echo "yes" >&6; }
13566 break
13567 else
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13569$as_echo "no" >&6; }
13570 fi
13571 done
13572fi
13573
13574if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13575 for ncn_progname in gccgo; do
13576 if test -n "$ncn_target_tool_prefix"; then
13577 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13578set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13580$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13581if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13582 $as_echo_n "(cached) " >&6
13583else
13584 if test -n "$GOC_FOR_TARGET"; then
13585 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13586else
13587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588for as_dir in $PATH
13589do
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13594 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13597 fi
13598done
13599 done
13600IFS=$as_save_IFS
13601
13602fi
13603fi
13604GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13605if test -n "$GOC_FOR_TARGET"; then
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13607$as_echo "$GOC_FOR_TARGET" >&6; }
13608else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610$as_echo "no" >&6; }
13611fi
13612
13613
13614 fi
13615 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13616 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13617set dummy ${ncn_progname}; ac_word=$2
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13619$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13620if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13621 $as_echo_n "(cached) " >&6
13622else
13623 if test -n "$GOC_FOR_TARGET"; then
13624 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13625else
13626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627for as_dir in $PATH
13628do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13633 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637done
13638 done
13639IFS=$as_save_IFS
13640
13641fi
13642fi
13643GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13644if test -n "$GOC_FOR_TARGET"; then
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13646$as_echo "$GOC_FOR_TARGET" >&6; }
13647else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13649$as_echo "no" >&6; }
13650fi
13651
13652
13653 fi
13654 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13655 done
13656fi
13657
13658if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13659 set dummy gccgo
13660 if test $build = $target ; then
13661 GOC_FOR_TARGET="$2"
13662 else
13663 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13664 fi
13665else
13666 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13667fi
13668
13669
13670
b4c522fa
IB
13671if test -n "$GDC_FOR_TARGET"; then
13672 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13673elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13674 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13675fi
13676
13677if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13678 for ncn_progname in gdc; do
13679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13680set dummy ${ncn_progname}; ac_word=$2
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13682$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13683if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13684 $as_echo_n "(cached) " >&6
13685else
13686 if test -n "$GDC_FOR_TARGET"; then
13687 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13688else
13689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13690for as_dir in $PATH
13691do
13692 IFS=$as_save_IFS
13693 test -z "$as_dir" && as_dir=.
13694 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13696 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13698 break 2
13699 fi
13700done
13701 done
13702IFS=$as_save_IFS
13703
13704fi
13705fi
13706GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13707if test -n "$GDC_FOR_TARGET"; then
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13709$as_echo "$GDC_FOR_TARGET" >&6; }
13710else
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712$as_echo "no" >&6; }
13713fi
13714
13715
13716 done
13717fi
13718
13719if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13720 for ncn_progname in gdc; do
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13722$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13723 if test -x $with_build_time_tools/${ncn_progname}; then
13724 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13726$as_echo "yes" >&6; }
13727 break
13728 else
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730$as_echo "no" >&6; }
13731 fi
13732 done
13733fi
13734
13735if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13736 for ncn_progname in gdc; do
13737 if test -n "$ncn_target_tool_prefix"; then
13738 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13739set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13741$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13742if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13743 $as_echo_n "(cached) " >&6
13744else
13745 if test -n "$GDC_FOR_TARGET"; then
13746 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13747else
13748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749for as_dir in $PATH
13750do
13751 IFS=$as_save_IFS
13752 test -z "$as_dir" && as_dir=.
13753 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13755 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757 break 2
13758 fi
13759done
13760 done
13761IFS=$as_save_IFS
13762
13763fi
13764fi
13765GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13766if test -n "$GDC_FOR_TARGET"; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13768$as_echo "$GDC_FOR_TARGET" >&6; }
13769else
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771$as_echo "no" >&6; }
13772fi
13773
13774
13775 fi
13776 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13778set dummy ${ncn_progname}; ac_word=$2
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13780$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13781if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13782 $as_echo_n "(cached) " >&6
13783else
13784 if test -n "$GDC_FOR_TARGET"; then
13785 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13786else
13787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788for as_dir in $PATH
13789do
13790 IFS=$as_save_IFS
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13794 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13796 break 2
13797 fi
13798done
13799 done
13800IFS=$as_save_IFS
13801
13802fi
13803fi
13804GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13805if test -n "$GDC_FOR_TARGET"; then
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13807$as_echo "$GDC_FOR_TARGET" >&6; }
13808else
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13810$as_echo "no" >&6; }
13811fi
13812
13813
13814 fi
13815 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13816 done
13817fi
13818
13819if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13820 set dummy gdc
13821 if test $build = $target ; then
13822 GDC_FOR_TARGET="$2"
13823 else
13824 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13825 fi
13826else
13827 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13828fi
13829
13830
13831
e8b05380
PB
13832cat > conftest.c << \EOF
13833#ifdef __GNUC__
13834 gcc_yay;
13835#endif
13836EOF
13837if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13838 have_gcc_for_target=yes
13839else
13840 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13841 have_gcc_for_target=no
13842fi
13843rm conftest.c
13844
13845
13846
13847
13848if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13849 if test -n "$with_build_time_tools"; then
5213506e
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13851$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13852 if test -x $with_build_time_tools/ar; then
13853 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13854 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13856$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13857 else
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859$as_echo "no" >&6; }
d1f8db0c 13860 fi
e8b05380
PB
13861 elif test $build != $host && test $have_gcc_for_target = yes; then
13862 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13863 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13864 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13865 fi
13866fi
3e19841a 13867if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13868 # Extract the first word of "ar", so it can be a program name with args.
13869set dummy ar; ac_word=$2
5213506e
RW
13870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13871$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13872if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13873 $as_echo_n "(cached) " >&6
e8b05380 13874else
1c710c3c
DJ
13875 case $AR_FOR_TARGET in
13876 [\\/]* | ?:[\\/]*)
e8b05380
PB
13877 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13878 ;;
e8b05380 13879 *)
1c710c3c
DJ
13880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $gcc_cv_tool_dirs
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
5213506e 13885 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13887 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13889 break 2
13890 fi
13891done
5213506e
RW
13892 done
13893IFS=$as_save_IFS
1c710c3c 13894
e8b05380
PB
13895 ;;
13896esac
13897fi
1c710c3c 13898AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13899if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13901$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13902else
5213506e
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904$as_echo "no" >&6; }
4de997d1
PB
13905fi
13906
5213506e 13907
e8b05380
PB
13908fi
13909if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13910
13911
13912if test -n "$AR_FOR_TARGET"; then
13913 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13914elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13915 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13916fi
13917
13918if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13919 for ncn_progname in ar; do
13920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13921set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13923$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13924if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13925 $as_echo_n "(cached) " >&6
278a7a38
AO
13926else
13927 if test -n "$AR_FOR_TARGET"; then
13928 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13929else
13930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13931for as_dir in $PATH
13932do
13933 IFS=$as_save_IFS
13934 test -z "$as_dir" && as_dir=.
5213506e 13935 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13937 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13939 break 2
13940 fi
13941done
5213506e
RW
13942 done
13943IFS=$as_save_IFS
278a7a38
AO
13944
13945fi
13946fi
13947AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13948if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13950$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13951else
5213506e
RW
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13953$as_echo "no" >&6; }
278a7a38
AO
13954fi
13955
5213506e 13956
278a7a38
AO
13957 done
13958fi
13959
13960if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13961 for ncn_progname in ar; do
5213506e
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13963$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13964 if test -x $with_build_time_tools/${ncn_progname}; then
13965 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13967$as_echo "yes" >&6; }
e8b05380
PB
13968 break
13969 else
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971$as_echo "no" >&6; }
e8b05380
PB
13972 fi
13973 done
13974fi
13975
13976if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13977 for ncn_progname in ar; do
13978 if test -n "$ncn_target_tool_prefix"; then
13979 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13980set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13982$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13983if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13984 $as_echo_n "(cached) " >&6
4de997d1 13985else
e8b05380
PB
13986 if test -n "$AR_FOR_TARGET"; then
13987 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13988else
1c710c3c
DJ
13989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990for as_dir in $PATH
13991do
13992 IFS=$as_save_IFS
13993 test -z "$as_dir" && as_dir=.
5213506e 13994 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13996 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13998 break 2
13999 fi
14000done
5213506e
RW
14001 done
14002IFS=$as_save_IFS
1c710c3c 14003
4de997d1
PB
14004fi
14005fi
1c710c3c 14006AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14007if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14009$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 14010else
5213506e
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012$as_echo "no" >&6; }
4de997d1
PB
14013fi
14014
5213506e 14015
e8b05380
PB
14016 fi
14017 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14019set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14021$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14022if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 14023 $as_echo_n "(cached) " >&6
e8b05380
PB
14024else
14025 if test -n "$AR_FOR_TARGET"; then
14026 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14027else
1c710c3c
DJ
14028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14029for as_dir in $PATH
14030do
14031 IFS=$as_save_IFS
14032 test -z "$as_dir" && as_dir=.
5213506e 14033 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14035 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 14036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14037 break 2
14038 fi
14039done
5213506e
RW
14040 done
14041IFS=$as_save_IFS
1c710c3c 14042
e8b05380
PB
14043fi
14044fi
1c710c3c 14045AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 14046if test -n "$AR_FOR_TARGET"; then
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14048$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 14049else
5213506e
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14051$as_echo "no" >&6; }
e8b05380 14052fi
1c710c3c 14053
5213506e 14054
e8b05380
PB
14055 fi
14056 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14057 done
14058fi
1c710c3c 14059
e8b05380
PB
14060if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14061 set dummy ar
14062 if test $build = $target ; then
14063 AR_FOR_TARGET="$2"
14064 else
14065 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 14066 fi
1c00b503
PB
14067else
14068 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
14069fi
14070
d1f8db0c
PB
14071else
14072 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
14073fi
14074
14075
14076
14077
14078if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14079 if test -n "$with_build_time_tools"; then
5213506e
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14081$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14082 if test -x $with_build_time_tools/as; then
14083 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14084 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14086$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 14087 else
5213506e
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14089$as_echo "no" >&6; }
d1f8db0c 14090 fi
e8b05380
PB
14091 elif test $build != $host && test $have_gcc_for_target = yes; then
14092 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
14093 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14094 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
14095 fi
14096fi
3e19841a 14097if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14098 # Extract the first word of "as", so it can be a program name with args.
14099set dummy as; ac_word=$2
5213506e
RW
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14101$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14102if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 14103 $as_echo_n "(cached) " >&6
e8b05380 14104else
1c710c3c
DJ
14105 case $AS_FOR_TARGET in
14106 [\\/]* | ?:[\\/]*)
e8b05380
PB
14107 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14108 ;;
e8b05380 14109 *)
1c710c3c
DJ
14110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14111for as_dir in $gcc_cv_tool_dirs
14112do
14113 IFS=$as_save_IFS
14114 test -z "$as_dir" && as_dir=.
5213506e 14115 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14117 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14119 break 2
14120 fi
14121done
5213506e
RW
14122 done
14123IFS=$as_save_IFS
1c710c3c 14124
e8b05380
PB
14125 ;;
14126esac
14127fi
1c710c3c 14128AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 14129if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14131$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14132else
5213506e
RW
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14134$as_echo "no" >&6; }
e8b05380
PB
14135fi
14136
5213506e 14137
e8b05380
PB
14138fi
14139if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
14140
14141
14142if test -n "$AS_FOR_TARGET"; then
14143 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14144elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14145 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14146fi
14147
14148if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14149 for ncn_progname in as; do
14150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14151set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14153$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14154if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14155 $as_echo_n "(cached) " >&6
278a7a38
AO
14156else
14157 if test -n "$AS_FOR_TARGET"; then
14158 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14159else
14160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161for as_dir in $PATH
14162do
14163 IFS=$as_save_IFS
14164 test -z "$as_dir" && as_dir=.
5213506e 14165 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14167 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14169 break 2
14170 fi
14171done
5213506e
RW
14172 done
14173IFS=$as_save_IFS
278a7a38
AO
14174
14175fi
14176fi
14177AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14178if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14180$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 14181else
5213506e
RW
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183$as_echo "no" >&6; }
278a7a38
AO
14184fi
14185
5213506e 14186
278a7a38
AO
14187 done
14188fi
14189
14190if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14191 for ncn_progname in as; do
5213506e
RW
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14193$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14194 if test -x $with_build_time_tools/${ncn_progname}; then
14195 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14197$as_echo "yes" >&6; }
e8b05380
PB
14198 break
14199 else
5213506e
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14201$as_echo "no" >&6; }
e8b05380
PB
14202 fi
14203 done
14204fi
14205
14206if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14207 for ncn_progname in as; do
14208 if test -n "$ncn_target_tool_prefix"; then
14209 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14210set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14212$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14213if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14214 $as_echo_n "(cached) " >&6
e8b05380
PB
14215else
14216 if test -n "$AS_FOR_TARGET"; then
14217 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14218else
1c710c3c
DJ
14219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14220for as_dir in $PATH
14221do
14222 IFS=$as_save_IFS
14223 test -z "$as_dir" && as_dir=.
5213506e 14224 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14226 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14228 break 2
14229 fi
14230done
5213506e
RW
14231 done
14232IFS=$as_save_IFS
1c710c3c 14233
e8b05380
PB
14234fi
14235fi
1c710c3c 14236AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14237if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14239$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 14240else
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
e8b05380
PB
14243fi
14244
5213506e 14245
e8b05380
PB
14246 fi
14247 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14249set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14251$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14252if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 14253 $as_echo_n "(cached) " >&6
4de997d1 14254else
e8b05380
PB
14255 if test -n "$AS_FOR_TARGET"; then
14256 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 14257else
1c710c3c
DJ
14258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259for as_dir in $PATH
14260do
14261 IFS=$as_save_IFS
14262 test -z "$as_dir" && as_dir=.
5213506e 14263 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14265 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 14266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14267 break 2
14268 fi
14269done
5213506e
RW
14270 done
14271IFS=$as_save_IFS
1c710c3c 14272
4de997d1
PB
14273fi
14274fi
1c710c3c 14275AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 14276if test -n "$AS_FOR_TARGET"; then
5213506e
RW
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14278$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 14279else
5213506e
RW
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14281$as_echo "no" >&6; }
4de997d1 14282fi
1c710c3c 14283
5213506e 14284
e8b05380
PB
14285 fi
14286 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14287 done
14288fi
1c710c3c 14289
e8b05380
PB
14290if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14291 set dummy as
14292 if test $build = $target ; then
14293 AS_FOR_TARGET="$2"
14294 else
14295 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 14296 fi
1c00b503
PB
14297else
14298 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 14299fi
2693c0b0 14300
d1f8db0c
PB
14301else
14302 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
14303fi
14304
e8b05380
PB
14305
14306
14307
14308if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14309 if test -n "$with_build_time_tools"; then
5213506e
RW
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14311$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14312 if test -x $with_build_time_tools/dlltool; then
14313 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14314 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14316$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 14317 else
5213506e
RW
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14319$as_echo "no" >&6; }
d1f8db0c 14320 fi
e8b05380
PB
14321 elif test $build != $host && test $have_gcc_for_target = yes; then
14322 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
14323 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14324 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
14325 fi
14326fi
3e19841a 14327if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14328 # Extract the first word of "dlltool", so it can be a program name with args.
14329set dummy dlltool; ac_word=$2
5213506e
RW
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14332if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14333 $as_echo_n "(cached) " >&6
4de997d1 14334else
1c710c3c
DJ
14335 case $DLLTOOL_FOR_TARGET in
14336 [\\/]* | ?:[\\/]*)
e8b05380
PB
14337 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14338 ;;
e8b05380 14339 *)
1c710c3c
DJ
14340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341for as_dir in $gcc_cv_tool_dirs
14342do
14343 IFS=$as_save_IFS
14344 test -z "$as_dir" && as_dir=.
5213506e 14345 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14347 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14349 break 2
14350 fi
14351done
5213506e
RW
14352 done
14353IFS=$as_save_IFS
1c710c3c 14354
e8b05380
PB
14355 ;;
14356esac
4de997d1 14357fi
1c710c3c 14358DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 14359if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14361$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14362else
5213506e
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364$as_echo "no" >&6; }
4de997d1
PB
14365fi
14366
5213506e 14367
e8b05380
PB
14368fi
14369if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
14370
14371
14372if test -n "$DLLTOOL_FOR_TARGET"; then
14373 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14374elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14375 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14376fi
14377
14378if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14379 for ncn_progname in dlltool; do
14380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14381set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14383$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14384if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14385 $as_echo_n "(cached) " >&6
278a7a38
AO
14386else
14387 if test -n "$DLLTOOL_FOR_TARGET"; then
14388 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14389else
14390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14391for as_dir in $PATH
14392do
14393 IFS=$as_save_IFS
14394 test -z "$as_dir" && as_dir=.
5213506e 14395 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14397 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14399 break 2
14400 fi
14401done
5213506e
RW
14402 done
14403IFS=$as_save_IFS
278a7a38
AO
14404
14405fi
14406fi
14407DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14408if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14410$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 14411else
5213506e
RW
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413$as_echo "no" >&6; }
278a7a38
AO
14414fi
14415
5213506e 14416
278a7a38
AO
14417 done
14418fi
14419
14420if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14421 for ncn_progname in dlltool; do
5213506e
RW
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14423$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14424 if test -x $with_build_time_tools/${ncn_progname}; then
14425 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14427$as_echo "yes" >&6; }
e8b05380
PB
14428 break
14429 else
5213506e
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14431$as_echo "no" >&6; }
e8b05380
PB
14432 fi
14433 done
14434fi
14435
14436if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14437 for ncn_progname in dlltool; do
14438 if test -n "$ncn_target_tool_prefix"; then
14439 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14440set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14443if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14444 $as_echo_n "(cached) " >&6
4de997d1 14445else
e8b05380
PB
14446 if test -n "$DLLTOOL_FOR_TARGET"; then
14447 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14448else
1c710c3c
DJ
14449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450for as_dir in $PATH
14451do
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
5213506e 14454 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14456 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14458 break 2
14459 fi
14460done
5213506e
RW
14461 done
14462IFS=$as_save_IFS
1c710c3c 14463
4de997d1
PB
14464fi
14465fi
1c710c3c 14466DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14467if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14469$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14470else
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472$as_echo "no" >&6; }
4de997d1 14473fi
4de997d1 14474
5213506e 14475
e8b05380
PB
14476 fi
14477 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14479set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14482if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 14483 $as_echo_n "(cached) " >&6
4de997d1 14484else
e8b05380
PB
14485 if test -n "$DLLTOOL_FOR_TARGET"; then
14486 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 14487else
1c710c3c
DJ
14488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14489for as_dir in $PATH
14490do
14491 IFS=$as_save_IFS
14492 test -z "$as_dir" && as_dir=.
5213506e 14493 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14495 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 14496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14497 break 2
14498 fi
14499done
5213506e
RW
14500 done
14501IFS=$as_save_IFS
1c710c3c 14502
4de997d1
PB
14503fi
14504fi
1c710c3c 14505DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 14506if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14508$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 14509else
5213506e
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14511$as_echo "no" >&6; }
4de997d1 14512fi
1c710c3c 14513
5213506e 14514
e8b05380
PB
14515 fi
14516 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14517 done
14518fi
1c710c3c 14519
e8b05380
PB
14520if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14521 set dummy dlltool
14522 if test $build = $target ; then
14523 DLLTOOL_FOR_TARGET="$2"
14524 else
14525 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14526 fi
1c00b503
PB
14527else
14528 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
14529fi
14530
d1f8db0c
PB
14531else
14532 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
14533fi
14534
4de997d1 14535
e8b05380
PB
14536
14537
3b5e8ee4
IS
14538if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14539 if test -n "$with_build_time_tools"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14541$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14542 if test -x $with_build_time_tools/dsymutil; then
14543 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14544 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14546$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14547 else
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14549$as_echo "no" >&6; }
14550 fi
14551 elif test $build != $host && test $have_gcc_for_target = yes; then
14552 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14553 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14554 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14555 fi
14556fi
14557if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14558 # Extract the first word of "dsymutil", so it can be a program name with args.
14559set dummy dsymutil; ac_word=$2
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14561$as_echo_n "checking for $ac_word... " >&6; }
14562if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14563 $as_echo_n "(cached) " >&6
14564else
14565 case $DSYMUTIL_FOR_TARGET in
14566 [\\/]* | ?:[\\/]*)
14567 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14568 ;;
14569 *)
14570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14571for as_dir in $gcc_cv_tool_dirs
14572do
14573 IFS=$as_save_IFS
14574 test -z "$as_dir" && as_dir=.
14575 for ac_exec_ext in '' $ac_executable_extensions; do
14576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14577 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14579 break 2
14580 fi
14581done
14582 done
14583IFS=$as_save_IFS
14584
14585 ;;
14586esac
14587fi
14588DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14589if test -n "$DSYMUTIL_FOR_TARGET"; then
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14591$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14592else
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14594$as_echo "no" >&6; }
14595fi
14596
14597
14598fi
14599if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14600
14601
14602if test -n "$DSYMUTIL_FOR_TARGET"; then
14603 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14604elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14605 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14606fi
14607
14608if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14609 for ncn_progname in dsymutil; do
14610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14611set dummy ${ncn_progname}; ac_word=$2
14612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14613$as_echo_n "checking for $ac_word... " >&6; }
14614if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616else
14617 if test -n "$DSYMUTIL_FOR_TARGET"; then
14618 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14619else
14620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14621for as_dir in $PATH
14622do
14623 IFS=$as_save_IFS
14624 test -z "$as_dir" && as_dir=.
14625 for ac_exec_ext in '' $ac_executable_extensions; do
14626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14627 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14629 break 2
14630 fi
14631done
14632 done
14633IFS=$as_save_IFS
14634
14635fi
14636fi
14637DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14638if test -n "$DSYMUTIL_FOR_TARGET"; then
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14640$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14641else
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643$as_echo "no" >&6; }
14644fi
14645
14646
14647 done
14648fi
14649
14650if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14651 for ncn_progname in dsymutil; do
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14653$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14654 if test -x $with_build_time_tools/${ncn_progname}; then
14655 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657$as_echo "yes" >&6; }
14658 break
14659 else
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14661$as_echo "no" >&6; }
14662 fi
14663 done
14664fi
14665
14666if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14667 for ncn_progname in dsymutil; do
14668 if test -n "$ncn_target_tool_prefix"; then
14669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14672$as_echo_n "checking for $ac_word... " >&6; }
14673if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14674 $as_echo_n "(cached) " >&6
14675else
14676 if test -n "$DSYMUTIL_FOR_TARGET"; then
14677 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14678else
14679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14680for as_dir in $PATH
14681do
14682 IFS=$as_save_IFS
14683 test -z "$as_dir" && as_dir=.
14684 for ac_exec_ext in '' $ac_executable_extensions; do
14685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14686 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14688 break 2
14689 fi
14690done
14691 done
14692IFS=$as_save_IFS
14693
14694fi
14695fi
14696DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14697if test -n "$DSYMUTIL_FOR_TARGET"; then
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14699$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14700else
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702$as_echo "no" >&6; }
14703fi
14704
14705
14706 fi
14707 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14709set dummy ${ncn_progname}; ac_word=$2
14710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14711$as_echo_n "checking for $ac_word... " >&6; }
14712if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14713 $as_echo_n "(cached) " >&6
14714else
14715 if test -n "$DSYMUTIL_FOR_TARGET"; then
14716 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14717else
14718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719for as_dir in $PATH
14720do
14721 IFS=$as_save_IFS
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729done
14730 done
14731IFS=$as_save_IFS
14732
14733fi
14734fi
14735DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14736if test -n "$DSYMUTIL_FOR_TARGET"; then
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14738$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14739else
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741$as_echo "no" >&6; }
14742fi
14743
14744
14745 fi
14746 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14747 done
14748fi
14749
14750if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14751 set dummy dsymutil
14752 if test $build = $target ; then
14753 DSYMUTIL_FOR_TARGET="$2"
14754 else
14755 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14756 fi
14757else
14758 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14759fi
14760
14761else
14762 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14763fi
14764
14765
14766
14767
e8b05380
PB
14768if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14769 if test -n "$with_build_time_tools"; then
5213506e
RW
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14771$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14772 if test -x $with_build_time_tools/ld; then
14773 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14774 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14776$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 14777 else
5213506e
RW
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779$as_echo "no" >&6; }
d1f8db0c 14780 fi
e8b05380
PB
14781 elif test $build != $host && test $have_gcc_for_target = yes; then
14782 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
14783 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14784 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 14785 fi
e8b05380 14786fi
3e19841a 14787if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14788 # Extract the first word of "ld", so it can be a program name with args.
14789set dummy ld; ac_word=$2
5213506e
RW
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14791$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14792if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 14793 $as_echo_n "(cached) " >&6
4de997d1 14794else
1c710c3c
DJ
14795 case $LD_FOR_TARGET in
14796 [\\/]* | ?:[\\/]*)
e8b05380
PB
14797 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14798 ;;
e8b05380 14799 *)
1c710c3c
DJ
14800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14801for as_dir in $gcc_cv_tool_dirs
14802do
14803 IFS=$as_save_IFS
14804 test -z "$as_dir" && as_dir=.
5213506e 14805 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14807 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14809 break 2
14810 fi
14811done
5213506e
RW
14812 done
14813IFS=$as_save_IFS
1c710c3c 14814
e8b05380
PB
14815 ;;
14816esac
4de997d1 14817fi
1c710c3c 14818LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14819if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14821$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14822else
5213506e
RW
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824$as_echo "no" >&6; }
4de997d1 14825fi
2693c0b0 14826
5213506e 14827
e8b05380
PB
14828fi
14829if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14830
14831
14832if test -n "$LD_FOR_TARGET"; then
14833 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14834elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14835 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14836fi
14837
14838if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14839 for ncn_progname in ld; do
14840 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14841set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14843$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14844if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14845 $as_echo_n "(cached) " >&6
278a7a38
AO
14846else
14847 if test -n "$LD_FOR_TARGET"; then
14848 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14849else
14850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14851for as_dir in $PATH
14852do
14853 IFS=$as_save_IFS
14854 test -z "$as_dir" && as_dir=.
5213506e 14855 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14857 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14859 break 2
14860 fi
14861done
5213506e
RW
14862 done
14863IFS=$as_save_IFS
278a7a38
AO
14864
14865fi
14866fi
14867LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14868if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14870$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14871else
5213506e
RW
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873$as_echo "no" >&6; }
278a7a38
AO
14874fi
14875
5213506e 14876
278a7a38
AO
14877 done
14878fi
14879
14880if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14881 for ncn_progname in ld; do
5213506e
RW
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14883$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14884 if test -x $with_build_time_tools/${ncn_progname}; then
14885 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14887$as_echo "yes" >&6; }
e8b05380
PB
14888 break
14889 else
5213506e
RW
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891$as_echo "no" >&6; }
e8b05380
PB
14892 fi
14893 done
ca9f4b81
AO
14894fi
14895
e8b05380
PB
14896if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14897 for ncn_progname in ld; do
14898 if test -n "$ncn_target_tool_prefix"; then
14899 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14900set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14902$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14903if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14904 $as_echo_n "(cached) " >&6
ca9f4b81 14905else
4de997d1
PB
14906 if test -n "$LD_FOR_TARGET"; then
14907 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14908else
1c710c3c
DJ
14909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14910for as_dir in $PATH
14911do
14912 IFS=$as_save_IFS
14913 test -z "$as_dir" && as_dir=.
5213506e 14914 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14916 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14918 break 2
14919 fi
14920done
5213506e
RW
14921 done
14922IFS=$as_save_IFS
1c710c3c 14923
ca9f4b81
AO
14924fi
14925fi
1c710c3c 14926LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14927if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14929$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14930else
5213506e
RW
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932$as_echo "no" >&6; }
ca9f4b81
AO
14933fi
14934
5213506e 14935
e8b05380
PB
14936 fi
14937 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14938 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14939set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14941$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14942if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14943 $as_echo_n "(cached) " >&6
ca9f4b81 14944else
2693c0b0
PB
14945 if test -n "$LD_FOR_TARGET"; then
14946 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14947else
1c710c3c
DJ
14948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14949for as_dir in $PATH
14950do
14951 IFS=$as_save_IFS
14952 test -z "$as_dir" && as_dir=.
5213506e 14953 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14955 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14957 break 2
14958 fi
14959done
5213506e
RW
14960 done
14961IFS=$as_save_IFS
1c710c3c 14962
ca9f4b81
AO
14963fi
14964fi
1c710c3c 14965LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14966if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14968$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14969else
5213506e
RW
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14971$as_echo "no" >&6; }
ca9f4b81 14972fi
1c710c3c 14973
5213506e 14974
e8b05380
PB
14975 fi
14976 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14977 done
14978fi
1c710c3c 14979
2693c0b0
PB
14980if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14981 set dummy ld
14982 if test $build = $target ; then
14983 LD_FOR_TARGET="$2"
ca9f4b81 14984 else
2693c0b0 14985 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14986 fi
1c00b503
PB
14987else
14988 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14989fi
14990
d1f8db0c
PB
14991else
14992 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14993fi
14994
14995
14996
14997
14998if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14999 if test -n "$with_build_time_tools"; then
5213506e
RW
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15001$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15002 if test -x $with_build_time_tools/lipo; then
15003 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15004 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15006$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 15007 else
5213506e
RW
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009$as_echo "no" >&6; }
d1f8db0c 15010 fi
e8b05380
PB
15011 elif test $build != $host && test $have_gcc_for_target = yes; then
15012 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
15013 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15014 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
15015 fi
15016fi
278a7a38
AO
15017if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15018 # Extract the first word of "lipo", so it can be a program name with args.
15019set dummy lipo; ac_word=$2
5213506e
RW
15020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15021$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15022if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 15023 $as_echo_n "(cached) " >&6
278a7a38
AO
15024else
15025 case $LIPO_FOR_TARGET in
15026 [\\/]* | ?:[\\/]*)
15027 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15028 ;;
15029 *)
15030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15031for as_dir in $gcc_cv_tool_dirs
15032do
15033 IFS=$as_save_IFS
15034 test -z "$as_dir" && as_dir=.
5213506e 15035 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15037 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15039 break 2
15040 fi
15041done
5213506e
RW
15042 done
15043IFS=$as_save_IFS
278a7a38
AO
15044
15045 ;;
15046esac
15047fi
15048LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 15049if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15051$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 15052else
5213506e
RW
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054$as_echo "no" >&6; }
278a7a38
AO
15055fi
15056
5213506e 15057
278a7a38
AO
15058fi
15059if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15060
15061
15062if test -n "$LIPO_FOR_TARGET"; then
15063 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15064elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15065 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15066fi
15067
15068if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15069 for ncn_progname in lipo; do
15070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15073$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15074if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15075 $as_echo_n "(cached) " >&6
e8b05380 15076else
278a7a38
AO
15077 if test -n "$LIPO_FOR_TARGET"; then
15078 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15079else
15080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15081for as_dir in $PATH
1c710c3c
DJ
15082do
15083 IFS=$as_save_IFS
15084 test -z "$as_dir" && as_dir=.
5213506e 15085 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15087 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15089 break 2
15090 fi
15091done
5213506e
RW
15092 done
15093IFS=$as_save_IFS
1c710c3c 15094
e8b05380 15095fi
278a7a38
AO
15096fi
15097LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 15098if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15100$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 15101else
5213506e
RW
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103$as_echo "no" >&6; }
e8b05380
PB
15104fi
15105
5213506e 15106
278a7a38 15107 done
e8b05380 15108fi
278a7a38
AO
15109
15110if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15111 for ncn_progname in lipo; do
5213506e
RW
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15113$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15114 if test -x $with_build_time_tools/${ncn_progname}; then
15115 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15117$as_echo "yes" >&6; }
e8b05380
PB
15118 break
15119 else
5213506e
RW
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15121$as_echo "no" >&6; }
e8b05380
PB
15122 fi
15123 done
15124fi
15125
15126if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15127 for ncn_progname in lipo; do
15128 if test -n "$ncn_target_tool_prefix"; then
15129 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15130set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15132$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15133if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15134 $as_echo_n "(cached) " >&6
040b1c5a
GK
15135else
15136 if test -n "$LIPO_FOR_TARGET"; then
15137 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15138else
1c710c3c
DJ
15139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15140for as_dir in $PATH
15141do
15142 IFS=$as_save_IFS
15143 test -z "$as_dir" && as_dir=.
5213506e 15144 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15146 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15148 break 2
15149 fi
15150done
5213506e
RW
15151 done
15152IFS=$as_save_IFS
1c710c3c 15153
040b1c5a
GK
15154fi
15155fi
1c710c3c 15156LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15157if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15159$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15160else
5213506e
RW
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162$as_echo "no" >&6; }
040b1c5a
GK
15163fi
15164
5213506e 15165
e8b05380
PB
15166 fi
15167 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15169set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15171$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15172if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 15173 $as_echo_n "(cached) " >&6
040b1c5a
GK
15174else
15175 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
15176 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15177else
1c710c3c
DJ
15178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15179for as_dir in $PATH
15180do
15181 IFS=$as_save_IFS
15182 test -z "$as_dir" && as_dir=.
5213506e 15183 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15185 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 15186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15187 break 2
15188 fi
15189done
5213506e
RW
15190 done
15191IFS=$as_save_IFS
1c710c3c 15192
040b1c5a
GK
15193fi
15194fi
1c710c3c 15195LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 15196if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15198$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 15199else
5213506e
RW
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15201$as_echo "no" >&6; }
040b1c5a 15202fi
1c710c3c 15203
5213506e 15204
e8b05380
PB
15205 fi
15206 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15207 done
15208fi
1c710c3c 15209
040b1c5a
GK
15210if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15211 set dummy lipo
15212 if test $build = $target ; then
15213 LIPO_FOR_TARGET="$2"
15214 else
15215 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15216 fi
1c00b503
PB
15217else
15218 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
15219fi
15220
d1f8db0c
PB
15221else
15222 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
15223fi
15224
15225
15226
15227
15228if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15229 if test -n "$with_build_time_tools"; then
5213506e
RW
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15231$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15232 if test -x $with_build_time_tools/nm; then
15233 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15234 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15236$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 15237 else
5213506e
RW
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15239$as_echo "no" >&6; }
d1f8db0c 15240 fi
e8b05380
PB
15241 elif test $build != $host && test $have_gcc_for_target = yes; then
15242 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
15243 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15244 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
15245 fi
15246fi
3e19841a 15247if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15248 # Extract the first word of "nm", so it can be a program name with args.
15249set dummy nm; ac_word=$2
5213506e
RW
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15251$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15252if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 15253 $as_echo_n "(cached) " >&6
e8b05380 15254else
1c710c3c
DJ
15255 case $NM_FOR_TARGET in
15256 [\\/]* | ?:[\\/]*)
e8b05380
PB
15257 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15258 ;;
e8b05380 15259 *)
1c710c3c
DJ
15260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261for as_dir in $gcc_cv_tool_dirs
15262do
15263 IFS=$as_save_IFS
15264 test -z "$as_dir" && as_dir=.
5213506e 15265 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15267 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15269 break 2
15270 fi
15271done
5213506e
RW
15272 done
15273IFS=$as_save_IFS
1c710c3c 15274
e8b05380
PB
15275 ;;
15276esac
15277fi
1c710c3c 15278NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 15279if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15281$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 15282else
5213506e
RW
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284$as_echo "no" >&6; }
e8b05380
PB
15285fi
15286
5213506e 15287
e8b05380
PB
15288fi
15289if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
15290
15291
15292if test -n "$NM_FOR_TARGET"; then
15293 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15294elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15295 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15296fi
15297
15298if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15299 for ncn_progname in nm; do
15300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15301set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15303$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15304if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15305 $as_echo_n "(cached) " >&6
278a7a38
AO
15306else
15307 if test -n "$NM_FOR_TARGET"; then
15308 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15309else
15310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15311for as_dir in $PATH
15312do
15313 IFS=$as_save_IFS
15314 test -z "$as_dir" && as_dir=.
5213506e 15315 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15317 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15319 break 2
15320 fi
15321done
5213506e
RW
15322 done
15323IFS=$as_save_IFS
278a7a38
AO
15324
15325fi
15326fi
15327NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15328if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15330$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 15331else
5213506e
RW
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15333$as_echo "no" >&6; }
278a7a38
AO
15334fi
15335
5213506e 15336
278a7a38
AO
15337 done
15338fi
15339
15340if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15341 for ncn_progname in nm; do
5213506e
RW
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15343$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15344 if test -x $with_build_time_tools/${ncn_progname}; then
15345 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15347$as_echo "yes" >&6; }
e8b05380
PB
15348 break
15349 else
5213506e
RW
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15351$as_echo "no" >&6; }
e8b05380
PB
15352 fi
15353 done
15354fi
15355
15356if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15357 for ncn_progname in nm; do
15358 if test -n "$ncn_target_tool_prefix"; then
15359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15360set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15362$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15363if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15364 $as_echo_n "(cached) " >&6
ca9f4b81 15365else
4de997d1
PB
15366 if test -n "$NM_FOR_TARGET"; then
15367 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15368else
1c710c3c
DJ
15369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15370for as_dir in $PATH
15371do
15372 IFS=$as_save_IFS
15373 test -z "$as_dir" && as_dir=.
5213506e 15374 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15376 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15378 break 2
15379 fi
15380done
5213506e
RW
15381 done
15382IFS=$as_save_IFS
1c710c3c 15383
ca9f4b81
AO
15384fi
15385fi
1c710c3c 15386NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 15387if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15389$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15390else
5213506e
RW
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392$as_echo "no" >&6; }
ca9f4b81
AO
15393fi
15394
5213506e 15395
e8b05380
PB
15396 fi
15397 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15399set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15401$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15402if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 15403 $as_echo_n "(cached) " >&6
ca9f4b81 15404else
2693c0b0
PB
15405 if test -n "$NM_FOR_TARGET"; then
15406 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 15407else
1c710c3c
DJ
15408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15409for as_dir in $PATH
15410do
15411 IFS=$as_save_IFS
15412 test -z "$as_dir" && as_dir=.
5213506e 15413 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15415 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 15416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15417 break 2
15418 fi
15419done
5213506e
RW
15420 done
15421IFS=$as_save_IFS
1c710c3c 15422
ca9f4b81
AO
15423fi
15424fi
1c710c3c 15425NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 15426if test -n "$NM_FOR_TARGET"; then
5213506e
RW
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15428$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 15429else
5213506e
RW
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15431$as_echo "no" >&6; }
ca9f4b81 15432fi
1c710c3c 15433
5213506e 15434
e8b05380
PB
15435 fi
15436 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15437 done
15438fi
1c710c3c 15439
2693c0b0
PB
15440if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15441 set dummy nm
15442 if test $build = $target ; then
15443 NM_FOR_TARGET="$2"
ca9f4b81 15444 else
2693c0b0 15445 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15446 fi
1c00b503
PB
15447else
15448 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
15449fi
15450
d1f8db0c
PB
15451else
15452 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
15453fi
15454
15455
15456
15457
9bccfdf5
AP
15458if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15459 if test -n "$with_build_time_tools"; then
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15461$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15462 if test -x $with_build_time_tools/objcopy; then
15463 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15464 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15466$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15467 else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469$as_echo "no" >&6; }
15470 fi
15471 elif test $build != $host && test $have_gcc_for_target = yes; then
15472 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15473 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15474 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15475 fi
15476fi
15477if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15478 # Extract the first word of "objcopy", so it can be a program name with args.
15479set dummy objcopy; ac_word=$2
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15481$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15482if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15483 $as_echo_n "(cached) " >&6
15484else
15485 case $OBJCOPY_FOR_TARGET in
15486 [\\/]* | ?:[\\/]*)
15487 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15488 ;;
15489 *)
15490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15491for as_dir in $gcc_cv_tool_dirs
15492do
15493 IFS=$as_save_IFS
15494 test -z "$as_dir" && as_dir=.
15495 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15497 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15499 break 2
15500 fi
15501done
15502 done
15503IFS=$as_save_IFS
15504
15505 ;;
15506esac
15507fi
15508OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15509if test -n "$OBJCOPY_FOR_TARGET"; then
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15511$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15512else
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15514$as_echo "no" >&6; }
15515fi
15516
15517
15518fi
15519if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15520
15521
15522if test -n "$OBJCOPY_FOR_TARGET"; then
15523 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15524elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15525 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15526fi
15527
15528if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15529 for ncn_progname in objcopy; do
15530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15531set dummy ${ncn_progname}; ac_word=$2
15532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15533$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15534if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15535 $as_echo_n "(cached) " >&6
15536else
15537 if test -n "$OBJCOPY_FOR_TARGET"; then
15538 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15539else
15540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15541for as_dir in $PATH
15542do
15543 IFS=$as_save_IFS
15544 test -z "$as_dir" && as_dir=.
15545 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15547 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15549 break 2
15550 fi
15551done
15552 done
15553IFS=$as_save_IFS
15554
15555fi
15556fi
15557OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15558if test -n "$OBJCOPY_FOR_TARGET"; then
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15560$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15561else
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563$as_echo "no" >&6; }
15564fi
15565
15566
15567 done
15568fi
15569
15570if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15571 for ncn_progname in objcopy; do
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15573$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15574 if test -x $with_build_time_tools/${ncn_progname}; then
15575 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15577$as_echo "yes" >&6; }
15578 break
15579 else
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15581$as_echo "no" >&6; }
15582 fi
15583 done
15584fi
15585
15586if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15587 for ncn_progname in objcopy; do
15588 if test -n "$ncn_target_tool_prefix"; then
15589 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15590set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15592$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15593if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15594 $as_echo_n "(cached) " >&6
15595else
15596 if test -n "$OBJCOPY_FOR_TARGET"; then
15597 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15598else
15599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15600for as_dir in $PATH
15601do
15602 IFS=$as_save_IFS
15603 test -z "$as_dir" && as_dir=.
15604 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15606 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15608 break 2
15609 fi
15610done
15611 done
15612IFS=$as_save_IFS
15613
15614fi
15615fi
15616OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15617if test -n "$OBJCOPY_FOR_TARGET"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15619$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15620else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622$as_echo "no" >&6; }
15623fi
15624
15625
15626 fi
15627 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15628 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15629set dummy ${ncn_progname}; ac_word=$2
15630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15631$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15632if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
15633 $as_echo_n "(cached) " >&6
15634else
15635 if test -n "$OBJCOPY_FOR_TARGET"; then
15636 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15637else
15638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639for as_dir in $PATH
15640do
15641 IFS=$as_save_IFS
15642 test -z "$as_dir" && as_dir=.
15643 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
15645 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15647 break 2
15648 fi
15649done
15650 done
15651IFS=$as_save_IFS
15652
15653fi
15654fi
15655OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15656if test -n "$OBJCOPY_FOR_TARGET"; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15658$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15659else
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15661$as_echo "no" >&6; }
15662fi
15663
15664
15665 fi
15666 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15667 done
15668fi
15669
15670if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15671 set dummy objcopy
15672 if test $build = $target ; then
15673 OBJCOPY_FOR_TARGET="$2"
15674 else
15675 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15676 fi
15677else
15678 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15679fi
15680
15681else
15682 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15683fi
15684
15685
15686
15687
e8b05380
PB
15688if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15689 if test -n "$with_build_time_tools"; then
5213506e
RW
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15691$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15692 if test -x $with_build_time_tools/objdump; then
15693 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15694 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15696$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 15697 else
5213506e
RW
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699$as_echo "no" >&6; }
d1f8db0c 15700 fi
e8b05380
PB
15701 elif test $build != $host && test $have_gcc_for_target = yes; then
15702 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
15703 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15704 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
15705 fi
15706fi
3e19841a 15707if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15708 # Extract the first word of "objdump", so it can be a program name with args.
15709set dummy objdump; ac_word=$2
5213506e
RW
15710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15711$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15712if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15713 $as_echo_n "(cached) " >&6
e8b05380 15714else
1c710c3c
DJ
15715 case $OBJDUMP_FOR_TARGET in
15716 [\\/]* | ?:[\\/]*)
e8b05380
PB
15717 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15718 ;;
e8b05380 15719 *)
1c710c3c
DJ
15720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15721for as_dir in $gcc_cv_tool_dirs
15722do
15723 IFS=$as_save_IFS
15724 test -z "$as_dir" && as_dir=.
5213506e 15725 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15727 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15729 break 2
15730 fi
15731done
5213506e
RW
15732 done
15733IFS=$as_save_IFS
1c710c3c 15734
e8b05380
PB
15735 ;;
15736esac
15737fi
1c710c3c 15738OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 15739if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15741$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 15742else
5213506e
RW
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15744$as_echo "no" >&6; }
e8b05380
PB
15745fi
15746
5213506e 15747
e8b05380
PB
15748fi
15749if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
15750
15751
15752if test -n "$OBJDUMP_FOR_TARGET"; then
15753 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15754elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15755 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15756fi
15757
15758if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15759 for ncn_progname in objdump; do
15760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15761set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15763$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15764if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15765 $as_echo_n "(cached) " >&6
278a7a38
AO
15766else
15767 if test -n "$OBJDUMP_FOR_TARGET"; then
15768 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15769else
15770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15771for as_dir in $PATH
15772do
15773 IFS=$as_save_IFS
15774 test -z "$as_dir" && as_dir=.
5213506e 15775 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15777 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15779 break 2
15780 fi
15781done
5213506e
RW
15782 done
15783IFS=$as_save_IFS
278a7a38
AO
15784
15785fi
15786fi
15787OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15788if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15790$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 15791else
5213506e
RW
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793$as_echo "no" >&6; }
278a7a38
AO
15794fi
15795
5213506e 15796
278a7a38
AO
15797 done
15798fi
15799
15800if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15801 for ncn_progname in objdump; do
5213506e
RW
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15803$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15804 if test -x $with_build_time_tools/${ncn_progname}; then
15805 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15807$as_echo "yes" >&6; }
e8b05380
PB
15808 break
15809 else
5213506e
RW
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811$as_echo "no" >&6; }
e8b05380
PB
15812 fi
15813 done
15814fi
15815
15816if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15817 for ncn_progname in objdump; do
15818 if test -n "$ncn_target_tool_prefix"; then
15819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15820set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15822$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15823if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15824 $as_echo_n "(cached) " >&6
d739199a
DJ
15825else
15826 if test -n "$OBJDUMP_FOR_TARGET"; then
15827 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15828else
1c710c3c
DJ
15829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15830for as_dir in $PATH
15831do
15832 IFS=$as_save_IFS
15833 test -z "$as_dir" && as_dir=.
5213506e 15834 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15836 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15838 break 2
15839 fi
15840done
5213506e
RW
15841 done
15842IFS=$as_save_IFS
1c710c3c 15843
d739199a
DJ
15844fi
15845fi
1c710c3c 15846OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15847if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15849$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15850else
5213506e
RW
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852$as_echo "no" >&6; }
d739199a
DJ
15853fi
15854
5213506e 15855
e8b05380
PB
15856 fi
15857 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15859set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15861$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15862if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15863 $as_echo_n "(cached) " >&6
d739199a
DJ
15864else
15865 if test -n "$OBJDUMP_FOR_TARGET"; then
15866 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15867else
1c710c3c
DJ
15868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15869for as_dir in $PATH
15870do
15871 IFS=$as_save_IFS
15872 test -z "$as_dir" && as_dir=.
5213506e 15873 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15875 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15877 break 2
15878 fi
15879done
5213506e
RW
15880 done
15881IFS=$as_save_IFS
1c710c3c 15882
d739199a
DJ
15883fi
15884fi
1c710c3c 15885OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15886if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15888$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15889else
5213506e
RW
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15891$as_echo "no" >&6; }
d739199a 15892fi
1c710c3c 15893
5213506e 15894
e8b05380
PB
15895 fi
15896 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15897 done
15898fi
1c710c3c 15899
d739199a
DJ
15900if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15901 set dummy objdump
15902 if test $build = $target ; then
15903 OBJDUMP_FOR_TARGET="$2"
15904 else
15905 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15906 fi
1c00b503
PB
15907else
15908 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15909fi
15910
d1f8db0c
PB
15911else
15912 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15913fi
15914
15915
15916
15917
e4a9a572
IS
15918if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15919 if test -n "$with_build_time_tools"; then
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15921$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15922 if test -x $with_build_time_tools/otool; then
15923 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15924 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15926$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15927 else
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15929$as_echo "no" >&6; }
15930 fi
15931 elif test $build != $host && test $have_gcc_for_target = yes; then
15932 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15933 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15934 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15935 fi
15936fi
15937if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15938 # Extract the first word of "otool", so it can be a program name with args.
15939set dummy otool; ac_word=$2
15940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15941$as_echo_n "checking for $ac_word... " >&6; }
15942if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15943 $as_echo_n "(cached) " >&6
15944else
15945 case $OTOOL_FOR_TARGET in
15946 [\\/]* | ?:[\\/]*)
15947 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15948 ;;
15949 *)
15950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15951for as_dir in $gcc_cv_tool_dirs
15952do
15953 IFS=$as_save_IFS
15954 test -z "$as_dir" && as_dir=.
15955 for ac_exec_ext in '' $ac_executable_extensions; do
15956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15957 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15959 break 2
15960 fi
15961done
15962 done
15963IFS=$as_save_IFS
15964
15965 ;;
15966esac
15967fi
15968OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15969if test -n "$OTOOL_FOR_TARGET"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15971$as_echo "$OTOOL_FOR_TARGET" >&6; }
15972else
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974$as_echo "no" >&6; }
15975fi
15976
15977
15978fi
15979if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15980
15981
15982if test -n "$OTOOL_FOR_TARGET"; then
15983 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15984elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15985 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15986fi
15987
15988if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15989 for ncn_progname in otool; do
15990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15991set dummy ${ncn_progname}; ac_word=$2
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15993$as_echo_n "checking for $ac_word... " >&6; }
15994if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15995 $as_echo_n "(cached) " >&6
15996else
15997 if test -n "$OTOOL_FOR_TARGET"; then
15998 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15999else
16000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16001for as_dir in $PATH
16002do
16003 IFS=$as_save_IFS
16004 test -z "$as_dir" && as_dir=.
16005 for ac_exec_ext in '' $ac_executable_extensions; do
16006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16007 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16009 break 2
16010 fi
16011done
16012 done
16013IFS=$as_save_IFS
16014
16015fi
16016fi
16017OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16018if test -n "$OTOOL_FOR_TARGET"; then
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16020$as_echo "$OTOOL_FOR_TARGET" >&6; }
16021else
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16023$as_echo "no" >&6; }
16024fi
16025
16026
16027 done
16028fi
16029
16030if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16031 for ncn_progname in otool; do
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16033$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16034 if test -x $with_build_time_tools/${ncn_progname}; then
16035 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16037$as_echo "yes" >&6; }
16038 break
16039 else
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16041$as_echo "no" >&6; }
16042 fi
16043 done
16044fi
16045
16046if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16047 for ncn_progname in otool; do
16048 if test -n "$ncn_target_tool_prefix"; then
16049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16052$as_echo_n "checking for $ac_word... " >&6; }
16053if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16054 $as_echo_n "(cached) " >&6
16055else
16056 if test -n "$OTOOL_FOR_TARGET"; then
16057 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16058else
16059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16060for as_dir in $PATH
16061do
16062 IFS=$as_save_IFS
16063 test -z "$as_dir" && as_dir=.
16064 for ac_exec_ext in '' $ac_executable_extensions; do
16065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16066 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16068 break 2
16069 fi
16070done
16071 done
16072IFS=$as_save_IFS
16073
16074fi
16075fi
16076OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16077if test -n "$OTOOL_FOR_TARGET"; then
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16079$as_echo "$OTOOL_FOR_TARGET" >&6; }
16080else
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
16083fi
16084
16085
16086 fi
16087 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16089set dummy ${ncn_progname}; ac_word=$2
16090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16091$as_echo_n "checking for $ac_word... " >&6; }
16092if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16093 $as_echo_n "(cached) " >&6
16094else
16095 if test -n "$OTOOL_FOR_TARGET"; then
16096 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16097else
16098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16099for as_dir in $PATH
16100do
16101 IFS=$as_save_IFS
16102 test -z "$as_dir" && as_dir=.
16103 for ac_exec_ext in '' $ac_executable_extensions; do
16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16105 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16107 break 2
16108 fi
16109done
16110 done
16111IFS=$as_save_IFS
16112
16113fi
16114fi
16115OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16116if test -n "$OTOOL_FOR_TARGET"; then
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16118$as_echo "$OTOOL_FOR_TARGET" >&6; }
16119else
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16121$as_echo "no" >&6; }
16122fi
16123
16124
16125 fi
16126 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16127 done
16128fi
16129
16130if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16131 set dummy otool
16132 if test $build = $target ; then
16133 OTOOL_FOR_TARGET="$2"
16134 else
16135 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16136 fi
16137else
16138 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16139fi
16140
16141else
16142 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16143fi
16144
16145
16146
16147
e8b05380
PB
16148if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16149 if test -n "$with_build_time_tools"; then
5213506e
RW
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16151$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16152 if test -x $with_build_time_tools/ranlib; then
16153 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16154 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16156$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 16157 else
5213506e
RW
16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159$as_echo "no" >&6; }
d1f8db0c 16160 fi
e8b05380
PB
16161 elif test $build != $host && test $have_gcc_for_target = yes; then
16162 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
16163 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16164 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
16165 fi
16166fi
3e19841a 16167if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16168 # Extract the first word of "ranlib", so it can be a program name with args.
16169set dummy ranlib; ac_word=$2
5213506e
RW
16170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16171$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16172if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 16173 $as_echo_n "(cached) " >&6
e8b05380 16174else
1c710c3c
DJ
16175 case $RANLIB_FOR_TARGET in
16176 [\\/]* | ?:[\\/]*)
e8b05380
PB
16177 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16178 ;;
e8b05380 16179 *)
1c710c3c
DJ
16180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16181for as_dir in $gcc_cv_tool_dirs
16182do
16183 IFS=$as_save_IFS
16184 test -z "$as_dir" && as_dir=.
5213506e 16185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16187 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16189 break 2
16190 fi
16191done
5213506e
RW
16192 done
16193IFS=$as_save_IFS
1c710c3c 16194
e8b05380
PB
16195 ;;
16196esac
16197fi
1c710c3c 16198RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 16199if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16201$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 16202else
5213506e
RW
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16204$as_echo "no" >&6; }
e8b05380
PB
16205fi
16206
5213506e 16207
e8b05380
PB
16208fi
16209if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
16210
16211
16212if test -n "$RANLIB_FOR_TARGET"; then
16213 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16214elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16215 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16216fi
16217
16218if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16219 for ncn_progname in ranlib; do
16220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16221set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16223$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16224if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16225 $as_echo_n "(cached) " >&6
278a7a38
AO
16226else
16227 if test -n "$RANLIB_FOR_TARGET"; then
16228 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16229else
16230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16231for as_dir in $PATH
16232do
16233 IFS=$as_save_IFS
16234 test -z "$as_dir" && as_dir=.
5213506e 16235 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16237 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16239 break 2
16240 fi
16241done
5213506e
RW
16242 done
16243IFS=$as_save_IFS
278a7a38
AO
16244
16245fi
16246fi
16247RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16248if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16250$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 16251else
5213506e
RW
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16253$as_echo "no" >&6; }
278a7a38
AO
16254fi
16255
5213506e 16256
278a7a38
AO
16257 done
16258fi
16259
16260if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16261 for ncn_progname in ranlib; do
5213506e
RW
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16263$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16264 if test -x $with_build_time_tools/${ncn_progname}; then
16265 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16267$as_echo "yes" >&6; }
e8b05380
PB
16268 break
16269 else
5213506e
RW
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16271$as_echo "no" >&6; }
e8b05380
PB
16272 fi
16273 done
16274fi
16275
16276if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16277 for ncn_progname in ranlib; do
16278 if test -n "$ncn_target_tool_prefix"; then
16279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 16280set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16282$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16283if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16284 $as_echo_n "(cached) " >&6
ca9f4b81 16285else
4de997d1
PB
16286 if test -n "$RANLIB_FOR_TARGET"; then
16287 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16288else
1c710c3c
DJ
16289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16290for as_dir in $PATH
16291do
16292 IFS=$as_save_IFS
16293 test -z "$as_dir" && as_dir=.
5213506e 16294 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16296 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16298 break 2
16299 fi
16300done
5213506e
RW
16301 done
16302IFS=$as_save_IFS
1c710c3c 16303
ca9f4b81
AO
16304fi
16305fi
1c710c3c 16306RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 16307if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16309$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16310else
5213506e
RW
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312$as_echo "no" >&6; }
ca9f4b81
AO
16313fi
16314
5213506e 16315
e8b05380
PB
16316 fi
16317 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16319set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16321$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16322if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 16323 $as_echo_n "(cached) " >&6
ca9f4b81 16324else
2693c0b0
PB
16325 if test -n "$RANLIB_FOR_TARGET"; then
16326 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 16327else
1c710c3c
DJ
16328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16329for as_dir in $PATH
16330do
16331 IFS=$as_save_IFS
16332 test -z "$as_dir" && as_dir=.
5213506e 16333 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16335 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 16336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16337 break 2
16338 fi
16339done
5213506e
RW
16340 done
16341IFS=$as_save_IFS
1c710c3c 16342
ca9f4b81
AO
16343fi
16344fi
1c710c3c 16345RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 16346if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16348$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 16349else
5213506e
RW
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16351$as_echo "no" >&6; }
ca9f4b81 16352fi
1c710c3c 16353
5213506e 16354
e8b05380
PB
16355 fi
16356 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16357 done
16358fi
1c710c3c 16359
e8b05380
PB
16360if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16361 set dummy ranlib
16362 if test $build = $target ; then
16363 RANLIB_FOR_TARGET="$2"
16364 else
16365 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16366 fi
1c00b503
PB
16367else
16368 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 16369fi
2693c0b0 16370
d1f8db0c
PB
16371else
16372 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
16373fi
16374
e8b05380
PB
16375
16376
16377
e7a82751
RM
16378if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16379 if test -n "$with_build_time_tools"; then
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16381$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16382 if test -x $with_build_time_tools/readelf; then
16383 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16384 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16386$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16387 else
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16389$as_echo "no" >&6; }
16390 fi
16391 elif test $build != $host && test $have_gcc_for_target = yes; then
16392 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16393 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16394 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16395 fi
16396fi
16397if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16398 # Extract the first word of "readelf", so it can be a program name with args.
16399set dummy readelf; ac_word=$2
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16402if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16403 $as_echo_n "(cached) " >&6
16404else
16405 case $READELF_FOR_TARGET in
16406 [\\/]* | ?:[\\/]*)
16407 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16408 ;;
16409 *)
16410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16411for as_dir in $gcc_cv_tool_dirs
16412do
16413 IFS=$as_save_IFS
16414 test -z "$as_dir" && as_dir=.
16415 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16417 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16419 break 2
16420 fi
16421done
16422 done
16423IFS=$as_save_IFS
16424
16425 ;;
16426esac
16427fi
16428READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16429if test -n "$READELF_FOR_TARGET"; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16431$as_echo "$READELF_FOR_TARGET" >&6; }
16432else
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434$as_echo "no" >&6; }
16435fi
16436
16437
16438fi
16439if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16440
16441
16442if test -n "$READELF_FOR_TARGET"; then
16443 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16444elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16445 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16446fi
16447
16448if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16449 for ncn_progname in readelf; do
16450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16451set dummy ${ncn_progname}; ac_word=$2
16452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16453$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16454if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16455 $as_echo_n "(cached) " >&6
16456else
16457 if test -n "$READELF_FOR_TARGET"; then
16458 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16459else
16460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461for as_dir in $PATH
16462do
16463 IFS=$as_save_IFS
16464 test -z "$as_dir" && as_dir=.
16465 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16467 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16469 break 2
16470 fi
16471done
16472 done
16473IFS=$as_save_IFS
16474
16475fi
16476fi
16477READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16478if test -n "$READELF_FOR_TARGET"; then
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16480$as_echo "$READELF_FOR_TARGET" >&6; }
16481else
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483$as_echo "no" >&6; }
16484fi
16485
16486
16487 done
16488fi
16489
16490if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16491 for ncn_progname in readelf; do
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16493$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16494 if test -x $with_build_time_tools/${ncn_progname}; then
16495 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16497$as_echo "yes" >&6; }
16498 break
16499 else
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16501$as_echo "no" >&6; }
16502 fi
16503 done
16504fi
16505
16506if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16507 for ncn_progname in readelf; do
16508 if test -n "$ncn_target_tool_prefix"; then
16509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16512$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16513if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16514 $as_echo_n "(cached) " >&6
16515else
16516 if test -n "$READELF_FOR_TARGET"; then
16517 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16518else
16519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16520for as_dir in $PATH
16521do
16522 IFS=$as_save_IFS
16523 test -z "$as_dir" && as_dir=.
16524 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16526 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16528 break 2
16529 fi
16530done
16531 done
16532IFS=$as_save_IFS
16533
16534fi
16535fi
16536READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16537if test -n "$READELF_FOR_TARGET"; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16539$as_echo "$READELF_FOR_TARGET" >&6; }
16540else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542$as_echo "no" >&6; }
16543fi
16544
16545
16546 fi
16547 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16549set dummy ${ncn_progname}; ac_word=$2
16550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16551$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16552if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
16553 $as_echo_n "(cached) " >&6
16554else
16555 if test -n "$READELF_FOR_TARGET"; then
16556 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16557else
16558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16559for as_dir in $PATH
16560do
16561 IFS=$as_save_IFS
16562 test -z "$as_dir" && as_dir=.
16563 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
16565 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16567 break 2
16568 fi
16569done
16570 done
16571IFS=$as_save_IFS
16572
16573fi
16574fi
16575READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16576if test -n "$READELF_FOR_TARGET"; then
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16578$as_echo "$READELF_FOR_TARGET" >&6; }
16579else
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16581$as_echo "no" >&6; }
16582fi
16583
16584
16585 fi
16586 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16587 done
16588fi
16589
16590if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16591 set dummy readelf
16592 if test $build = $target ; then
16593 READELF_FOR_TARGET="$2"
16594 else
16595 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16596 fi
16597else
16598 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16599fi
16600
16601else
16602 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16603fi
16604
16605
16606
16607
e8b05380
PB
16608if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16609 if test -n "$with_build_time_tools"; then
5213506e
RW
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16611$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16612 if test -x $with_build_time_tools/strip; then
16613 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16614 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16616$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 16617 else
5213506e
RW
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16619$as_echo "no" >&6; }
d1f8db0c 16620 fi
e8b05380
PB
16621 elif test $build != $host && test $have_gcc_for_target = yes; then
16622 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
16623 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16624 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
16625 fi
16626fi
3e19841a 16627if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16628 # Extract the first word of "strip", so it can be a program name with args.
16629set dummy strip; ac_word=$2
5213506e
RW
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16631$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16632if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 16633 $as_echo_n "(cached) " >&6
e8b05380 16634else
1c710c3c
DJ
16635 case $STRIP_FOR_TARGET in
16636 [\\/]* | ?:[\\/]*)
e8b05380
PB
16637 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16638 ;;
e8b05380 16639 *)
1c710c3c
DJ
16640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16641for as_dir in $gcc_cv_tool_dirs
16642do
16643 IFS=$as_save_IFS
16644 test -z "$as_dir" && as_dir=.
5213506e 16645 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16647 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16649 break 2
16650 fi
16651done
5213506e
RW
16652 done
16653IFS=$as_save_IFS
1c710c3c 16654
e8b05380
PB
16655 ;;
16656esac
16657fi
1c710c3c 16658STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 16659if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16661$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 16662else
5213506e
RW
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16664$as_echo "no" >&6; }
e8b05380
PB
16665fi
16666
5213506e 16667
e8b05380
PB
16668fi
16669if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
16670
16671
16672if test -n "$STRIP_FOR_TARGET"; then
16673 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16674elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16675 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16676fi
16677
16678if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16679 for ncn_progname in strip; do
16680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16681set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16683$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16684if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16685 $as_echo_n "(cached) " >&6
278a7a38
AO
16686else
16687 if test -n "$STRIP_FOR_TARGET"; then
16688 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16689else
16690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16691for as_dir in $PATH
16692do
16693 IFS=$as_save_IFS
16694 test -z "$as_dir" && as_dir=.
5213506e 16695 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16697 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16699 break 2
16700 fi
16701done
5213506e
RW
16702 done
16703IFS=$as_save_IFS
278a7a38
AO
16704
16705fi
16706fi
16707STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16708if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16710$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 16711else
5213506e
RW
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16713$as_echo "no" >&6; }
278a7a38
AO
16714fi
16715
5213506e 16716
278a7a38
AO
16717 done
16718fi
16719
16720if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16721 for ncn_progname in strip; do
5213506e
RW
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16723$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16724 if test -x $with_build_time_tools/${ncn_progname}; then
16725 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16727$as_echo "yes" >&6; }
e8b05380
PB
16728 break
16729 else
5213506e
RW
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16731$as_echo "no" >&6; }
e8b05380
PB
16732 fi
16733 done
16734fi
16735
16736if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16737 for ncn_progname in strip; do
16738 if test -n "$ncn_target_tool_prefix"; then
16739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 16740set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16742$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16743if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16744 $as_echo_n "(cached) " >&6
af71363e
AS
16745else
16746 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
16747 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16748else
16749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16750for as_dir in $PATH
16751do
16752 IFS=$as_save_IFS
16753 test -z "$as_dir" && as_dir=.
5213506e 16754 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16756 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16758 break 2
16759 fi
16760done
5213506e
RW
16761 done
16762IFS=$as_save_IFS
1c710c3c 16763
040b1c5a
GK
16764fi
16765fi
1c710c3c 16766STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16767if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16769$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16770else
5213506e
RW
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16772$as_echo "no" >&6; }
040b1c5a
GK
16773fi
16774
5213506e 16775
e8b05380
PB
16776 fi
16777 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 16779set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16781$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16782if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 16783 $as_echo_n "(cached) " >&6
040b1c5a
GK
16784else
16785 if test -n "$STRIP_FOR_TARGET"; then
16786 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16787else
1c710c3c
DJ
16788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16789for as_dir in $PATH
16790do
16791 IFS=$as_save_IFS
16792 test -z "$as_dir" && as_dir=.
5213506e 16793 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16795 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 16796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16797 break 2
16798 fi
16799done
5213506e
RW
16800 done
16801IFS=$as_save_IFS
1c710c3c 16802
040b1c5a
GK
16803fi
16804fi
1c710c3c 16805STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 16806if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16808$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 16809else
5213506e
RW
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16811$as_echo "no" >&6; }
040b1c5a 16812fi
1c710c3c 16813
5213506e 16814
e8b05380
PB
16815 fi
16816 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16817 done
16818fi
1c710c3c 16819
040b1c5a
GK
16820if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16821 set dummy strip
16822 if test $build = $target ; then
16823 STRIP_FOR_TARGET="$2"
16824 else
16825 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16826 fi
1c00b503
PB
16827else
16828 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16829fi
16830
d1f8db0c
PB
16831else
16832 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16833fi
16834
16835
16836
16837
16838if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16839 if test -n "$with_build_time_tools"; then
5213506e
RW
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16841$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16842 if test -x $with_build_time_tools/windres; then
16843 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16844 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16846$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16847 else
5213506e
RW
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16849$as_echo "no" >&6; }
d1f8db0c 16850 fi
e8b05380
PB
16851 elif test $build != $host && test $have_gcc_for_target = yes; then
16852 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16853 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16854 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16855 fi
16856fi
3e19841a 16857if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16858 # Extract the first word of "windres", so it can be a program name with args.
16859set dummy windres; ac_word=$2
5213506e
RW
16860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16861$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16862if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16863 $as_echo_n "(cached) " >&6
e8b05380 16864else
1c710c3c
DJ
16865 case $WINDRES_FOR_TARGET in
16866 [\\/]* | ?:[\\/]*)
e8b05380
PB
16867 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16868 ;;
e8b05380 16869 *)
1c710c3c
DJ
16870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16871for as_dir in $gcc_cv_tool_dirs
16872do
16873 IFS=$as_save_IFS
16874 test -z "$as_dir" && as_dir=.
5213506e 16875 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16877 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16879 break 2
16880 fi
16881done
5213506e
RW
16882 done
16883IFS=$as_save_IFS
1c710c3c 16884
e8b05380
PB
16885 ;;
16886esac
16887fi
1c710c3c 16888WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16889if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16891$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16892else
5213506e
RW
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894$as_echo "no" >&6; }
e8b05380
PB
16895fi
16896
5213506e 16897
e8b05380
PB
16898fi
16899if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16900
16901
16902if test -n "$WINDRES_FOR_TARGET"; then
16903 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16904elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16905 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16906fi
16907
16908if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16909 for ncn_progname in windres; do
16910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16911set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16913$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16914if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16915 $as_echo_n "(cached) " >&6
278a7a38
AO
16916else
16917 if test -n "$WINDRES_FOR_TARGET"; then
16918 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16919else
16920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16921for as_dir in $PATH
16922do
16923 IFS=$as_save_IFS
16924 test -z "$as_dir" && as_dir=.
5213506e 16925 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16927 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16929 break 2
16930 fi
16931done
5213506e
RW
16932 done
16933IFS=$as_save_IFS
278a7a38
AO
16934
16935fi
16936fi
16937WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16938if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16940$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16941else
5213506e
RW
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16943$as_echo "no" >&6; }
278a7a38
AO
16944fi
16945
5213506e 16946
278a7a38
AO
16947 done
16948fi
16949
16950if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16951 for ncn_progname in windres; do
5213506e
RW
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16953$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16954 if test -x $with_build_time_tools/${ncn_progname}; then
16955 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16957$as_echo "yes" >&6; }
e8b05380
PB
16958 break
16959 else
5213506e
RW
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16961$as_echo "no" >&6; }
e8b05380
PB
16962 fi
16963 done
16964fi
16965
16966if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16967 for ncn_progname in windres; do
16968 if test -n "$ncn_target_tool_prefix"; then
16969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16970set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16972$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16973if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16974 $as_echo_n "(cached) " >&6
ca9f4b81 16975else
4de997d1
PB
16976 if test -n "$WINDRES_FOR_TARGET"; then
16977 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16978else
1c710c3c
DJ
16979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16980for as_dir in $PATH
16981do
16982 IFS=$as_save_IFS
16983 test -z "$as_dir" && as_dir=.
5213506e 16984 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16986 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16988 break 2
16989 fi
16990done
5213506e
RW
16991 done
16992IFS=$as_save_IFS
1c710c3c 16993
ca9f4b81
AO
16994fi
16995fi
1c710c3c 16996WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16997if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16999$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17000else
5213506e
RW
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17002$as_echo "no" >&6; }
ca9f4b81
AO
17003fi
17004
5213506e 17005
e8b05380
PB
17006 fi
17007 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 17009set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17011$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17012if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 17013 $as_echo_n "(cached) " >&6
ca9f4b81 17014else
2693c0b0
PB
17015 if test -n "$WINDRES_FOR_TARGET"; then
17016 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 17017else
1c710c3c
DJ
17018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019for as_dir in $PATH
17020do
17021 IFS=$as_save_IFS
17022 test -z "$as_dir" && as_dir=.
5213506e 17023 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 17025 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 17026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
17027 break 2
17028 fi
17029done
5213506e
RW
17030 done
17031IFS=$as_save_IFS
1c710c3c 17032
ca9f4b81
AO
17033fi
17034fi
1c710c3c 17035WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 17036if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17038$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 17039else
5213506e
RW
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17041$as_echo "no" >&6; }
ca9f4b81 17042fi
1c710c3c 17043
5213506e 17044
e8b05380
PB
17045 fi
17046 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17047 done
17048fi
1c710c3c 17049
2693c0b0
PB
17050if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17051 set dummy windres
17052 if test $build = $target ; then
17053 WINDRES_FOR_TARGET="$2"
ca9f4b81 17054 else
2693c0b0 17055 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 17056 fi
1c00b503
PB
17057else
17058 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
17059fi
17060
d1f8db0c
PB
17061else
17062 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
17063fi
17064
4977bab6 17065
901119ae
KT
17066
17067
17068if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17069 if test -n "$with_build_time_tools"; then
5213506e
RW
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17071$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
17072 if test -x $with_build_time_tools/windmc; then
17073 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17074 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17076$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 17077 else
5213506e
RW
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17079$as_echo "no" >&6; }
901119ae
KT
17080 fi
17081 elif test $build != $host && test $have_gcc_for_target = yes; then
17082 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
17083 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17084 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
17085 fi
17086fi
17087if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17088 # Extract the first word of "windmc", so it can be a program name with args.
17089set dummy windmc; ac_word=$2
5213506e
RW
17090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17091$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17092if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 17093 $as_echo_n "(cached) " >&6
901119ae
KT
17094else
17095 case $WINDMC_FOR_TARGET in
17096 [\\/]* | ?:[\\/]*)
17097 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17098 ;;
17099 *)
17100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17101for as_dir in $gcc_cv_tool_dirs
17102do
17103 IFS=$as_save_IFS
17104 test -z "$as_dir" && as_dir=.
5213506e 17105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17107 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 17108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17109 break 2
17110 fi
17111done
5213506e
RW
17112 done
17113IFS=$as_save_IFS
901119ae
KT
17114
17115 ;;
17116esac
17117fi
17118WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 17119if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17121$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17122else
5213506e
RW
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17124$as_echo "no" >&6; }
901119ae
KT
17125fi
17126
5213506e 17127
901119ae
KT
17128fi
17129if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17130
17131
17132if test -n "$WINDMC_FOR_TARGET"; then
17133 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17134elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17135 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17136fi
17137
17138if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17139 for ncn_progname in windmc; do
17140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17141set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17143$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17144if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17145 $as_echo_n "(cached) " >&6
901119ae
KT
17146else
17147 if test -n "$WINDMC_FOR_TARGET"; then
17148 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17149else
17150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17151for as_dir in $PATH
17152do
17153 IFS=$as_save_IFS
17154 test -z "$as_dir" && as_dir=.
5213506e 17155 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17157 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17159 break 2
17160 fi
17161done
5213506e
RW
17162 done
17163IFS=$as_save_IFS
901119ae
KT
17164
17165fi
17166fi
17167WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17168if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17170$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17171else
5213506e
RW
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17173$as_echo "no" >&6; }
901119ae
KT
17174fi
17175
5213506e 17176
901119ae
KT
17177 done
17178fi
17179
17180if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17181 for ncn_progname in windmc; do
5213506e
RW
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17183$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
17184 if test -x $with_build_time_tools/${ncn_progname}; then
17185 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187$as_echo "yes" >&6; }
901119ae
KT
17188 break
17189 else
5213506e
RW
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191$as_echo "no" >&6; }
901119ae
KT
17192 fi
17193 done
17194fi
17195
17196if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17197 for ncn_progname in windmc; do
17198 if test -n "$ncn_target_tool_prefix"; then
17199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17200set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
17201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17202$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17203if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17204 $as_echo_n "(cached) " >&6
901119ae
KT
17205else
17206 if test -n "$WINDMC_FOR_TARGET"; then
17207 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17208else
17209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17210for as_dir in $PATH
17211do
17212 IFS=$as_save_IFS
17213 test -z "$as_dir" && as_dir=.
5213506e 17214 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17216 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 17217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17218 break 2
17219 fi
17220done
5213506e
RW
17221 done
17222IFS=$as_save_IFS
901119ae
KT
17223
17224fi
17225fi
17226WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17227if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17229$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17230else
5213506e
RW
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17232$as_echo "no" >&6; }
901119ae
KT
17233fi
17234
5213506e 17235
901119ae
KT
17236 fi
17237 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17239set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
17240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17241$as_echo_n "checking for $ac_word... " >&6; }
22e05272 17242if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 17243 $as_echo_n "(cached) " >&6
901119ae
KT
17244else
17245 if test -n "$WINDMC_FOR_TARGET"; then
17246 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17247else
17248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17249for as_dir in $PATH
17250do
17251 IFS=$as_save_IFS
17252 test -z "$as_dir" && as_dir=.
5213506e 17253 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 17254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 17255 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 17256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
17257 break 2
17258 fi
17259done
5213506e
RW
17260 done
17261IFS=$as_save_IFS
901119ae
KT
17262
17263fi
17264fi
17265WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17266if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17268$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 17269else
5213506e
RW
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17271$as_echo "no" >&6; }
901119ae
KT
17272fi
17273
5213506e 17274
901119ae
KT
17275 fi
17276 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17277 done
17278fi
17279
17280if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17281 set dummy windmc
17282 if test $build = $target ; then
17283 WINDMC_FOR_TARGET="$2"
17284 else
17285 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17286 fi
1c00b503
PB
17287else
17288 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
17289fi
17290
17291else
17292 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17293fi
17294
17295
2abefe3d
PB
17296RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17297
5213506e
RW
17298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17299$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 17300if test "x${build}" != "x${host}" ; then
e8b05380
PB
17301 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17302 # We already found the complete path
172e41aa 17303 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17305$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17306 else
17307 # Canadian cross, just use what we found
5213506e
RW
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17309$as_echo "pre-installed" >&6; }
e8b05380 17310 fi
2abefe3d
PB
17311else
17312 ok=yes
17313 case " ${configdirs} " in
17314 *" binutils "*) ;;
17315 *) ok=no ;;
17316 esac
1c710c3c 17317
2abefe3d
PB
17318 if test $ok = yes; then
17319 # An in-tree tool is available and we can use it
17320 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17322$as_echo "just compiled" >&6; }
e8b05380
PB
17323 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17324 # We already found the complete path
172e41aa 17325 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17327$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17328 elif test "x$target" = "x$host"; then
17329 # We can use an host tool
17330 AR_FOR_TARGET='$(AR)'
5213506e
RW
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17332$as_echo "host tool" >&6; }
2abefe3d
PB
17333 else
17334 # We need a cross tool
5213506e
RW
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17336$as_echo "pre-installed" >&6; }
2abefe3d
PB
17337 fi
17338fi
0b0dc272 17339
5213506e
RW
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17341$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 17342if test "x${build}" != "x${host}" ; then
e8b05380
PB
17343 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17344 # We already found the complete path
172e41aa 17345 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17347$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17348 else
17349 # Canadian cross, just use what we found
5213506e
RW
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17351$as_echo "pre-installed" >&6; }
e8b05380 17352 fi
2abefe3d
PB
17353else
17354 ok=yes
17355 case " ${configdirs} " in
17356 *" gas "*) ;;
17357 *) ok=no ;;
17358 esac
1c710c3c 17359
2abefe3d
PB
17360 if test $ok = yes; then
17361 # An in-tree tool is available and we can use it
17362 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17364$as_echo "just compiled" >&6; }
e8b05380
PB
17365 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17366 # We already found the complete path
172e41aa 17367 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17369$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17370 elif test "x$target" = "x$host"; then
17371 # We can use an host tool
17372 AS_FOR_TARGET='$(AS)'
5213506e
RW
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17374$as_echo "host tool" >&6; }
2abefe3d
PB
17375 else
17376 # We need a cross tool
5213506e
RW
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17378$as_echo "pre-installed" >&6; }
2abefe3d
PB
17379 fi
17380fi
0b0dc272 17381
5213506e
RW
17382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17383$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 17384if test "x${build}" != "x${host}" ; then
e8b05380
PB
17385 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17386 # We already found the complete path
172e41aa 17387 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17389$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17390 else
17391 # Canadian cross, just use what we found
5213506e
RW
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17393$as_echo "pre-installed" >&6; }
e8b05380 17394 fi
2abefe3d
PB
17395else
17396 ok=yes
17397 case " ${configdirs} " in
17398 *" gcc "*) ;;
17399 *) ok=no ;;
17400 esac
1c710c3c 17401
2abefe3d
PB
17402 if test $ok = yes; then
17403 # An in-tree tool is available and we can use it
17404 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17406$as_echo "just compiled" >&6; }
e8b05380
PB
17407 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17408 # We already found the complete path
172e41aa 17409 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17411$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17412 elif test "x$target" = "x$host"; then
17413 # We can use an host tool
17414 CC_FOR_TARGET='$(CC)'
5213506e
RW
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17416$as_echo "host tool" >&6; }
2abefe3d
PB
17417 else
17418 # We need a cross tool
5213506e
RW
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17420$as_echo "pre-installed" >&6; }
2abefe3d
PB
17421 fi
17422fi
0b0dc272 17423
5213506e
RW
17424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17425$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 17426if test "x${build}" != "x${host}" ; then
e8b05380
PB
17427 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17428 # We already found the complete path
172e41aa 17429 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17431$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17432 else
17433 # Canadian cross, just use what we found
5213506e
RW
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17435$as_echo "pre-installed" >&6; }
e8b05380 17436 fi
2abefe3d
PB
17437else
17438 ok=yes
17439 case " ${configdirs} " in
17440 *" gcc "*) ;;
17441 *) ok=no ;;
17442 esac
17443 case ,${enable_languages}, in
17444 *,c++,*) ;;
17445 *) ok=no ;;
17446 esac
17447 if test $ok = yes; then
17448 # An in-tree tool is available and we can use it
2077db1b 17449 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
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17451$as_echo "just compiled" >&6; }
e8b05380
PB
17452 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17453 # We already found the complete path
172e41aa 17454 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17456$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17457 elif test "x$target" = "x$host"; then
17458 # We can use an host tool
17459 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17461$as_echo "host tool" >&6; }
2abefe3d
PB
17462 else
17463 # We need a cross tool
5213506e
RW
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17465$as_echo "pre-installed" >&6; }
2abefe3d
PB
17466 fi
17467fi
0b0dc272 17468
5213506e
RW
17469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17470$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 17471if test "x${build}" != "x${host}" ; then
e8b05380
PB
17472 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17473 # We already found the complete path
172e41aa 17474 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17476$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17477 else
17478 # Canadian cross, just use what we found
5213506e
RW
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17480$as_echo "pre-installed" >&6; }
e8b05380 17481 fi
2abefe3d
PB
17482else
17483 ok=yes
17484 case " ${configdirs} " in
17485 *" gcc "*) ;;
17486 *) ok=no ;;
17487 esac
17488 case ,${enable_languages}, in
17489 *,c++,*) ;;
17490 *) ok=no ;;
17491 esac
17492 if test $ok = yes; then
17493 # An in-tree tool is available and we can use it
2077db1b 17494 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
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17496$as_echo "just compiled" >&6; }
e8b05380
PB
17497 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17498 # We already found the complete path
172e41aa 17499 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17501$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17502 elif test "x$target" = "x$host"; then
17503 # We can use an host tool
17504 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17506$as_echo "host tool" >&6; }
2abefe3d
PB
17507 else
17508 # We need a cross tool
5213506e
RW
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17510$as_echo "pre-installed" >&6; }
2abefe3d
PB
17511 fi
17512fi
0b0dc272 17513
5213506e
RW
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17515$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 17516if test "x${build}" != "x${host}" ; then
e8b05380
PB
17517 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17518 # We already found the complete path
172e41aa 17519 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17521$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17522 else
17523 # Canadian cross, just use what we found
5213506e
RW
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17525$as_echo "pre-installed" >&6; }
e8b05380 17526 fi
2abefe3d
PB
17527else
17528 ok=yes
17529 case " ${configdirs} " in
17530 *" binutils "*) ;;
17531 *) ok=no ;;
17532 esac
1c710c3c 17533
2abefe3d
PB
17534 if test $ok = yes; then
17535 # An in-tree tool is available and we can use it
17536 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17538$as_echo "just compiled" >&6; }
e8b05380
PB
17539 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17540 # We already found the complete path
172e41aa 17541 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17543$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17544 elif test "x$target" = "x$host"; then
17545 # We can use an host tool
17546 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17548$as_echo "host tool" >&6; }
2abefe3d
PB
17549 else
17550 # We need a cross tool
5213506e
RW
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17552$as_echo "pre-installed" >&6; }
2abefe3d
PB
17553 fi
17554fi
0b0dc272 17555
3b5e8ee4
IS
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17557$as_echo_n "checking where to find the target dsymutil... " >&6; }
17558if test "x${build}" != "x${host}" ; then
17559 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17560 # We already found the complete path
17561 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17563$as_echo "pre-installed in $ac_dir" >&6; }
17564 else
17565 # Canadian cross, just use what we found
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17567$as_echo "pre-installed" >&6; }
17568 fi
17569else
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 elif test "x$target" = "x$host"; then
17576 # We can use an host tool
17577 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17579$as_echo "host tool" >&6; }
17580 else
17581 # We need a cross tool
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17583$as_echo "pre-installed" >&6; }
17584 fi
17585fi
17586
5213506e
RW
17587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17588$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 17589if test "x${build}" != "x${host}" ; then
e8b05380
PB
17590 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17591 # We already found the complete path
172e41aa 17592 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17594$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17595 else
17596 # Canadian cross, just use what we found
5213506e
RW
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17598$as_echo "pre-installed" >&6; }
e8b05380 17599 fi
2abefe3d
PB
17600else
17601 ok=yes
17602 case " ${configdirs} " in
17603 *" gcc "*) ;;
17604 *) ok=no ;;
17605 esac
1c710c3c 17606
2abefe3d
PB
17607 if test $ok = yes; then
17608 # An in-tree tool is available and we can use it
17609 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17611$as_echo "just compiled" >&6; }
e8b05380
PB
17612 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17613 # We already found the complete path
172e41aa 17614 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17616$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17617 elif test "x$target" = "x$host"; then
17618 # We can use an host tool
17619 GCC_FOR_TARGET='$()'
5213506e
RW
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17621$as_echo "host tool" >&6; }
2abefe3d
PB
17622 else
17623 # We need a cross tool
5213506e
RW
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17625$as_echo "pre-installed" >&6; }
2abefe3d
PB
17626 fi
17627fi
0b0dc272 17628
5213506e
RW
17629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17630$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 17631if test "x${build}" != "x${host}" ; then
e8b05380
PB
17632 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17633 # We already found the complete path
172e41aa 17634 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17636$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17637 else
17638 # Canadian cross, just use what we found
5213506e
RW
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17640$as_echo "pre-installed" >&6; }
e8b05380 17641 fi
2abefe3d
PB
17642else
17643 ok=yes
17644 case " ${configdirs} " in
17645 *" gcc "*) ;;
17646 *) ok=no ;;
17647 esac
17648 case ,${enable_languages}, in
17649 *,fortran,*) ;;
17650 *) ok=no ;;
17651 esac
17652 if test $ok = yes; then
17653 # An in-tree tool is available and we can use it
17654 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17656$as_echo "just compiled" >&6; }
e8b05380
PB
17657 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17658 # We already found the complete path
172e41aa 17659 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17661$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17662 elif test "x$target" = "x$host"; then
17663 # We can use an host tool
17664 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17666$as_echo "host tool" >&6; }
2abefe3d
PB
17667 else
17668 # We need a cross tool
5213506e
RW
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17670$as_echo "pre-installed" >&6; }
2abefe3d
PB
17671 fi
17672fi
0b0dc272 17673
632e2a07
ILT
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17675$as_echo_n "checking where to find the target gccgo... " >&6; }
17676if test "x${build}" != "x${host}" ; then
17677 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17678 # We already found the complete path
17679 ac_dir=`dirname $GOC_FOR_TARGET`
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17681$as_echo "pre-installed in $ac_dir" >&6; }
17682 else
17683 # Canadian cross, just use what we found
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17685$as_echo "pre-installed" >&6; }
17686 fi
17687else
17688 ok=yes
17689 case " ${configdirs} " in
17690 *" gcc "*) ;;
17691 *) ok=no ;;
17692 esac
17693 case ,${enable_languages}, in
17694 *,go,*) ;;
17695 *) ok=no ;;
17696 esac
17697 if test $ok = yes; then
17698 # An in-tree tool is available and we can use it
17699 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17701$as_echo "just compiled" >&6; }
17702 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17703 # We already found the complete path
17704 ac_dir=`dirname $GOC_FOR_TARGET`
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17706$as_echo "pre-installed in $ac_dir" >&6; }
17707 elif test "x$target" = "x$host"; then
17708 # We can use an host tool
17709 GOC_FOR_TARGET='$(GOC)'
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17711$as_echo "host tool" >&6; }
17712 else
17713 # We need a cross tool
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17715$as_echo "pre-installed" >&6; }
17716 fi
17717fi
17718
b4c522fa
IB
17719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17720$as_echo_n "checking where to find the target gdc... " >&6; }
17721if test "x${build}" != "x${host}" ; then
17722 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17723 # We already found the complete path
17724 ac_dir=`dirname $GDC_FOR_TARGET`
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17726$as_echo "pre-installed in $ac_dir" >&6; }
17727 else
17728 # Canadian cross, just use what we found
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17730$as_echo "pre-installed" >&6; }
17731 fi
17732else
17733 ok=yes
17734 case " ${configdirs} " in
17735 *" gcc "*) ;;
17736 *) ok=no ;;
17737 esac
17738 case ,${enable_languages}, in
17739 *,d,*) ;;
17740 *) ok=no ;;
17741 esac
17742 if test $ok = yes; then
17743 # An in-tree tool is available and we can use it
17744 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17746$as_echo "just compiled" >&6; }
17747 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17748 # We already found the complete path
17749 ac_dir=`dirname $GDC_FOR_TARGET`
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17751$as_echo "pre-installed in $ac_dir" >&6; }
17752 elif test "x$target" = "x$host"; then
17753 # We can use an host tool
17754 GDC_FOR_TARGET='$(GDC)'
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17756$as_echo "host tool" >&6; }
17757 else
17758 # We need a cross tool
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17760$as_echo "pre-installed" >&6; }
17761 fi
17762fi
17763
5213506e
RW
17764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17765$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 17766if test "x${build}" != "x${host}" ; then
e8b05380
PB
17767 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17768 # We already found the complete path
172e41aa 17769 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17771$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17772 else
17773 # Canadian cross, just use what we found
5213506e
RW
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17775$as_echo "pre-installed" >&6; }
e8b05380 17776 fi
2abefe3d
PB
17777else
17778 ok=yes
17779 case " ${configdirs} " in
17780 *" ld "*) ;;
17781 *) ok=no ;;
17782 esac
1c710c3c 17783
2abefe3d
PB
17784 if test $ok = yes; then
17785 # An in-tree tool is available and we can use it
17786 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17788$as_echo "just compiled" >&6; }
e8b05380
PB
17789 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17790 # We already found the complete path
172e41aa 17791 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17793$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17794 elif test "x$target" = "x$host"; then
17795 # We can use an host tool
17796 LD_FOR_TARGET='$(LD)'
5213506e
RW
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17798$as_echo "host tool" >&6; }
2abefe3d
PB
17799 else
17800 # We need a cross tool
5213506e
RW
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17802$as_echo "pre-installed" >&6; }
2abefe3d
PB
17803 fi
17804fi
0b0dc272 17805
5213506e
RW
17806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17807$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 17808if test "x${build}" != "x${host}" ; then
e8b05380
PB
17809 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17810 # We already found the complete path
172e41aa 17811 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17813$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17814 else
17815 # Canadian cross, just use what we found
5213506e
RW
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17817$as_echo "pre-installed" >&6; }
e8b05380 17818 fi
2abefe3d 17819else
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 17825 elif test "x$target" = "x$host"; then
2abefe3d
PB
17826 # We can use an host tool
17827 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17829$as_echo "host tool" >&6; }
2abefe3d
PB
17830 else
17831 # We need a cross tool
5213506e
RW
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17833$as_echo "pre-installed" >&6; }
2abefe3d
PB
17834 fi
17835fi
0b0dc272 17836
5213506e
RW
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17838$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 17839if test "x${build}" != "x${host}" ; then
e8b05380
PB
17840 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17841 # We already found the complete path
172e41aa 17842 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17844$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17845 else
17846 # Canadian cross, just use what we found
5213506e
RW
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17848$as_echo "pre-installed" >&6; }
e8b05380 17849 fi
2abefe3d
PB
17850else
17851 ok=yes
17852 case " ${configdirs} " in
17853 *" binutils "*) ;;
17854 *) ok=no ;;
17855 esac
1c710c3c 17856
2abefe3d
PB
17857 if test $ok = yes; then
17858 # An in-tree tool is available and we can use it
17859 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17861$as_echo "just compiled" >&6; }
e8b05380
PB
17862 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17863 # We already found the complete path
172e41aa 17864 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17866$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17867 elif test "x$target" = "x$host"; then
17868 # We can use an host tool
17869 NM_FOR_TARGET='$(NM)'
5213506e
RW
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17871$as_echo "host tool" >&6; }
2abefe3d
PB
17872 else
17873 # We need a cross tool
5213506e
RW
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17875$as_echo "pre-installed" >&6; }
2abefe3d
PB
17876 fi
17877fi
0b0dc272 17878
9bccfdf5
AP
17879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17880$as_echo_n "checking where to find the target objcopy... " >&6; }
17881if test "x${build}" != "x${host}" ; then
17882 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17883 # We already found the complete path
17884 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17886$as_echo "pre-installed in $ac_dir" >&6; }
17887 else
17888 # Canadian cross, just use what we found
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17890$as_echo "pre-installed" >&6; }
17891 fi
17892else
17893 ok=yes
17894 case " ${configdirs} " in
17895 *" binutils "*) ;;
17896 *) ok=no ;;
17897 esac
17898
17899 if test $ok = yes; then
17900 # An in-tree tool is available and we can use it
17901 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17903$as_echo "just compiled" >&6; }
17904 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17905 # We already found the complete path
17906 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17908$as_echo "pre-installed in $ac_dir" >&6; }
17909 elif test "x$target" = "x$host"; then
17910 # We can use an host tool
ec8fd1c0 17911 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17913$as_echo "host tool" >&6; }
17914 else
17915 # We need a cross tool
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17917$as_echo "pre-installed" >&6; }
17918 fi
17919fi
17920
5213506e
RW
17921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17922$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17923if test "x${build}" != "x${host}" ; then
e8b05380
PB
17924 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17925 # We already found the complete path
172e41aa 17926 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17928$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17929 else
17930 # Canadian cross, just use what we found
5213506e
RW
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17932$as_echo "pre-installed" >&6; }
e8b05380 17933 fi
2abefe3d
PB
17934else
17935 ok=yes
17936 case " ${configdirs} " in
17937 *" binutils "*) ;;
17938 *) ok=no ;;
17939 esac
1c710c3c 17940
2abefe3d
PB
17941 if test $ok = yes; then
17942 # An in-tree tool is available and we can use it
17943 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17945$as_echo "just compiled" >&6; }
e8b05380
PB
17946 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17947 # We already found the complete path
172e41aa 17948 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17950$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17951 elif test "x$target" = "x$host"; then
17952 # We can use an host tool
17953 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17955$as_echo "host tool" >&6; }
2abefe3d
PB
17956 else
17957 # We need a cross tool
5213506e
RW
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17959$as_echo "pre-installed" >&6; }
2abefe3d
PB
17960 fi
17961fi
0b0dc272 17962
e4a9a572
IS
17963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17964$as_echo_n "checking where to find the target otool... " >&6; }
17965if test "x${build}" != "x${host}" ; then
17966 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17967 # We already found the complete path
17968 ac_dir=`dirname $OTOOL_FOR_TARGET`
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17970$as_echo "pre-installed in $ac_dir" >&6; }
17971 else
17972 # Canadian cross, just use what we found
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17974$as_echo "pre-installed" >&6; }
17975 fi
17976else
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 elif test "x$target" = "x$host"; then
17983 # We can use an host tool
17984 OTOOL_FOR_TARGET='$(OTOOL)'
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17986$as_echo "host tool" >&6; }
17987 else
17988 # We need a cross tool
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17990$as_echo "pre-installed" >&6; }
17991 fi
17992fi
17993
5213506e
RW
17994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17995$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17996if test "x${build}" != "x${host}" ; then
e8b05380
PB
17997 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17998 # We already found the complete path
172e41aa 17999 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18001$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18002 else
18003 # Canadian cross, just use what we found
5213506e
RW
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18005$as_echo "pre-installed" >&6; }
e8b05380 18006 fi
2abefe3d
PB
18007else
18008 ok=yes
18009 case " ${configdirs} " in
18010 *" binutils "*) ;;
18011 *) ok=no ;;
18012 esac
1c710c3c 18013
2abefe3d
PB
18014 if test $ok = yes; then
18015 # An in-tree tool is available and we can use it
18016 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18018$as_echo "just compiled" >&6; }
e8b05380
PB
18019 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18020 # We already found the complete path
172e41aa 18021 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18023$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18024 elif test "x$target" = "x$host"; then
18025 # We can use an host tool
18026 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18028$as_echo "host tool" >&6; }
2abefe3d
PB
18029 else
18030 # We need a cross tool
5213506e
RW
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18032$as_echo "pre-installed" >&6; }
2abefe3d
PB
18033 fi
18034fi
0b0dc272 18035
e7a82751
RM
18036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18037$as_echo_n "checking where to find the target readelf... " >&6; }
18038if test "x${build}" != "x${host}" ; then
18039 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18040 # We already found the complete path
18041 ac_dir=`dirname $READELF_FOR_TARGET`
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18043$as_echo "pre-installed in $ac_dir" >&6; }
18044 else
18045 # Canadian cross, just use what we found
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18047$as_echo "pre-installed" >&6; }
18048 fi
18049else
18050 ok=yes
18051 case " ${configdirs} " in
18052 *" binutils "*) ;;
18053 *) ok=no ;;
18054 esac
18055
18056 if test $ok = yes; then
18057 # An in-tree tool is available and we can use it
18058 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18060$as_echo "just compiled" >&6; }
18061 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18062 # We already found the complete path
18063 ac_dir=`dirname $READELF_FOR_TARGET`
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18065$as_echo "pre-installed in $ac_dir" >&6; }
18066 elif test "x$target" = "x$host"; then
18067 # We can use an host tool
18068 READELF_FOR_TARGET='$(READELF)'
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18070$as_echo "host tool" >&6; }
18071 else
18072 # We need a cross tool
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18074$as_echo "pre-installed" >&6; }
18075 fi
18076fi
18077
5213506e
RW
18078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18079$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 18080if test "x${build}" != "x${host}" ; then
e8b05380
PB
18081 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18082 # We already found the complete path
172e41aa 18083 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18085$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18086 else
18087 # Canadian cross, just use what we found
5213506e
RW
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18089$as_echo "pre-installed" >&6; }
e8b05380 18090 fi
2abefe3d
PB
18091else
18092 ok=yes
18093 case " ${configdirs} " in
18094 *" binutils "*) ;;
18095 *) ok=no ;;
18096 esac
1c710c3c 18097
2abefe3d
PB
18098 if test $ok = yes; then
18099 # An in-tree tool is available and we can use it
455c8f48 18100 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18102$as_echo "just compiled" >&6; }
e8b05380
PB
18103 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18104 # We already found the complete path
172e41aa 18105 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18107$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18108 elif test "x$target" = "x$host"; then
18109 # We can use an host tool
18110 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18112$as_echo "host tool" >&6; }
2abefe3d
PB
18113 else
18114 # We need a cross tool
5213506e
RW
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18116$as_echo "pre-installed" >&6; }
2abefe3d
PB
18117 fi
18118fi
0b0dc272 18119
5213506e
RW
18120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18121$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 18122if test "x${build}" != "x${host}" ; then
e8b05380
PB
18123 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18124 # We already found the complete path
172e41aa 18125 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18127$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
18128 else
18129 # Canadian cross, just use what we found
5213506e
RW
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18131$as_echo "pre-installed" >&6; }
e8b05380 18132 fi
2abefe3d
PB
18133else
18134 ok=yes
18135 case " ${configdirs} " in
18136 *" binutils "*) ;;
18137 *) ok=no ;;
18138 esac
1c710c3c 18139
2abefe3d
PB
18140 if test $ok = yes; then
18141 # An in-tree tool is available and we can use it
18142 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18144$as_echo "just compiled" >&6; }
e8b05380
PB
18145 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18146 # We already found the complete path
172e41aa 18147 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18149$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
18150 elif test "x$target" = "x$host"; then
18151 # We can use an host tool
18152 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18154$as_echo "host tool" >&6; }
2abefe3d
PB
18155 else
18156 # We need a cross tool
5213506e
RW
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18158$as_echo "pre-installed" >&6; }
2abefe3d 18159 fi
671aa708 18160fi
be912515 18161
5213506e
RW
18162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18163$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
18164if test "x${build}" != "x${host}" ; then
18165 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18166 # We already found the complete path
18167 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18169$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18170 else
18171 # Canadian cross, just use what we found
5213506e
RW
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18173$as_echo "pre-installed" >&6; }
901119ae
KT
18174 fi
18175else
18176 ok=yes
18177 case " ${configdirs} " in
18178 *" binutils "*) ;;
18179 *) ok=no ;;
18180 esac
18181
18182 if test $ok = yes; then
18183 # An in-tree tool is available and we can use it
18184 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18186$as_echo "just compiled" >&6; }
901119ae
KT
18187 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18188 # We already found the complete path
18189 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18191$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
18192 elif test "x$target" = "x$host"; then
18193 # We can use an host tool
18194 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18196$as_echo "host tool" >&6; }
901119ae
KT
18197 else
18198 # We need a cross tool
5213506e
RW
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18200$as_echo "pre-installed" >&6; }
901119ae
KT
18201 fi
18202fi
18203
be912515
NN
18204
18205
2abefe3d 18206
0b0dc272 18207
671aa708
NN
18208# Certain tools may need extra flags.
18209AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18210RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18211NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18212
2abefe3d
PB
18213# When building target libraries, except in a Canadian cross, we use
18214# the same toolchain as the compiler we just built.
18215COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18216COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18217COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18218if test $host = $build; then
18219 case " $configdirs " in
18220 *" gcc "*)
18221 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18222 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18223 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18224 ;;
18225 esac
18226fi
18227
18228
18229
18230
18231
5213506e
RW
18232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18233$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18234# Check whether --enable-maintainer-mode was given.
18235if test "${enable_maintainer_mode+set}" = set; then :
18236 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
18237else
18238 USE_MAINTAINER_MODE=no
5213506e
RW
18239fi
18240
18241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18242$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
18243
18244
18245if test "$USE_MAINTAINER_MODE" = yes; then
18246 MAINTAINER_MODE_TRUE=
18247 MAINTAINER_MODE_FALSE='#'
18248else
18249 MAINTAINER_MODE_TRUE='#'
18250 MAINTAINER_MODE_FALSE=
1c710c3c 18251fi
ee03dc5e
AO
18252MAINT=$MAINTAINER_MODE_TRUE
18253
2805b53a
NN
18254# ---------------------
18255# GCC bootstrap support
18256# ---------------------
18257
18258# Stage specific cflags for build.
18259stage1_cflags="-g"
18260case $build in
18261 vax-*-*)
18262 case ${GCC} in
18263 yes) stage1_cflags="-g -Wa,-J" ;;
18264 *) stage1_cflags="-g -J" ;;
18265 esac ;;
2805b53a
NN
18266esac
18267
0b50988a 18268
2805b53a 18269
8efea775 18270# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
18271# Check whether --enable-stage1-checking was given.
18272if test "${enable_stage1_checking+set}" = set; then :
18273 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 18274else
e643dc23 18275 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
18276 # For --disable-checking or implicit --enable-checking=release, avoid
18277 # setting --enable-checking=gc in the default stage1 checking for LTO
18278 # bootstraps. See PR62077.
c10b5ea0
JJ
18279 case $BUILD_CONFIG in
18280 *lto*)
7db11a5a
JJ
18281 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18282 *)
18283 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 18284 esac
7db11a5a
JJ
18285 if test "x$enable_checking" = x && \
18286 test -d ${srcdir}/gcc && \
18287 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 18288 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 18289 fi
8efea775 18290else
e643dc23 18291 stage1_checking=--enable-checking=$enable_checking,types
8efea775 18292fi
5213506e 18293fi
8efea775
PB
18294
18295
2aeb72e9 18296
5213506e
RW
18297# Enable -Werror in bootstrap stage2 and later.
18298# Check whether --enable-werror was given.
18299if test "${enable_werror+set}" = set; then :
18300 enableval=$enable_werror;
09a9c095
NN
18301case ${enable_werror} in
18302 yes) stage2_werror_flag="--enable-werror-always" ;;
18303 *) stage2_werror_flag="" ;;
2805b53a
NN
18304esac
18305
afd88efc
ML
18306else
18307
01c712cb
ML
18308if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18309 case $BUILD_CONFIG in
18310 bootstrap-debug)
18311 stage2_werror_flag="--enable-werror-always" ;;
18312 "")
18313 stage2_werror_flag="--enable-werror-always" ;;
18314 esac
18315fi
18316
afd88efc
ML
18317fi
18318
18319
01c712cb 18320
2805b53a 18321
f2689b09
SE
18322# Specify what files to not compare during bootstrap.
18323
18324compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18325case "$target" in
18326 hppa*64*-*-hpux*) ;;
4f943869
MK
18327 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18328 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
18329esac
18330
18331
5213506e
RW
18332ac_config_files="$ac_config_files Makefile"
18333
1c710c3c 18334cat >confcache <<\_ACEOF
671aa708
NN
18335# This file is a shell script that caches the results of configure
18336# tests run on this system so they can be shared between configure
1c710c3c
DJ
18337# scripts and configure runs, see configure's option --config-cache.
18338# It is not useful on other systems. If it contains results you don't
18339# want to keep, you may remove or edit it.
671aa708 18340#
1c710c3c
DJ
18341# config.status only pays attention to the cache file if you give it
18342# the --recheck option to rerun configure.
671aa708 18343#
1c710c3c
DJ
18344# `ac_cv_env_foo' variables (set or unset) will be overridden when
18345# loading this file, other *unset* `ac_cv_foo' will be assigned the
18346# following values.
18347
18348_ACEOF
18349
671aa708
NN
18350# The following way of writing the cache mishandles newlines in values,
18351# but we know of no workaround that is simple, portable, and efficient.
5213506e 18352# So, we kill variables containing newlines.
671aa708
NN
18353# Ultrix sh set writes to stderr and can't be redirected directly,
18354# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
18355(
18356 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18357 eval ac_val=\$$ac_var
18358 case $ac_val in #(
18359 *${as_nl}*)
18360 case $ac_var in #(
18361 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18362$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18363 esac
18364 case $ac_var in #(
18365 _ | IFS | as_nl) ;; #(
18366 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18367 *) { eval $ac_var=; unset $ac_var;} ;;
18368 esac ;;
18369 esac
18370 done
18371
1c710c3c 18372 (set) 2>&1 |
5213506e
RW
18373 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18374 *${as_nl}ac_space=\ *)
18375 # `set' does not quote correctly, so add quotes: double-quote
18376 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
18377 sed -n \
18378 "s/'/'\\\\''/g;
18379 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 18380 ;; #(
1c710c3c
DJ
18381 *)
18382 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 18383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 18384 ;;
5213506e
RW
18385 esac |
18386 sort
18387) |
1c710c3c 18388 sed '
5213506e 18389 /^ac_cv_env_/b end
1c710c3c 18390 t clear
5213506e 18391 :clear
1c710c3c
DJ
18392 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18393 t end
5213506e
RW
18394 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18395 :end' >>confcache
18396if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18397 if test -w "$cache_file"; then
22e05272 18398 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18400$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
18401 if test ! -f "$cache_file" || test -h "$cache_file"; then
18402 cat confcache >"$cache_file"
18403 else
18404 case $cache_file in #(
18405 */* | ?:*)
18406 mv -f confcache "$cache_file"$$ &&
18407 mv -f "$cache_file"$$ "$cache_file" ;; #(
18408 *)
18409 mv -f confcache "$cache_file" ;;
18410 esac
18411 fi
18412 fi
671aa708 18413 else
5213506e
RW
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18415$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 18416 fi
4977bab6 18417fi
671aa708 18418rm -f confcache
79c06341 18419
671aa708
NN
18420test "x$prefix" = xNONE && prefix=$ac_default_prefix
18421# Let make expand exec_prefix.
18422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 18423
671aa708
NN
18424# Transform confdefs.h into DEFS.
18425# Protect against shell expansion while executing Makefile rules.
18426# Protect against Makefile macro expansion.
1c710c3c
DJ
18427#
18428# If the first sed substitution is executed (which looks for macros that
5213506e 18429# take arguments), then branch to the quote section. Otherwise,
1c710c3c 18430# look for a macro that doesn't take arguments.
5213506e
RW
18431ac_script='
18432:mline
18433/\\$/{
18434 N
18435 s,\\\n,,
18436 b mline
18437}
1c710c3c 18438t clear
5213506e
RW
18439:clear
18440s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18441t quote
5213506e 18442s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 18443t quote
5213506e
RW
18444b any
18445:quote
18446s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18447s/\[/\\&/g
18448s/\]/\\&/g
18449s/\$/$$/g
18450H
18451:any
18452${
18453 g
18454 s/^\n//
18455 s/\n/ /g
18456 p
18457}
18458'
18459DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
18460
18461
18462ac_libobjs=
18463ac_ltlibobjs=
22e05272 18464U=
1c710c3c
DJ
18465for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18466 # 1. Remove the extension, and $U if already installed.
5213506e
RW
18467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18470 # will be set to the directory where LIBOBJS objects are built.
18471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
18473done
18474LIBOBJS=$ac_libobjs
fb0103e5 18475
1c710c3c 18476LTLIBOBJS=$ac_ltlibobjs
0b0dc272 18477
af71363e 18478
1c710c3c 18479
22e05272 18480: "${CONFIG_STATUS=./config.status}"
5213506e 18481ac_write_fail=0
1c710c3c
DJ
18482ac_clean_files_save=$ac_clean_files
18483ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
18484{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18485$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18486as_write_fail=0
18487cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
18488#! $SHELL
18489# Generated by $as_me.
671aa708 18490# Run this file to recreate the current configuration.
671aa708 18491# Compiler output produced by configure, useful for debugging
1c710c3c 18492# configure, is in config.log if it exists.
0b0dc272 18493
1c710c3c
DJ
18494debug=false
18495ac_cs_recheck=false
18496ac_cs_silent=false
1c710c3c 18497
5213506e
RW
18498SHELL=\${CONFIG_SHELL-$SHELL}
18499export SHELL
18500_ASEOF
18501cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18502## -------------------- ##
18503## M4sh Initialization. ##
18504## -------------------- ##
18505
18506# Be more Bourne compatible
18507DUALCASE=1; export DUALCASE # for MKS sh
18508if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18509 emulate sh
18510 NULLCMD=:
5213506e 18511 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
18512 # is contrary to our usage. Disable this feature.
18513 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
18514 setopt NO_GLOB_SUBST
18515else
18516 case `(set -o) 2>/dev/null` in #(
18517 *posix*) :
18518 set -o posix ;; #(
18519 *) :
18520 ;;
18521esac
1c710c3c 18522fi
1c710c3c 18523
5213506e
RW
18524
18525as_nl='
18526'
18527export as_nl
18528# Printing a long string crashes Solaris 7 /usr/bin/printf.
18529as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18530as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18531as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18532# Prefer a ksh shell builtin over an external printf program on Solaris,
18533# but without wasting forks for bash or zsh.
18534if test -z "$BASH_VERSION$ZSH_VERSION" \
18535 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18536 as_echo='print -r --'
18537 as_echo_n='print -rn --'
18538elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18539 as_echo='printf %s\n'
18540 as_echo_n='printf %s'
18541else
18542 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18543 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18544 as_echo_n='/usr/ucb/echo -n'
18545 else
18546 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18547 as_echo_n_body='eval
18548 arg=$1;
18549 case $arg in #(
18550 *"$as_nl"*)
18551 expr "X$arg" : "X\\(.*\\)$as_nl";
18552 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18553 esac;
18554 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18555 '
18556 export as_echo_n_body
18557 as_echo_n='sh -c $as_echo_n_body as_echo'
18558 fi
18559 export as_echo_body
18560 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
18561fi
18562
5213506e
RW
18563# The user is always right.
18564if test "${PATH_SEPARATOR+set}" != set; then
18565 PATH_SEPARATOR=:
18566 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18567 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18568 PATH_SEPARATOR=';'
18569 }
18570fi
18571
18572
18573# IFS
18574# We need space, tab and new line, in precisely that order. Quoting is
18575# there to prevent editors from complaining about space-tab.
18576# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18577# splitting by setting IFS to empty value.)
18578IFS=" "" $as_nl"
18579
18580# Find who we are. Look in the path if we contain no directory separator.
22e05272 18581as_myself=
5213506e
RW
18582case $0 in #((
18583 *[\\/]* ) as_myself=$0 ;;
18584 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585for as_dir in $PATH
18586do
18587 IFS=$as_save_IFS
18588 test -z "$as_dir" && as_dir=.
18589 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18590 done
18591IFS=$as_save_IFS
18592
18593 ;;
18594esac
18595# We did not find ourselves, most probably we were run as `sh COMMAND'
18596# in which case we are not to be found in the path.
18597if test "x$as_myself" = x; then
18598 as_myself=$0
18599fi
18600if test ! -f "$as_myself"; then
18601 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18602 exit 1
18603fi
1c710c3c 18604
5213506e
RW
18605# Unset variables that we do not need and which cause bugs (e.g. in
18606# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18607# suppresses any "Segmentation fault" message there. '((' could
18608# trigger a bug in pdksh 5.2.14.
18609for as_var in BASH_ENV ENV MAIL MAILPATH
18610do eval test x\${$as_var+set} = xset \
18611 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18612done
1c710c3c
DJ
18613PS1='$ '
18614PS2='> '
18615PS4='+ '
18616
18617# NLS nuisances.
5213506e
RW
18618LC_ALL=C
18619export LC_ALL
18620LANGUAGE=C
18621export LANGUAGE
18622
18623# CDPATH.
18624(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18625
18626
22e05272
JM
18627# as_fn_error STATUS ERROR [LINENO LOG_FD]
18628# ----------------------------------------
5213506e
RW
18629# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18630# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 18631# script with STATUS, using 1 if that was 0.
5213506e
RW
18632as_fn_error ()
18633{
22e05272
JM
18634 as_status=$1; test $as_status -eq 0 && as_status=1
18635 if test "$4"; then
18636 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18637 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 18638 fi
22e05272 18639 $as_echo "$as_me: error: $2" >&2
5213506e
RW
18640 as_fn_exit $as_status
18641} # as_fn_error
18642
18643
18644# as_fn_set_status STATUS
18645# -----------------------
18646# Set $? to STATUS, without forking.
18647as_fn_set_status ()
18648{
18649 return $1
18650} # as_fn_set_status
18651
18652# as_fn_exit STATUS
18653# -----------------
18654# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18655as_fn_exit ()
18656{
18657 set +e
18658 as_fn_set_status $1
18659 exit $1
18660} # as_fn_exit
18661
18662# as_fn_unset VAR
18663# ---------------
18664# Portably unset VAR.
18665as_fn_unset ()
18666{
18667 { eval $1=; unset $1;}
18668}
18669as_unset=as_fn_unset
18670# as_fn_append VAR VALUE
18671# ----------------------
18672# Append the text in VALUE to the end of the definition contained in VAR. Take
18673# advantage of any shell optimizations that allow amortized linear growth over
18674# repeated appends, instead of the typical quadratic growth present in naive
18675# implementations.
18676if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18677 eval 'as_fn_append ()
18678 {
18679 eval $1+=\$2
18680 }'
18681else
18682 as_fn_append ()
18683 {
18684 eval $1=\$$1\$2
18685 }
18686fi # as_fn_append
18687
18688# as_fn_arith ARG...
18689# ------------------
18690# Perform arithmetic evaluation on the ARGs, and store the result in the
18691# global $as_val. Take advantage of shells that can avoid forks. The arguments
18692# must be portable across $(()) and expr.
18693if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18694 eval 'as_fn_arith ()
18695 {
18696 as_val=$(( $* ))
18697 }'
18698else
18699 as_fn_arith ()
18700 {
18701 as_val=`expr "$@" || test $? -eq 1`
18702 }
18703fi # as_fn_arith
18704
1c710c3c 18705
5213506e
RW
18706if expr a : '\(a\)' >/dev/null 2>&1 &&
18707 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
18708 as_expr=expr
18709else
18710 as_expr=false
18711fi
18712
5213506e 18713if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
18714 as_basename=basename
18715else
18716 as_basename=false
18717fi
18718
5213506e
RW
18719if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18720 as_dirname=dirname
18721else
18722 as_dirname=false
18723fi
1c710c3c 18724
5213506e 18725as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
18726$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18727 X"$0" : 'X\(//\)$' \| \
5213506e
RW
18728 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18729$as_echo X/"$0" |
18730 sed '/^.*\/\([^/][^/]*\)\/*$/{
18731 s//\1/
18732 q
18733 }
18734 /^X\/\(\/\/\)$/{
18735 s//\1/
18736 q
18737 }
18738 /^X\/\(\/\).*/{
18739 s//\1/
18740 q
18741 }
18742 s/.*/./; q'`
2aeb72e9 18743
2aeb72e9
DD
18744# Avoid depending upon Character Ranges.
18745as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18746as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18747as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18748as_cr_digits='0123456789'
18749as_cr_alnum=$as_cr_Letters$as_cr_digits
18750
5213506e
RW
18751ECHO_C= ECHO_N= ECHO_T=
18752case `echo -n x` in #(((((
18753-n*)
18754 case `echo 'xy\c'` in
18755 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18756 xy) ECHO_C='\c';;
18757 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18758 ECHO_T=' ';;
18759 esac;;
18760*)
18761 ECHO_N='-n';;
1c710c3c
DJ
18762esac
18763
5213506e
RW
18764rm -f conf$$ conf$$.exe conf$$.file
18765if test -d conf$$.dir; then
18766 rm -f conf$$.dir/conf$$.file
1c710c3c 18767else
5213506e
RW
18768 rm -f conf$$.dir
18769 mkdir conf$$.dir 2>/dev/null
1c710c3c 18770fi
5213506e
RW
18771if (echo >conf$$.file) 2>/dev/null; then
18772 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 18773 as_ln_s='ln -s'
5213506e
RW
18774 # ... but there are two gotchas:
18775 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18776 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 18777 # In both cases, we have to default to `cp -pR'.
5213506e 18778 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 18779 as_ln_s='cp -pR'
5213506e
RW
18780 elif ln conf$$.file conf$$ 2>/dev/null; then
18781 as_ln_s=ln
18782 else
22e05272 18783 as_ln_s='cp -pR'
2aeb72e9 18784 fi
1c710c3c 18785else
22e05272 18786 as_ln_s='cp -pR'
1c710c3c 18787fi
5213506e
RW
18788rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18789rmdir conf$$.dir 2>/dev/null
18790
18791
18792# as_fn_mkdir_p
18793# -------------
18794# Create "$as_dir" as a directory, including parents if necessary.
18795as_fn_mkdir_p ()
18796{
18797
18798 case $as_dir in #(
18799 -*) as_dir=./$as_dir;;
18800 esac
18801 test -d "$as_dir" || eval $as_mkdir_p || {
18802 as_dirs=
18803 while :; do
18804 case $as_dir in #(
18805 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18806 *) as_qdir=$as_dir;;
18807 esac
18808 as_dirs="'$as_qdir' $as_dirs"
18809 as_dir=`$as_dirname -- "$as_dir" ||
18810$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18811 X"$as_dir" : 'X\(//\)[^/]' \| \
18812 X"$as_dir" : 'X\(//\)$' \| \
18813 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18814$as_echo X"$as_dir" |
18815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18816 s//\1/
18817 q
18818 }
18819 /^X\(\/\/\)[^/].*/{
18820 s//\1/
18821 q
18822 }
18823 /^X\(\/\/\)$/{
18824 s//\1/
18825 q
18826 }
18827 /^X\(\/\).*/{
18828 s//\1/
18829 q
18830 }
18831 s/.*/./; q'`
18832 test -d "$as_dir" && break
18833 done
18834 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 18835 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 18836
1c710c3c 18837
5213506e 18838} # as_fn_mkdir_p
1c710c3c 18839if mkdir -p . 2>/dev/null; then
5213506e 18840 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
18841else
18842 test -d ./-p && rmdir ./-p
18843 as_mkdir_p=false
18844fi
18845
22e05272
JM
18846
18847# as_fn_executable_p FILE
18848# -----------------------
18849# Test if FILE is an executable regular file.
18850as_fn_executable_p ()
18851{
18852 test -f "$1" && test -x "$1"
18853} # as_fn_executable_p
18854as_test_x='test -x'
18855as_executable_p=as_fn_executable_p
1c710c3c
DJ
18856
18857# Sed expression to map a string onto a valid CPP name.
18858as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18859
18860# Sed expression to map a string onto a valid variable name.
18861as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18862
18863
1c710c3c 18864exec 6>&1
5213506e
RW
18865## ----------------------------------- ##
18866## Main body of $CONFIG_STATUS script. ##
18867## ----------------------------------- ##
18868_ASEOF
18869test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18870
18871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18872# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18873# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18874# values after options handling.
18875ac_log="
1c710c3c 18876This file was extended by $as_me, which was
22e05272 18877generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18878
18879 CONFIG_FILES = $CONFIG_FILES
18880 CONFIG_HEADERS = $CONFIG_HEADERS
18881 CONFIG_LINKS = $CONFIG_LINKS
18882 CONFIG_COMMANDS = $CONFIG_COMMANDS
18883 $ $0 $@
18884
5213506e
RW
18885on `(hostname || uname -n) 2>/dev/null | sed 1q`
18886"
18887
1c710c3c
DJ
18888_ACEOF
18889
5213506e
RW
18890case $ac_config_files in *"
18891"*) set x $ac_config_files; shift; ac_config_files=$*;;
18892esac
1c710c3c 18893
2aeb72e9 18894
2aeb72e9 18895
5213506e
RW
18896cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18897# Files that config.status was made for.
18898config_files="$ac_config_files"
1c710c3c 18899
5213506e 18900_ACEOF
2aeb72e9 18901
5213506e 18902cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18903ac_cs_usage="\
5213506e
RW
18904\`$as_me' instantiates files and other configuration actions
18905from templates according to the current configuration. Unless the files
18906and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18907
5213506e 18908Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18909
18910 -h, --help print this help, then exit
5213506e 18911 -V, --version print version number and configuration settings, then exit
22e05272 18912 --config print configuration, then exit
5213506e
RW
18913 -q, --quiet, --silent
18914 do not print progress messages
1c710c3c
DJ
18915 -d, --debug don't remove temporary files
18916 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18917 --file=FILE[:TEMPLATE]
18918 instantiate the configuration file FILE
1c710c3c
DJ
18919
18920Configuration files:
18921$config_files
18922
5213506e 18923Report bugs to the package provider."
2aeb72e9 18924
5213506e
RW
18925_ACEOF
18926cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18927ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18928ac_cs_version="\\
18929config.status
22e05272
JM
18930configured by $0, generated by GNU Autoconf 2.69,
18931 with options \\"\$ac_cs_config\\"
1c710c3c 18932
22e05272 18933Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18934This config.status script is free software; the Free Software Foundation
18935gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18936
18937ac_pwd='$ac_pwd'
18938srcdir='$srcdir'
18939INSTALL='$INSTALL'
87264276 18940AWK='$AWK'
5213506e 18941test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18942_ACEOF
18943
5213506e
RW
18944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18945# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18946ac_need_defaults=:
18947while test $# != 0
a4b9e93e 18948do
1c710c3c 18949 case $1 in
22e05272 18950 --*=?*)
5213506e
RW
18951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18953 ac_shift=:
18954 ;;
22e05272
JM
18955 --*=)
18956 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18957 ac_optarg=
18958 ac_shift=:
18959 ;;
5213506e 18960 *)
1c710c3c
DJ
18961 ac_option=$1
18962 ac_optarg=$2
18963 ac_shift=shift
18964 ;;
1c710c3c
DJ
18965 esac
18966
18967 case $ac_option in
18968 # Handling of the options.
671aa708 18969 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18970 ac_cs_recheck=: ;;
5213506e
RW
18971 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18972 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18973 --config | --confi | --conf | --con | --co | --c )
18974 $as_echo "$ac_cs_config"; exit ;;
5213506e 18975 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18976 debug=: ;;
18977 --file | --fil | --fi | --f )
18978 $ac_shift
5213506e
RW
18979 case $ac_optarg in
18980 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18981 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18982 esac
18983 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18984 ac_need_defaults=false;;
5213506e
RW
18985 --he | --h | --help | --hel | -h )
18986 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18988 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18989 ac_cs_silent=: ;;
18990
18991 # This is an error.
22e05272 18992 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18993Try \`$0 --help' for more information." ;;
1c710c3c 18994
5213506e
RW
18995 *) as_fn_append ac_config_targets " $1"
18996 ac_need_defaults=false ;;
1c710c3c 18997
0b0dc272 18998 esac
1c710c3c 18999 shift
0b0dc272
AM
19000done
19001
1c710c3c 19002ac_configure_extra_args=
0b0dc272 19003
1c710c3c
DJ
19004if $ac_cs_silent; then
19005 exec 6>/dev/null
19006 ac_configure_extra_args="$ac_configure_extra_args --silent"
19007fi
0b0dc272 19008
1c710c3c 19009_ACEOF
5213506e 19010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 19011if \$ac_cs_recheck; then
22e05272 19012 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
19013 shift
19014 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19015 CONFIG_SHELL='$SHELL'
19016 export CONFIG_SHELL
19017 exec "\$@"
1c710c3c
DJ
19018fi
19019
19020_ACEOF
5213506e
RW
19021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19022exec 5>>config.log
19023{
19024 echo
19025 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19026## Running $as_me. ##
19027_ASBOX
19028 $as_echo "$ac_log"
19029} >&5
1c710c3c 19030
5213506e
RW
19031_ACEOF
19032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
19033#
19034# INIT-COMMANDS
19035#
19036extrasub_build="$extrasub_build"
19037 extrasub_host="$extrasub_host"
19038 extrasub_target="$extrasub_target"
19039
5213506e 19040_ACEOF
1c710c3c 19041
5213506e 19042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 19043
5213506e 19044# Handling of arguments.
1c710c3c
DJ
19045for ac_config_target in $ac_config_targets
19046do
5213506e
RW
19047 case $ac_config_target in
19048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19049
22e05272 19050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
19051 esac
19052done
19053
5213506e 19054
1c710c3c
DJ
19055# If the user did not use the arguments to specify the items to instantiate,
19056# then the envvar interface is used. Set only those that are not.
19057# We use the long form for the default assignment because of an extremely
19058# bizarre bug on SunOS 4.1.3.
19059if $ac_need_defaults; then
19060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19061fi
19062
19063# Have a temporary directory for convenience. Make it in the build tree
5213506e 19064# simply because there is no reason against having it here, and in addition,
1c710c3c 19065# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
19066# Hook for its removal unless debugging.
19067# Note that there is a small window in which the directory will not be cleaned:
19068# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
19069$debug ||
19070{
22e05272 19071 tmp= ac_tmp=
5213506e 19072 trap 'exit_status=$?
22e05272
JM
19073 : "${ac_tmp:=$tmp}"
19074 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
19075' 0
19076 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 19077}
1c710c3c
DJ
19078# Create a (secure) tmp directory for tmp files.
19079
19080{
5213506e 19081 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 19082 test -d "$tmp"
1c710c3c
DJ
19083} ||
19084{
5213506e
RW
19085 tmp=./conf$$-$RANDOM
19086 (umask 077 && mkdir "$tmp")
22e05272
JM
19087} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19088ac_tmp=$tmp
5213506e
RW
19089
19090# Set up the scripts for CONFIG_FILES section.
19091# No need to generate them if there are no CONFIG_FILES.
19092# This happens for instance with `./config.status config.h'.
19093if test -n "$CONFIG_FILES"; then
19094
19095if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19096 ac_cs_awk_getline=:
19097 ac_cs_awk_pipe_init=
19098 ac_cs_awk_read_file='
19099 while ((getline aline < (F[key])) > 0)
19100 print(aline)
19101 close(F[key])'
19102 ac_cs_awk_pipe_fini=
19103else
19104 ac_cs_awk_getline=false
19105 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19106 ac_cs_awk_read_file='
19107 print "|#_!!_#|"
19108 print "cat " F[key] " &&"
19109 '$ac_cs_awk_pipe_init
19110 # The final `:' finishes the AND list.
19111 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19112fi
19113ac_cr=`echo X | tr X '\015'`
19114# On cygwin, bash can eat \r inside `` if the user requested igncr.
19115# But we know of no other shell where ac_cr would be empty at this
19116# point, so we can use a bashism as a fallback.
19117if test "x$ac_cr" = x; then
19118 eval ac_cr=\$\'\\r\'
19119fi
19120ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19121if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 19122 ac_cs_awk_cr='\\r'
5213506e
RW
19123else
19124 ac_cs_awk_cr=$ac_cr
19125fi
19126
22e05272 19127echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
19128_ACEOF
19129
19130# Create commands to substitute file output variables.
1c710c3c 19131{
5213506e 19132 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 19133 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
19134 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19135 echo "_ACAWK" &&
19136 echo "_ACEOF"
19137} >conf$$files.sh &&
19138. ./conf$$files.sh ||
22e05272 19139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 19140rm -f conf$$files.sh
1c710c3c 19141
5213506e
RW
19142{
19143 echo "cat >conf$$subs.awk <<_ACEOF" &&
19144 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19145 echo "_ACEOF"
19146} >conf$$subs.sh ||
22e05272
JM
19147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19148ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
19149ac_delim='%!_!# '
19150for ac_last_try in false false false false false :; do
19151 . ./conf$$subs.sh ||
22e05272 19152 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19153
19154 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19155 if test $ac_delim_n = $ac_delim_num; then
19156 break
19157 elif $ac_last_try; then
22e05272 19158 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
19159 else
19160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19161 fi
19162done
19163rm -f conf$$subs.sh
19164
19165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 19166cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 19167_ACEOF
5213506e
RW
19168sed -n '
19169h
19170s/^/S["/; s/!.*/"]=/
19171p
19172g
19173s/^[^!]*!//
19174:repl
19175t repl
19176s/'"$ac_delim"'$//
19177t delim
19178:nl
19179h
22e05272 19180s/\(.\{148\}\)..*/\1/
5213506e
RW
19181t more1
19182s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19183p
19184n
19185b repl
19186:more1
19187s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19188p
19189g
19190s/.\{148\}//
19191t nl
19192:delim
19193h
22e05272 19194s/\(.\{148\}\)..*/\1/
5213506e
RW
19195t more2
19196s/["\\]/\\&/g; s/^/"/; s/$/"/
19197p
19198b
19199:more2
19200s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19201p
19202g
19203s/.\{148\}//
19204t delim
19205' <conf$$subs.awk | sed '
19206/^[^""]/{
19207 N
19208 s/\n//
19209}
19210' >>$CONFIG_STATUS || ac_write_fail=1
19211rm -f conf$$subs.awk
19212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19213_ACAWK
22e05272 19214cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
19215 for (key in S) S_is_set[key] = 1
19216 FS = "\a"
19217 \$ac_cs_awk_pipe_init
19218}
19219{
19220 line = $ 0
19221 nfields = split(line, field, "@")
19222 substed = 0
19223 len = length(field[1])
19224 for (i = 2; i < nfields; i++) {
19225 key = field[i]
19226 keylen = length(key)
19227 if (S_is_set[key]) {
19228 value = S[key]
19229 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19230 len += length(value) + length(field[++i])
19231 substed = 1
19232 } else
19233 len += 1 + keylen
19234 }
19235 if (nfields == 3 && !substed) {
19236 key = field[2]
19237 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19238 \$ac_cs_awk_read_file
19239 next
19240 }
19241 }
19242 print line
19243}
19244\$ac_cs_awk_pipe_fini
19245_ACAWK
19246_ACEOF
19247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19248if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19249 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19250else
19251 cat
22e05272
JM
19252fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19253 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
19254_ACEOF
19255
22e05272
JM
19256# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19257# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
19258# trailing colons and then remove the whole line if VPATH becomes empty
19259# (actually we leave an empty line to preserve line numbers).
19260if test "x$srcdir" = x.; then
22e05272
JM
19261 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19262h
19263s///
19264s/^/:/
19265s/[ ]*$/:/
19266s/:\$(srcdir):/:/g
19267s/:\${srcdir}:/:/g
19268s/:@srcdir@:/:/g
19269s/^:*//
5213506e 19270s/:*$//
22e05272
JM
19271x
19272s/\(=[ ]*\).*/\1/
19273G
19274s/\n//
5213506e
RW
19275s/^[^=]*=[ ]*$//
19276}'
19277fi
2aeb72e9 19278
5213506e
RW
19279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19280fi # test -n "$CONFIG_FILES"
2aeb72e9 19281
1c710c3c 19282
5213506e
RW
19283eval set X " :F $CONFIG_FILES "
19284shift
19285for ac_tag
19286do
19287 case $ac_tag in
19288 :[FHLC]) ac_mode=$ac_tag; continue;;
19289 esac
19290 case $ac_mode$ac_tag in
19291 :[FHL]*:*);;
22e05272 19292 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
19293 :[FH]-) ac_tag=-:-;;
19294 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19295 esac
19296 ac_save_IFS=$IFS
19297 IFS=:
19298 set x $ac_tag
19299 IFS=$ac_save_IFS
19300 shift
19301 ac_file=$1
19302 shift
79c06341 19303
5213506e
RW
19304 case $ac_mode in
19305 :L) ac_source=$1;;
19306 :[FH])
19307 ac_file_inputs=
19308 for ac_f
19309 do
19310 case $ac_f in
22e05272 19311 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
19312 *) # Look for the file first in the build tree, then in the source tree
19313 # (if the path is not absolute). The absolute path cannot be DOS-style,
19314 # because $ac_f cannot contain `:'.
19315 test -f "$ac_f" ||
19316 case $ac_f in
19317 [\\/$]*) false;;
19318 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19319 esac ||
22e05272 19320 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
19321 esac
19322 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19323 as_fn_append ac_file_inputs " '$ac_f'"
19324 done
1c710c3c 19325
5213506e
RW
19326 # Let's still pretend it is `configure' which instantiates (i.e., don't
19327 # use $as_me), people would be surprised to read:
19328 # /* config.h. Generated by config.status. */
19329 configure_input='Generated from '`
19330 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19331 `' by configure.'
19332 if test x"$ac_file" != x-; then
19333 configure_input="$ac_file. $configure_input"
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19335$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 19336 fi
5213506e
RW
19337 # Neutralize special characters interpreted by sed in replacement strings.
19338 case $configure_input in #(
19339 *\&* | *\|* | *\\* )
19340 ac_sed_conf_input=`$as_echo "$configure_input" |
19341 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19342 *) ac_sed_conf_input=$configure_input;;
19343 esac
11a67599 19344
5213506e 19345 case $ac_tag in
22e05272
JM
19346 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
19348 esac
19349 ;;
11a67599
ZW
19350 esac
19351
5213506e 19352 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
19353$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19354 X"$ac_file" : 'X\(//\)[^/]' \| \
19355 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
19356 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19357$as_echo X"$ac_file" |
19358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19359 s//\1/
19360 q
19361 }
19362 /^X\(\/\/\)[^/].*/{
19363 s//\1/
19364 q
19365 }
19366 /^X\(\/\/\)$/{
19367 s//\1/
19368 q
19369 }
19370 /^X\(\/\).*/{
19371 s//\1/
19372 q
19373 }
19374 s/.*/./; q'`
19375 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 19376 ac_builddir=.
0b0dc272 19377
5213506e
RW
19378case "$ac_dir" in
19379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19380*)
19381 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19382 # A ".." for each directory in $ac_dir_suffix.
19383 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19384 case $ac_top_builddir_sub in
19385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19387 esac ;;
19388esac
19389ac_abs_top_builddir=$ac_pwd
19390ac_abs_builddir=$ac_pwd$ac_dir_suffix
19391# for backward compatibility:
19392ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
19393
19394case $srcdir in
5213506e 19395 .) # We are building in place.
1c710c3c 19396 ac_srcdir=.
5213506e
RW
19397 ac_top_srcdir=$ac_top_builddir_sub
19398 ac_abs_top_srcdir=$ac_pwd ;;
19399 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 19400 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
19401 ac_top_srcdir=$srcdir
19402 ac_abs_top_srcdir=$srcdir ;;
19403 *) # Relative name.
19404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19405 ac_top_srcdir=$ac_top_build_prefix$srcdir
19406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 19407esac
5213506e 19408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 19409
0b0dc272 19410
5213506e
RW
19411 case $ac_mode in
19412 :F)
19413 #
19414 # CONFIG_FILE
19415 #
1c710c3c
DJ
19416
19417 case $INSTALL in
19418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 19419 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 19420 esac
5213506e 19421_ACEOF
11a67599 19422
5213506e
RW
19423cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19424# If the template does not know about datarootdir, expand it.
19425# FIXME: This hack should be removed a few years after 2.60.
19426ac_datarootdir_hack=; ac_datarootdir_seen=
19427ac_sed_dataroot='
19428/datarootdir/ {
19429 p
19430 q
19431}
19432/@datadir@/p
19433/@docdir@/p
19434/@infodir@/p
19435/@localedir@/p
19436/@mandir@/p'
19437case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19438*datarootdir*) ac_datarootdir_seen=yes;;
19439*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19441$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 19442_ACEOF
5213506e
RW
19443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444 ac_datarootdir_hack='
19445 s&@datadir@&$datadir&g
19446 s&@docdir@&$docdir&g
19447 s&@infodir@&$infodir&g
19448 s&@localedir@&$localedir&g
19449 s&@mandir@&$mandir&g
19450 s&\\\${datarootdir}&$datarootdir&g' ;;
19451esac
19452_ACEOF
19453
19454# Neutralize VPATH when `$srcdir' = `.'.
19455# Shell code in configure.ac might set extrasub.
19456# FIXME: do we really want to maintain this feature?
19457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19458ac_sed_extra="$ac_vpsub
1c710c3c
DJ
19459$extrasub
19460_ACEOF
5213506e 19461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
19462:t
19463/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
19464s|@configure_input@|$ac_sed_conf_input|;t t
19465s&@top_builddir@&$ac_top_builddir_sub&;t t
19466s&@top_build_prefix@&$ac_top_build_prefix&;t t
19467s&@srcdir@&$ac_srcdir&;t t
19468s&@abs_srcdir@&$ac_abs_srcdir&;t t
19469s&@top_srcdir@&$ac_top_srcdir&;t t
19470s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19471s&@builddir@&$ac_builddir&;t t
19472s&@abs_builddir@&$ac_abs_builddir&;t t
19473s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19474s&@INSTALL@&$ac_INSTALL&;t t
19475$ac_datarootdir_hack
19476"
19477eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19478if $ac_cs_awk_getline; then
22e05272 19479 $AWK -f "$ac_tmp/subs.awk"
5213506e 19480else
22e05272
JM
19481 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19482fi \
19483 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
19484
19485test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
19486 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19487 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19488 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 19489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19490which seems to be undefined. Please make sure it is defined" >&5
5213506e 19491$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 19492which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 19493
22e05272 19494 rm -f "$ac_tmp/stdin"
5213506e 19495 case $ac_file in
22e05272
JM
19496 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19497 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 19498 esac \
22e05272 19499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 19500 ;;
11a67599 19501
11a67599 19502
79c06341 19503
5213506e
RW
19504 esac
19505
3e54529c
RW
19506
19507 case $ac_file$ac_mode in
19508 "Makefile":F) sed "$extrasub_build" Makefile |
19509 sed "$extrasub_host" |
19510 sed "$extrasub_target" > mf$$
19511 mv -f mf$$ Makefile ;;
19512
19513 esac
5213506e
RW
19514done # for ac_tag
19515
19516
19517as_fn_exit 0
1c710c3c 19518_ACEOF
1c710c3c
DJ
19519ac_clean_files=$ac_clean_files_save
19520
5213506e 19521test $ac_write_fail = 0 ||
22e05272 19522 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 19523
1c710c3c
DJ
19524
19525# configure is writing to config.log, and then calls config.status.
19526# config.status does its own redirection, appending to config.log.
19527# Unfortunately, on DOS this fails, as config.log is still kept open
19528# by configure, so config.status won't be able to write to it; its
19529# output is simply discarded. So we exec the FD to /dev/null,
19530# effectively closing config.log, so it can be properly (re)opened and
19531# appended to by config.status. When coming back to configure, we
19532# need to make the FD available again.
19533if test "$no_create" != yes; then
19534 ac_cs_success=:
19535 ac_config_status_args=
19536 test "$silent" = yes &&
19537 ac_config_status_args="$ac_config_status_args --quiet"
19538 exec 5>/dev/null
19539 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19540 exec 5>>config.log
19541 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19542 # would make configure fail if this is the last instruction.
22e05272 19543 $ac_cs_success || as_fn_exit 1
5213506e
RW
19544fi
19545if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19547$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 19548fi
79c06341 19549