]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
libsanitizer: Only build libhwasan when targeting AArch64
[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
612DLLTOOL_FOR_TARGET
613AS_FOR_TARGET
614AR_FOR_TARGET
b4c522fa 615GDC_FOR_TARGET
632e2a07 616GOC_FOR_TARGET
5213506e 617GFORTRAN_FOR_TARGET
5213506e
RW
618GCC_FOR_TARGET
619CXX_FOR_TARGET
620CC_FOR_TARGET
e7a82751 621READELF
e4a9a572 622OTOOL
5213506e
RW
623OBJDUMP
624OBJCOPY
625WINDMC
626WINDRES
627STRIP
628RANLIB
629NM
630LIPO
631LD
632DLLTOOL
633AS
634AR
635RUNTEST
636EXPECT
637MAKEINFO
638FLEX
639LEX
640M4
641BISON
642YACC
5213506e
RW
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
b4c522fa 649GDC_FOR_BUILD
632e2a07 650GOC_FOR_BUILD
5213506e 651GFORTRAN_FOR_BUILD
5213506e
RW
652DLLTOOL_FOR_BUILD
653CXX_FOR_BUILD
654CXXFLAGS_FOR_BUILD
655CFLAGS_FOR_BUILD
656CC_FOR_BUILD
657AS_FOR_BUILD
658AR_FOR_BUILD
aae29963 659target_configdirs
5213506e 660configdirs
5213506e 661build_configdirs
5213506e
RW
662INSTALL_GDB_TK
663GDB_TK
664CONFIGURE_GDB_TK
665build_tooldir
666tooldir
667GCC_SHLIB_SUBDIR
668RPATH_ENVVAR
ffedf511
RW
669target_configargs
670host_configargs
671build_configargs
e12c4094 672BUILD_CONFIG
6f57bdf6 673LDFLAGS_FOR_TARGET
5213506e
RW
674CXXFLAGS_FOR_TARGET
675CFLAGS_FOR_TARGET
676DEBUG_PREFIX_CFLAGS_FOR_TARGET
677SYSROOT_CFLAGS_FOR_TARGET
3c36aa6b 678get_gcc_base_ver
1c01ebf6 679extra_host_zlib_configure_flags
d7f09764 680extra_host_libiberty_configure_flags
fca38047 681stage1_languages
cdfee50a 682host_shared
45b3824d
TS
683extra_linker_plugin_flags
684extra_linker_plugin_configure_flags
33ad93b9 685islinc
eae1a5d4 686isllibs
5213506e 687poststage1_ldflags
ed2eaa9f 688poststage1_libs
5213506e 689stage1_ldflags
0b21f5d3 690stage1_libs
0ff2d841 691extra_isl_gmp_configure_flags
5213506e
RW
692extra_mpc_mpfr_configure_flags
693extra_mpc_gmp_configure_flags
694extra_mpfr_configure_flags
695gmpinc
696gmplibs
7ffcf5d6 697HAVE_CXX11_FOR_BUILD
ffac9597 698HAVE_CXX11
5213506e
RW
699do_compare
700GNATMAKE
701GNATBIND
702ac_ct_CXX
703CXXFLAGS
704CXX
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
5f520819 712extra_liboffloadmic_configure_flags
5213506e
RW
713target_subdir
714host_subdir
715build_subdir
716build_libsubdir
87264276
PB
717AWK
718SED
5213506e
RW
719LN_S
720LN
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_os
725target_vendor
726target_cpu
727target
728host_os
729host_vendor
730host_cpu
731host
732target_noncanonical
733host_noncanonical
734build_noncanonical
735build_os
736build_vendor
737build_cpu
738build
739TOPLEVEL_CONFIGURE_ARGUMENTS
740target_alias
741host_alias
742build_alias
743LIBS
744ECHO_T
745ECHO_N
746ECHO_C
747DEFS
748mandir
749localedir
750libdir
751psdir
752pdfdir
753dvidir
754htmldir
755infodir
756docdir
757oldincludedir
758includedir
759localstatedir
760sharedstatedir
761sysconfdir
762datadir
763datarootdir
764libexecdir
765sbindir
766bindir
767program_transform_name
768prefix
769exec_prefix
770PACKAGE_URL
771PACKAGE_BUGREPORT
772PACKAGE_STRING
773PACKAGE_VERSION
774PACKAGE_TARNAME
775PACKAGE_NAME
776PATH_SEPARATOR
777SHELL'
778ac_subst_files='serialization_dependencies
779host_makefile_frag
780target_makefile_frag
781alphaieee_frag
782ospace_frag'
783ac_user_opts='
784enable_option_checking
785with_build_libsubdir
a05c2c75 786with_system_zlib
85c64bbe
BS
787enable_as_accelerator_for
788enable_offload_targets
5213506e 789enable_gold
21539e2e 790enable_ld
78edb32f 791enable_compressed_debug_sections
87e6d9dc
TB
792enable_libquadmath
793enable_libquadmath_support
5213506e
RW
794enable_libada
795enable_libssp
1873ec0c 796enable_libstdcxx
5f520819 797enable_liboffloadmic
ff3ac0f4 798enable_bootstrap
5213506e
RW
799with_mpc
800with_mpc_include
801with_mpc_lib
802with_mpfr_dir
803with_mpfr
804with_mpfr_include
805with_mpfr_lib
806with_gmp_dir
807with_gmp
808with_gmp_include
809with_gmp_lib
5213506e 810with_stage1_libs
aac9103b 811with_static_standard_libraries
0b21f5d3 812with_stage1_ldflags
5213506e 813with_boot_libs
ed2eaa9f 814with_boot_ldflags
33ad93b9
RG
815with_isl
816with_isl_include
817with_isl_lib
818enable_isl_version_check
d7f09764 819enable_lto
45b3824d
TS
820enable_linker_plugin_configure_flags
821enable_linker_plugin_flags
cdfee50a 822enable_host_shared
5213506e 823enable_stage1_languages
43c40f3e 824enable_objc_gc
114bf3f1
MK
825with_target_bdw_gc
826with_target_bdw_gc_include
827with_target_bdw_gc_lib
3c36aa6b 828with_gcc_major_version_only
5213506e
RW
829with_build_sysroot
830with_debug_prefix_map
5646b7b9 831with_build_config
beeda1d9 832enable_vtable_verify
5213506e
RW
833enable_serial_configure
834with_build_time_tools
835enable_maintainer_mode
836enable_stage1_checking
837enable_werror
5213506e
RW
838'
839 ac_precious_vars='build_alias
840host_alias
841target_alias
842CC
843CFLAGS
844LDFLAGS
845LIBS
846CPPFLAGS
847CXX
848CXXFLAGS
849CCC
ffedf511
RW
850build_configargs
851host_configargs
852target_configargs
5213506e
RW
853AR
854AS
855DLLTOOL
856LD
857LIPO
858NM
859RANLIB
860STRIP
861WINDRES
862WINDMC
863OBJCOPY
864OBJDUMP
e4a9a572 865OTOOL
e7a82751 866READELF
5213506e
RW
867CC_FOR_TARGET
868CXX_FOR_TARGET
869GCC_FOR_TARGET
5213506e 870GFORTRAN_FOR_TARGET
632e2a07 871GOC_FOR_TARGET
b4c522fa 872GDC_FOR_TARGET
5213506e
RW
873AR_FOR_TARGET
874AS_FOR_TARGET
875DLLTOOL_FOR_TARGET
876LD_FOR_TARGET
877LIPO_FOR_TARGET
878NM_FOR_TARGET
9bccfdf5 879OBJCOPY_FOR_TARGET
5213506e 880OBJDUMP_FOR_TARGET
e4a9a572 881OTOOL_FOR_TARGET
5213506e 882RANLIB_FOR_TARGET
e7a82751 883READELF_FOR_TARGET
5213506e
RW
884STRIP_FOR_TARGET
885WINDRES_FOR_TARGET
886WINDMC_FOR_TARGET'
887
671aa708
NN
888
889# Initialize some variables set by options.
1c710c3c
DJ
890ac_init_help=
891ac_init_version=false
5213506e
RW
892ac_unrecognized_opts=
893ac_unrecognized_sep=
671aa708
NN
894# The variables have the same names as the options, with
895# dashes changed to underlines.
1c710c3c 896cache_file=/dev/null
671aa708 897exec_prefix=NONE
671aa708 898no_create=
671aa708
NN
899no_recursion=
900prefix=NONE
901program_prefix=NONE
902program_suffix=NONE
903program_transform_name=s,x,x,
904silent=
905site=
906srcdir=
671aa708
NN
907verbose=
908x_includes=NONE
909x_libraries=NONE
1c710c3c
DJ
910
911# Installation directory options.
912# These are left unexpanded so users can "make install exec_prefix=/foo"
913# and all the variables that are supposed to be based on exec_prefix
914# by default will actually change.
915# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 916# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
917bindir='${exec_prefix}/bin'
918sbindir='${exec_prefix}/sbin'
919libexecdir='${exec_prefix}/libexec'
5213506e
RW
920datarootdir='${prefix}/share'
921datadir='${datarootdir}'
671aa708
NN
922sysconfdir='${prefix}/etc'
923sharedstatedir='${prefix}/com'
924localstatedir='${prefix}/var'
671aa708
NN
925includedir='${prefix}/include'
926oldincludedir='/usr/include'
5213506e
RW
927docdir='${datarootdir}/doc/${PACKAGE}'
928infodir='${datarootdir}/info'
929htmldir='${docdir}'
930dvidir='${docdir}'
931pdfdir='${docdir}'
932psdir='${docdir}'
933libdir='${exec_prefix}/lib'
934localedir='${datarootdir}/locale'
935mandir='${datarootdir}/man'
79c06341 936
671aa708 937ac_prev=
5213506e 938ac_dashdash=
671aa708
NN
939for ac_option
940do
671aa708
NN
941 # If the previous option needs an argument, assign it.
942 if test -n "$ac_prev"; then
5213506e 943 eval $ac_prev=\$ac_option
671aa708
NN
944 ac_prev=
945 continue
946 fi
79c06341 947
5213506e 948 case $ac_option in
22e05272
JM
949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
950 *=) ac_optarg= ;;
951 *) ac_optarg=yes ;;
5213506e 952 esac
671aa708
NN
953
954 # Accept the important Cygnus configure options, so we can diagnose typos.
955
5213506e
RW
956 case $ac_dashdash$ac_option in
957 --)
958 ac_dashdash=yes ;;
671aa708
NN
959
960 -bindir | --bindir | --bindi | --bind | --bin | --bi)
961 ac_prev=bindir ;;
962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 963 bindir=$ac_optarg ;;
671aa708
NN
964
965 -build | --build | --buil | --bui | --bu)
1c710c3c 966 ac_prev=build_alias ;;
671aa708 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 968 build_alias=$ac_optarg ;;
671aa708
NN
969
970 -cache-file | --cache-file | --cache-fil | --cache-fi \
971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
972 ac_prev=cache_file ;;
973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
975 cache_file=$ac_optarg ;;
976
977 --config-cache | -C)
978 cache_file=config.cache ;;
671aa708 979
5213506e 980 -datadir | --datadir | --datadi | --datad)
671aa708 981 ac_prev=datadir ;;
5213506e 982 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 983 datadir=$ac_optarg ;;
671aa708 984
5213506e
RW
985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
986 | --dataroo | --dataro | --datar)
987 ac_prev=datarootdir ;;
988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
990 datarootdir=$ac_optarg ;;
991
671aa708 992 -disable-* | --disable-*)
5213506e 993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 994 # Reject names that are not valid shell variable names.
5213506e 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 996 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001"enable_$ac_useropt"
1002"*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=no ;;
1007
1008 -docdir | --docdir | --docdi | --doc | --do)
1009 ac_prev=docdir ;;
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1012
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014 ac_prev=dvidir ;;
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
671aa708
NN
1017
1018 -enable-* | --enable-*)
5213506e 1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 1020 # Reject names that are not valid shell variable names.
5213506e 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1022 as_fn_error $? "invalid feature name: $ac_useropt"
5213506e
RW
1023 ac_useropt_orig=$ac_useropt
1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1026 *"
1027"enable_$ac_useropt"
1028"*) ;;
1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1030 ac_unrecognized_sep=', ';;
2aeb72e9 1031 esac
5213506e 1032 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1c710c3c 1041 exec_prefix=$ac_optarg ;;
671aa708
NN
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1c710c3c
DJ
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
671aa708
NN
1053
1054 -host | --host | --hos | --ho)
1c710c3c 1055 ac_prev=host_alias ;;
671aa708 1056 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1057 host_alias=$ac_optarg ;;
671aa708 1058
5213506e
RW
1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
671aa708
NN
1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1070 includedir=$ac_optarg ;;
671aa708
NN
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1075 infodir=$ac_optarg ;;
671aa708
NN
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1080 libdir=$ac_optarg ;;
671aa708
NN
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1087 libexecdir=$ac_optarg ;;
671aa708 1088
5213506e
RW
1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
671aa708 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1095 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1099 localstatedir=$ac_optarg ;;
671aa708
NN
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1104 mandir=$ac_optarg ;;
671aa708
NN
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1111 | --no-cr | --no-c | -n)
671aa708
NN
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1125 oldincludedir=$ac_optarg ;;
671aa708
NN
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1130 prefix=$ac_optarg ;;
671aa708
NN
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1137 program_prefix=$ac_optarg ;;
671aa708
NN
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1144 program_suffix=$ac_optarg ;;
671aa708
NN
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1161 program_transform_name=$ac_optarg ;;
671aa708 1162
5213506e
RW
1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
671aa708
NN
1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1c710c3c 1181 sbindir=$ac_optarg ;;
671aa708
NN
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1c710c3c 1192 sharedstatedir=$ac_optarg ;;
671aa708
NN
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1c710c3c 1197 site=$ac_optarg ;;
671aa708
NN
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1202 srcdir=$ac_optarg ;;
671aa708
NN
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1209 sysconfdir=$ac_optarg ;;
671aa708
NN
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1212 ac_prev=target_alias ;;
671aa708 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1214 target_alias=$ac_optarg ;;
671aa708
NN
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1c710c3c
DJ
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
671aa708
NN
1221
1222 -with-* | --with-*)
5213506e 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1224 # Reject names that are not valid shell variable names.
5213506e 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1226 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1230 *"
1231"with_$ac_useropt"
1232"*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
2aeb72e9 1235 esac
5213506e 1236 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1237
1238 -without-* | --without-*)
5213506e 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1240 # Reject names that are not valid shell variable names.
5213506e 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1242 as_fn_error $? "invalid package name: $ac_useropt"
5213506e
RW
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247"with_$ac_useropt"
1248"*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=no ;;
671aa708
NN
1253
1254 --x)
1255 # Obsolete; use --with-x.
1256 with_x=yes ;;
1257
1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1259 | --x-incl | --x-inc | --x-in | --x-i)
1260 ac_prev=x_includes ;;
1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1263 x_includes=$ac_optarg ;;
671aa708
NN
1264
1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1267 ac_prev=x_libraries ;;
1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1270 x_libraries=$ac_optarg ;;
671aa708 1271
22e05272
JM
1272 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1273Try \`$0 --help' for more information"
671aa708
NN
1274 ;;
1275
1c710c3c
DJ
1276 *=*)
1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1278 # Reject names that are not valid shell variable names.
5213506e
RW
1279 case $ac_envvar in #(
1280 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
5213506e
RW
1282 esac
1283 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1284 export $ac_envvar ;;
1285
671aa708 1286 *)
1c710c3c 1287 # FIXME: should be removed in autoconf 3.0.
5213506e 1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
671aa708
NN
1292 ;;
1293
1294 esac
1295done
1296
1297if test -n "$ac_prev"; then
1c710c3c 1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1299 as_fn_error $? "missing argument to $ac_option"
af71363e 1300fi
af71363e 1301
5213506e
RW
1302if test -n "$ac_unrecognized_opts"; then
1303 case $enable_option_checking in
1304 no) ;;
22e05272 1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
5213506e 1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1307 esac
5213506e 1308fi
2aeb72e9 1309
5213506e
RW
1310# Check all directory arguments for consistency.
1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1312 datadir sysconfdir sharedstatedir localstatedir includedir \
1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1314 libdir localedir mandir
2aeb72e9 1315do
5213506e
RW
1316 eval ac_val=\$$ac_var
1317 # Remove trailing slashes.
1318 case $ac_val in
1319 */ )
1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1321 eval $ac_var=\$ac_val;;
1322 esac
1323 # Be sure to have absolute directory names.
2aeb72e9 1324 case $ac_val in
5213506e
RW
1325 [\\/$]* | ?:[\\/]* ) continue;;
1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1327 esac
22e05272 1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1329done
1330
1c710c3c
DJ
1331# There might be people who depend on the old broken behavior: `$host'
1332# used to hold the argument of --host etc.
1333# FIXME: To remove some day.
1334build=$build_alias
1335host=$host_alias
1336target=$target_alias
0b0dc272 1337
1c710c3c
DJ
1338# FIXME: To remove some day.
1339if test "x$host_alias" != x; then
1340 if test "x$build_alias" = x; then
1341 cross_compiling=maybe
1c710c3c
DJ
1342 elif test "x$build_alias" != "x$host_alias"; then
1343 cross_compiling=yes
1344 fi
1345fi
1346
1347ac_tool_prefix=
1348test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349
1350test "$silent" = yes && exec 6>/dev/null
671aa708 1351
671aa708 1352
5213506e
RW
1353ac_pwd=`pwd` && test -n "$ac_pwd" &&
1354ac_ls_di=`ls -di .` &&
1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1356 as_fn_error $? "working directory cannot be determined"
5213506e 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1358 as_fn_error $? "pwd does not report name of working directory"
5213506e
RW
1359
1360
671aa708
NN
1361# Find the source files, if location was not specified.
1362if test -z "$srcdir"; then
1363 ac_srcdir_defaulted=yes
5213506e
RW
1364 # Try the directory containing this script, then the parent directory.
1365 ac_confdir=`$as_dirname -- "$as_myself" ||
1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1367 X"$as_myself" : 'X\(//\)[^/]' \| \
1368 X"$as_myself" : 'X\(//\)$' \| \
1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1370$as_echo X"$as_myself" |
1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)[^/].*/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\).*/{
1384 s//\1/
1385 q
1386 }
1387 s/.*/./; q'`
671aa708 1388 srcdir=$ac_confdir
5213506e 1389 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1390 srcdir=..
1391 fi
1392else
1393 ac_srcdir_defaulted=no
1394fi
5213506e
RW
1395if test ! -r "$srcdir/$ac_unique_file"; then
1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
5213506e
RW
1398fi
1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1400ac_abs_confdir=`(
22e05272 1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
5213506e
RW
1402 pwd)`
1403# When building in place, set srcdir=.
1404if test "$ac_abs_confdir" = "$ac_pwd"; then
1405 srcdir=.
1406fi
1407# Remove unnecessary trailing slashes from srcdir.
1408# Double slashes in file names in object file debugging info
1409# mess up M-x gdb in Emacs.
1410case $srcdir in
1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1412esac
87841584
AM
1413case $srcdir in
1414 *" "*)
22e05272 1415 as_fn_error $? "path to source, $srcdir, contains spaces"
87841584
AM
1416 ;;
1417esac
ac9e6043
RW
1418ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1419
5213506e
RW
1420for ac_var in $ac_precious_vars; do
1421 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1422 eval ac_env_${ac_var}_value=\$${ac_var}
1423 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1424 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425done
1c710c3c
DJ
1426
1427#
1428# Report the --help message.
1429#
1430if test "$ac_init_help" = "long"; then
1431 # Omit some internal or obsolete options to make the list less imposing.
1432 # This message is too long to be a string in the A/UX 3.1 sh.
1433 cat <<_ACEOF
1434\`configure' configures this package to adapt to many kinds of systems.
1435
1436Usage: $0 [OPTION]... [VAR=VALUE]...
1437
1438To assign environment variables (e.g., CC, CFLAGS...), specify them as
1439VAR=VALUE. See below for descriptions of some of the useful variables.
1440
1441Defaults for the options are specified in brackets.
1442
1443Configuration:
1444 -h, --help display this help and exit
1445 --help=short display options specific to this package
1446 --help=recursive display the short help of all the included packages
1447 -V, --version display version information and exit
22e05272 1448 -q, --quiet, --silent do not print \`checking ...' messages
1c710c3c
DJ
1449 --cache-file=FILE cache test results in FILE [disabled]
1450 -C, --config-cache alias for \`--cache-file=config.cache'
1451 -n, --no-create do not create output files
1452 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453
1c710c3c
DJ
1454Installation directories:
1455 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1456 [$ac_default_prefix]
1c710c3c 1457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1458 [PREFIX]
1c710c3c
DJ
1459
1460By default, \`make install' will install all the files in
1461\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1462an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1463for instance \`--prefix=\$HOME'.
1464
1465For better control, use the options below.
1466
1467Fine tuning of the installation directories:
5213506e
RW
1468 --bindir=DIR user executables [EPREFIX/bin]
1469 --sbindir=DIR system admin executables [EPREFIX/sbin]
1470 --libexecdir=DIR program executables [EPREFIX/libexec]
1471 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1472 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1473 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1487_ACEOF
1488
1489 cat <<\_ACEOF
1490
1491Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500_ACEOF
1501fi
1502
1503if test -n "$ac_init_help"; then
1504
1505 cat <<\_ACEOF
1506
1507Optional Features:
5213506e 1508 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1511 --enable-as-accelerator-for=ARG
1512 build as offload target compiler. Specify offload
1513 host triple by ARG
1514 --enable-offload-targets=LIST
1515 enable offloading to devices from comma-separated
1516 LIST of TARGET[=DIR]. Use optional path to find
1517 offload target compiler during the build
21539e2e 1518 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1519 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1520 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1521 Enable compressed debug sections for gas, gold or ld
1522 by default
87e6d9dc
TB
1523 --disable-libquadmath do not build libquadmath directory
1524 --disable-libquadmath-support
1525 disable libquadmath support for Fortran
30b74385
RW
1526 --enable-libada build libada directory
1527 --enable-libssp build libssp directory
1873ec0c 1528 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1529 --enable-liboffloadmic=ARG
1530 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1531 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1532 --disable-isl-version-check
560d18d3 1533 disable check for isl version
d7f09764 1534 --enable-lto enable link time optimization support
45b3824d
TS
1535 --enable-linker-plugin-configure-flags=FLAGS
1536 additional flags for configuring linker plugins
1537 [none]
1538 --enable-linker-plugin-flags=FLAGS
1539 additional flags for configuring and building linker
1540 plugins [none]
cdfee50a 1541 --enable-host-shared build host code as shared libraries
33e39b66
AS
1542 --enable-stage1-languages[=all]
1543 choose additional languages to build during stage1.
1544 Mostly useful for compiler development
43c40f3e
RO
1545 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1546 Objective-C runtime
318a4e6d 1547 --enable-vtable-verify Enable vtable verification feature
30b74385 1548 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1549 force sequential configuration of sub-packages for
1550 the host, target or build machine, or all
1551 sub-packages
1552 --enable-maintainer-mode
1553 enable make rules and dependencies not useful (and
1554 sometimes confusing) to the casual installer
1555 --enable-stage1-checking[=all]
1556 choose additional checking for stage1 of the
1557 compiler
1c710c3c
DJ
1558 --enable-werror enable -Werror in bootstrap stage2 and later
1559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1564 --with-system-zlib use installed libz
33e39b66
AS
1565 --with-mpc=PATH specify prefix directory for installed MPC package.
1566 Equivalent to --with-mpc-include=PATH/include plus
1567 --with-mpc-lib=PATH/lib
1568 --with-mpc-include=PATH specify directory for installed MPC include files
1569 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1570 --with-mpfr-dir=PATH this option has been REMOVED
1571 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1572 Equivalent to --with-mpfr-include=PATH/include plus
1573 --with-mpfr-lib=PATH/lib
1c710c3c 1574 --with-mpfr-include=PATH
30b74385
RW
1575 specify directory for installed MPFR include files
1576 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1577 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1578 --with-gmp=PATH specify prefix directory for the installed GMP
1579 package. Equivalent to
1580 --with-gmp-include=PATH/include plus
1581 --with-gmp-lib=PATH/lib
30b74385
RW
1582 --with-gmp-include=PATH specify directory for installed GMP include files
1583 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1584 --with-stage1-libs=LIBS libraries for stage1
aac9103b
TT
1585 --with-static-standard-libraries
1586 use -static-libstdc++ and -static-libgcc
1587 (default=auto)
33e39b66
AS
1588 --with-stage1-ldflags=FLAGS
1589 linker flags for stage1
33e39b66
AS
1590 --with-boot-libs=LIBS libraries for stage2 and later
1591 --with-boot-ldflags=FLAGS
1592 linker flags for stage2 and later
e357a5e0 1593 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1594 package. Equivalent to
33ad93b9
RG
1595 --with-isl-include=PATH/include plus
1596 --with-isl-lib=PATH/lib
560d18d3
AK
1597 --with-isl-include=PATH Specify directory for installed isl include files
1598 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1599 --with-target-bdw-gc=PATHLIST
1600 specify prefix directory for installed bdw-gc
1601 package. Equivalent to
1602 --with-target-bdw-gc-include=PATH/include plus
1603 --with-target-bdw-gc-lib=PATH/lib
1604 --with-target-bdw-gc-include=PATHLIST
1605 specify directories for installed bdw-gc include
1606 files
1607 --with-target-bdw-gc-lib=PATHLIST
1608 specify directories for installed bdw-gc library
3c36aa6b
JJ
1609 --with-gcc-major-version-only
1610 use only GCC major number in filesystem paths
30b74385 1611 --with-build-sysroot=SYSROOT
1c710c3c 1612 use sysroot as the system root during the build
c8aea42c 1613 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1614 map A to B, C to D ... in debug information
1615 --with-build-config='NAME NAME2...'
1616 use config/NAME.mk build configuration
30b74385 1617 --with-build-time-tools=PATH
1c710c3c 1618 use given path to find target tools during the build
1c710c3c
DJ
1619
1620Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
5213506e 1625 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
5213506e 1627 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1628 CXX C++ compiler command
1629 CXXFLAGS C++ compiler flags
ffedf511
RW
1630 build_configargs
1631 additional configure arguments for build directories
1632 host_configargs
1633 additional configure arguments for host directories
1634 target_configargs
1635 additional configure arguments for target directories
278a7a38
AO
1636 AR AR for the host
1637 AS AS for the host
1638 DLLTOOL DLLTOOL for the host
1639 LD LD for the host
1640 LIPO LIPO for the host
1641 NM NM for the host
1642 RANLIB RANLIB for the host
1643 STRIP STRIP for the host
1644 WINDRES WINDRES for the host
901119ae 1645 WINDMC WINDMC for the host
278a7a38
AO
1646 OBJCOPY OBJCOPY for the host
1647 OBJDUMP OBJDUMP for the host
e4a9a572 1648 OTOOL OTOOL for the host
e7a82751 1649 READELF READELF for the host
278a7a38
AO
1650 CC_FOR_TARGET
1651 CC for the target
1652 CXX_FOR_TARGET
1653 CXX for the target
1654 GCC_FOR_TARGET
1655 GCC for the target
278a7a38
AO
1656 GFORTRAN_FOR_TARGET
1657 GFORTRAN for the target
632e2a07
ILT
1658 GOC_FOR_TARGET
1659 GOC for the target
b4c522fa
IB
1660 GDC_FOR_TARGET
1661 GDC for the target
278a7a38
AO
1662 AR_FOR_TARGET
1663 AR for the target
1664 AS_FOR_TARGET
1665 AS for the target
1666 DLLTOOL_FOR_TARGET
1667 DLLTOOL for the target
1668 LD_FOR_TARGET
1669 LD for the target
1670 LIPO_FOR_TARGET
1671 LIPO for the target
1672 NM_FOR_TARGET
1673 NM for the target
9bccfdf5
AP
1674 OBJCOPY_FOR_TARGET
1675 OBJCOPY for the target
278a7a38
AO
1676 OBJDUMP_FOR_TARGET
1677 OBJDUMP for the target
e4a9a572
IS
1678 OTOOL_FOR_TARGET
1679 OTOOL for the target
278a7a38
AO
1680 RANLIB_FOR_TARGET
1681 RANLIB for the target
e7a82751
RM
1682 READELF_FOR_TARGET
1683 READELF for the target
278a7a38
AO
1684 STRIP_FOR_TARGET
1685 STRIP for the target
1686 WINDRES_FOR_TARGET
1687 WINDRES for the target
901119ae
KT
1688 WINDMC_FOR_TARGET
1689 WINDMC for the target
1c710c3c
DJ
1690
1691Use these variables to override the choices made by `configure' or to help
1692it to find libraries and programs with nonstandard names/locations.
1693
5213506e 1694Report bugs to the package provider.
1c710c3c 1695_ACEOF
5213506e 1696ac_status=$?
1c710c3c
DJ
1697fi
1698
1699if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1c710c3c 1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704 continue
1c710c3c
DJ
1705 ac_builddir=.
1706
5213506e
RW
1707case "$ac_dir" in
1708.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709*)
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716 esac ;;
1717esac
1718ac_abs_top_builddir=$ac_pwd
1719ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720# for backward compatibility:
1721ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1722
1723case $srcdir in
5213506e 1724 .) # We are building in place.
1c710c3c 1725 ac_srcdir=.
5213506e
RW
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1729 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1732 *) # Relative name.
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1736esac
5213506e
RW
1737ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1742 echo &&
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1747 else
5213506e
RW
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749 fi || ac_status=$?
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1751 done
1752fi
1753
5213506e 1754test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1755if $ac_init_version; then
1756 cat <<\_ACEOF
5213506e 1757configure
22e05272 1758generated by GNU Autoconf 2.69
1c710c3c 1759
22e05272 1760Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
1761This configure script is free software; the Free Software Foundation
1762gives unlimited permission to copy, distribute and modify it.
1763_ACEOF
5213506e 1764 exit
0b0dc272 1765fi
5213506e
RW
1766
1767## ------------------------ ##
1768## Autoconf initialization. ##
1769## ------------------------ ##
1770
1771# ac_fn_c_try_compile LINENO
1772# --------------------------
1773# Try to compile conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_compile ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803fi
22e05272
JM
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
5213506e
RW
1806
1807} # ac_fn_c_try_compile
1808
1809# ac_fn_cxx_try_compile LINENO
1810# ----------------------------
1811# Try to compile conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_cxx_try_compile ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841fi
22e05272
JM
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
5213506e
RW
1844
1845} # ac_fn_cxx_try_compile
1846
0b21f5d3
EB
1847# ac_fn_cxx_try_link LINENO
1848# -------------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_cxx_try_link ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_cxx_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
22e05272 1874 test -x conftest$ac_exeext
0b21f5d3
EB
1875 }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
0b21f5d3
EB
1890
1891} # ac_fn_cxx_try_link
1892
5213506e
RW
1893# ac_fn_c_try_link LINENO
1894# -----------------------
1895# Try to link conftest.$ac_ext, and return whether this succeeded.
1896ac_fn_c_try_link ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext conftest$ac_exeext
1900 if { { ac_try="$ac_link"
1901case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904esac
1905eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906$as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest$ac_exeext && {
1919 test "$cross_compiling" = yes ||
22e05272 1920 test -x conftest$ac_exeext
5213506e
RW
1921 }; then :
1922 ac_retval=0
1923else
1924 $as_echo "$as_me: failed program was:" >&5
1925sed 's/^/| /' conftest.$ac_ext >&5
1926
1927 ac_retval=1
1928fi
1929 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1930 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1931 # interfere with the next link command; also delete a directory that is
1932 # left behind by Apple's compiler. We do this before executing the actions.
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
5213506e
RW
1936
1937} # ac_fn_c_try_link
1938cat >config.log <<_ACEOF
1c710c3c
DJ
1939This file contains any messages produced by compilers while
1940running configure, to aid debugging if configure makes a mistake.
1941
1942It was created by $as_me, which was
22e05272 1943generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
1944
1945 $ $0 $@
1946
1947_ACEOF
5213506e 1948exec 5>>config.log
1c710c3c
DJ
1949{
1950cat <<_ASUNAME
1951## --------- ##
1952## Platform. ##
1953## --------- ##
1954
1955hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1956uname -m = `(uname -m) 2>/dev/null || echo unknown`
1957uname -r = `(uname -r) 2>/dev/null || echo unknown`
1958uname -s = `(uname -s) 2>/dev/null || echo unknown`
1959uname -v = `(uname -v) 2>/dev/null || echo unknown`
1960
1961/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1962/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1963
1964/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1965/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1966/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1967/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1968/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1969/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1970/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1971
1972_ASUNAME
1973
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
5213506e
RW
1979 $as_echo "PATH: $as_dir"
1980 done
1981IFS=$as_save_IFS
1c710c3c
DJ
1982
1983} >&5
1984
1985cat >&5 <<_ACEOF
1986
1987
1988## ----------- ##
1989## Core tests. ##
1990## ----------- ##
1991
1992_ACEOF
1993
1994
1995# Keep a trace of the command line.
1996# Strip out --no-create and --no-recursion so they do not pile up.
1997# Strip out --silent because we don't want to record it for future runs.
1998# Also quote any args containing shell meta-characters.
1999# Make two passes to allow for proper duplicate-argument suppression.
2000ac_configure_args=
2001ac_configure_args0=
2002ac_configure_args1=
1c710c3c
DJ
2003ac_must_keep_next=false
2004for ac_pass in 1 2
2005do
2006 for ac_arg
2007 do
2008 case $ac_arg in
2009 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2011 | -silent | --silent | --silen | --sile | --sil)
2012 continue ;;
5213506e
RW
2013 *\'*)
2014 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2015 esac
2016 case $ac_pass in
5213506e 2017 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2018 2)
5213506e 2019 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2020 if test $ac_must_keep_next = true; then
2021 ac_must_keep_next=false # Got value, back to normal.
2022 else
2023 case $ac_arg in
2024 *=* | --config-cache | -C | -disable-* | --disable-* \
2025 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2026 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2027 | -with-* | --with-* | -without-* | --without-* | --x)
2028 case "$ac_configure_args0 " in
2029 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2030 esac
2031 ;;
2032 -* ) ac_must_keep_next=true ;;
2033 esac
2034 fi
5213506e 2035 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2036 ;;
2037 esac
2038 done
2039done
5213506e
RW
2040{ ac_configure_args0=; unset ac_configure_args0;}
2041{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2042
2043# When interrupted or exit'd, cleanup temporary files, and complete
2044# config.log. We remove comments because anyway the quotes in there
2045# would cause problems or look ugly.
5213506e
RW
2046# WARNING: Use '\'' to represent an apostrophe within the trap.
2047# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2048trap 'exit_status=$?
2049 # Save into config.log some information that might help in debugging.
2050 {
2051 echo
2052
22e05272 2053 $as_echo "## ---------------- ##
1c710c3c 2054## Cache variables. ##
22e05272 2055## ---------------- ##"
1c710c3c
DJ
2056 echo
2057 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2058(
2059 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in #(
2062 *${as_nl}*)
2063 case $ac_var in #(
2064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2065$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2066 esac
2067 case $ac_var in #(
2068 _ | IFS | as_nl) ;; #(
2069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2070 *) { eval $ac_var=; unset $ac_var;} ;;
2071 esac ;;
2072 esac
2073 done
1c710c3c 2074 (set) 2>&1 |
5213506e
RW
2075 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2076 *${as_nl}ac_space=\ *)
1c710c3c 2077 sed -n \
5213506e
RW
2078 "s/'\''/'\''\\\\'\'''\''/g;
2079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2080 ;; #(
1c710c3c 2081 *)
5213506e 2082 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2083 ;;
5213506e
RW
2084 esac |
2085 sort
2086)
1c710c3c
DJ
2087 echo
2088
22e05272 2089 $as_echo "## ----------------- ##
1c710c3c 2090## Output variables. ##
22e05272 2091## ----------------- ##"
1c710c3c
DJ
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
5213506e
RW
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
22e05272 2104 $as_echo "## ------------------- ##
5213506e 2105## File substitutions. ##
22e05272 2106## ------------------- ##"
1c710c3c
DJ
2107 echo
2108 for ac_var in $ac_subst_files
2109 do
5213506e
RW
2110 eval ac_val=\$$ac_var
2111 case $ac_val in
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 esac
2114 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2115 done | sort
2116 echo
2117 fi
2118
2119 if test -s confdefs.h; then
22e05272 2120 $as_echo "## ----------- ##
1c710c3c 2121## confdefs.h. ##
22e05272 2122## ----------- ##"
1c710c3c 2123 echo
5213506e 2124 cat confdefs.h
1c710c3c
DJ
2125 echo
2126 fi
2127 test "$ac_signal" != 0 &&
5213506e
RW
2128 $as_echo "$as_me: caught signal $ac_signal"
2129 $as_echo "$as_me: exit $exit_status"
1c710c3c 2130 } >&5
5213506e
RW
2131 rm -f core *.core core.conftest.* &&
2132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2133 exit $exit_status
5213506e 2134' 0
1c710c3c 2135for ac_signal in 1 2 13 15; do
5213506e 2136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2137done
2138ac_signal=0
2139
2140# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2141rm -f -r conftest* confdefs.h
2142
2143$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2144
2145# Predefined preprocessor variables.
2146
2147cat >>confdefs.h <<_ACEOF
2148#define PACKAGE_NAME "$PACKAGE_NAME"
2149_ACEOF
2150
1c710c3c
DJ
2151cat >>confdefs.h <<_ACEOF
2152#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2153_ACEOF
2154
1c710c3c
DJ
2155cat >>confdefs.h <<_ACEOF
2156#define PACKAGE_VERSION "$PACKAGE_VERSION"
2157_ACEOF
0b0dc272 2158
1c710c3c
DJ
2159cat >>confdefs.h <<_ACEOF
2160#define PACKAGE_STRING "$PACKAGE_STRING"
2161_ACEOF
2162
1c710c3c
DJ
2163cat >>confdefs.h <<_ACEOF
2164#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2165_ACEOF
2166
5213506e
RW
2167cat >>confdefs.h <<_ACEOF
2168#define PACKAGE_URL "$PACKAGE_URL"
2169_ACEOF
2170
1c710c3c
DJ
2171
2172# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2173# Prefer an explicitly selected file to automatically selected ones.
2174ac_site_file1=NONE
2175ac_site_file2=NONE
2176if test -n "$CONFIG_SITE"; then
22e05272
JM
2177 # We do not want a PATH search for config.site.
2178 case $CONFIG_SITE in #((
2179 -*) ac_site_file1=./$CONFIG_SITE;;
2180 */*) ac_site_file1=$CONFIG_SITE;;
2181 *) ac_site_file1=./$CONFIG_SITE;;
2182 esac
5213506e
RW
2183elif test "x$prefix" != xNONE; then
2184 ac_site_file1=$prefix/share/config.site
2185 ac_site_file2=$prefix/etc/config.site
2186else
2187 ac_site_file1=$ac_default_prefix/share/config.site
2188 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2189fi
5213506e
RW
2190for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2191do
2192 test "x$ac_site_file" = xNONE && continue
22e05272 2193 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
5213506e
RW
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2195$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2196 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2197 . "$ac_site_file" \
2198 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2200as_fn_error $? "failed to load site script $ac_site_file
2201See \`config.log' for more details" "$LINENO" 5; }
671aa708
NN
2202 fi
2203done
2204
2205if test -r "$cache_file"; then
22e05272
JM
2206 # Some versions of bash will fail to source /dev/null (special files
2207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
5213506e
RW
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2210$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2211 case $cache_file in
5213506e
RW
2212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2213 *) . "./$cache_file";;
1c710c3c
DJ
2214 esac
2215 fi
671aa708 2216else
5213506e
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2218$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2219 >$cache_file
2220fi
2221
2222# Check that the precious variables saved in the cache have kept the same
2223# value.
2224ac_cache_corrupted=false
5213506e 2225for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2226 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2227 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2228 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2229 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2230 case $ac_old_set,$ac_new_set in
2231 set,)
5213506e
RW
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2233$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2234 ac_cache_corrupted=: ;;
2235 ,set)
5213506e
RW
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2237$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2238 ac_cache_corrupted=: ;;
2239 ,);;
2240 *)
2241 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2242 # differences in whitespace do not lead to failure.
2243 ac_old_val_w=`echo x $ac_old_val`
2244 ac_new_val_w=`echo x $ac_new_val`
2245 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2247$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2248 ac_cache_corrupted=:
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2251$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2252 eval $ac_var=\$ac_old_val
2253 fi
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2255$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2257$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2258 fi;;
2259 esac
2260 # Pass precious variables to config.status.
2261 if test "$ac_new_set" = set; then
2262 case $ac_new_val in
5213506e 2263 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2264 *) ac_arg=$ac_var=$ac_new_val ;;
2265 esac
2266 case " $ac_configure_args " in
2267 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2268 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2269 esac
2270 fi
2271done
2272if $ac_cache_corrupted; then
5213506e
RW
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2276$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2277 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2278fi
5213506e
RW
2279## -------------------- ##
2280## Main body of script. ##
2281## -------------------- ##
671aa708 2282
2aeb72e9
DD
2283ac_ext=c
2284ac_cpp='$CPP $CPPFLAGS'
2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2287ac_compiler_gnu=$ac_cv_c_compiler_gnu
2288
1c710c3c
DJ
2289
2290
2291
1c710c3c
DJ
2292
2293
0115d4a3 2294
1c710c3c 2295
ad33ff57
RW
2296progname=$0
2297# if PWD already has a value, it is probably wrong.
2298if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2299
2300# Export original configure arguments for use by sub-configures.
2301# Quote arguments with shell meta charatcers.
2302TOPLEVEL_CONFIGURE_ARGUMENTS=
2303set -- "$progname" "$@"
2304for ac_arg
2305do
2306 case "$ac_arg" in
2307 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2308 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2309 # if the argument is of the form -foo=baz, quote the baz part only
2310 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2311 *) ;;
2312 esac
2313 # Add the quoted argument to the list.
2314 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2315done
2316if test "$silent" = yes; then
2317 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2318fi
2319# Remove the initial space we just introduced and, as these will be
2320# expanded by make, quote '$'.
2321TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2322
1c710c3c
DJ
2323
2324# Find the build, host, and target systems.
671aa708 2325ac_aux_dir=
5213506e 2326for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2327 if test -f "$ac_dir/install-sh"; then
2328 ac_aux_dir=$ac_dir
2329 ac_install_sh="$ac_aux_dir/install-sh -c"
2330 break
2331 elif test -f "$ac_dir/install.sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install.sh -c"
2334 break
2335 elif test -f "$ac_dir/shtool"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/shtool install -c"
2338 break
2339 fi
671aa708
NN
2340done
2341if test -z "$ac_aux_dir"; then
22e05272 2342 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2343fi
5213506e
RW
2344
2345# These three variables are undocumented and unsupported,
2346# and are intended to be withdrawn in a future Autoconf release.
2347# They can cause serious problems if a builder's source tree is in a directory
2348# whose full name contains unusual characters.
2349ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2350ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2351ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2352
671aa708 2353
1c710c3c 2354# Make sure we can run config.sub.
5213506e 2355$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5213506e
RW
2357
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2359$as_echo_n "checking build system type... " >&6; }
22e05272 2360if ${ac_cv_build+:} false; then :
5213506e
RW
2361 $as_echo_n "(cached) " >&6
2362else
2363 ac_build_alias=$build_alias
2364test "x$ac_build_alias" = x &&
2365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2366test "x$ac_build_alias" = x &&
22e05272 2367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5213506e 2368ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5213506e
RW
2370
2371fi
2372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2373$as_echo "$ac_cv_build" >&6; }
2374case $ac_cv_build in
2375*-*-*) ;;
22e05272 2376*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5213506e 2377esac
1c710c3c 2378build=$ac_cv_build
5213506e
RW
2379ac_save_IFS=$IFS; IFS='-'
2380set x $ac_cv_build
2381shift
2382build_cpu=$1
2383build_vendor=$2
2384shift; shift
2385# Remember, the first character of IFS is used to create $*,
2386# except with old shells:
2387build_os=$*
2388IFS=$ac_save_IFS
2389case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2390
671aa708 2391
1c710c3c
DJ
2392 case ${build_alias} in
2393 "") build_noncanonical=${build} ;;
2394 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2395esac
2396
2397
af71363e 2398
1c710c3c
DJ
2399 case ${host_alias} in
2400 "") host_noncanonical=${build_noncanonical} ;;
2401 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2402esac
2403
af71363e 2404
1c710c3c
DJ
2405
2406 case ${target_alias} in
2407 "") target_noncanonical=${host_noncanonical} ;;
2408 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2409esac
2410
af71363e 2411
1c710c3c
DJ
2412
2413
2414test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2415 test "$program_prefix$program_suffix$program_transform_name" = \
2416 NONENONEs,x,x, &&
1c710c3c 2417 program_transform_name=s,y,y,
af71363e 2418
5213506e
RW
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2420$as_echo_n "checking host system type... " >&6; }
22e05272 2421if ${ac_cv_host+:} false; then :
5213506e 2422 $as_echo_n "(cached) " >&6
af71363e 2423else
5213506e
RW
2424 if test "x$host_alias" = x; then
2425 ac_cv_host=$ac_cv_build
2426else
2427 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2428 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5213506e 2429fi
1c710c3c 2430
af71363e 2431fi
5213506e
RW
2432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2433$as_echo "$ac_cv_host" >&6; }
2434case $ac_cv_host in
2435*-*-*) ;;
22e05272 2436*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5213506e 2437esac
1c710c3c 2438host=$ac_cv_host
5213506e
RW
2439ac_save_IFS=$IFS; IFS='-'
2440set x $ac_cv_host
2441shift
2442host_cpu=$1
2443host_vendor=$2
2444shift; shift
2445# Remember, the first character of IFS is used to create $*,
2446# except with old shells:
2447host_os=$*
2448IFS=$ac_save_IFS
2449case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2450
2451
5213506e
RW
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2453$as_echo_n "checking target system type... " >&6; }
22e05272 2454if ${ac_cv_target+:} false; then :
5213506e 2455 $as_echo_n "(cached) " >&6
1c710c3c 2456else
5213506e
RW
2457 if test "x$target_alias" = x; then
2458 ac_cv_target=$ac_cv_host
2459else
2460 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5213506e 2462fi
1c710c3c
DJ
2463
2464fi
5213506e
RW
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2466$as_echo "$ac_cv_target" >&6; }
2467case $ac_cv_target in
2468*-*-*) ;;
22e05272 2469*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
5213506e 2470esac
1c710c3c 2471target=$ac_cv_target
5213506e
RW
2472ac_save_IFS=$IFS; IFS='-'
2473set x $ac_cv_target
2474shift
2475target_cpu=$1
2476target_vendor=$2
2477shift; shift
2478# Remember, the first character of IFS is used to create $*,
2479# except with old shells:
2480target_os=$*
2481IFS=$ac_save_IFS
2482case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2483
2484
2485# The aliases save the names the user supplied, while $host etc.
2486# will get canonicalized.
2487test -n "$target_alias" &&
2488 test "$program_prefix$program_suffix$program_transform_name" = \
2489 NONENONEs,x,x, &&
2490 program_prefix=${target_alias}-
5213506e 2491
671aa708 2492test "$program_prefix" != NONE &&
5213506e 2493 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2494# Use a double $ so make ignores it.
2495test "$program_suffix" != NONE &&
5213506e
RW
2496 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2497# Double any \ or $.
1c710c3c 2498# By default was `s,x,x', remove it if useless.
5213506e
RW
2499ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2500program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2501
671aa708
NN
2502
2503
775956d0
NN
2504# Get 'install' or 'install-sh' and its variants.
2505# Find a good install program. We prefer a C program (faster),
2506# so one script is as good as another. But avoid the broken or
2507# incompatible versions:
2508# SysV /etc/install, /usr/sbin/install
2509# SunOS /usr/etc/install
2510# IRIX /sbin/install
2511# AIX /bin/install
1c710c3c 2512# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2513# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2514# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2515# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2516# OS/2's system install, which has a completely different semantic
775956d0 2517# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2518# Reject install programs that cannot install multiple files.
5213506e
RW
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2520$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2521if test -z "$INSTALL"; then
22e05272 2522if ${ac_cv_path_install+:} false; then :
5213506e 2523 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2524else
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
5213506e
RW
2530 # Account for people who put trailing slashes in PATH elements.
2531case $as_dir/ in #((
2532 ./ | .// | /[cC]/* | \
1c710c3c 2533 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2534 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2535 /usr/ucb/* ) ;;
2536 *)
2537 # OSF1 and SCO ODT 3.0 have their own names for install.
2538 # Don't use installbsd from OSF since it installs stuff as root
2539 # by default.
2540 for ac_prog in ginstall scoinst install; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2542 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
775956d0 2543 if test $ac_prog = install &&
1c710c3c 2544 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2545 # AIX install. It has an incompatible calling convention.
2546 :
1c710c3c
DJ
2547 elif test $ac_prog = install &&
2548 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2549 # program-specific install script used by HP pwplus--don't use.
2550 :
775956d0 2551 else
38d24731
RW
2552 rm -rf conftest.one conftest.two conftest.dir
2553 echo one > conftest.one
2554 echo two > conftest.two
2555 mkdir conftest.dir
2556 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2557 test -s conftest.one && test -s conftest.two &&
2558 test -s conftest.dir/conftest.one &&
2559 test -s conftest.dir/conftest.two
2560 then
2561 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2562 break 3
2563 fi
775956d0
NN
2564 fi
2565 fi
2566 done
1c710c3c
DJ
2567 done
2568 ;;
2569esac
5213506e
RW
2570
2571 done
2572IFS=$as_save_IFS
1c710c3c 2573
38d24731 2574rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2575
2576fi
2577 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2578 INSTALL=$ac_cv_path_install
775956d0 2579 else
38d24731
RW
2580 # As a last resort, use the slow shell script. Don't cache a
2581 # value for INSTALL within a source directory, because that will
775956d0 2582 # break other packages using the cache if that directory is
38d24731 2583 # removed, or if the value is a relative name.
1c710c3c 2584 INSTALL=$ac_install_sh
775956d0
NN
2585 fi
2586fi
5213506e
RW
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2588$as_echo "$INSTALL" >&6; }
775956d0
NN
2589
2590# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2591# It thinks the first close brace ends the variable substitution.
2592test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2593
1c710c3c 2594test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2595
2596test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2597
5213506e
RW
2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2599$as_echo_n "checking whether ln works... " >&6; }
22e05272 2600if ${acx_cv_prog_LN+:} false; then :
5213506e 2601 $as_echo_n "(cached) " >&6
ad6717df
PB
2602else
2603 rm -f conftestdata_t
2604echo >conftestdata_f
2605if ln conftestdata_f conftestdata_t 2>/dev/null
2606then
2607 acx_cv_prog_LN=ln
2608else
2609 acx_cv_prog_LN=no
2610fi
2611rm -f conftestdata_f conftestdata_t
2612
2613fi
2614if test $acx_cv_prog_LN = no; then
2615 LN="cp"
5213506e
RW
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2617$as_echo "no, using $LN" >&6; }
ad6717df
PB
2618else
2619 LN="$acx_cv_prog_LN"
5213506e
RW
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621$as_echo "yes" >&6; }
ad6717df
PB
2622fi
2623
5213506e
RW
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2625$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2626LN_S=$as_ln_s
2627if test "$LN_S" = "ln -s"; then
5213506e
RW
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2629$as_echo "yes" >&6; }
fb0103e5 2630else
5213506e
RW
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2632$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2633fi
2634
87264276
PB
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2636$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 2637if ${ac_cv_path_SED+:} false; then :
87264276
PB
2638 $as_echo_n "(cached) " >&6
2639else
2640 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2641 for ac_i in 1 2 3 4 5 6 7; do
2642 ac_script="$ac_script$as_nl$ac_script"
2643 done
2644 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2645 { ac_script=; unset ac_script;}
2646 if test -z "$SED"; then
2647 ac_path_SED_found=false
2648 # Loop through the user's path and test for each of PROGNAME-LIST
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_prog in sed gsed; do
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 2657 as_fn_executable_p "$ac_path_SED" || continue
87264276
PB
2658# Check for GNU ac_path_SED and select it if it is found.
2659 # Check for GNU $ac_path_SED
2660case `"$ac_path_SED" --version 2>&1` in
2661*GNU*)
2662 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2663*)
2664 ac_count=0
2665 $as_echo_n 0123456789 >"conftest.in"
2666 while :
2667 do
2668 cat "conftest.in" "conftest.in" >"conftest.tmp"
2669 mv "conftest.tmp" "conftest.in"
2670 cp "conftest.in" "conftest.nl"
2671 $as_echo '' >> "conftest.nl"
2672 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2674 as_fn_arith $ac_count + 1 && ac_count=$as_val
2675 if test $ac_count -gt ${ac_path_SED_max-0}; then
2676 # Best one so far, save it but keep looking for a better one
2677 ac_cv_path_SED="$ac_path_SED"
2678 ac_path_SED_max=$ac_count
2679 fi
2680 # 10*(2^10) chars as input seems more than enough
2681 test $ac_count -gt 10 && break
2682 done
2683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2684esac
2685
2686 $ac_path_SED_found && break 3
2687 done
2688 done
2689 done
2690IFS=$as_save_IFS
2691 if test -z "$ac_cv_path_SED"; then
22e05272 2692 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
87264276
PB
2693 fi
2694else
2695 ac_cv_path_SED=$SED
2696fi
2697
2698fi
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2700$as_echo "$ac_cv_path_SED" >&6; }
2701 SED="$ac_cv_path_SED"
2702 rm -f conftest.sed
2703
2704for ac_prog in gawk mawk nawk awk
2705do
2706 # Extract the first word of "$ac_prog", so it can be a program name with args.
2707set dummy $ac_prog; ac_word=$2
2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2709$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2710if ${ac_cv_prog_AWK+:} false; then :
87264276
PB
2711 $as_echo_n "(cached) " >&6
2712else
2713 if test -n "$AWK"; then
2714 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2715else
2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717for as_dir in $PATH
2718do
2719 IFS=$as_save_IFS
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
87264276
PB
2723 ac_cv_prog_AWK="$ac_prog"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2726 fi
2727done
2728 done
2729IFS=$as_save_IFS
2730
2731fi
2732fi
2733AWK=$ac_cv_prog_AWK
2734if test -n "$AWK"; then
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2736$as_echo "$AWK" >&6; }
2737else
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2739$as_echo "no" >&6; }
2740fi
2741
2742
2743 test -n "$AWK" && break
2744done
2745
775956d0 2746
ee6a22df
L
2747srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2748
2749# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2750# a relative path.
2751if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2752 INSTALL="${srcpwd}/install-sh -c"
2753fi
2754
671aa708
NN
2755# Set srcdir to "." if that's what it is.
2756# This is important for multilib support.
2757pwd=`${PWDCMD-pwd}`
671aa708
NN
2758if test "${pwd}" = "${srcpwd}" ; then
2759 srcdir=.
79c06341
JL
2760fi
2761
671aa708 2762topsrcdir=$srcpwd
5d4a5ee6 2763
671aa708 2764extra_host_args=
afabd8e6 2765
671aa708
NN
2766### To add a new directory to the tree, first choose whether it is a target
2767### or a host dependent tool. Then put it into the appropriate list
2768### (library or tools, host or target), doing a dependency sort.
79c06341 2769
1c710c3c 2770# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2771# configdirs, or target_configdirs; see the serialization section below.
79c06341 2772
1c710c3c
DJ
2773# Dependency sorting is only needed when *configuration* must be done in
2774# a particular order. In all cases a dependency should be specified in
671aa708 2775# the Makefile, whether or not it's implicitly specified here.
79c06341 2776
671aa708
NN
2777# Double entries in build_configdirs, configdirs, or target_configdirs may
2778# cause circular dependencies and break everything horribly.
79c06341 2779
23f6b2f9
PB
2780# these library is used by various programs built for the build
2781# environment
2782#
929315a9 2783build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2784
2785# these tools are built for the build environment
85bfb75e 2786build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2787
671aa708 2788# these libraries are used by various programs built for the host environment
eae1a5d4 2789#f
de6abd85 2790host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
671aa708 2791
671aa708
NN
2792# these tools are built for the host environment
2793# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2794# know that we are building the simulator.
2795# binutils, gas and ld appear in that order because it makes sense to run
2796# "make check" in that particular order.
38e3d868 2797# If --enable-gold is used, "gold" may replace "ld".
f9d09df0 2798host_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"
671aa708 2799
671aa708
NN
2800# these libraries are built for the target environment, and are built after
2801# the host libraries and the host tools (which may be a cross compiler)
8499116a 2802# Note that libiberty is not a target library.
291f172e 2803target_libraries="target-libgcc \
eff02e4f 2804 target-libbacktrace \
671aa708
NN
2805 target-libgloss \
2806 target-newlib \
6d3b5aea 2807 target-libgomp \
5f520819 2808 target-liboffloadmic \
5fd1486c 2809 target-libhsail-rt \
48310492 2810 target-libatomic \
0a35513e 2811 target-libitm \
cb543528 2812 target-libstdc++-v3 \
f35db108 2813 target-libsanitizer \
2077db1b 2814 target-libvtv \
77008252 2815 target-libssp \
1ec601bf 2816 target-libquadmath \
6de9cd9a 2817 target-libgfortran \
012447ea 2818 target-libffi \
d9cdb878 2819 target-libobjc \
632e2a07 2820 target-libada \
b4c522fa 2821 target-libgo \
bb50312e
IB
2822 target-libphobos \
2823 target-zlib"
671aa708 2824
4dbda6f0
NN
2825# these tools are built using the target libraries, and are intended to
2826# run only in the target environment
671aa708 2827#
4dbda6f0 2828# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2829# list belongs in this list.
671aa708 2830#
85bfb75e 2831target_tools="target-rda"
79c06341 2832
671aa708 2833################################################################################
79c06341 2834
671aa708
NN
2835## All tools belong in one of the four categories, and are assigned above
2836## We assign ${configdirs} this way to remove all embedded newlines. This
2837## is important because configure will choke if they ever get through.
2838## ${configdirs} is directories we build using the host tools.
2839## ${target_configdirs} is directories we build using the target tools.
671aa708 2840configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2841target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2842build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2843
ac9e6043
RW
2844
2845
671aa708 2846################################################################################
79c06341 2847
671aa708 2848srcname="gnu development package"
79c06341 2849
671aa708
NN
2850# This gets set non-empty for some net releases of packages.
2851appdirs=""
79c06341 2852
671aa708
NN
2853# Define is_cross_compiler to save on calls to 'test'.
2854is_cross_compiler=
2855if test x"${host}" = x"${target}" ; then
2856 is_cross_compiler=no
79c06341 2857else
671aa708 2858 is_cross_compiler=yes
1c710c3c 2859fi
79c06341 2860
b4acb5ef 2861# Find the build and target subdir names.
8b87bb96 2862
2e9e6f68
DJ
2863# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2864# have matching libraries, they should use host libraries: Makefile.tpl
2865# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2866# However, they still use the build modules, because the corresponding
2867# host modules (e.g. bison) are only built for the host when bootstrap
2868# finishes. So:
2869# - build_subdir is where we find build modules, and never changes.
2870# - build_libsubdir is where we find build libraries, and can be overridden.
2871
2872# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2873build_subdir="build-${build_noncanonical}"
1c710c3c 2874
5213506e
RW
2875# Check whether --with-build-libsubdir was given.
2876if test "${with_build_libsubdir+set}" = set; then :
2877 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2878else
2879 build_libsubdir="$build_subdir"
5213506e
RW
2880fi
2881
215c351a
PB
2882# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2883if ( test $srcdir = . && test -d gcc ) \
2884 || test -d $srcdir/../host-${host_noncanonical}; then
2885 host_subdir="host-${host_noncanonical}"
2886else
2887 host_subdir=.
2888fi
8b87bb96
NN
2889# No prefix.
2890target_subdir=${target_noncanonical}
1c710c3c 2891
0db770bd
RW
2892# Be sure to cover against remnants of an in-tree build.
2893if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
22e05272 2894 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
0db770bd
RW
2895Use a pristine source tree when building in a separate tree" "$LINENO" 5
2896fi
79c06341 2897
671aa708
NN
2898# Skipdirs are removed silently.
2899skipdirs=
2900# Noconfigdirs are removed loudly.
2901noconfigdirs=""
79c06341 2902
671aa708
NN
2903use_gnu_ld=
2904# Make sure we don't let GNU ld be added if we didn't want it.
2905if test x$with_gnu_ld = xno ; then
2906 use_gnu_ld=no
5afab7ad 2907 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2908fi
2909
671aa708
NN
2910use_gnu_as=
2911# Make sure we don't let GNU as be added if we didn't want it.
2912if test x$with_gnu_as = xno ; then
2913 use_gnu_as=no
2914 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2915fi
2916
d7f09764 2917use_included_zlib=
a05c2c75
L
2918
2919# Check whether --with-system-zlib was given.
2920if test "${with_system_zlib+set}" = set; then :
2921 withval=$with_system_zlib;
2922fi
2923
d7f09764
DN
2924# Make sure we don't let ZLIB be added if we didn't want it.
2925if test x$with_system_zlib = xyes ; then
2926 use_included_zlib=no
2927 noconfigdirs="$noconfigdirs zlib"
2928fi
2929
1c710c3c 2930# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2931# it's not even worth trying to configure, much less build, that tool.
79c06341 2932
671aa708
NN
2933case ${with_x} in
2934 yes | "") ;; # the default value for this tree is that X11 is available
2935 no)
b4f96efe 2936 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2937 # We won't be able to build gdbtk without X.
1c710c3c 2938 enable_gdbtk=no
671aa708
NN
2939 ;;
2940 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2941esac
79c06341 2942
1bcce263 2943# Some are only suitable for cross toolchains.
671aa708
NN
2944# Remove these if host=target.
2945cross_only="target-libgloss target-newlib target-opcodes"
2946
2947case $is_cross_compiler in
2948 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2949esac
79c06341 2950
671aa708
NN
2951# If both --with-headers and --with-libs are specified, default to
2952# --without-newlib.
ee6a22df
L
2953if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2954 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2955 if test x"${with_newlib}" = x ; then
2956 with_newlib=no
2957 fi
79c06341
JL
2958fi
2959
671aa708
NN
2960# Recognize --with-newlib/--without-newlib.
2961case ${with_newlib} in
2962 no) skipdirs="${skipdirs} target-newlib" ;;
2963 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2964esac
79c06341 2965
85c64bbe
BS
2966# Check whether --enable-as-accelerator-for was given.
2967if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2968 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2969fi
2970
2971
2972# Check whether --enable-offload-targets was given.
2973if test "${enable_offload_targets+set}" = set; then :
2974 enableval=$enable_offload_targets;
2975 if test x"$enable_offload_targets" = x; then
22e05272 2976 as_fn_error $? "no offload targets specified" "$LINENO" 5
85c64bbe
BS
2977 fi
2978
2979else
2980 enable_offload_targets=
2981fi
2982
2983
21539e2e
MK
2984# Handle --enable-gold, --enable-ld.
2985# --disable-gold [--enable-ld]
2986# Build only ld. Default option.
9580395f
L
2987# --enable-gold [--enable-ld]
2988# Build both gold and ld. Install gold as "ld.gold", install ld
2989# as "ld.bfd" and "ld".
2990# --enable-gold=default [--enable-ld]
21539e2e
MK
2991# Build both gold and ld. Install gold as "ld.gold" and "ld",
2992# install ld as "ld.bfd".
2993# --enable-gold[=default] --disable-ld
2994# Build only gold, which is then installed as both "ld.gold" and "ld".
2995# --enable-gold --enable-ld=default
9580395f
L
2996# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2997# and ld.bfd).
21539e2e
MK
2998# In other words, ld is default
2999# --enable-gold=default --enable-ld=default
3000# Error.
3001
3002default_ld=
5213506e
RW
3003# Check whether --enable-gold was given.
3004if test "${enable_gold+set}" = set; then :
3005 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3006else
3007 ENABLE_GOLD=no
5213506e
RW
3008fi
3009
21539e2e
MK
3010case "${ENABLE_GOLD}" in
3011 yes|default)
38e3d868
RM
3012 # Check for ELF target.
3013 is_elf=no
3014 case "${target}" in
3015 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 3016 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 3017 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 3018 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
3019 case "${target}" in
3020 *-*-linux*aout* | *-*-linux*oldld*)
3021 ;;
3022 *)
3023 is_elf=yes
3024 ;;
3025 esac
3026 esac
3027
3028 if test "$is_elf" = "yes"; then
3029 # Check for target supported by gold.
5afab7ad 3030 case "${target}" in
7705dfd1 3031 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 3032 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
3033 configdirs="$configdirs gold"
3034 if test x${ENABLE_GOLD} = xdefault; then
3035 default_ld=gold
3036 fi
38e3d868 3037 ENABLE_GOLD=yes
5afab7ad
ILT
3038 ;;
3039 esac
38e3d868
RM
3040 fi
3041 ;;
3042 no)
3043 ;;
3044 *)
22e05272 3045 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
38e3d868 3046 ;;
21539e2e
MK
3047esac
3048
3049# Check whether --enable-ld was given.
3050if test "${enable_ld+set}" = set; then :
3051 enableval=$enable_ld; ENABLE_LD=$enableval
3052else
3053 ENABLE_LD=yes
3054fi
3055
3056
3057case "${ENABLE_LD}" in
3058 default)
9580395f 3059 if test x${default_ld} != x; then
22e05272 3060 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
21539e2e
MK
3061 fi
3062 ;;
3063 yes)
3064 ;;
3065 no)
3066 if test x${ENABLE_GOLD} != xyes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3068$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3069 fi
3070 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3071 ;;
3072 *)
22e05272 3073 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
21539e2e
MK
3074 ;;
3075esac
5afab7ad 3076
78edb32f
L
3077# PR gas/19109
3078# Decide the default method for compressing debug sections.
3079# Provide a configure time option to override our default.
3080# Check whether --enable-compressed_debug_sections was given.
3081if test "${enable_compressed_debug_sections+set}" = set; then :
3082 enableval=$enable_compressed_debug_sections;
3083 if test x"$enable_compressed_debug_sections" = xyes; then
22e05272 3084 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
78edb32f
L
3085 fi
3086
3087else
3088 enable_compressed_debug_sections=
3089fi
3090
3091
671aa708 3092# Configure extra directories which are host specific
79c06341 3093
671aa708
NN
3094case "${host}" in
3095 *-cygwin*)
3096 configdirs="$configdirs libtermcap" ;;
3097esac
79c06341 3098
4fab7234
HPN
3099# A target can indicate whether a language isn't supported for some reason.
3100# Only spaces may be used in this macro; not newlines or tabs.
3101unsupported_languages=
3102
1c710c3c 3103# Remove more programs from consideration, based on the host or
671aa708
NN
3104# target this usually means that a port of the program doesn't
3105# exist yet.
ec8d6ddc 3106
671aa708 3107case "${host}" in
111eeb6e 3108 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3109 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3110 ;;
671aa708 3111esac
ec8d6ddc 3112
6de9cd9a 3113
87e6d9dc
TB
3114# Check whether --enable-libquadmath was given.
3115if test "${enable_libquadmath+set}" = set; then :
3116 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3117else
3118 ENABLE_LIBQUADMATH=yes
3119fi
3120
3121if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3122 noconfigdirs="$noconfigdirs target-libquadmath"
3123fi
3124
3125
3126# Check whether --enable-libquadmath-support was given.
3127if test "${enable_libquadmath_support+set}" = set; then :
3128 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3129else
3130 ENABLE_LIBQUADMATH_SUPPORT=yes
3131fi
3132
3133enable_libquadmath_support=
3134if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3135 enable_libquadmath_support=no
3136fi
3137
3138
5213506e
RW
3139# Check whether --enable-libada was given.
3140if test "${enable_libada+set}" = set; then :
3141 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3142else
3143 ENABLE_LIBADA=yes
5213506e
RW
3144fi
3145
d9cdb878 3146if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3147 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3148fi
3149
5213506e
RW
3150# Check whether --enable-libssp was given.
3151if test "${enable_libssp+set}" = set; then :
3152 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3153else
3154 ENABLE_LIBSSP=yes
5213506e
RW
3155fi
3156
ef0087a7 3157
1873ec0c
L
3158# Check whether --enable-libstdcxx was given.
3159if test "${enable_libstdcxx+set}" = set; then :
3160 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3161else
3162 ENABLE_LIBSTDCXX=default
3163fi
3164
3165if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3166 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3167fi
3168
5f520819
KY
3169# If this is accelerator compiler and its target is intelmic we enable
3170# target liboffloadmic by default. If this is compiler with offloading
3171# for intelmic we enable host liboffloadmic by default. Otherwise
3172# liboffloadmic is disabled by default.
3173# Check whether --enable-liboffloadmic was given.
3174if test "${enable_liboffloadmic+set}" = set; then :
3175 enableval=$enable_liboffloadmic; case "$enableval" in
3176 no | host | target)
3177 enable_liboffloadmic=$enableval ;;
3178 *)
22e05272 3179 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
5f520819
KY
3180esac
3181else
4b4f2e35 3182 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3183 case "${target}" in
3184 *-intelmic-* | *-intelmicemul-*)
3185 enable_liboffloadmic=target
3186 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3187 ;;
3188 *)
3189 enable_liboffloadmic=no
3190 ;;
3191 esac
3192else
3193 case "${enable_offload_targets}" in
3194 *-intelmic-* | *-intelmicemul-*)
3195 enable_liboffloadmic=host
3196 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3197 ;;
3198 *)
3199 enable_liboffloadmic=no
3200 ;;
3201 esac
3202fi
3203fi
3204
3205
3206
44a7d18d 3207# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3208if test x$enable_libgomp = x ; then
953ff289 3209 case "${target}" in
416ac4d4 3210 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3211 ;;
8c6d158a 3212 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3213 ;;
b24513a1 3214 *-*-solaris2* | *-*-hpux11*)
953ff289 3215 ;;
cac90078 3216 *-*-darwin* | *-*-aix*)
953ff289 3217 ;;
29b1533a 3218 nvptx*-*-* | amdgcn*-*-*)
44a7d18d 3219 ;;
953ff289
DN
3220 *)
3221 noconfigdirs="$noconfigdirs target-libgomp"
3222 ;;
3223 esac
27079765 3224fi
953ff289 3225
48310492
RH
3226# Disable libatomic on unsupported systems.
3227if test -d ${srcdir}/libatomic; then
3228 if test x$enable_libatomic = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3230$as_echo_n "checking for libatomic support... " >&6; }
3231 if (srcdir=${srcdir}/libatomic; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libatomic"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241 fi
3242 fi
3243fi
3244
5f520819
KY
3245# Disable liboffloadmic on unsupported systems.
3246if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249$as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259$as_echo "yes" >&6; }
3260 fi
3261 fi
3262fi
3263
e948157d
RH
3264# Disable libitm on unsupported systems.
3265if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3268$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3274$as_echo "no" >&6; }
e948157d
RH
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3278$as_echo "yes" >&6; }
e948157d
RH
3279 fi
3280 fi
0a35513e
AH
3281fi
3282
93bf5390
RH
3283# Disable libsanitizer on unsupported systems.
3284if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287$as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
3299 fi
3300fi
3301
2077db1b
CT
3302# Disable libvtv on unsupported systems.
3303if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306$as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
1e74b850 3309 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317 fi
3318 fi
3319fi
3320
5373cd33 3321
f6a24a94
MJ
3322# Disable libhsail-rt on unsupported systems.
3323if test -d ${srcdir}/libhsail-rt; then
3324 if test x$enable_libhsail_rt = x; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3326$as_echo_n "checking for libhsail-rt support... " >&6; }
3327 if (srcdir=${srcdir}/libhsail-rt; \
3328 . ${srcdir}/configure.tgt; \
3329 test -n "$UNSUPPORTED")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333 unsupported_languages="$unsupported_languages brig"
3334 # This implicitly disables also target-libhsail-rt as it won't
3335 # get added to the build without BRIG FE.
3336 else
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3338$as_echo "yes" >&6; }
3339 fi
3340 fi
3341fi
5373cd33
IE
3342
3343
d91491e5
SE
3344# Disable libquadmath for some systems.
3345case "${target}" in
e7fae550
DE
3346 avr-*-*)
3347 noconfigdirs="$noconfigdirs target-libquadmath"
3348 ;;
d91491e5
SE
3349 # libquadmath is unused on AIX and libquadmath build process use of
3350 # LD_LIBRARY_PATH can break AIX bootstrap.
3351 powerpc-*-aix* | rs6000-*-aix*)
3352 noconfigdirs="$noconfigdirs target-libquadmath"
3353 ;;
3354esac
3355
1e9e0e23
JM
3356# Disable libssp for some systems.
3357case "${target}" in
3358 avr-*-*)
b318fb4b 3359 # No hosted I/O support.
1e9e0e23
JM
3360 noconfigdirs="$noconfigdirs target-libssp"
3361 ;;
91dfef96
JM
3362 bpf-*-*)
3363 noconfigdirs="$noconfigdirs target-libssp"
3364 ;;
1e9e0e23
JM
3365 powerpc-*-aix* | rs6000-*-aix*)
3366 noconfigdirs="$noconfigdirs target-libssp"
85b8555e 3367 ;;
8d2af3a2
DD
3368 pru-*-*)
3369 # No hosted I/O support.
3370 noconfigdirs="$noconfigdirs target-libssp"
3371 ;;
85b8555e 3372 rl78-*-*)
7cb62ef1
EB
3373 # libssp uses a misaligned load to trigger a fault, but the RL78
3374 # doesn't fault for those - instead, it gives a build-time error
3375 # for explicit misaligned loads.
85b8555e 3376 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3377 ;;
0969ec7d
EB
3378 visium-*-*)
3379 # No hosted I/O support.
3380 noconfigdirs="$noconfigdirs target-libssp"
3381 ;;
1e9e0e23
JM
3382esac
3383
1e9e0e23 3384# Disable libstdc++-v3 for some systems.
1873ec0c
L
3385# Allow user to override this if they pass --enable-libstdc++-v3
3386if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 case "${target}" in
3388 *-*-vxworks*)
3389 # VxWorks uses the Dinkumware C++ library.
3390 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3391 ;;
afa3d80e
TS
3392 amdgcn*-*-*)
3393 # Not ported/fails to build when using newlib.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3395 ;;
1873ec0c
L
3396 arm*-wince-pe*)
3397 # the C++ libraries don't build on top of CE's C libraries
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3399 ;;
3400 avr-*-*)
3401 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3402 ;;
91dfef96
JM
3403 bpf-*-*)
3404 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 ;;
fef939d6
JB
3406 ft32-*-*)
3407 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 ;;
1873ec0c
L
3409 esac
3410fi
1e9e0e23 3411
91dfef96
JM
3412# Disable C++ on systems where it is known to not work.
3413# For testing, you can override this with --enable-languages=c++.
3414case ,${enable_languages}, in
3415 *,c++,*)
3416 ;;
3417 *)
3418 case "${target}" in
3419 bpf-*-*)
3420 unsupported_languages="$unsupported_languages c++"
3421 ;;
3422 esac
3423 ;;
3424esac
3425
3426# Disable Objc on systems where it is known to not work.
3427# For testing, you can override this with --enable-languages=objc.
3428case ,${enable_languages}, in
3429 *,objc,*)
3430 ;;
3431 *)
3432 case "${target}" in
3433 bpf-*-*)
3434 unsupported_languages="$unsupported_languages objc"
3435 ;;
3436 esac
3437 ;;
3438esac
3439
260eedb9
IB
3440# Disable D on systems where it is known to not work.
3441# For testing, you can override this with --enable-languages=d.
3442case ,${enable_languages}, in
3443 *,d,*)
3444 ;;
3445 *)
3446 case "${target}" in
4d024c32 3447 *-*-darwin*)
91dfef96
JM
3448 unsupported_languages="$unsupported_languages d"
3449 ;;
3450 bpf-*-*)
260eedb9
IB
3451 unsupported_languages="$unsupported_languages d"
3452 ;;
3453 esac
3454 ;;
3455esac
3456
3457# Disable libphobos on unsupported systems.
3458# For testing, you can override this with --enable-libphobos.
3459if test -d ${srcdir}/libphobos; then
3460 if test x$enable_libphobos = x; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3462$as_echo_n "checking for libphobos support... " >&6; }
3463 if (srcdir=${srcdir}/libphobos; \
3464 . ${srcdir}/configure.tgt; \
7d31d331 3465 test "$LIBPHOBOS_SUPPORTED" != "yes")
260eedb9
IB
3466 then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
3469 noconfigdirs="$noconfigdirs target-libphobos"
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3472$as_echo "yes" >&6; }
3473 fi
3474 fi
3475fi
3476
1e9e0e23
JM
3477# Disable Fortran for some systems.
3478case "${target}" in
3479 mmix-*-*)
3480 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3481 unsupported_languages="$unsupported_languages fortran"
3482 ;;
91dfef96
JM
3483 bpf-*-*)
3484 unsupported_languages="$unsupported_languages fortran"
3485 ;;
1e9e0e23
JM
3486esac
3487
012447ea
JJ
3488# Disable libffi for some systems.
3489case "${target}" in
3490 powerpc-*-darwin*)
3491 ;;
3492 i[3456789]86-*-darwin*)
3493 ;;
3494 x86_64-*-darwin[912]*)
3495 ;;
3496 *-*-darwin*)
3497 noconfigdirs="$noconfigdirs target-libffi"
3498 ;;
3499 *-*-netware*)
3500 noconfigdirs="$noconfigdirs target-libffi"
3501 ;;
3502 *-*-phoenix*)
3503 noconfigdirs="$noconfigdirs target-libffi"
3504 ;;
3505 *-*-rtems*)
3506 noconfigdirs="$noconfigdirs target-libffi"
3507 ;;
3508 *-*-tpf*)
3509 noconfigdirs="$noconfigdirs target-libffi"
3510 ;;
3511 *-*-uclinux*)
3512 noconfigdirs="$noconfigdirs target-libffi"
3513 ;;
3514 *-*-vxworks*)
3515 noconfigdirs="$noconfigdirs target-libffi"
3516 ;;
b20e7532
AT
3517 aarch64*-*-freebsd*)
3518 noconfigdirs="$noconfigdirs target-libffi"
3519 ;;
012447ea
JJ
3520 alpha*-*-*vms*)
3521 noconfigdirs="$noconfigdirs target-libffi"
3522 ;;
3523 arm*-*-freebsd*)
3524 noconfigdirs="$noconfigdirs target-libffi"
3525 ;;
3526 arm-wince-pe)
3527 noconfigdirs="$noconfigdirs target-libffi"
3528 ;;
3529 arm*-*-symbianelf*)
3530 noconfigdirs="$noconfigdirs target-libffi"
3531 ;;
91dfef96
JM
3532 bpf-*-*)
3533 noconfigdirs="$noconfigdirs target-libffi"
3534 ;;
012447ea
JJ
3535 cris-*-* | crisv32-*-*)
3536 case "${target}" in
3537 *-*-linux*)
3538 ;;
3539 *) # See PR46792 regarding target-libffi.
3540 noconfigdirs="$noconfigdirs target-libffi";;
3541 esac
3542 ;;
3543 hppa*64*-*-hpux*)
3544 noconfigdirs="$noconfigdirs target-libffi"
3545 ;;
3546 hppa*-hp-hpux11*)
3547 ;;
3548 hppa*-*-hpux*)
3549 noconfigdirs="$noconfigdirs target-libffi"
3550 ;;
3551 ia64*-*-*vms*)
3552 noconfigdirs="$noconfigdirs target-libffi"
3553 ;;
3554 i[3456789]86-w64-mingw*)
3555 noconfigdirs="$noconfigdirs target-libffi"
3556 ;;
3557 i[3456789]86-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-libffi"
3559 ;;
3560 x86_64-*-mingw*)
3561 noconfigdirs="$noconfigdirs target-libffi"
3562 ;;
3563 mmix-*-*)
3564 noconfigdirs="$noconfigdirs target-libffi"
3565 ;;
3566 powerpc-*-aix*)
012447ea
JJ
3567 ;;
3568 rs6000-*-aix*)
012447ea
JJ
3569 ;;
3570 ft32-*-*)
3571 noconfigdirs="$noconfigdirs target-libffi"
3572 ;;
3573 *-*-lynxos*)
3574 noconfigdirs="$noconfigdirs target-libffi"
3575 ;;
3576esac
3577
3578# Disable the go frontend on systems where it is known to not work. Please keep
3579# this in sync with contrib/config-list.mk.
3580case "${target}" in
91dfef96 3581*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
012447ea
JJ
3582 unsupported_languages="$unsupported_languages go"
3583 ;;
3584esac
3585
f9d09df0
TT
3586# Only allow gdbserver on some systems.
3587if test -d ${srcdir}/gdbserver; then
3588 if test x$enable_gdbserver = x; then
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3590$as_echo_n "checking for gdbserver support... " >&6; }
3591 if (srcdir=${srcdir}/gdbserver; \
3592 . ${srcdir}/configure.srv; \
3593 test -n "$UNSUPPORTED")
3594 then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596$as_echo "no" >&6; }
3597 noconfigdirs="$noconfigdirs gdbserver"
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3600$as_echo "yes" >&6; }
3601 fi
3602 fi
3603fi
3604
cdbc9e92
ILT
3605# Disable libgo for some systems where it is known to not work.
3606# For testing, you can easily override this with --enable-libgo.
3607if test x$enable_libgo = x; then
3608 case "${target}" in
3609 *-*-darwin*)
3610 # PR 46986
3611 noconfigdirs="$noconfigdirs target-libgo"
3612 ;;
3613 *-*-cygwin* | *-*-mingw*)
3614 noconfigdirs="$noconfigdirs target-libgo"
3615 ;;
91dfef96
JM
3616 bpf-*-*)
3617 noconfigdirs="$noconfigdirs target-libgo"
3618 ;;
cdbc9e92
ILT
3619 esac
3620fi
3621
c03353e2
RIL
3622# Default libgloss CPU subdirectory.
3623libgloss_dir="$target_cpu"
6de9cd9a 3624
fbcf0dca
JM
3625case "${target}" in
3626 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3627 libgloss_dir=wince
3628 ;;
4dddfc74
YZ
3629 aarch64*-*-* )
3630 libgloss_dir=aarch64
3631 ;;
fbcf0dca
JM
3632 arm*-*-*)
3633 libgloss_dir=arm
3634 ;;
3635 cris-*-* | crisv32-*-*)
3636 libgloss_dir=cris
3637 ;;
3638 hppa*-*-*)
3639 libgloss_dir=pa
3640 ;;
3641 i[3456789]86-*-*)
3642 libgloss_dir=i386
3643 ;;
3644 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3645 libgloss_dir=m68hc11
3646 ;;
3647 m68*-*-* | fido-*-*)
3648 libgloss_dir=m68k
3649 ;;
3650 mips*-*-*)
3651 libgloss_dir=mips
3652 ;;
3653 powerpc*-*-*)
3654 libgloss_dir=rs6000
3655 ;;
8d2af3a2
DD
3656 pru-*-*)
3657 libgloss_dir=pru
3658 ;;
fbcf0dca
JM
3659 sparc*-*-*)
3660 libgloss_dir=sparc
3661 ;;
3662esac
3663
6a789d5e 3664# Disable newlib and libgloss for various target OSes.
671aa708 3665case "${target}" in
6a789d5e
JM
3666 alpha*-dec-osf*)
3667 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3668 ;;
3669 i[3456789]86-*-linux*)
3670 # This section makes it possible to build newlib natively on linux.
3671 # If we are using a cross compiler then don't configure newlib.
3672 if test x${is_cross_compiler} != xno ; then
3673 noconfigdirs="$noconfigdirs target-newlib"
3674 fi
3675 noconfigdirs="$noconfigdirs target-libgloss"
3676 # If we are not using a cross compiler, do configure newlib.
3677 # Note however, that newlib will only be configured in this situation
3678 # if the --with-newlib option has been given, because otherwise
3679 # 'target-newlib' will appear in skipdirs.
3680 ;;
3681 i[3456789]86-*-rdos*)
3682 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3683 ;;
3684 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3685 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3686 ;;
3687 sparc-*-sunos4*)
3688 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3689 ;;
91dfef96
JM
3690 bpf-*-*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
6a789d5e
JM
3693 *-*-aix*)
3694 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3695 ;;
3696 *-*-beos*)
3697 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3698 ;;
671aa708 3699 *-*-chorusos)
0036370f 3700 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3701 ;;
6a789d5e
JM
3702 *-*-dragonfly*)
3703 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3704 ;;
3705 *-*-freebsd*)
3706 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 ;;
3708 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3709 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3710 ;;
3711 *-*-lynxos*)
3712 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3713 ;;
3714 *-*-mingw*)
3715 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3716 ;;
3717 *-*-netbsd*)
3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3719 ;;
3720 *-*-netware*)
3721 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3722 ;;
3723 *-*-tpf*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 *-*-uclinux*)
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 *-*-vxworks*)
3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 ;;
3732esac
3733
3734case "${target}" in
3735 *-*-chorusos)
3736 ;;
3be96231
TG
3737 aarch64-*-darwin*)
3738 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3739 noconfigdirs="$noconfigdirs sim target-rda"
3740 ;;
7431c1a1
AS
3741 amdgcn*-*-*)
3742 ;;
3be96231
TG
3743 arm-*-darwin*)
3744 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3745 noconfigdirs="$noconfigdirs sim target-rda"
3746 ;;
75eeae1a 3747 powerpc-*-darwin*)
e1514c3f 3748 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3749 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3750 ;;
354ebf88
RW
3751 i[3456789]86-*-darwin*)
3752 noconfigdirs="$noconfigdirs ld gprof"
3753 noconfigdirs="$noconfigdirs sim target-rda"
3754 ;;
3755 x86_64-*-darwin[912]*)
0db3a858
TG
3756 noconfigdirs="$noconfigdirs ld gas gprof"
3757 noconfigdirs="$noconfigdirs sim target-rda"
3758 ;;
42c1cd8a
AT
3759 *-*-darwin*)
3760 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3761 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3762 ;;
8c6d158a 3763 *-*-dragonfly*)
8c6d158a 3764 ;;
c3f84f61 3765 *-*-freebsd*)
6de9cd9a 3766 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
c0d0a722 3767 && ! test -d ${srcdir}/gmp \
6de9cd9a
DN
3768 && test -f /usr/local/include/gmp.h; then
3769 with_gmp=/usr/local
3770 fi
6de9cd9a 3771 ;;
ef4e7569
US
3772 *-*-kaos*)
3773 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3774 noconfigdirs="$noconfigdirs target-libgloss"
3775 ;;
671aa708 3776 *-*-netbsd*)
671aa708 3777 ;;
61fec9ff 3778 *-*-netware*)
671aa708 3779 ;;
fd6487af
JS
3780 *-*-phoenix*)
3781 noconfigdirs="$noconfigdirs target-libgloss"
3782 ;;
671aa708 3783 *-*-rtems*)
2909494b 3784 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3785 ;;
a8ba31f2
EC
3786 # The tpf target doesn't support gdb yet.
3787 *-*-tpf*)
6a789d5e 3788 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3789 ;;
5785c0ed 3790 *-*-uclinux*)
6a789d5e 3791 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3792 ;;
671aa708 3793 *-*-vxworks*)
671aa708
NN
3794 ;;
3795 alpha*-dec-osf*)
3796 # ld works, but does not support shared libraries.
671aa708 3797 # gas doesn't generate exception information.
6a789d5e 3798 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3799 ;;
3800 alpha*-*-*vms*)
2909494b 3801 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3802 ;;
671aa708
NN
3803 alpha*-*-*)
3804 # newlib is not 64 bit ready
2909494b 3805 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3806 ;;
91dfef96
JM
3807 bpf-*-*)
3808 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3809 ;;
671aa708 3810 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3811 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3812 ;;
2fd88f4f
AK
3813 arc*-*-*)
3814 noconfigdirs="$noconfigdirs sim"
3815 ;;
671aa708 3816 arm-*-pe*)
2909494b 3817 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3818 ;;
671aa708 3819 arm-*-riscix*)
0036370f 3820 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3821 ;;
b588ae30
GJL
3822 avr-*-*)
3823 if test x${with_avrlibc} != xno; then
3824 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3825 fi
3826 ;;
671aa708 3827 c4x-*-* | tic4x-*-*)
0036370f 3828 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3829 ;;
0036370f
JM
3830 tic54x-*-*)
3831 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3832 ;;
671aa708 3833 d10v-*-*)
0036370f 3834 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3835 ;;
3836 d30v-*-*)
0036370f 3837 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3838 ;;
3839 fr30-*-elf*)
2909494b 3840 noconfigdirs="$noconfigdirs gdb"
671aa708 3841 ;;
a05c2c75
L
3842 ft32-*-*)
3843 noconfigdirs="$noconfigdirs target-rda gprof"
3844 ;;
55f2d967 3845 moxie-*-*)
a05c2c75 3846 noconfigdirs="$noconfigdirs"
55f2d967 3847 ;;
671aa708 3848 h8300*-*-*)
2909494b 3849 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3850 ;;
3851 h8500-*-*)
0036370f 3852 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3853 ;;
ee6a22df 3854 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3855 ;;
a05c2c75
L
3856 hppa*64*-*-hpux*)
3857 noconfigdirs="$noconfigdirs gdb"
3858 ;;
3859 hppa*-*-hpux11*)
3860 noconfigdirs="$noconfigdirs gdb ld"
3861 ;;
4569f85e 3862 hppa*64*-*-linux*)
671aa708 3863 ;;
56f8587a 3864 hppa*-*-linux*)
3e732ba0 3865 ;;
671aa708 3866 hppa*-*-*elf* | \
671aa708
NN
3867 hppa*-*-lites* | \
3868 hppa*-*-openbsd* | \
3869 hppa*64*-*-*)
671aa708 3870 ;;
c03353e2 3871 hppa*-*-pro*)
c03353e2 3872 ;;
671aa708 3873 hppa*-*-*)
2909494b 3874 noconfigdirs="$noconfigdirs ld"
671aa708 3875 ;;
fb87ad5d 3876 i960-*-*)
0036370f 3877 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3878 ;;
671aa708
NN
3879 ia64*-*-elf*)
3880 # No gdb support yet.
1bcce263 3881 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3882 ;;
3883 ia64*-**-hpux*)
5a2931d1 3884 # No ld support yet.
a05c2c75 3885 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3886 ;;
52535a64 3887 ia64*-*-*vms*)
091fe9ca
TG
3888 # No ld support yet.
3889 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3890 ;;
ef4c4300 3891 i[3456789]86-w64-mingw*)
ef4c4300
KT
3892 ;;
3893 i[3456789]86-*-mingw*)
b91f0a41 3894 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3895 ;;
671aa708
NN
3896 *-*-cygwin*)
3897 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3898 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3899 # always build newlib if winsup directory is present.
b91f0a41 3900 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3901 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3902 elif test -d "$srcdir/newlib"; then
b91f0a41 3903 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3904 fi
1c710c3c 3905 ;;
f2a0e225 3906 i[3456789]86-*-pe)
ebb9f8b0 3907 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3908 ;;
f2a0e225 3909 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3910 # The linker does not yet know about weak symbols in COFF,
3911 # and is not configured to handle mixed ELF and COFF.
0036370f 3912 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3913 ;;
f2a0e225 3914 i[3456789]86-*-sco*)
0036370f 3915 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3916 ;;
fbdd5d87 3917 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3918 noconfigdirs="$noconfigdirs target-libgloss"
3919 ;;
f2a0e225 3920 i[3456789]86-*-sysv4*)
0036370f 3921 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3922 ;;
f2a0e225 3923 i[3456789]86-*-beos*)
6a789d5e 3924 noconfigdirs="$noconfigdirs gdb"
3aa83176 3925 ;;
d1f8db0c 3926 i[3456789]86-*-rdos*)
6a789d5e 3927 noconfigdirs="$noconfigdirs gdb"
c03353e2 3928 ;;
671aa708 3929 mmix-*-*)
2909494b 3930 noconfigdirs="$noconfigdirs gdb"
671aa708 3931 ;;
ab34901f 3932 mt-*-*)
79dd769c
AH
3933 noconfigdirs="$noconfigdirs sim"
3934 ;;
58b40a67
FT
3935 nfp-*-*)
3936 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3937 noconfigdirs="$noconfigdirs $target_libraries"
3938 ;;
e6cbe965
SC
3939 pdp11-*-*)
3940 noconfigdirs="$noconfigdirs gdb gprof"
3941 ;;
671aa708
NN
3942 powerpc-*-aix*)
3943 # copied from rs6000-*-* entry
6a789d5e 3944 noconfigdirs="$noconfigdirs gprof"
671aa708 3945 ;;
4569f85e 3946 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3947 target_configdirs="$target_configdirs target-winsup"
0036370f 3948 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3949 # always build newlib.
3950 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3951 ;;
3952 # This is temporary until we can link against shared libraries
3953 powerpcle-*-solaris*)
0036370f 3954 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3955 ;;
3956 powerpc-*-beos*)
6a789d5e 3957 noconfigdirs="$noconfigdirs gdb"
671aa708 3958 ;;
671aa708 3959 rs6000-*-lynxos*)
6a789d5e 3960 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3961 ;;
3962 rs6000-*-aix*)
6a789d5e 3963 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3964 ;;
3965 rs6000-*-*)
2909494b 3966 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3967 ;;
3968 m68k-apollo-*)
0036370f 3969 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3970 ;;
ca9fe997 3971 microblaze*)
2909494b 3972 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3973 ;;
d896cc4d 3974 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3975 if test x$with_newlib = xyes; then
3976 noconfigdirs="$noconfigdirs gprof"
3977 fi
d9dced13 3978 ;;
671aa708 3979 mips*-*-irix5*)
0036370f 3980 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3981 ;;
3982 mips*-*-irix6*)
2909494b 3983 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3984 ;;
671aa708 3985 mips*-*-bsd*)
bc98bcc4 3986 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3987 ;;
671aa708 3988 mips*-*-linux*)
671aa708 3989 ;;
bc98bcc4
JBG
3990 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3991 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3992 noconfigdirs="$noconfigdirs ld gas gprof"
3993 ;;
671aa708 3994 mips*-*-*)
2909494b 3995 noconfigdirs="$noconfigdirs gprof"
671aa708 3996 ;;
738f2522 3997 nvptx*-*-*)
738f2522
BS
3998 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3999 ;;
bc6d9014 4000 sh-*-*)
ea2002ba
CB
4001 case "${target}" in
4002 sh*-*-elf)
2909494b 4003 ;;
ea2002ba 4004 *)
2909494b 4005 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 4006 esac
671aa708 4007 ;;
671aa708 4008 sparc-*-sunos4*)
6a789d5e 4009 if test x${is_cross_compiler} = xno ; then
671aa708
NN
4010 use_gnu_ld=no
4011 fi
4012 ;;
b42f0d7e 4013 tic6x-*-*)
0d557ff8 4014 noconfigdirs="$noconfigdirs sim"
b42f0d7e 4015 ;;
341c653c 4016 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
4017 noconfigdirs="$noconfigdirs sim"
4018 ;;
671aa708 4019 v810-*-*)
0036370f 4020 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
4021 ;;
4022 vax-*-*)
2909494b 4023 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 4024 ;;
1fc1d82e
MR
4025 wasm32-*-*)
4026 noconfigdirs="$noconfigdirs ld"
4027 ;;
671aa708 4028esac
79c06341 4029
671aa708
NN
4030# If we aren't building newlib, then don't build libgloss, since libgloss
4031# depends upon some newlib header files.
4032case "${noconfigdirs}" in
4033 *target-libgloss*) ;;
4034 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4035esac
4036
671aa708 4037# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
4038host_makefile_frag=/dev/null
4039if test -d ${srcdir}/config ; then
4040case "${host}" in
f2a0e225 4041 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
4042 host_makefile_frag="config/mh-djgpp"
4043 ;;
4044 *-cygwin*)
2a79c47f 4045
5213506e
RW
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4047$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 4048echo a >cygwin-cat-check
e25a8c82 4049if test `cat cygwin-cat-check` = a ; then
2a79c47f 4050 rm cygwin-cat-check
5213506e
RW
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4052$as_echo "yes" >&6; }
2a79c47f
NC
4053else
4054 rm cygwin-cat-check
5213506e
RW
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
22e05272 4057 as_fn_error $? "The cat command does not ignore carriage return characters.
2a79c47f
NC
4058 Please either mount the build directory in binary mode or run the following
4059 commands before running any configure script:
4060set -o igncr
4061export SHELLOPTS
5213506e 4062 " "$LINENO" 5
2a79c47f
NC
4063fi
4064
671aa708
NN
4065 host_makefile_frag="config/mh-cygwin"
4066 ;;
c53a18d3 4067 *-mingw*)
1f5a6b84 4068 host_makefile_frag="config/mh-mingw"
95af8923 4069 ;;
cabb9d59 4070 alpha*-linux*)
13be44ed
UB
4071 host_makefile_frag="config/mh-alpha-linux"
4072 ;;
efd41714 4073 hppa*-hp-hpux10*)
efd41714 4074 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4075 ;;
111eeb6e 4076 hppa*-hp-hpux*)
efd41714
PB
4077 host_makefile_frag="config/mh-pa"
4078 ;;
4079 hppa*-*)
4080 host_makefile_frag="config/mh-pa"
4081 ;;
d8ed14ce
IS
4082 *-*-darwin*)
4083 host_makefile_frag="config/mh-darwin"
be8fff81 4084 ;;
d19bca38
PB
4085 powerpc-*-aix*)
4086 host_makefile_frag="config/mh-ppc-aix"
4087 ;;
4088 rs6000-*-aix*)
4089 host_makefile_frag="config/mh-ppc-aix"
4090 ;;
671aa708
NN
4091esac
4092fi
4093
55ffb5ed 4094if test "${build}" != "${host}" ; then
0999159b
PB
4095 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4096 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4097 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 4098 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 4099 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4100 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
b4c522fa 4101 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
0999159b
PB
4102 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4103 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4104 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4105 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4106 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4107 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4108else
4109 AR_FOR_BUILD="\$(AR)"
4110 AS_FOR_BUILD="\$(AS)"
fb0103e5 4111 CC_FOR_BUILD="\$(CC)"
0999159b 4112 CXX_FOR_BUILD="\$(CXX)"
0999159b 4113 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4114 GOC_FOR_BUILD="\$(GOC)"
b4c522fa 4115 GDC_FOR_BUILD="\$(GDC)"
0999159b
PB
4116 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4117 LD_FOR_BUILD="\$(LD)"
4118 NM_FOR_BUILD="\$(NM)"
4119 RANLIB_FOR_BUILD="\$(RANLIB)"
4120 WINDRES_FOR_BUILD="\$(WINDRES)"
4121 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4122fi
4123
4124ac_ext=c
1c710c3c
DJ
4125ac_cpp='$CPP $CPPFLAGS'
4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4131set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4134if ${ac_cv_prog_CC+:} false; then :
5213506e 4135 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4136else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
5213506e 4145 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4147 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4149 break 2
4150 fi
4151done
5213506e
RW
4152 done
4153IFS=$as_save_IFS
1c710c3c
DJ
4154
4155fi
4156fi
4157CC=$ac_cv_prog_CC
4158if test -n "$CC"; then
5213506e
RW
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160$as_echo "$CC" >&6; }
1c710c3c 4161else
5213506e
RW
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163$as_echo "no" >&6; }
1c710c3c
DJ
4164fi
4165
5213506e 4166
1c710c3c
DJ
4167fi
4168if test -z "$ac_cv_prog_CC"; then
4169 ac_ct_CC=$CC
fb0103e5
RG
4170 # Extract the first word of "gcc", so it can be a program name with args.
4171set dummy gcc; ac_word=$2
5213506e
RW
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4174if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4175 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4176else
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179else
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
5213506e 4185 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4187 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4189 break 2
4190 fi
4191done
5213506e
RW
4192 done
4193IFS=$as_save_IFS
1c710c3c
DJ
4194
4195fi
4196fi
4197ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198if test -n "$ac_ct_CC"; then
5213506e
RW
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4200$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4201else
5213506e
RW
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203$as_echo "no" >&6; }
1c710c3c
DJ
4204fi
4205
5213506e
RW
4206 if test "x$ac_ct_CC" = x; then
4207 CC=""
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210yes:)
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4213ac_tool_warned=yes ;;
4214esac
4215 CC=$ac_ct_CC
4216 fi
1c710c3c
DJ
4217else
4218 CC="$ac_cv_prog_CC"
4219fi
4220
4221if test -z "$CC"; then
5213506e
RW
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4224set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4227if ${ac_cv_prog_CC+:} false; then :
5213506e 4228 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4229else
4230 if test -n "$CC"; then
4231 ac_cv_prog_CC="$CC" # Let the user override the test.
4232else
1c710c3c
DJ
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
5213506e 4238 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4240 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4242 break 2
4243 fi
4244done
5213506e
RW
4245 done
4246IFS=$as_save_IFS
1c710c3c 4247
0b0dc272 4248fi
0b0dc272 4249fi
1c710c3c 4250CC=$ac_cv_prog_CC
af71363e 4251if test -n "$CC"; then
5213506e
RW
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4253$as_echo "$CC" >&6; }
2aeb72e9 4254else
5213506e
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
2aeb72e9
DD
4257fi
4258
2aeb72e9 4259
5213506e 4260 fi
1c710c3c 4261fi
55ffb5ed
NN
4262if test -z "$CC"; then
4263 # Extract the first word of "cc", so it can be a program name with args.
4264set dummy cc; ac_word=$2
5213506e
RW
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4267if ${ac_cv_prog_CC+:} false; then :
5213506e 4268 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4269else
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4272else
0b0dc272 4273 ac_prog_rejected=no
1c710c3c
DJ
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
5213506e 4279 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c
DJ
4281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282 ac_prog_rejected=yes
4283 continue
4284 fi
4285 ac_cv_prog_CC="cc"
5213506e 4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4287 break 2
4288 fi
4289done
5213506e
RW
4290 done
4291IFS=$as_save_IFS
1c710c3c 4292
55ffb5ed
NN
4293if test $ac_prog_rejected = yes; then
4294 # We found a bogon in the path, so make sure we never use it.
4295 set dummy $ac_cv_prog_CC
4296 shift
1c710c3c 4297 if test $# != 0; then
55ffb5ed
NN
4298 # We chose a different compiler from the bogus one.
4299 # However, it has the same basename, so the bogon will be chosen
4300 # first if we set CC to just the basename; use the full file name.
4301 shift
1c710c3c 4302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4303 fi
4304fi
4305fi
4306fi
1c710c3c 4307CC=$ac_cv_prog_CC
55ffb5ed 4308if test -n "$CC"; then
5213506e
RW
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4310$as_echo "$CC" >&6; }
55ffb5ed 4311else
5213506e
RW
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4313$as_echo "no" >&6; }
55ffb5ed
NN
4314fi
4315
5213506e 4316
1c710c3c
DJ
4317fi
4318if test -z "$CC"; then
4319 if test -n "$ac_tool_prefix"; then
5213506e 4320 for ac_prog in cl.exe
1c710c3c
DJ
4321 do
4322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4326if ${ac_cv_prog_CC+:} false; then :
5213506e 4327 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4328else
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4331else
1c710c3c
DJ
4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
5213506e 4337 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4341 break 2
4342 fi
4343done
5213506e
RW
4344 done
4345IFS=$as_save_IFS
1c710c3c 4346
55ffb5ed
NN
4347fi
4348fi
1c710c3c 4349CC=$ac_cv_prog_CC
55ffb5ed 4350if test -n "$CC"; then
5213506e
RW
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352$as_echo "$CC" >&6; }
a4b9e93e 4353else
5213506e
RW
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355$as_echo "no" >&6; }
fb0103e5 4356fi
af71363e 4357
5213506e 4358
1c710c3c
DJ
4359 test -n "$CC" && break
4360 done
af71363e 4361fi
1c710c3c
DJ
4362if test -z "$CC"; then
4363 ac_ct_CC=$CC
5213506e 4364 for ac_prog in cl.exe
1c710c3c
DJ
4365do
4366 # Extract the first word of "$ac_prog", so it can be a program name with args.
4367set dummy $ac_prog; ac_word=$2
5213506e
RW
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4370if ${ac_cv_prog_ac_ct_CC+:} false; then :
5213506e 4371 $as_echo_n "(cached) " >&6
0b0dc272 4372else
1c710c3c
DJ
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4375else
1c710c3c
DJ
4376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377for as_dir in $PATH
4378do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
5213506e 4381 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 4383 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4385 break 2
4386 fi
4387done
5213506e
RW
4388 done
4389IFS=$as_save_IFS
1c710c3c 4390
af71363e
AS
4391fi
4392fi
1c710c3c
DJ
4393ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394if test -n "$ac_ct_CC"; then
5213506e
RW
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4397else
5213506e
RW
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399$as_echo "no" >&6; }
af71363e 4400fi
0b0dc272 4401
5213506e 4402
1c710c3c
DJ
4403 test -n "$ac_ct_CC" && break
4404done
4405
5213506e
RW
4406 if test "x$ac_ct_CC" = x; then
4407 CC=""
4408 else
4409 case $cross_compiling:$ac_tool_warned in
4410yes:)
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413ac_tool_warned=yes ;;
4414esac
4415 CC=$ac_ct_CC
4416 fi
1c710c3c
DJ
4417fi
4418
4419fi
4420
4421
5213506e
RW
4422test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4424as_fn_error $? "no acceptable C compiler found in \$PATH
4425See \`config.log' for more details" "$LINENO" 5; }
1c710c3c
DJ
4426
4427# Provide some information about the compiler.
5213506e
RW
4428$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4429set X $ac_compile
4430ac_compiler=$2
4431for ac_option in --version -v -V -qversion; do
4432 { { ac_try="$ac_compiler $ac_option >&5"
4433case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4436esac
4437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438$as_echo "$ac_try_echo"; } >&5
4439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4440 ac_status=$?
5213506e
RW
4441 if test -s conftest.err; then
4442 sed '10a\
4443... rest of stderr output deleted ...
4444 10q' conftest.err >conftest.er1
4445 cat conftest.er1 >&5
5213506e 4446 fi
22e05272 4447 rm -f conftest.er1 conftest.err
5213506e
RW
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }
4450done
1c710c3c 4451
5213506e 4452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4453/* end confdefs.h. */
4454
4455int
4456main ()
4457{
4458
4459 ;
4460 return 0;
4461}
4462_ACEOF
4463ac_clean_files_save=$ac_clean_files
22e05272 4464ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1c710c3c
DJ
4465# Try to create an executable without -o first, disregard a.out.
4466# It will help us diagnose broken compilers, and finding out an intuition
4467# of exeext.
22e05272
JM
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4469$as_echo_n "checking whether the C compiler works... " >&6; }
5213506e
RW
4470ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4471
4472# The possible output files:
4473ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4474
4475ac_rmfiles=
4476for ac_file in $ac_files
4477do
4478 case $ac_file in
4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4480 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4481 esac
4482done
4483rm -f $ac_rmfiles
4484
4485if { { ac_try="$ac_link_default"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link_default") 2>&5
1c710c3c 4493 ac_status=$?
5213506e
RW
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4497# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4498# in a Makefile. We should not override ac_cv_exeext if it was cached,
4499# so that the user can short-circuit this test for compilers unknown to
4500# Autoconf.
4501for ac_file in $ac_files ''
1c710c3c
DJ
4502do
4503 test -f "$ac_file" || continue
4504 case $ac_file in
5213506e 4505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4506 ;;
4507 [ab].out )
4508 # We found the default executable, but exeext='' is most
4509 # certainly right.
4510 break;;
4511 *.* )
5213506e
RW
4512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4513 then :; else
4514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4515 fi
4516 # We set ac_cv_exeext here because the later test for it is not
4517 # safe: cross compilers may not add the suffix if given an `-o'
4518 # argument, so we may need to know it at that point already.
4519 # Even if this section looks crufty: it has the advantage of
4520 # actually working.
1c710c3c
DJ
4521 break;;
4522 * )
4523 break;;
4524 esac
4525done
5213506e
RW
4526test "$ac_cv_exeext" = no && ac_cv_exeext=
4527
1c710c3c 4528else
5213506e
RW
4529 ac_file=''
4530fi
5213506e 4531if test -z "$ac_file"; then :
22e05272
JM
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533$as_echo "no" >&6; }
4534$as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
5213506e
RW
4537{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4539as_fn_error 77 "C compiler cannot create executables
4540See \`config.log' for more details" "$LINENO" 5; }
4541else
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543$as_echo "yes" >&6; }
1c710c3c 4544fi
22e05272
JM
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4546$as_echo_n "checking for C compiler default output file name... " >&6; }
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4548$as_echo "$ac_file" >&6; }
1c710c3c 4549ac_exeext=$ac_cv_exeext
1c710c3c 4550
22e05272 4551rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1c710c3c 4552ac_clean_files=$ac_clean_files_save
5213506e
RW
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4554$as_echo_n "checking for suffix of executables... " >&6; }
4555if { { ac_try="$ac_link"
4556case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559esac
4560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561$as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_link") 2>&5
1c710c3c 4563 ac_status=$?
5213506e
RW
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }; then :
1c710c3c
DJ
4566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4567# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4568# work properly (i.e., refer to `conftest.exe'), while it won't with
4569# `rm'.
4570for ac_file in conftest.exe conftest conftest.*; do
4571 test -f "$ac_file" || continue
4572 case $ac_file in
5213506e 4573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4575 break;;
4576 * ) break;;
4577 esac
4578done
af71363e 4579else
5213506e
RW
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4582as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4583See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4584fi
22e05272 4585rm -f conftest conftest$ac_cv_exeext
5213506e
RW
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4587$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4588
4589rm -f conftest.$ac_ext
4590EXEEXT=$ac_cv_exeext
4591ac_exeext=$EXEEXT
22e05272
JM
4592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594#include <stdio.h>
4595int
4596main ()
4597{
4598FILE *f = fopen ("conftest.out", "w");
4599 return ferror (f) || fclose (f) != 0;
4600
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605ac_clean_files="$ac_clean_files conftest.out"
4606# Check that the compiler produces executables we can run. If not, either
4607# the compiler is broken, or we cross compile.
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4609$as_echo_n "checking whether we are cross compiling... " >&6; }
4610if test "$cross_compiling" != yes; then
4611 { { ac_try="$ac_link"
4612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_link") 2>&5
4619 ac_status=$?
4620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4621 test $ac_status = 0; }
4622 if { ac_try='./conftest$ac_cv_exeext'
4623 { { case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
4627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628$as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_try") 2>&5
4630 ac_status=$?
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }; }; then
4633 cross_compiling=no
4634 else
4635 if test "$cross_compiling" = maybe; then
4636 cross_compiling=yes
4637 else
4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4640as_fn_error $? "cannot run C compiled programs.
4641If you meant to cross compile, use \`--host'.
4642See \`config.log' for more details" "$LINENO" 5; }
4643 fi
4644 fi
4645fi
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4647$as_echo "$cross_compiling" >&6; }
4648
4649rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4650ac_clean_files=$ac_clean_files_save
5213506e
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4652$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 4653if ${ac_cv_objext+:} false; then :
5213506e 4654 $as_echo_n "(cached) " >&6
1c710c3c 4655else
5213506e 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4657/* end confdefs.h. */
4658
4659int
4660main ()
4661{
4662
4663 ;
4664 return 0;
4665}
4666_ACEOF
4667rm -f conftest.o conftest.obj
5213506e
RW
4668if { { ac_try="$ac_compile"
4669case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4672esac
4673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4674$as_echo "$ac_try_echo"; } >&5
4675 (eval "$ac_compile") 2>&5
1c710c3c 4676 ac_status=$?
5213506e
RW
4677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4678 test $ac_status = 0; }; then :
4679 for ac_file in conftest.o conftest.obj conftest.*; do
4680 test -f "$ac_file" || continue;
1c710c3c 4681 case $ac_file in
5213506e 4682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4683 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4684 break;;
4685 esac
4686done
4687else
5213506e 4688 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
5213506e
RW
4691{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4692$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4693as_fn_error $? "cannot compute suffix of object files: cannot compile
4694See \`config.log' for more details" "$LINENO" 5; }
1c710c3c 4695fi
1c710c3c
DJ
4696rm -f conftest.$ac_cv_objext conftest.$ac_ext
4697fi
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4699$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4700OBJEXT=$ac_cv_objext
4701ac_objext=$OBJEXT
5213506e
RW
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4703$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4704if ${ac_cv_c_compiler_gnu+:} false; then :
5213506e 4705 $as_echo_n "(cached) " >&6
1c710c3c 4706else
5213506e 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4708/* end confdefs.h. */
4709
4710int
4711main ()
4712{
4713#ifndef __GNUC__
4714 choke me
4715#endif
4716
4717 ;
4718 return 0;
4719}
4720_ACEOF
5213506e 4721if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4722 ac_compiler_gnu=yes
4723else
5213506e 4724 ac_compiler_gnu=no
1c710c3c 4725fi
5213506e 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4727ac_cv_c_compiler_gnu=$ac_compiler_gnu
4728
4729fi
5213506e
RW
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4731$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4732if test $ac_compiler_gnu = yes; then
4733 GCC=yes
4734else
4735 GCC=
4736fi
1c710c3c
DJ
4737ac_test_CFLAGS=${CFLAGS+set}
4738ac_save_CFLAGS=$CFLAGS
5213506e
RW
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4740$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 4741if ${ac_cv_prog_cc_g+:} false; then :
5213506e
RW
4742 $as_echo_n "(cached) " >&6
4743else
4744 ac_save_c_werror_flag=$ac_c_werror_flag
4745 ac_c_werror_flag=yes
4746 ac_cv_prog_cc_g=no
4747 CFLAGS="-g"
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4749/* end confdefs.h. */
4750
4751int
4752main ()
4753{
4754
4755 ;
4756 return 0;
4757}
4758_ACEOF
5213506e 4759if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4760 ac_cv_prog_cc_g=yes
4761else
5213506e
RW
4762 CFLAGS=""
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765
4766int
4767main ()
4768{
4769
4770 ;
4771 return 0;
4772}
4773_ACEOF
4774if ac_fn_c_try_compile "$LINENO"; then :
4775
4776else
4777 ac_c_werror_flag=$ac_save_c_werror_flag
4778 CFLAGS="-g"
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780/* end confdefs.h. */
af71363e 4781
5213506e
RW
4782int
4783main ()
4784{
4785
4786 ;
4787 return 0;
4788}
4789_ACEOF
4790if ac_fn_c_try_compile "$LINENO"; then :
4791 ac_cv_prog_cc_g=yes
4792fi
4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4794fi
5213506e 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4796fi
5213506e
RW
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4799fi
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4801$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4802if test "$ac_test_CFLAGS" = set; then
1c710c3c 4803 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4804elif test $ac_cv_prog_cc_g = yes; then
4805 if test "$GCC" = yes; then
4806 CFLAGS="-g -O2"
4807 else
4808 CFLAGS="-g"
4809 fi
4810else
4811 if test "$GCC" = yes; then
4812 CFLAGS="-O2"
4813 else
4814 CFLAGS=
4815 fi
4816fi
5213506e
RW
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4818$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 4819if ${ac_cv_prog_cc_c89+:} false; then :
5213506e 4820 $as_echo_n "(cached) " >&6
1c710c3c 4821else
5213506e 4822 ac_cv_prog_cc_c89=no
1c710c3c 4823ac_save_CC=$CC
5213506e 4824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4825/* end confdefs.h. */
4826#include <stdarg.h>
4827#include <stdio.h>
22e05272 4828struct stat;
1c710c3c
DJ
4829/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4830struct buf { int x; };
4831FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832static char *e (p, i)
4833 char **p;
4834 int i;
4835{
4836 return p[i];
4837}
4838static char *f (char * (*g) (char **, int), char **p, ...)
4839{
4840 char *s;
4841 va_list v;
4842 va_start (v,p);
4843 s = g (p, va_arg (v,int));
4844 va_end (v);
4845 return s;
4846}
4847
4848/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4849 function prototypes and stuff, but not '\xHH' hex character constants.
4850 These don't provoke an error unfortunately, instead are silently treated
5213506e 4851 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4852 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4853 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4854 that's true only with -std. */
1c710c3c
DJ
4855int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856
5213506e
RW
4857/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4858 inside strings and character constants. */
4859#define FOO(x) 'x'
4860int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4861
1c710c3c
DJ
4862int test (int i, double x);
4863struct s1 {int (*f) (int a);};
4864struct s2 {int (*f) (double a);};
4865int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4866int argc;
4867char **argv;
4868int
4869main ()
4870{
4871return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4872 ;
4873 return 0;
4874}
4875_ACEOF
5213506e
RW
4876for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4877 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4878do
4879 CC="$ac_save_CC $ac_arg"
5213506e
RW
4880 if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4882fi
5213506e
RW
4883rm -f core conftest.err conftest.$ac_objext
4884 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4885done
5213506e 4886rm -f conftest.$ac_ext
1c710c3c
DJ
4887CC=$ac_save_CC
4888
4889fi
5213506e
RW
4890# AC_CACHE_VAL
4891case "x$ac_cv_prog_cc_c89" in
4892 x)
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4894$as_echo "none needed" >&6; } ;;
4895 xno)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4897$as_echo "unsupported" >&6; } ;;
1c710c3c 4898 *)
5213506e
RW
4899 CC="$CC $ac_cv_prog_cc_c89"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4901$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4902esac
5213506e 4903if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4904
2aeb72e9
DD
4905fi
4906
2aeb72e9
DD
4907ac_ext=c
4908ac_cpp='$CPP $CPPFLAGS'
4909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912
5213506e 4913ac_ext=cpp
2aeb72e9
DD
4914ac_cpp='$CXXCPP $CPPFLAGS'
4915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4918if test -z "$CXX"; then
4919 if test -n "$CCC"; then
4920 CXX=$CCC
4921 else
4922 if test -n "$ac_tool_prefix"; then
4923 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4924 do
4925 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4926set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4929if ${ac_cv_prog_CXX+:} false; then :
5213506e 4930 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4931else
4932 if test -n "$CXX"; then
4933 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
5213506e 4940 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2aeb72e9 4942 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4944 break 2
4945 fi
4946done
5213506e
RW
4947 done
4948IFS=$as_save_IFS
55ffb5ed 4949
c3a86da9
DJ
4950fi
4951fi
4952CXX=$ac_cv_prog_CXX
4953if test -n "$CXX"; then
5213506e
RW
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4955$as_echo "$CXX" >&6; }
c3a86da9 4956else
5213506e
RW
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958$as_echo "no" >&6; }
c3a86da9
DJ
4959fi
4960
5213506e 4961
c3a86da9
DJ
4962 test -n "$CXX" && break
4963 done
4964fi
4965if test -z "$CXX"; then
4966 ac_ct_CXX=$CXX
5213506e 4967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4968do
4969 # Extract the first word of "$ac_prog", so it can be a program name with args.
4970set dummy $ac_prog; ac_word=$2
5213506e
RW
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4973if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5213506e 4974 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4975else
4976 if test -n "$ac_ct_CXX"; then
4977 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4978else
4979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980for as_dir in $PATH
4981do
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
5213506e 4984 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c3a86da9 4986 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4988 break 2
4989 fi
4990done
5213506e
RW
4991 done
4992IFS=$as_save_IFS
c3a86da9
DJ
4993
4994fi
4995fi
4996ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4997if test -n "$ac_ct_CXX"; then
5213506e
RW
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4999$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 5000else
5213506e
RW
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002$as_echo "no" >&6; }
c3a86da9
DJ
5003fi
5004
5213506e 5005
c3a86da9
DJ
5006 test -n "$ac_ct_CXX" && break
5007done
c3a86da9 5008
5213506e
RW
5009 if test "x$ac_ct_CXX" = x; then
5010 CXX="g++"
5011 else
5012 case $cross_compiling:$ac_tool_warned in
5013yes:)
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5016ac_tool_warned=yes ;;
5017esac
5018 CXX=$ac_ct_CXX
5019 fi
c3a86da9
DJ
5020fi
5021
5213506e
RW
5022 fi
5023fi
c3a86da9 5024# Provide some information about the compiler.
5213506e
RW
5025$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5026set X $ac_compile
5027ac_compiler=$2
5028for ac_option in --version -v -V -qversion; do
5029 { { ac_try="$ac_compiler $ac_option >&5"
5030case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033esac
5034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5035$as_echo "$ac_try_echo"; } >&5
5036 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 5037 ac_status=$?
5213506e
RW
5038 if test -s conftest.err; then
5039 sed '10a\
5040... rest of stderr output deleted ...
5041 10q' conftest.err >conftest.er1
5042 cat conftest.er1 >&5
5213506e 5043 fi
22e05272 5044 rm -f conftest.er1 conftest.err
5213506e
RW
5045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5046 test $ac_status = 0; }
5047done
c3a86da9 5048
5213506e
RW
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5050$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22e05272 5051if ${ac_cv_cxx_compiler_gnu+:} false; then :
5213506e 5052 $as_echo_n "(cached) " >&6
c3a86da9 5053else
5213506e 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5055/* end confdefs.h. */
5056
5057int
5058main ()
5059{
5060#ifndef __GNUC__
5061 choke me
5062#endif
5063
5064 ;
5065 return 0;
5066}
5067_ACEOF
5213506e 5068if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5069 ac_compiler_gnu=yes
5070else
5213506e 5071 ac_compiler_gnu=no
c3a86da9 5072fi
5213506e 5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
5074ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5075
5076fi
5213506e
RW
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5078$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5079if test $ac_compiler_gnu = yes; then
5080 GXX=yes
5081else
5082 GXX=
5083fi
c3a86da9
DJ
5084ac_test_CXXFLAGS=${CXXFLAGS+set}
5085ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5087$as_echo_n "checking whether $CXX accepts -g... " >&6; }
22e05272 5088if ${ac_cv_prog_cxx_g+:} false; then :
5213506e
RW
5089 $as_echo_n "(cached) " >&6
5090else
5091 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5092 ac_cxx_werror_flag=yes
5093 ac_cv_prog_cxx_g=no
5094 CXXFLAGS="-g"
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5096/* end confdefs.h. */
5097
5098int
5099main ()
5100{
5101
5102 ;
5103 return 0;
5104}
5105_ACEOF
5213506e 5106if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5107 ac_cv_prog_cxx_g=yes
5108else
5213506e
RW
5109 CXXFLAGS=""
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5111/* end confdefs.h. */
5213506e 5112
c3a86da9
DJ
5113int
5114main ()
5115{
5213506e 5116
c3a86da9
DJ
5117 ;
5118 return 0;
5119}
5120_ACEOF
5213506e 5121if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5122
5213506e
RW
5123else
5124 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5125 CXXFLAGS="-g"
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5127/* end confdefs.h. */
5213506e 5128
c3a86da9
DJ
5129int
5130main ()
5131{
5213506e 5132
c3a86da9
DJ
5133 ;
5134 return 0;
5135}
5136_ACEOF
5213506e
RW
5137if ac_fn_cxx_try_compile "$LINENO"; then :
5138 ac_cv_prog_cxx_g=yes
11a67599 5139fi
5213506e
RW
5140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5148$as_echo "$ac_cv_prog_cxx_g" >&6; }
5149if test "$ac_test_CXXFLAGS" = set; then
5150 CXXFLAGS=$ac_save_CXXFLAGS
5151elif test $ac_cv_prog_cxx_g = yes; then
5152 if test "$GXX" = yes; then
5153 CXXFLAGS="-g -O2"
5154 else
5155 CXXFLAGS="-g"
5156 fi
5157else
5158 if test "$GXX" = yes; then
5159 CXXFLAGS="-O2"
5160 else
5161 CXXFLAGS=
5162 fi
c3a86da9 5163fi
c3a86da9
DJ
5164ac_ext=c
5165ac_cpp='$CPP $CPPFLAGS'
5166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169
5170
5171# We must set the default linker to the linker used by gcc for the correct
5172# operation of libtool. If LD is not defined and we are using gcc, try to
5173# set the LD default to the ld used by gcc.
5174if test -z "$LD"; then
5175 if test "$GCC" = yes; then
5176 case $build in
5177 *-*-mingw*)
5178 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5179 *)
5180 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5181 esac
5182 case $gcc_prog_ld in
5183 # Accept absolute paths.
5184 [\\/]* | [A-Za-z]:[\\/]*)
5185 LD="$gcc_prog_ld" ;;
5186 esac
5187 fi
23f6b2f9
PB
5188fi
5189
0b21f5d3
EB
5190# Check whether -static-libstdc++ -static-libgcc is supported.
5191have_static_libs=no
5192if test "$GCC" = yes; then
5193 saved_LDFLAGS="$LDFLAGS"
5194
5195 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5197$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5198 ac_ext=cpp
5199ac_cpp='$CXXCPP $CPPFLAGS'
5200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5203
5204
5205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206/* end confdefs.h. */
0d6414b2
EB
5207
5208#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5209#error -static-libstdc++ not implemented
5210#endif
0b21f5d3
EB
5211int main() {}
5212_ACEOF
5213if ac_fn_cxx_try_link "$LINENO"; then :
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215$as_echo "yes" >&6; }; have_static_libs=yes
5216else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220rm -f core conftest.err conftest.$ac_objext \
5221 conftest$ac_exeext conftest.$ac_ext
5222 ac_ext=c
5223ac_cpp='$CPP $CPPFLAGS'
5224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226ac_compiler_gnu=$ac_cv_c_compiler_gnu
5227
5228
5229 LDFLAGS="$saved_LDFLAGS"
5230fi
5231
23f6b2f9
PB
5232
5233
55ffb5ed 5234
1c710c3c
DJ
5235if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5237set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5240if ${ac_cv_prog_GNATBIND+:} false; then :
5213506e 5241 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5242else
5243 if test -n "$GNATBIND"; then
5244 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5245else
1c710c3c
DJ
5246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247for as_dir in $PATH
5248do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5213506e 5251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5253 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5255 break 2
5256 fi
5257done
5213506e
RW
5258 done
5259IFS=$as_save_IFS
1c710c3c 5260
55ffb5ed
NN
5261fi
5262fi
1c710c3c 5263GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5264if test -n "$GNATBIND"; then
5213506e
RW
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5266$as_echo "$GNATBIND" >&6; }
55ffb5ed 5267else
5213506e
RW
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269$as_echo "no" >&6; }
55ffb5ed
NN
5270fi
5271
5213506e 5272
1c710c3c 5273fi
55ffb5ed 5274if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5275 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5276 # Extract the first word of "gnatbind", so it can be a program name with args.
5277set dummy gnatbind; ac_word=$2
5213506e
RW
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5280if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5213506e 5281 $as_echo_n "(cached) " >&6
55ffb5ed 5282else
1c710c3c
DJ
5283 if test -n "$ac_ct_GNATBIND"; then
5284 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5285else
1c710c3c
DJ
5286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287for as_dir in $PATH
5288do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5213506e 5291 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5293 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5295 break 2
5296 fi
5297done
5213506e
RW
5298 done
5299IFS=$as_save_IFS
1c710c3c 5300
55ffb5ed
NN
5301fi
5302fi
1c710c3c
DJ
5303ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5304if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5306$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5307else
5213506e
RW
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309$as_echo "no" >&6; }
55ffb5ed
NN
5310fi
5311
5213506e
RW
5312 if test "x$ac_ct_GNATBIND" = x; then
5313 GNATBIND="no"
5314 else
5315 case $cross_compiling:$ac_tool_warned in
5316yes:)
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5319ac_tool_warned=yes ;;
5320esac
5321 GNATBIND=$ac_ct_GNATBIND
5322 fi
55ffb5ed 5323else
1c710c3c 5324 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5325fi
5326
1c710c3c
DJ
5327if test -n "$ac_tool_prefix"; then
5328 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5329set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5332if ${ac_cv_prog_GNATMAKE+:} false; then :
5213506e 5333 $as_echo_n "(cached) " >&6
5305be7e
RG
5334else
5335 if test -n "$GNATMAKE"; then
5336 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5337else
1c710c3c
DJ
5338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5213506e 5343 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5345 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5347 break 2
5348 fi
5349done
5213506e
RW
5350 done
5351IFS=$as_save_IFS
1c710c3c 5352
5305be7e
RG
5353fi
5354fi
1c710c3c 5355GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5356if test -n "$GNATMAKE"; then
5213506e
RW
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5358$as_echo "$GNATMAKE" >&6; }
5305be7e 5359else
5213506e
RW
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361$as_echo "no" >&6; }
5305be7e
RG
5362fi
5363
5213506e 5364
1c710c3c 5365fi
5305be7e 5366if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5367 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5368 # Extract the first word of "gnatmake", so it can be a program name with args.
5369set dummy gnatmake; ac_word=$2
5213506e
RW
5370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5372if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5213506e 5373 $as_echo_n "(cached) " >&6
5305be7e 5374else
1c710c3c
DJ
5375 if test -n "$ac_ct_GNATMAKE"; then
5376 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5377else
1c710c3c
DJ
5378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379for as_dir in $PATH
5380do
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5213506e 5383 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 5385 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5387 break 2
5388 fi
5389done
5213506e
RW
5390 done
5391IFS=$as_save_IFS
1c710c3c 5392
5305be7e
RG
5393fi
5394fi
1c710c3c
DJ
5395ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5396if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5398$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5399else
5213506e
RW
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401$as_echo "no" >&6; }
5305be7e
RG
5402fi
5403
5213506e
RW
5404 if test "x$ac_ct_GNATMAKE" = x; then
5405 GNATMAKE="no"
5406 else
5407 case $cross_compiling:$ac_tool_warned in
5408yes:)
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5411ac_tool_warned=yes ;;
5412esac
5413 GNATMAKE=$ac_ct_GNATMAKE
5414 fi
5305be7e 5415else
1c710c3c 5416 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5417fi
5418
5213506e
RW
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5420$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
22e05272 5421if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5213506e 5422 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5423else
5424 cat >conftest.adb <<EOF
5425procedure conftest is begin null; end conftest;
5426EOF
5427acx_cv_cc_gcc_supports_ada=no
5428# There is a bug in old released versions of GCC which causes the
5429# driver to exit successfully when the appropriate language module
5430# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5431# Therefore we must check for the error message as well as an
5432# unsuccessful exit.
1db673ca
RO
5433# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5434# given a .adb file, but produce no object file. So we must check
5435# if an object file was really produced to guard against this.
55ffb5ed 5436errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5437if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5438 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5439fi
5440rm -f conftest.*
5441fi
5213506e
RW
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5443$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5444
7cb62ef1 5445if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5446 have_gnat=yes
5447else
5448 have_gnat=no
5449fi
5450
5213506e
RW
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5452$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
22e05272 5453if ${gcc_cv_prog_cmp_skip+:} false; then :
5213506e 5454 $as_echo_n "(cached) " >&6
a76494aa
PB
5455else
5456 echo abfoo >t1
5457 echo cdfoo >t2
b55e6680 5458 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5459 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5460 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5461 :
5462 else
5463 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5464 fi
5465 fi
a76494aa
PB
5466 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5467 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5468 :
a76494aa
PB
5469 else
5470 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5471 fi
5472 fi
5473 rm t1 t2
5474
5475fi
5213506e
RW
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5477$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5478do_compare="$gcc_cv_prog_cmp_skip"
5479
5480
55ffb5ed 5481
ff3ac0f4
ILT
5482# Check whether --enable-bootstrap was given.
5483if test "${enable_bootstrap+set}" = set; then :
5484 enableval=$enable_bootstrap;
5485else
5486 enable_bootstrap=default
5487fi
5488
5489
5490# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5491if test -r $srcdir/gcc/configure; then
5492 have_compiler=yes
5493else
5494 have_compiler=no
5495fi
ff3ac0f4
ILT
5496
5497case "$have_compiler:$host:$target:$enable_bootstrap" in
5498 *:*:*:no) ;;
5499
5500 # Default behavior. Enable bootstrap if we have a compiler
5501 # and we are in a native configuration.
5502 yes:$build:$build:default)
5503 enable_bootstrap=yes ;;
5504
5505 *:*:*:default)
5506 enable_bootstrap=no ;;
5507
5508 # We have a compiler and we are in a native configuration, bootstrap is ok
5509 yes:$build:$build:yes)
5510 ;;
5511
5512 # Other configurations, but we have a compiler. Assume the user knows
5513 # what he's doing.
5514 yes:*:*:yes)
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5516$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5517 ;;
5518
5519 # No compiler: if they passed --enable-bootstrap explicitly, fail
5520 no:*:*:yes)
22e05272 5521 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ff3ac0f4
ILT
5522
5523 # Fail if wrong command line
5524 *)
22e05272 5525 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ff3ac0f4
ILT
5526 ;;
5527esac
5528
5329b59a 5529# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
ffac9597
JM
5530# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5531# require C++11 (or higher).
46070488 5532if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5329b59a 5533 CXX="$CXX -std=c++11"
ffac9597
JM
5534elif test "$have_compiler" = yes; then
5535 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5536 ac_ext=cpp
5537ac_cpp='$CXXCPP $CPPFLAGS'
5538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541 ac_success=no
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5544$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5545if ${ax_cv_cxx_compile_cxx11+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547else
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549/* end confdefs.h. */
5550
5551
5552// If the compiler admits that it is not ready for C++11, why torture it?
5553// Hopefully, this will speed up the test.
5554
5555#ifndef __cplusplus
5556
5557#error "This is not a C++ compiler"
5558
5559#elif __cplusplus < 201103L
5560
5561#error "This is not a C++11 compiler"
5562
5563#else
5564
5565namespace cxx11
5566{
5567
5568 namespace test_static_assert
5569 {
5570
5571 template <typename T>
5572 struct check
5573 {
5574 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5575 };
5576
5577 }
5578
5579 namespace test_final_override
5580 {
5581
5582 struct Base
5583 {
5584 virtual ~Base() {}
5585 virtual void f() {}
5586 };
5587
5588 struct Derived : public Base
5589 {
5590 virtual ~Derived() override {}
5591 virtual void f() override {}
5592 };
5593
5594 }
5595
5596 namespace test_double_right_angle_brackets
5597 {
5598
5599 template < typename T >
5600 struct check {};
5601
5602 typedef check<void> single_type;
5603 typedef check<check<void>> double_type;
5604 typedef check<check<check<void>>> triple_type;
5605 typedef check<check<check<check<void>>>> quadruple_type;
5606
5607 }
5608
5609 namespace test_decltype
5610 {
5611
5612 int
5613 f()
5614 {
5615 int a = 1;
5616 decltype(a) b = 2;
5617 return a + b;
5618 }
5619
5620 }
5621
5622 namespace test_type_deduction
5623 {
5624
5625 template < typename T1, typename T2 >
5626 struct is_same
5627 {
5628 static const bool value = false;
5629 };
5630
5631 template < typename T >
5632 struct is_same<T, T>
5633 {
5634 static const bool value = true;
5635 };
5636
5637 template < typename T1, typename T2 >
5638 auto
5639 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5640 {
5641 return a1 + a2;
5642 }
5643
5644 int
5645 test(const int c, volatile int v)
5646 {
5647 static_assert(is_same<int, decltype(0)>::value == true, "");
5648 static_assert(is_same<int, decltype(c)>::value == false, "");
5649 static_assert(is_same<int, decltype(v)>::value == false, "");
5650 auto ac = c;
5651 auto av = v;
5652 auto sumi = ac + av + 'x';
5653 auto sumf = ac + av + 1.0;
5654 static_assert(is_same<int, decltype(ac)>::value == true, "");
5655 static_assert(is_same<int, decltype(av)>::value == true, "");
5656 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5657 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5658 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5659 return (sumf > 0.0) ? sumi : add(c, v);
5660 }
5661
5662 }
5663
5664 namespace test_noexcept
5665 {
5666
5667 int f() { return 0; }
5668 int g() noexcept { return 0; }
5669
5670 static_assert(noexcept(f()) == false, "");
5671 static_assert(noexcept(g()) == true, "");
5672
5673 }
5674
5675 namespace test_constexpr
5676 {
5677
5678 template < typename CharT >
5679 unsigned long constexpr
5680 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5681 {
5682 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5683 }
5684
5685 template < typename CharT >
5686 unsigned long constexpr
5687 strlen_c(const CharT *const s) noexcept
5688 {
5689 return strlen_c_r(s, 0UL);
5690 }
5691
5692 static_assert(strlen_c("") == 0UL, "");
5693 static_assert(strlen_c("1") == 1UL, "");
5694 static_assert(strlen_c("example") == 7UL, "");
5695 static_assert(strlen_c("another\0example") == 7UL, "");
5696
5697 }
5698
5699 namespace test_rvalue_references
5700 {
5701
5702 template < int N >
5703 struct answer
5704 {
5705 static constexpr int value = N;
5706 };
5707
5708 answer<1> f(int&) { return answer<1>(); }
5709 answer<2> f(const int&) { return answer<2>(); }
5710 answer<3> f(int&&) { return answer<3>(); }
5711
5712 void
5713 test()
5714 {
5715 int i = 0;
5716 const int c = 0;
5717 static_assert(decltype(f(i))::value == 1, "");
5718 static_assert(decltype(f(c))::value == 2, "");
5719 static_assert(decltype(f(0))::value == 3, "");
5720 }
5721
5722 }
5723
5724 namespace test_uniform_initialization
5725 {
5726
5727 struct test
5728 {
5729 static const int zero {};
5730 static const int one {1};
5731 };
5732
5733 static_assert(test::zero == 0, "");
5734 static_assert(test::one == 1, "");
5735
5736 }
5737
5738 namespace test_lambdas
5739 {
5740
5741 void
5742 test1()
5743 {
5744 auto lambda1 = [](){};
5745 auto lambda2 = lambda1;
5746 lambda1();
5747 lambda2();
5748 }
5749
5750 int
5751 test2()
5752 {
5753 auto a = [](int i, int j){ return i + j; }(1, 2);
5754 auto b = []() -> int { return '0'; }();
5755 auto c = [=](){ return a + b; }();
5756 auto d = [&](){ return c; }();
5757 auto e = [a, &b](int x) mutable {
5758 const auto identity = [](int y){ return y; };
5759 for (auto i = 0; i < a; ++i)
5760 a += b--;
5761 return x + identity(a + b);
5762 }(0);
5763 return a + b + c + d + e;
5764 }
5765
5766 int
5767 test3()
5768 {
5769 const auto nullary = [](){ return 0; };
5770 const auto unary = [](int x){ return x; };
5771 using nullary_t = decltype(nullary);
5772 using unary_t = decltype(unary);
5773 const auto higher1st = [](nullary_t f){ return f(); };
5774 const auto higher2nd = [unary](nullary_t f1){
5775 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5776 };
5777 return higher1st(nullary) + higher2nd(nullary)(unary);
5778 }
5779
5780 }
5781
5782 namespace test_variadic_templates
5783 {
5784
5785 template <int...>
5786 struct sum;
5787
5788 template <int N0, int... N1toN>
5789 struct sum<N0, N1toN...>
5790 {
5791 static constexpr auto value = N0 + sum<N1toN...>::value;
5792 };
5793
5794 template <>
5795 struct sum<>
5796 {
5797 static constexpr auto value = 0;
5798 };
5799
5800 static_assert(sum<>::value == 0, "");
5801 static_assert(sum<1>::value == 1, "");
5802 static_assert(sum<23>::value == 23, "");
5803 static_assert(sum<1, 2>::value == 3, "");
5804 static_assert(sum<5, 5, 11>::value == 21, "");
5805 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5806
5807 }
5808
5809 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5810 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5811 // because of this.
5812 namespace test_template_alias_sfinae
5813 {
5814
5815 struct foo {};
5816
5817 template<typename T>
5818 using member = typename T::member_type;
5819
5820 template<typename T>
5821 void func(...) {}
5822
5823 template<typename T>
5824 void func(member<T>*) {}
5825
5826 void test();
5827
5828 void test() { func<foo>(0); }
5829
5830 }
5831
5832} // namespace cxx11
5833
5834#endif // __cplusplus >= 201103L
5835
5836
5837
5838_ACEOF
5839if ac_fn_cxx_try_compile "$LINENO"; then :
5840 ax_cv_cxx_compile_cxx11=yes
5841else
5842 ax_cv_cxx_compile_cxx11=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5847$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5848 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5849 ac_success=yes
5850 fi
5851
5852 if test x$ac_success = xno; then
5853 for alternative in ${ax_cxx_compile_alternatives}; do
5854 switch="-std=gnu++${alternative}"
5855 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5857$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5858if eval \${$cachevar+:} false; then :
5859 $as_echo_n "(cached) " >&6
5860else
5861 ac_save_CXX="$CXX"
5862 CXX="$CXX $switch"
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865
5866
5867// If the compiler admits that it is not ready for C++11, why torture it?
5868// Hopefully, this will speed up the test.
5869
5870#ifndef __cplusplus
5871
5872#error "This is not a C++ compiler"
5873
5874#elif __cplusplus < 201103L
5875
5876#error "This is not a C++11 compiler"
5877
5878#else
5879
5880namespace cxx11
5881{
5882
5883 namespace test_static_assert
5884 {
5885
5886 template <typename T>
5887 struct check
5888 {
5889 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5890 };
5891
5892 }
5893
5894 namespace test_final_override
5895 {
5896
5897 struct Base
5898 {
5899 virtual ~Base() {}
5900 virtual void f() {}
5901 };
5902
5903 struct Derived : public Base
5904 {
5905 virtual ~Derived() override {}
5906 virtual void f() override {}
5907 };
5908
5909 }
5910
5911 namespace test_double_right_angle_brackets
5912 {
5913
5914 template < typename T >
5915 struct check {};
5916
5917 typedef check<void> single_type;
5918 typedef check<check<void>> double_type;
5919 typedef check<check<check<void>>> triple_type;
5920 typedef check<check<check<check<void>>>> quadruple_type;
5921
5922 }
5923
5924 namespace test_decltype
5925 {
5926
5927 int
5928 f()
5929 {
5930 int a = 1;
5931 decltype(a) b = 2;
5932 return a + b;
5933 }
5934
5935 }
5936
5937 namespace test_type_deduction
5938 {
5939
5940 template < typename T1, typename T2 >
5941 struct is_same
5942 {
5943 static const bool value = false;
5944 };
5945
5946 template < typename T >
5947 struct is_same<T, T>
5948 {
5949 static const bool value = true;
5950 };
5951
5952 template < typename T1, typename T2 >
5953 auto
5954 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5955 {
5956 return a1 + a2;
5957 }
5958
5959 int
5960 test(const int c, volatile int v)
5961 {
5962 static_assert(is_same<int, decltype(0)>::value == true, "");
5963 static_assert(is_same<int, decltype(c)>::value == false, "");
5964 static_assert(is_same<int, decltype(v)>::value == false, "");
5965 auto ac = c;
5966 auto av = v;
5967 auto sumi = ac + av + 'x';
5968 auto sumf = ac + av + 1.0;
5969 static_assert(is_same<int, decltype(ac)>::value == true, "");
5970 static_assert(is_same<int, decltype(av)>::value == true, "");
5971 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5972 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5973 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5974 return (sumf > 0.0) ? sumi : add(c, v);
5975 }
5976
5977 }
5978
5979 namespace test_noexcept
5980 {
5981
5982 int f() { return 0; }
5983 int g() noexcept { return 0; }
5984
5985 static_assert(noexcept(f()) == false, "");
5986 static_assert(noexcept(g()) == true, "");
5987
5988 }
5989
5990 namespace test_constexpr
5991 {
5992
5993 template < typename CharT >
5994 unsigned long constexpr
5995 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5996 {
5997 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5998 }
5999
6000 template < typename CharT >
6001 unsigned long constexpr
6002 strlen_c(const CharT *const s) noexcept
6003 {
6004 return strlen_c_r(s, 0UL);
6005 }
6006
6007 static_assert(strlen_c("") == 0UL, "");
6008 static_assert(strlen_c("1") == 1UL, "");
6009 static_assert(strlen_c("example") == 7UL, "");
6010 static_assert(strlen_c("another\0example") == 7UL, "");
6011
6012 }
6013
6014 namespace test_rvalue_references
6015 {
6016
6017 template < int N >
6018 struct answer
6019 {
6020 static constexpr int value = N;
6021 };
6022
6023 answer<1> f(int&) { return answer<1>(); }
6024 answer<2> f(const int&) { return answer<2>(); }
6025 answer<3> f(int&&) { return answer<3>(); }
6026
6027 void
6028 test()
6029 {
6030 int i = 0;
6031 const int c = 0;
6032 static_assert(decltype(f(i))::value == 1, "");
6033 static_assert(decltype(f(c))::value == 2, "");
6034 static_assert(decltype(f(0))::value == 3, "");
6035 }
6036
6037 }
6038
6039 namespace test_uniform_initialization
6040 {
6041
6042 struct test
6043 {
6044 static const int zero {};
6045 static const int one {1};
6046 };
6047
6048 static_assert(test::zero == 0, "");
6049 static_assert(test::one == 1, "");
6050
6051 }
6052
6053 namespace test_lambdas
6054 {
6055
6056 void
6057 test1()
6058 {
6059 auto lambda1 = [](){};
6060 auto lambda2 = lambda1;
6061 lambda1();
6062 lambda2();
6063 }
6064
6065 int
6066 test2()
6067 {
6068 auto a = [](int i, int j){ return i + j; }(1, 2);
6069 auto b = []() -> int { return '0'; }();
6070 auto c = [=](){ return a + b; }();
6071 auto d = [&](){ return c; }();
6072 auto e = [a, &b](int x) mutable {
6073 const auto identity = [](int y){ return y; };
6074 for (auto i = 0; i < a; ++i)
6075 a += b--;
6076 return x + identity(a + b);
6077 }(0);
6078 return a + b + c + d + e;
6079 }
6080
6081 int
6082 test3()
6083 {
6084 const auto nullary = [](){ return 0; };
6085 const auto unary = [](int x){ return x; };
6086 using nullary_t = decltype(nullary);
6087 using unary_t = decltype(unary);
6088 const auto higher1st = [](nullary_t f){ return f(); };
6089 const auto higher2nd = [unary](nullary_t f1){
6090 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6091 };
6092 return higher1st(nullary) + higher2nd(nullary)(unary);
6093 }
6094
6095 }
6096
6097 namespace test_variadic_templates
6098 {
6099
6100 template <int...>
6101 struct sum;
6102
6103 template <int N0, int... N1toN>
6104 struct sum<N0, N1toN...>
6105 {
6106 static constexpr auto value = N0 + sum<N1toN...>::value;
6107 };
6108
6109 template <>
6110 struct sum<>
6111 {
6112 static constexpr auto value = 0;
6113 };
6114
6115 static_assert(sum<>::value == 0, "");
6116 static_assert(sum<1>::value == 1, "");
6117 static_assert(sum<23>::value == 23, "");
6118 static_assert(sum<1, 2>::value == 3, "");
6119 static_assert(sum<5, 5, 11>::value == 21, "");
6120 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6121
6122 }
6123
6124 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6125 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6126 // because of this.
6127 namespace test_template_alias_sfinae
6128 {
6129
6130 struct foo {};
6131
6132 template<typename T>
6133 using member = typename T::member_type;
6134
6135 template<typename T>
6136 void func(...) {}
6137
6138 template<typename T>
6139 void func(member<T>*) {}
6140
6141 void test();
6142
6143 void test() { func<foo>(0); }
6144
6145 }
6146
6147} // namespace cxx11
6148
6149#endif // __cplusplus >= 201103L
6150
6151
6152
6153_ACEOF
6154if ac_fn_cxx_try_compile "$LINENO"; then :
6155 eval $cachevar=yes
6156else
6157 eval $cachevar=no
6158fi
6159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 CXX="$ac_save_CXX"
6161fi
6162eval ac_res=\$$cachevar
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6164$as_echo "$ac_res" >&6; }
6165 if eval test x\$$cachevar = xyes; then
6166 CXX="$CXX $switch"
6167 if test -n "$CXXCPP" ; then
6168 CXXCPP="$CXXCPP $switch"
6169 fi
6170 ac_success=yes
6171 break
6172 fi
6173 done
6174 fi
6175
6176 if test x$ac_success = xno; then
6177 for alternative in ${ax_cxx_compile_alternatives}; do
6178 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6179 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6181$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6182if eval \${$cachevar+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184else
6185 ac_save_CXX="$CXX"
6186 CXX="$CXX $switch"
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188/* end confdefs.h. */
6189
6190
6191// If the compiler admits that it is not ready for C++11, why torture it?
6192// Hopefully, this will speed up the test.
6193
6194#ifndef __cplusplus
6195
6196#error "This is not a C++ compiler"
6197
6198#elif __cplusplus < 201103L
6199
6200#error "This is not a C++11 compiler"
6201
6202#else
6203
6204namespace cxx11
6205{
6206
6207 namespace test_static_assert
6208 {
6209
6210 template <typename T>
6211 struct check
6212 {
6213 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6214 };
6215
6216 }
6217
6218 namespace test_final_override
6219 {
6220
6221 struct Base
6222 {
6223 virtual ~Base() {}
6224 virtual void f() {}
6225 };
6226
6227 struct Derived : public Base
6228 {
6229 virtual ~Derived() override {}
6230 virtual void f() override {}
6231 };
6232
6233 }
6234
6235 namespace test_double_right_angle_brackets
6236 {
6237
6238 template < typename T >
6239 struct check {};
6240
6241 typedef check<void> single_type;
6242 typedef check<check<void>> double_type;
6243 typedef check<check<check<void>>> triple_type;
6244 typedef check<check<check<check<void>>>> quadruple_type;
6245
6246 }
6247
6248 namespace test_decltype
6249 {
6250
6251 int
6252 f()
6253 {
6254 int a = 1;
6255 decltype(a) b = 2;
6256 return a + b;
6257 }
6258
6259 }
6260
6261 namespace test_type_deduction
6262 {
6263
6264 template < typename T1, typename T2 >
6265 struct is_same
6266 {
6267 static const bool value = false;
6268 };
6269
6270 template < typename T >
6271 struct is_same<T, T>
6272 {
6273 static const bool value = true;
6274 };
6275
6276 template < typename T1, typename T2 >
6277 auto
6278 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6279 {
6280 return a1 + a2;
6281 }
6282
6283 int
6284 test(const int c, volatile int v)
6285 {
6286 static_assert(is_same<int, decltype(0)>::value == true, "");
6287 static_assert(is_same<int, decltype(c)>::value == false, "");
6288 static_assert(is_same<int, decltype(v)>::value == false, "");
6289 auto ac = c;
6290 auto av = v;
6291 auto sumi = ac + av + 'x';
6292 auto sumf = ac + av + 1.0;
6293 static_assert(is_same<int, decltype(ac)>::value == true, "");
6294 static_assert(is_same<int, decltype(av)>::value == true, "");
6295 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6296 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6297 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6298 return (sumf > 0.0) ? sumi : add(c, v);
6299 }
6300
6301 }
6302
6303 namespace test_noexcept
6304 {
6305
6306 int f() { return 0; }
6307 int g() noexcept { return 0; }
6308
6309 static_assert(noexcept(f()) == false, "");
6310 static_assert(noexcept(g()) == true, "");
6311
6312 }
6313
6314 namespace test_constexpr
6315 {
6316
6317 template < typename CharT >
6318 unsigned long constexpr
6319 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6320 {
6321 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6322 }
6323
6324 template < typename CharT >
6325 unsigned long constexpr
6326 strlen_c(const CharT *const s) noexcept
6327 {
6328 return strlen_c_r(s, 0UL);
6329 }
6330
6331 static_assert(strlen_c("") == 0UL, "");
6332 static_assert(strlen_c("1") == 1UL, "");
6333 static_assert(strlen_c("example") == 7UL, "");
6334 static_assert(strlen_c("another\0example") == 7UL, "");
6335
6336 }
6337
6338 namespace test_rvalue_references
6339 {
6340
6341 template < int N >
6342 struct answer
6343 {
6344 static constexpr int value = N;
6345 };
6346
6347 answer<1> f(int&) { return answer<1>(); }
6348 answer<2> f(const int&) { return answer<2>(); }
6349 answer<3> f(int&&) { return answer<3>(); }
6350
6351 void
6352 test()
6353 {
6354 int i = 0;
6355 const int c = 0;
6356 static_assert(decltype(f(i))::value == 1, "");
6357 static_assert(decltype(f(c))::value == 2, "");
6358 static_assert(decltype(f(0))::value == 3, "");
6359 }
6360
6361 }
6362
6363 namespace test_uniform_initialization
6364 {
6365
6366 struct test
6367 {
6368 static const int zero {};
6369 static const int one {1};
6370 };
6371
6372 static_assert(test::zero == 0, "");
6373 static_assert(test::one == 1, "");
6374
6375 }
6376
6377 namespace test_lambdas
6378 {
6379
6380 void
6381 test1()
6382 {
6383 auto lambda1 = [](){};
6384 auto lambda2 = lambda1;
6385 lambda1();
6386 lambda2();
6387 }
6388
6389 int
6390 test2()
6391 {
6392 auto a = [](int i, int j){ return i + j; }(1, 2);
6393 auto b = []() -> int { return '0'; }();
6394 auto c = [=](){ return a + b; }();
6395 auto d = [&](){ return c; }();
6396 auto e = [a, &b](int x) mutable {
6397 const auto identity = [](int y){ return y; };
6398 for (auto i = 0; i < a; ++i)
6399 a += b--;
6400 return x + identity(a + b);
6401 }(0);
6402 return a + b + c + d + e;
6403 }
6404
6405 int
6406 test3()
6407 {
6408 const auto nullary = [](){ return 0; };
6409 const auto unary = [](int x){ return x; };
6410 using nullary_t = decltype(nullary);
6411 using unary_t = decltype(unary);
6412 const auto higher1st = [](nullary_t f){ return f(); };
6413 const auto higher2nd = [unary](nullary_t f1){
6414 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6415 };
6416 return higher1st(nullary) + higher2nd(nullary)(unary);
6417 }
6418
6419 }
6420
6421 namespace test_variadic_templates
6422 {
6423
6424 template <int...>
6425 struct sum;
6426
6427 template <int N0, int... N1toN>
6428 struct sum<N0, N1toN...>
6429 {
6430 static constexpr auto value = N0 + sum<N1toN...>::value;
6431 };
6432
6433 template <>
6434 struct sum<>
6435 {
6436 static constexpr auto value = 0;
6437 };
6438
6439 static_assert(sum<>::value == 0, "");
6440 static_assert(sum<1>::value == 1, "");
6441 static_assert(sum<23>::value == 23, "");
6442 static_assert(sum<1, 2>::value == 3, "");
6443 static_assert(sum<5, 5, 11>::value == 21, "");
6444 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6445
6446 }
6447
6448 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6449 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6450 // because of this.
6451 namespace test_template_alias_sfinae
6452 {
6453
6454 struct foo {};
6455
6456 template<typename T>
6457 using member = typename T::member_type;
6458
6459 template<typename T>
6460 void func(...) {}
6461
6462 template<typename T>
6463 void func(member<T>*) {}
6464
6465 void test();
6466
6467 void test() { func<foo>(0); }
6468
6469 }
6470
6471} // namespace cxx11
6472
6473#endif // __cplusplus >= 201103L
6474
6475
6476
6477_ACEOF
6478if ac_fn_cxx_try_compile "$LINENO"; then :
6479 eval $cachevar=yes
6480else
6481 eval $cachevar=no
6482fi
6483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6484 CXX="$ac_save_CXX"
6485fi
6486eval ac_res=\$$cachevar
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6488$as_echo "$ac_res" >&6; }
6489 if eval test x\$$cachevar = xyes; then
6490 CXX="$CXX $switch"
6491 if test -n "$CXXCPP" ; then
6492 CXXCPP="$CXXCPP $switch"
6493 fi
6494 ac_success=yes
6495 break
6496 fi
6497 done
6498 if test x$ac_success = xyes; then
6499 break
6500 fi
6501 done
6502 fi
7ffcf5d6 6503
ffac9597
JM
6504 ac_ext=c
6505ac_cpp='$CPP $CPPFLAGS'
6506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6508ac_compiler_gnu=$ac_cv_c_compiler_gnu
6509
6510 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6511 if test x$ac_success = xno; then
6512 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6513 fi
6514 fi
6515 if test x$ac_success = xno; then
6516 HAVE_CXX11=0
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6518$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6519 else
6520 HAVE_CXX11=1
6521
6522$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6523
6524 fi
6525
6526
7ffcf5d6
TB
6527
6528 if test "${build}" != "${host}"; then
6529 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6530 ac_ext=cpp
6531ac_cpp='$CXXCPP $CPPFLAGS'
6532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6535 ac_success=no
6536 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6537 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6538 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6539 CXX="$CXX_FOR_BUILD"
6540 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6541 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6543$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6544if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6545 $as_echo_n "(cached) " >&6
6546else
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548/* end confdefs.h. */
6549
6550
6551// If the compiler admits that it is not ready for C++11, why torture it?
6552// Hopefully, this will speed up the test.
6553
6554#ifndef __cplusplus
6555
6556#error "This is not a C++ compiler"
6557
6558#elif __cplusplus < 201103L
6559
6560#error "This is not a C++11 compiler"
6561
6562#else
6563
6564namespace cxx11
6565{
6566
6567 namespace test_static_assert
6568 {
6569
6570 template <typename T>
6571 struct check
6572 {
6573 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6574 };
6575
6576 }
6577
6578 namespace test_final_override
6579 {
6580
6581 struct Base
6582 {
6583 virtual ~Base() {}
6584 virtual void f() {}
6585 };
6586
6587 struct Derived : public Base
6588 {
6589 virtual ~Derived() override {}
6590 virtual void f() override {}
6591 };
6592
6593 }
6594
6595 namespace test_double_right_angle_brackets
6596 {
6597
6598 template < typename T >
6599 struct check {};
6600
6601 typedef check<void> single_type;
6602 typedef check<check<void>> double_type;
6603 typedef check<check<check<void>>> triple_type;
6604 typedef check<check<check<check<void>>>> quadruple_type;
6605
6606 }
6607
6608 namespace test_decltype
6609 {
6610
6611 int
6612 f()
6613 {
6614 int a = 1;
6615 decltype(a) b = 2;
6616 return a + b;
6617 }
6618
6619 }
6620
6621 namespace test_type_deduction
6622 {
6623
6624 template < typename T1, typename T2 >
6625 struct is_same
6626 {
6627 static const bool value = false;
6628 };
6629
6630 template < typename T >
6631 struct is_same<T, T>
6632 {
6633 static const bool value = true;
6634 };
6635
6636 template < typename T1, typename T2 >
6637 auto
6638 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6639 {
6640 return a1 + a2;
6641 }
6642
6643 int
6644 test(const int c, volatile int v)
6645 {
6646 static_assert(is_same<int, decltype(0)>::value == true, "");
6647 static_assert(is_same<int, decltype(c)>::value == false, "");
6648 static_assert(is_same<int, decltype(v)>::value == false, "");
6649 auto ac = c;
6650 auto av = v;
6651 auto sumi = ac + av + 'x';
6652 auto sumf = ac + av + 1.0;
6653 static_assert(is_same<int, decltype(ac)>::value == true, "");
6654 static_assert(is_same<int, decltype(av)>::value == true, "");
6655 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6656 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6657 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6658 return (sumf > 0.0) ? sumi : add(c, v);
6659 }
6660
6661 }
6662
6663 namespace test_noexcept
6664 {
6665
6666 int f() { return 0; }
6667 int g() noexcept { return 0; }
6668
6669 static_assert(noexcept(f()) == false, "");
6670 static_assert(noexcept(g()) == true, "");
6671
6672 }
6673
6674 namespace test_constexpr
6675 {
6676
6677 template < typename CharT >
6678 unsigned long constexpr
6679 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6680 {
6681 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6682 }
6683
6684 template < typename CharT >
6685 unsigned long constexpr
6686 strlen_c(const CharT *const s) noexcept
6687 {
6688 return strlen_c_r(s, 0UL);
6689 }
6690
6691 static_assert(strlen_c("") == 0UL, "");
6692 static_assert(strlen_c("1") == 1UL, "");
6693 static_assert(strlen_c("example") == 7UL, "");
6694 static_assert(strlen_c("another\0example") == 7UL, "");
6695
6696 }
6697
6698 namespace test_rvalue_references
6699 {
6700
6701 template < int N >
6702 struct answer
6703 {
6704 static constexpr int value = N;
6705 };
6706
6707 answer<1> f(int&) { return answer<1>(); }
6708 answer<2> f(const int&) { return answer<2>(); }
6709 answer<3> f(int&&) { return answer<3>(); }
6710
6711 void
6712 test()
6713 {
6714 int i = 0;
6715 const int c = 0;
6716 static_assert(decltype(f(i))::value == 1, "");
6717 static_assert(decltype(f(c))::value == 2, "");
6718 static_assert(decltype(f(0))::value == 3, "");
6719 }
6720
6721 }
6722
6723 namespace test_uniform_initialization
6724 {
6725
6726 struct test
6727 {
6728 static const int zero {};
6729 static const int one {1};
6730 };
6731
6732 static_assert(test::zero == 0, "");
6733 static_assert(test::one == 1, "");
6734
6735 }
6736
6737 namespace test_lambdas
6738 {
6739
6740 void
6741 test1()
6742 {
6743 auto lambda1 = [](){};
6744 auto lambda2 = lambda1;
6745 lambda1();
6746 lambda2();
6747 }
6748
6749 int
6750 test2()
6751 {
6752 auto a = [](int i, int j){ return i + j; }(1, 2);
6753 auto b = []() -> int { return '0'; }();
6754 auto c = [=](){ return a + b; }();
6755 auto d = [&](){ return c; }();
6756 auto e = [a, &b](int x) mutable {
6757 const auto identity = [](int y){ return y; };
6758 for (auto i = 0; i < a; ++i)
6759 a += b--;
6760 return x + identity(a + b);
6761 }(0);
6762 return a + b + c + d + e;
6763 }
6764
6765 int
6766 test3()
6767 {
6768 const auto nullary = [](){ return 0; };
6769 const auto unary = [](int x){ return x; };
6770 using nullary_t = decltype(nullary);
6771 using unary_t = decltype(unary);
6772 const auto higher1st = [](nullary_t f){ return f(); };
6773 const auto higher2nd = [unary](nullary_t f1){
6774 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6775 };
6776 return higher1st(nullary) + higher2nd(nullary)(unary);
6777 }
6778
6779 }
6780
6781 namespace test_variadic_templates
6782 {
6783
6784 template <int...>
6785 struct sum;
6786
6787 template <int N0, int... N1toN>
6788 struct sum<N0, N1toN...>
6789 {
6790 static constexpr auto value = N0 + sum<N1toN...>::value;
6791 };
6792
6793 template <>
6794 struct sum<>
6795 {
6796 static constexpr auto value = 0;
6797 };
6798
6799 static_assert(sum<>::value == 0, "");
6800 static_assert(sum<1>::value == 1, "");
6801 static_assert(sum<23>::value == 23, "");
6802 static_assert(sum<1, 2>::value == 3, "");
6803 static_assert(sum<5, 5, 11>::value == 21, "");
6804 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6805
6806 }
6807
6808 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6809 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6810 // because of this.
6811 namespace test_template_alias_sfinae
6812 {
6813
6814 struct foo {};
6815
6816 template<typename T>
6817 using member = typename T::member_type;
6818
6819 template<typename T>
6820 void func(...) {}
6821
6822 template<typename T>
6823 void func(member<T>*) {}
6824
6825 void test();
6826
6827 void test() { func<foo>(0); }
6828
6829 }
6830
6831} // namespace cxx11
6832
6833#endif // __cplusplus >= 201103L
6834
6835
6836
6837_ACEOF
6838if ac_fn_cxx_try_compile "$LINENO"; then :
6839 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
6840else
6841 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
6846$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
6847 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
6848 ac_success=yes
6849 fi
6850
6851 if test x$ac_success = xno; then
6852 for alternative in ${ax_cxx_compile_alternatives}; do
6853 switch="-std=gnu++${alternative}"
6854 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6856$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6857if eval \${$cachevar+:} false; then :
6858 $as_echo_n "(cached) " >&6
6859else
6860 ac_save_CXX="$CXX"
6861 CXX="$CXX $switch"
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863/* end confdefs.h. */
6864
6865
6866// If the compiler admits that it is not ready for C++11, why torture it?
6867// Hopefully, this will speed up the test.
6868
6869#ifndef __cplusplus
6870
6871#error "This is not a C++ compiler"
6872
6873#elif __cplusplus < 201103L
6874
6875#error "This is not a C++11 compiler"
6876
6877#else
6878
6879namespace cxx11
6880{
6881
6882 namespace test_static_assert
6883 {
6884
6885 template <typename T>
6886 struct check
6887 {
6888 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6889 };
6890
6891 }
6892
6893 namespace test_final_override
6894 {
6895
6896 struct Base
6897 {
6898 virtual ~Base() {}
6899 virtual void f() {}
6900 };
6901
6902 struct Derived : public Base
6903 {
6904 virtual ~Derived() override {}
6905 virtual void f() override {}
6906 };
6907
6908 }
6909
6910 namespace test_double_right_angle_brackets
6911 {
6912
6913 template < typename T >
6914 struct check {};
6915
6916 typedef check<void> single_type;
6917 typedef check<check<void>> double_type;
6918 typedef check<check<check<void>>> triple_type;
6919 typedef check<check<check<check<void>>>> quadruple_type;
6920
6921 }
6922
6923 namespace test_decltype
6924 {
6925
6926 int
6927 f()
6928 {
6929 int a = 1;
6930 decltype(a) b = 2;
6931 return a + b;
6932 }
6933
6934 }
6935
6936 namespace test_type_deduction
6937 {
6938
6939 template < typename T1, typename T2 >
6940 struct is_same
6941 {
6942 static const bool value = false;
6943 };
6944
6945 template < typename T >
6946 struct is_same<T, T>
6947 {
6948 static const bool value = true;
6949 };
6950
6951 template < typename T1, typename T2 >
6952 auto
6953 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6954 {
6955 return a1 + a2;
6956 }
6957
6958 int
6959 test(const int c, volatile int v)
6960 {
6961 static_assert(is_same<int, decltype(0)>::value == true, "");
6962 static_assert(is_same<int, decltype(c)>::value == false, "");
6963 static_assert(is_same<int, decltype(v)>::value == false, "");
6964 auto ac = c;
6965 auto av = v;
6966 auto sumi = ac + av + 'x';
6967 auto sumf = ac + av + 1.0;
6968 static_assert(is_same<int, decltype(ac)>::value == true, "");
6969 static_assert(is_same<int, decltype(av)>::value == true, "");
6970 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6971 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6972 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6973 return (sumf > 0.0) ? sumi : add(c, v);
6974 }
6975
6976 }
6977
6978 namespace test_noexcept
6979 {
6980
6981 int f() { return 0; }
6982 int g() noexcept { return 0; }
6983
6984 static_assert(noexcept(f()) == false, "");
6985 static_assert(noexcept(g()) == true, "");
6986
6987 }
6988
6989 namespace test_constexpr
6990 {
6991
6992 template < typename CharT >
6993 unsigned long constexpr
6994 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6995 {
6996 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6997 }
6998
6999 template < typename CharT >
7000 unsigned long constexpr
7001 strlen_c(const CharT *const s) noexcept
7002 {
7003 return strlen_c_r(s, 0UL);
7004 }
7005
7006 static_assert(strlen_c("") == 0UL, "");
7007 static_assert(strlen_c("1") == 1UL, "");
7008 static_assert(strlen_c("example") == 7UL, "");
7009 static_assert(strlen_c("another\0example") == 7UL, "");
7010
7011 }
7012
7013 namespace test_rvalue_references
7014 {
7015
7016 template < int N >
7017 struct answer
7018 {
7019 static constexpr int value = N;
7020 };
7021
7022 answer<1> f(int&) { return answer<1>(); }
7023 answer<2> f(const int&) { return answer<2>(); }
7024 answer<3> f(int&&) { return answer<3>(); }
7025
7026 void
7027 test()
7028 {
7029 int i = 0;
7030 const int c = 0;
7031 static_assert(decltype(f(i))::value == 1, "");
7032 static_assert(decltype(f(c))::value == 2, "");
7033 static_assert(decltype(f(0))::value == 3, "");
7034 }
7035
7036 }
7037
7038 namespace test_uniform_initialization
7039 {
7040
7041 struct test
7042 {
7043 static const int zero {};
7044 static const int one {1};
7045 };
7046
7047 static_assert(test::zero == 0, "");
7048 static_assert(test::one == 1, "");
7049
7050 }
7051
7052 namespace test_lambdas
7053 {
7054
7055 void
7056 test1()
7057 {
7058 auto lambda1 = [](){};
7059 auto lambda2 = lambda1;
7060 lambda1();
7061 lambda2();
7062 }
7063
7064 int
7065 test2()
7066 {
7067 auto a = [](int i, int j){ return i + j; }(1, 2);
7068 auto b = []() -> int { return '0'; }();
7069 auto c = [=](){ return a + b; }();
7070 auto d = [&](){ return c; }();
7071 auto e = [a, &b](int x) mutable {
7072 const auto identity = [](int y){ return y; };
7073 for (auto i = 0; i < a; ++i)
7074 a += b--;
7075 return x + identity(a + b);
7076 }(0);
7077 return a + b + c + d + e;
7078 }
7079
7080 int
7081 test3()
7082 {
7083 const auto nullary = [](){ return 0; };
7084 const auto unary = [](int x){ return x; };
7085 using nullary_t = decltype(nullary);
7086 using unary_t = decltype(unary);
7087 const auto higher1st = [](nullary_t f){ return f(); };
7088 const auto higher2nd = [unary](nullary_t f1){
7089 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7090 };
7091 return higher1st(nullary) + higher2nd(nullary)(unary);
7092 }
7093
7094 }
7095
7096 namespace test_variadic_templates
7097 {
7098
7099 template <int...>
7100 struct sum;
7101
7102 template <int N0, int... N1toN>
7103 struct sum<N0, N1toN...>
7104 {
7105 static constexpr auto value = N0 + sum<N1toN...>::value;
7106 };
7107
7108 template <>
7109 struct sum<>
7110 {
7111 static constexpr auto value = 0;
7112 };
7113
7114 static_assert(sum<>::value == 0, "");
7115 static_assert(sum<1>::value == 1, "");
7116 static_assert(sum<23>::value == 23, "");
7117 static_assert(sum<1, 2>::value == 3, "");
7118 static_assert(sum<5, 5, 11>::value == 21, "");
7119 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7120
7121 }
7122
7123 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7124 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7125 // because of this.
7126 namespace test_template_alias_sfinae
7127 {
7128
7129 struct foo {};
7130
7131 template<typename T>
7132 using member = typename T::member_type;
7133
7134 template<typename T>
7135 void func(...) {}
7136
7137 template<typename T>
7138 void func(member<T>*) {}
7139
7140 void test();
7141
7142 void test() { func<foo>(0); }
7143
7144 }
7145
7146} // namespace cxx11
7147
7148#endif // __cplusplus >= 201103L
7149
7150
7151
7152_ACEOF
7153if ac_fn_cxx_try_compile "$LINENO"; then :
7154 eval $cachevar=yes
7155else
7156 eval $cachevar=no
7157fi
7158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 CXX="$ac_save_CXX"
7160fi
7161eval ac_res=\$$cachevar
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7163$as_echo "$ac_res" >&6; }
7164 if eval test x\$$cachevar = xyes; then
7165 CXX="$CXX $switch"
7166 if test -n "$CXXCPP" ; then
7167 CXXCPP="$CXXCPP $switch"
7168 fi
7169 ac_success=yes
7170 break
7171 fi
7172 done
7173 fi
7174
7175 if test x$ac_success = xno; then
7176 for alternative in ${ax_cxx_compile_alternatives}; do
7177 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7178 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7180$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7181if eval \${$cachevar+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183else
7184 ac_save_CXX="$CXX"
7185 CXX="$CXX $switch"
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187/* end confdefs.h. */
7188
7189
7190// If the compiler admits that it is not ready for C++11, why torture it?
7191// Hopefully, this will speed up the test.
7192
7193#ifndef __cplusplus
7194
7195#error "This is not a C++ compiler"
7196
7197#elif __cplusplus < 201103L
7198
7199#error "This is not a C++11 compiler"
7200
7201#else
7202
7203namespace cxx11
7204{
7205
7206 namespace test_static_assert
7207 {
7208
7209 template <typename T>
7210 struct check
7211 {
7212 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7213 };
7214
7215 }
7216
7217 namespace test_final_override
7218 {
7219
7220 struct Base
7221 {
7222 virtual ~Base() {}
7223 virtual void f() {}
7224 };
7225
7226 struct Derived : public Base
7227 {
7228 virtual ~Derived() override {}
7229 virtual void f() override {}
7230 };
7231
7232 }
7233
7234 namespace test_double_right_angle_brackets
7235 {
7236
7237 template < typename T >
7238 struct check {};
7239
7240 typedef check<void> single_type;
7241 typedef check<check<void>> double_type;
7242 typedef check<check<check<void>>> triple_type;
7243 typedef check<check<check<check<void>>>> quadruple_type;
7244
7245 }
7246
7247 namespace test_decltype
7248 {
7249
7250 int
7251 f()
7252 {
7253 int a = 1;
7254 decltype(a) b = 2;
7255 return a + b;
7256 }
7257
7258 }
7259
7260 namespace test_type_deduction
7261 {
7262
7263 template < typename T1, typename T2 >
7264 struct is_same
7265 {
7266 static const bool value = false;
7267 };
7268
7269 template < typename T >
7270 struct is_same<T, T>
7271 {
7272 static const bool value = true;
7273 };
7274
7275 template < typename T1, typename T2 >
7276 auto
7277 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7278 {
7279 return a1 + a2;
7280 }
7281
7282 int
7283 test(const int c, volatile int v)
7284 {
7285 static_assert(is_same<int, decltype(0)>::value == true, "");
7286 static_assert(is_same<int, decltype(c)>::value == false, "");
7287 static_assert(is_same<int, decltype(v)>::value == false, "");
7288 auto ac = c;
7289 auto av = v;
7290 auto sumi = ac + av + 'x';
7291 auto sumf = ac + av + 1.0;
7292 static_assert(is_same<int, decltype(ac)>::value == true, "");
7293 static_assert(is_same<int, decltype(av)>::value == true, "");
7294 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7295 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7296 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7297 return (sumf > 0.0) ? sumi : add(c, v);
7298 }
7299
7300 }
7301
7302 namespace test_noexcept
7303 {
7304
7305 int f() { return 0; }
7306 int g() noexcept { return 0; }
7307
7308 static_assert(noexcept(f()) == false, "");
7309 static_assert(noexcept(g()) == true, "");
7310
7311 }
7312
7313 namespace test_constexpr
7314 {
7315
7316 template < typename CharT >
7317 unsigned long constexpr
7318 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7319 {
7320 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7321 }
7322
7323 template < typename CharT >
7324 unsigned long constexpr
7325 strlen_c(const CharT *const s) noexcept
7326 {
7327 return strlen_c_r(s, 0UL);
7328 }
7329
7330 static_assert(strlen_c("") == 0UL, "");
7331 static_assert(strlen_c("1") == 1UL, "");
7332 static_assert(strlen_c("example") == 7UL, "");
7333 static_assert(strlen_c("another\0example") == 7UL, "");
7334
7335 }
7336
7337 namespace test_rvalue_references
7338 {
7339
7340 template < int N >
7341 struct answer
7342 {
7343 static constexpr int value = N;
7344 };
7345
7346 answer<1> f(int&) { return answer<1>(); }
7347 answer<2> f(const int&) { return answer<2>(); }
7348 answer<3> f(int&&) { return answer<3>(); }
7349
7350 void
7351 test()
7352 {
7353 int i = 0;
7354 const int c = 0;
7355 static_assert(decltype(f(i))::value == 1, "");
7356 static_assert(decltype(f(c))::value == 2, "");
7357 static_assert(decltype(f(0))::value == 3, "");
7358 }
7359
7360 }
7361
7362 namespace test_uniform_initialization
7363 {
7364
7365 struct test
7366 {
7367 static const int zero {};
7368 static const int one {1};
7369 };
7370
7371 static_assert(test::zero == 0, "");
7372 static_assert(test::one == 1, "");
7373
7374 }
7375
7376 namespace test_lambdas
7377 {
7378
7379 void
7380 test1()
7381 {
7382 auto lambda1 = [](){};
7383 auto lambda2 = lambda1;
7384 lambda1();
7385 lambda2();
7386 }
7387
7388 int
7389 test2()
7390 {
7391 auto a = [](int i, int j){ return i + j; }(1, 2);
7392 auto b = []() -> int { return '0'; }();
7393 auto c = [=](){ return a + b; }();
7394 auto d = [&](){ return c; }();
7395 auto e = [a, &b](int x) mutable {
7396 const auto identity = [](int y){ return y; };
7397 for (auto i = 0; i < a; ++i)
7398 a += b--;
7399 return x + identity(a + b);
7400 }(0);
7401 return a + b + c + d + e;
7402 }
7403
7404 int
7405 test3()
7406 {
7407 const auto nullary = [](){ return 0; };
7408 const auto unary = [](int x){ return x; };
7409 using nullary_t = decltype(nullary);
7410 using unary_t = decltype(unary);
7411 const auto higher1st = [](nullary_t f){ return f(); };
7412 const auto higher2nd = [unary](nullary_t f1){
7413 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7414 };
7415 return higher1st(nullary) + higher2nd(nullary)(unary);
7416 }
7417
7418 }
7419
7420 namespace test_variadic_templates
7421 {
7422
7423 template <int...>
7424 struct sum;
7425
7426 template <int N0, int... N1toN>
7427 struct sum<N0, N1toN...>
7428 {
7429 static constexpr auto value = N0 + sum<N1toN...>::value;
7430 };
7431
7432 template <>
7433 struct sum<>
7434 {
7435 static constexpr auto value = 0;
7436 };
7437
7438 static_assert(sum<>::value == 0, "");
7439 static_assert(sum<1>::value == 1, "");
7440 static_assert(sum<23>::value == 23, "");
7441 static_assert(sum<1, 2>::value == 3, "");
7442 static_assert(sum<5, 5, 11>::value == 21, "");
7443 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7444
7445 }
7446
7447 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7448 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7449 // because of this.
7450 namespace test_template_alias_sfinae
7451 {
7452
7453 struct foo {};
7454
7455 template<typename T>
7456 using member = typename T::member_type;
7457
7458 template<typename T>
7459 void func(...) {}
7460
7461 template<typename T>
7462 void func(member<T>*) {}
7463
7464 void test();
7465
7466 void test() { func<foo>(0); }
7467
7468 }
7469
7470} // namespace cxx11
7471
7472#endif // __cplusplus >= 201103L
7473
7474
7475
7476_ACEOF
7477if ac_fn_cxx_try_compile "$LINENO"; then :
7478 eval $cachevar=yes
7479else
7480 eval $cachevar=no
7481fi
7482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 CXX="$ac_save_CXX"
7484fi
7485eval ac_res=\$$cachevar
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7487$as_echo "$ac_res" >&6; }
7488 if eval test x\$$cachevar = xyes; then
7489 CXX="$CXX $switch"
7490 if test -n "$CXXCPP" ; then
7491 CXXCPP="$CXXCPP $switch"
7492 fi
7493 ac_success=yes
7494 break
7495 fi
7496 done
7497 if test x$ac_success = xyes; then
7498 break
7499 fi
7500 done
7501 fi
7502 CXX_FOR_BUILD="$CXX"
7503 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7504 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7505 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7506 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7507 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7508 ac_ext=c
7509ac_cpp='$CPP $CPPFLAGS'
7510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512ac_compiler_gnu=$ac_cv_c_compiler_gnu
7513
7514 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7515 if test x$ac_success = xno; then
7516 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7517 fi
7518 fi
7519 if test x$ac_success = xno; then
7520 HAVE_CXX11_FOR_BUILD=0
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7522$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7523 else
7524 HAVE_CXX11_FOR_BUILD=1
7525
7526$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7527
7528 fi
7529
7530
7531 fi
46070488
JM
7532fi
7533
592c90ff
KG
7534# Used for setting $lt_cv_objdir
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7536$as_echo_n "checking for objdir... " >&6; }
22e05272 7537if ${lt_cv_objdir+:} false; then :
592c90ff
KG
7538 $as_echo_n "(cached) " >&6
7539else
7540 rm -f .libs 2>/dev/null
7541mkdir .libs 2>/dev/null
7542if test -d .libs; then
7543 lt_cv_objdir=.libs
7544else
7545 # MS-DOS does not allow filenames that begin with a dot.
7546 lt_cv_objdir=_libs
7547fi
7548rmdir .libs 2>/dev/null
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7551$as_echo "$lt_cv_objdir" >&6; }
7552objdir=$lt_cv_objdir
7553
7554
7555
7556
7557
7558cat >>confdefs.h <<_ACEOF
7559#define LT_OBJDIR "$lt_cv_objdir/"
7560_ACEOF
7561
7562
7563
acd26225 7564# Check for GMP, MPFR and MPC
3a5729ea 7565gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 7566gmpinc=
e69bf64b 7567have_gmp=no
acd26225
KG
7568
7569# Specify a location for mpc
7570# check for this first so it ends up on the link line before mpfr.
7571
5213506e
RW
7572# Check whether --with-mpc was given.
7573if test "${with_mpc+set}" = set; then :
7574 withval=$with_mpc;
7575fi
acd26225 7576
acd26225 7577
9965e3cd 7578# Check whether --with-mpc-include was given.
5213506e
RW
7579if test "${with_mpc_include+set}" = set; then :
7580 withval=$with_mpc_include;
7581fi
acd26225 7582
acd26225 7583
9965e3cd 7584# Check whether --with-mpc-lib was given.
5213506e
RW
7585if test "${with_mpc_lib+set}" = set; then :
7586 withval=$with_mpc_lib;
7587fi
acd26225 7588
acd26225
KG
7589
7590if test "x$with_mpc" != x; then
3a5729ea
KG
7591 gmplibs="-L$with_mpc/lib $gmplibs"
7592 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
7593fi
7594if test "x$with_mpc_include" != x; then
3a5729ea 7595 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
7596fi
7597if test "x$with_mpc_lib" != x; then
3a5729ea 7598 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
7599fi
7600if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 7601 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 7602 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
7603 # Do not test the mpc version. Assume that it is sufficient, since
7604 # it is in the source tree, and the library has not been built yet
7605 # but it would be included on the link line in the version check below
7606 # hence making the test fail.
3a5729ea 7607 have_gmp=yes
acd26225 7608fi
e69bf64b 7609
bebf829d
PB
7610# Specify a location for mpfr
7611# check for this first so it ends up on the link line before gmp.
1c710c3c 7612
5213506e
RW
7613# Check whether --with-mpfr-dir was given.
7614if test "${with_mpfr_dir+set}" = set; then :
22e05272 7615 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
5213506e
RW
7616Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7617fi
7618
bebf829d
PB
7619
7620
5213506e
RW
7621# Check whether --with-mpfr was given.
7622if test "${with_mpfr+set}" = set; then :
7623 withval=$with_mpfr;
7624fi
1c710c3c 7625
bebf829d 7626
9965e3cd 7627# Check whether --with-mpfr-include was given.
5213506e
RW
7628if test "${with_mpfr_include+set}" = set; then :
7629 withval=$with_mpfr_include;
7630fi
1c710c3c 7631
8a877c9c 7632
9965e3cd 7633# Check whether --with-mpfr-lib was given.
5213506e
RW
7634if test "${with_mpfr_lib+set}" = set; then :
7635 withval=$with_mpfr_lib;
7636fi
8a877c9c 7637
bebf829d
PB
7638
7639if test "x$with_mpfr" != x; then
7640 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 7641 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 7642fi
8a877c9c 7643if test "x$with_mpfr_include" != x; then
3a5729ea 7644 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
7645fi
7646if test "x$with_mpfr_lib" != x; then
7647 gmplibs="-L$with_mpfr_lib $gmplibs"
7648fi
e69bf64b 7649if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
7650 # MPFR v3.1.0 moved the sources into a src sub-directory.
7651 if ! test -d ${srcdir}/mpfr/src; then
22e05272 7652 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8f3675f8 7653 fi
00f35794
BE
7654 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7655 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7656 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
7657 # Do not test the mpfr version. Assume that it is sufficient, since
7658 # it is in the source tree, and the library has not been built yet
7659 # but it would be included on the link line in the version check below
7660 # hence making the test fail.
7661 have_gmp=yes
7662fi
bebf829d 7663
6de9cd9a 7664# Specify a location for gmp
1c710c3c 7665
5213506e
RW
7666# Check whether --with-gmp-dir was given.
7667if test "${with_gmp_dir+set}" = set; then :
22e05272 7668 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
5213506e
RW
7669Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7670fi
7671
6de9cd9a 7672
6de9cd9a 7673
5213506e
RW
7674# Check whether --with-gmp was given.
7675if test "${with_gmp+set}" = set; then :
7676 withval=$with_gmp;
7677fi
1c710c3c 7678
6de9cd9a 7679
9965e3cd 7680# Check whether --with-gmp-include was given.
5213506e
RW
7681if test "${with_gmp_include+set}" = set; then :
7682 withval=$with_gmp_include;
7683fi
1c710c3c 7684
8a877c9c 7685
9965e3cd 7686# Check whether --with-gmp-lib was given.
5213506e
RW
7687if test "${with_gmp_lib+set}" = set; then :
7688 withval=$with_gmp_lib;
7689fi
8a877c9c
KG
7690
7691
6de9cd9a 7692
bebf829d
PB
7693if test "x$with_gmp" != x; then
7694 gmplibs="-L$with_gmp/lib $gmplibs"
7695 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 7696fi
8a877c9c
KG
7697if test "x$with_gmp_include" != x; then
7698 gmpinc="-I$with_gmp_include $gmpinc"
7699fi
7700if test "x$with_gmp_lib" != x; then
7701 gmplibs="-L$with_gmp_lib $gmplibs"
7702fi
e69bf64b 7703if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 7704 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 7705 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 7706 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 7707 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 7708 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
7709 # Do not test the gmp version. Assume that it is sufficient, since
7710 # it is in the source tree, and the library has not been built yet
7711 # but it would be included on the link line in the version check below
7712 # hence making the test fail.
7713 have_gmp=yes
7714fi
6de9cd9a 7715
d943d7c4 7716if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
7717 have_gmp=yes
7718 saved_CFLAGS="$CFLAGS"
7719 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
7720 # Check for the recommended and required versions of GMP.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7722$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
7723
7724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
7725/* end confdefs.h. */
7726#include "gmp.h"
7727int
7728main ()
7729{
7730
7731 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7732 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 7733 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
7734 choke me
7735 #endif
7736
7737 ;
7738 return 0;
7739}
7740_ACEOF
7741if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7743/* end confdefs.h. */
362c6d2f 7744#include <gmp.h>
1c710c3c
DJ
7745int
7746main ()
7747{
6de9cd9a 7748
362c6d2f
KG
7749 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7750 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7751 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
7752 choke me
7753 #endif
1c710c3c
DJ
7754
7755 ;
7756 return 0;
7757}
7758_ACEOF
5213506e
RW
7759if ac_fn_c_try_compile "$LINENO"; then :
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761$as_echo "yes" >&6; }
362c6d2f
KG
7762else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7764$as_echo "buggy but acceptable" >&6; }
7765fi
7766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 7767else
5213506e
RW
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769$as_echo "no" >&6; }; have_gmp=no
1c710c3c 7770fi
5213506e 7771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 7772
acd26225 7773 # If we have GMP, check the MPFR version.
e69bf64b 7774 if test x"$have_gmp" = xyes; then
362c6d2f
KG
7775 # Check for the recommended and required versions of MPFR.
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7777$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7779/* end confdefs.h. */
70ec446f 7780#include <gmp.h>
e69bf64b 7781 #include <mpfr.h>
1c710c3c
DJ
7782int
7783main ()
7784{
e48d66a9 7785
8be34204 7786 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
e69bf64b
PB
7787 choke me
7788 #endif
1c710c3c
DJ
7789
7790 ;
7791 return 0;
7792}
7793_ACEOF
5213506e
RW
7794if ac_fn_c_try_compile "$LINENO"; then :
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 7796/* end confdefs.h. */
a3993f33 7797#include <gmp.h>
e69bf64b 7798 #include <mpfr.h>
1c710c3c
DJ
7799int
7800main ()
7801{
a3993f33 7802
8be34204 7803 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
e69bf64b
PB
7804 choke me
7805 #endif
acd26225
KG
7806
7807 ;
7808 return 0;
7809}
7810_ACEOF
5213506e
RW
7811if ac_fn_c_try_compile "$LINENO"; then :
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7813$as_echo "yes" >&6; }
acd26225 7814else
5213506e
RW
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7816$as_echo "buggy but acceptable" >&6; }
acd26225 7817fi
5213506e 7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 7819else
5213506e
RW
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7821$as_echo "no" >&6; }; have_gmp=no
acd26225 7822fi
5213506e 7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
7824 fi
7825
7826 # Check for the MPC header version.
3a5729ea 7827 if test x"$have_gmp" = xyes ; then
362c6d2f 7828 # Check for the recommended and required versions of MPC.
5213506e
RW
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
7830$as_echo_n "checking for the correct version of mpc.h... " >&6; }
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
7832/* end confdefs.h. */
7833#include <mpc.h>
7834int
7835main ()
7836{
7837
362c6d2f
KG
7838 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
7839 choke me
7840 #endif
7841
7842 ;
7843 return 0;
7844}
7845_ACEOF
7846if ac_fn_c_try_compile "$LINENO"; then :
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h. */
7849#include <mpc.h>
7850int
7851main ()
7852{
7853
7854 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
7855 choke me
7856 #endif
7857
7858 ;
7859 return 0;
7860}
7861_ACEOF
5213506e
RW
7862if ac_fn_c_try_compile "$LINENO"; then :
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 7864$as_echo "yes" >&6; }
362c6d2f
KG
7865else
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7867$as_echo "buggy but acceptable" >&6; }
7868fi
7869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 7870else
5213506e 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 7872$as_echo "no" >&6; }; have_gmp=no
acd26225 7873fi
5213506e 7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
7875 fi
7876
7877 # Now check the MPFR library.
7878 if test x"$have_gmp" = xyes; then
7879 saved_LIBS="$LIBS"
7880 LIBS="$LIBS $gmplibs"
3a5729ea
KG
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
7882$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 7884/* end confdefs.h. */
3a5729ea 7885#include <mpc.h>
acd26225
KG
7886int
7887main ()
7888{
7889
7890 mpfr_t n;
7891 mpfr_t x;
3a5729ea 7892 mpc_t c;
acd26225
KG
7893 int t;
7894 mpfr_init (n);
7895 mpfr_init (x);
90ca6847
TB
7896 mpfr_atan2 (n, n, x, MPFR_RNDN);
7897 mpfr_erfc (n, x, MPFR_RNDN);
7898 mpfr_subnormalize (x, t, MPFR_RNDN);
3a5729ea
KG
7899 mpfr_clear(n);
7900 mpfr_clear(x);
7901 mpc_init2 (c, 53);
7902 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
7903 mpc_cosh (c, c, MPC_RNDNN);
7904 mpc_pow (c, c, c, MPC_RNDNN);
7905 mpc_acosh (c, c, MPC_RNDNN);
7906 mpc_clear (c);
1c710c3c
DJ
7907
7908 ;
7909 return 0;
7910}
7911_ACEOF
5213506e
RW
7912if ac_fn_c_try_link "$LINENO"; then :
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7914$as_echo "yes" >&6; }
1c710c3c 7915else
5213506e
RW
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }; have_gmp=no
1c710c3c 7918fi
5213506e
RW
7919rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
7921 LIBS="$saved_LIBS"
7922 fi
7923
e69bf64b 7924 CFLAGS="$saved_CFLAGS"
6de9cd9a 7925
362c6d2f
KG
7926# The library versions listed in the error message below should match
7927# the HARD-minimums enforced above.
e69bf64b 7928 if test x$have_gmp != xyes; then
8be34204 7929 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
3a5729ea
KG
7930Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
7931their locations. Source code for these libraries can be found at
7932their respective hosting sites as well as at
aeebd94c 7933https://gcc.gnu.org/pub/gcc/infrastructure/. See also
3a5729ea
KG
7934http://gcc.gnu.org/install/prerequisites.html for additional info. If
7935you obtained GMP, MPFR and/or MPC from a vendor distribution package,
7936make sure that you have installed both the libraries and the header
7937files. They may be located in separate packages." "$LINENO" 5
e69bf64b 7938 fi
70ec446f
KG
7939fi
7940
acd26225
KG
7941# Flags needed for both GMP, MPFR and/or MPC.
7942
7943
6de9cd9a
DN
7944
7945
7946
9e3eba15 7947
0ff2d841 7948
0b21f5d3 7949# Libraries to use for stage1 or when not bootstrapping.
00020c16 7950
0b21f5d3
EB
7951# Check whether --with-stage1-libs was given.
7952if test "${with_stage1_libs+set}" = set; then :
7953 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7954 stage1_libs=
00020c16 7955 else
0b21f5d3 7956 stage1_libs=$withval
00020c16
ILT
7957 fi
7958else
5dc85f7e 7959 stage1_libs=
5213506e
RW
7960fi
7961
00020c16
ILT
7962
7963
aac9103b
TT
7964# Whether or not to use -static-libstdc++ and -static-libgcc. The
7965# default is yes if gcc is being built; no otherwise. The reason for
7966# this default is that gdb is sometimes linked against GNU Source
7967# Highlight, which is a shared library that uses C++ exceptions. In
7968# this case, -static-libstdc++ will cause crashes.
7969
7970# Check whether --with-static-standard-libraries was given.
7971if test "${with_static_standard_libraries+set}" = set; then :
7972 withval=$with_static_standard_libraries;
7973else
7974 with_static_standard_libraries=auto
7975fi
7976
7977if test "$with_static_standard_libraries" = auto; then
7978 with_static_standard_libraries=$have_compiler
7979fi
7980
0b21f5d3 7981# Linker flags to use for stage1 or when not bootstrapping.
00020c16 7982
0b21f5d3
EB
7983# Check whether --with-stage1-ldflags was given.
7984if test "${with_stage1_ldflags+set}" = set; then :
7985 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7986 stage1_ldflags=
00020c16 7987 else
0b21f5d3 7988 stage1_ldflags=$withval
00020c16
ILT
7989 fi
7990else
0b21f5d3
EB
7991 stage1_ldflags=
7992 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
7993 # if supported. But if the user explicitly specified the libraries to use,
7994 # trust that they are doing what they want.
aac9103b
TT
7995 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
7996 -a "$have_static_libs" = yes; then
0b21f5d3
EB
7997 stage1_ldflags="-static-libstdc++ -static-libgcc"
7998 fi
5213506e
RW
7999fi
8000
00020c16
ILT
8001
8002
5dc85f7e 8003# Libraries to use for stage2 and later builds.
00020c16 8004
5213506e
RW
8005# Check whether --with-boot-libs was given.
8006if test "${with_boot_libs+set}" = set; then :
8007 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
8008 poststage1_libs=
8009 else
8010 poststage1_libs=$withval
8011 fi
8012else
5dc85f7e 8013 poststage1_libs=
5213506e
RW
8014fi
8015
00020c16
ILT
8016
8017
ed2eaa9f
ILT
8018# Linker flags to use for stage2 and later builds.
8019
8020# Check whether --with-boot-ldflags was given.
8021if test "${with_boot_ldflags+set}" = set; then :
8022 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8023 poststage1_ldflags=
8024 else
8025 poststage1_ldflags=$withval
8026 fi
8027else
8028 poststage1_ldflags=
bec93d73
ILT
8029 # In stages 2 and 3, default to linking libstdc++ and libgcc
8030 # statically. But if the user explicitly specified the libraries to
8031 # use, trust that they are doing what they want.
8032 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
8033 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8034 fi
8035fi
8036
8037
8038
e357a5e0 8039# GCC GRAPHITE dependency isl.
4a9bb2aa 8040# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
8041
8042
33ad93b9
RG
8043# Check whether --with-isl was given.
8044if test "${with_isl+set}" = set; then :
8045 withval=$with_isl;
5213506e 8046fi
f8bf9252 8047
f8bf9252 8048
eae1a5d4 8049# Treat --without-isl as a request to disable
625afa23 8050# GRAPHITE support and skip all following checks.
eae1a5d4 8051if test "x$with_isl" != "xno"; then
e357a5e0 8052 # Check for isl
625afa23
RG
8053
8054
33ad93b9
RG
8055# Check whether --with-isl-include was given.
8056if test "${with_isl_include+set}" = set; then :
8057 withval=$with_isl_include;
5213506e
RW
8058fi
8059
f8bf9252 8060
33ad93b9
RG
8061# Check whether --with-isl-lib was given.
8062if test "${with_isl_lib+set}" = set; then :
8063 withval=$with_isl_lib;
5213506e 8064fi
f8bf9252 8065
f8bf9252 8066
33ad93b9
RG
8067 # Check whether --enable-isl-version-check was given.
8068if test "${enable_isl_version_check+set}" = set; then :
8069 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8070else
8071 ENABLE_ISL_CHECK=yes
7d32a440
SP
8072fi
8073
8074
33ad93b9
RG
8075 # Initialize isllibs and islinc.
8076 case $with_isl in
8077 no)
8078 isllibs=
8079 islinc=
8080 ;;
8081 "" | yes)
8082 ;;
8083 *)
8084 isllibs="-L$with_isl/lib"
8085 islinc="-I$with_isl/include"
8086 ;;
8087 esac
8088 if test "x${with_isl_include}" != x ; then
8089 islinc="-I$with_isl_include"
8090 fi
8091 if test "x${with_isl_lib}" != x; then
8092 isllibs="-L$with_isl_lib"
8093 fi
8094 if test "x${islinc}" = x && test "x${isllibs}" = x \
8095 && test -d ${srcdir}/isl; then
8096 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8097 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8098 ENABLE_ISL_CHECK=no
560d18d3
AK
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8100$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 8101 fi
7d32a440 8102
eae1a5d4
RG
8103 isllibs="${isllibs} -lisl"
8104
7d32a440 8105
7d32a440 8106
9847828b
RB
8107 if test "${ENABLE_ISL_CHECK}" = yes ; then
8108 _isl_saved_CFLAGS=$CFLAGS
8109 _isl_saved_LDFLAGS=$LDFLAGS
8110 _isl_saved_LIBS=$LIBS
8111
8112 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
8113 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8114 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 8115
f877b3ad
RB
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8117$as_echo_n "checking for isl 0.15 or later... " >&6; }
e0c0c325 8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 8119/* end confdefs.h. */
f877b3ad 8120#include <isl/schedule.h>
622dbadf
BC
8121int
8122main ()
8123{
f877b3ad 8124isl_options_set_schedule_serialize_sccs (NULL, 0);
622dbadf
BC
8125 ;
8126 return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"; then :
9847828b 8130 gcc_cv_isl=yes
622dbadf
BC
8131else
8132 gcc_cv_isl=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8137$as_echo "$gcc_cv_isl" >&6; }
8138
560d18d3 8139 if test "${gcc_cv_isl}" = no ; then
f877b3ad
RB
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8141$as_echo "required isl version is 0.15 or later" >&6; }
1e050c90
AK
8142 fi
8143
9847828b
RB
8144 CFLAGS=$_isl_saved_CFLAGS
8145 LDFLAGS=$_isl_saved_LDFLAGS
8146 LIBS=$_isl_saved_LIBS
8147 fi
8148
8149
f8bf9252 8150
f8bf9252 8151
33ad93b9
RG
8152
8153
33ad93b9
RG
8154 if test "x${with_isl}" = xno; then
8155 graphite_requested=no
8156 elif test "x${with_isl}" != x \
8157 || test "x${with_isl_include}" != x \
8158 || test "x${with_isl_lib}" != x ; then
8159 graphite_requested=yes
8160 else
8161 graphite_requested=no
7d32a440 8162 fi
d789184e 8163
d789184e
SP
8164
8165
33ad93b9
RG
8166 if test "${gcc_cv_isl}" = no ; then
8167 isllibs=
8168 islinc=
8169 fi
8170
8171 if test "${graphite_requested}" = yes \
8172 && test "x${isllibs}" = x \
8173 && test "x${islinc}" = x ; then
f8bf9252 8174
22e05272 8175 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 8176 fi
f8bf9252 8177
d32ef397 8178
d32ef397
AS
8179fi
8180
e357a5e0 8181# If the isl check failed, disable builds of in-tree variant of isl
625afa23 8182if test "x$with_isl" = xno ||
625afa23 8183 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 8184 noconfigdirs="$noconfigdirs isl"
625afa23 8185 islinc=
32d024bf
RG
8186fi
8187
625afa23
RG
8188
8189
8190
d7f09764
DN
8191# Check for LTO support.
8192# Check whether --enable-lto was given.
8193if test "${enable_lto+set}" = set; then :
8194 enableval=$enable_lto; enable_lto=$enableval
8195else
8196 enable_lto=yes; default_enable_lto=yes
8197fi
8198
8199
7413962d 8200
9a02962b
DK
8201
8202
8203target_elf=no
8204case $target in
8205 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 8206 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 8207 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 8208 nvptx-*-none)
9a02962b
DK
8209 target_elf=no
8210 ;;
8211 *)
8212 target_elf=yes
8213 ;;
8214esac
8215
8216if test $target_elf = yes; then :
48215350
DK
8217 # ELF platforms build the lto-plugin always.
8218 build_lto_plugin=yes
9a02962b 8219
9a02962b
DK
8220else
8221 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 8222 case $target in
deeba76a 8223 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 8224 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
8225 *) enable_lto=no ;;
8226 esac
9a02962b 8227 else
db50fe7d
IS
8228 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8229 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
8230 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8231 # warn during gcc/ subconfigure; unless you're bootstrapping with
8232 # -flto it won't be needed until after installation anyway.
8233 case $target in
9e530bcd 8234 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b 8235 *) if test x"$enable_lto" = x"yes"; then
22e05272 8236 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
9a02962b
DK
8237 fi
8238 ;;
8239 esac
8240 fi
1cd0b716 8241 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 8242 # Build it unless LTO was explicitly disabled.
1cd0b716 8243 case $target in
48215350 8244 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
8245 *) ;;
8246 esac
48215350 8247
9a02962b
DK
8248fi
8249
d7f09764 8250
45b3824d
TS
8251# Check whether --enable-linker-plugin-configure-flags was given.
8252if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8253 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8254else
8255 extra_linker_plugin_configure_flags=
8256fi
8257
8258
8259# Check whether --enable-linker-plugin-flags was given.
8260if test "${enable_linker_plugin_flags+set}" = set; then :
8261 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8262else
8263 extra_linker_plugin_flags=
8264fi
8265
8266
8267
cdfee50a
NS
8268# Enable --enable-host-shared.
8269# Checked early to determine whether jit is an 'all' language
8270# Check whether --enable-host-shared was given.
8271if test "${enable_host_shared+set}" = set; then :
8272 enableval=$enable_host_shared; host_shared=$enableval
8273else
8274 host_shared=no
8275fi
8276
8277
f8bf9252 8278
0823efed 8279# By default, C and C++ are the only stage 1 languages.
e1888513 8280stage1_languages=,c,
2805b53a 8281
00020c16 8282# Target libraries that we bootstrap.
ad1e5170 8283bootstrap_target_libs=,target-libgcc,
00020c16 8284
55ffb5ed
NN
8285# Figure out what language subdirectories are present.
8286# Look if the user specified --enable-languages="..."; if not, use
8287# the environment variable $LANGUAGES if defined. $LANGUAGES might
8288# go away some day.
8289# NB: embedded tabs in this IF block -- do not untabify
8290if test -d ${srcdir}/gcc; then
8291 if test x"${enable_languages+set}" != xset; then
8292 if test x"${LANGUAGES+set}" = xset; then
8293 enable_languages="${LANGUAGES}"
6b1786aa 8294 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed 8295 else
cdfee50a 8296 enable_languages=default
55ffb5ed
NN
8297 fi
8298 else
8299 if test x"${enable_languages}" = x ||
8300 test x"${enable_languages}" = xyes;
8301 then
6b1786aa 8302 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
8303 exit 1
8304 fi
8305 fi
8306 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8307
7f26dfa3
FXC
8308 # 'f95' is the old name for the 'fortran' language. We issue a warning
8309 # and make the substitution.
8310 case ,${enable_languages}, in
8311 *,f95,*)
6b1786aa 8312 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
8313 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8314 ;;
8315 esac
8316
0823efed
DN
8317 # If bootstrapping, C++ must be enabled.
8318 case ",$enable_languages,:$enable_bootstrap" in
8319 *,c++,*:*) ;;
8320 *:yes)
ff3ac0f4
ILT
8321 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8322 enable_languages="${enable_languages},c++"
8323 else
22e05272 8324 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
8325 fi
8326 ;;
8327 esac
8328
55ffb5ed
NN
8329 # First scan to see if an enabled language requires some other language.
8330 # We assume that a given config-lang.in will list all the language
8331 # front ends it requires, even if some are required indirectly.
8332 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8333 case ${lang_frag} in
8334 ..) ;;
8335 # The odd quoting in the next line works around
8336 # an apparent bug in bash 1.12 on linux.
8337 ${srcdir}/gcc/[*]/config-lang.in) ;;
8338 *)
69ecd18f
ILT
8339 # From the config-lang.in, get $language, $lang_requires, and
8340 # $lang_requires_boot_languages.
55ffb5ed
NN
8341 language=
8342 lang_requires=
69ecd18f 8343 lang_requires_boot_languages=
d4360477
NS
8344 # set srcdir during sourcing lang_frag to the gcc dir.
8345 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8346 # polutes this shell
8347 saved_srcdir=${srcdir}
8348 srcdir=${srcdir}/gcc . ${lang_frag}
8349 srcdir=${saved_srcdir}
69ecd18f 8350 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
8351 case ,${enable_languages}, in
8352 *,$other,*) ;;
cdfee50a 8353 *,default,*) ;;
55ffb5ed
NN
8354 *,all,*) ;;
8355 *,$language,*)
8356 echo " \`$other' language required by \`$language'; enabling" 1>&2
8357 enable_languages="${enable_languages},${other}"
8358 ;;
8359 esac
8360 done
69ecd18f
ILT
8361 for other in ${lang_requires_boot_languages} ; do
8362 if test "$other" != "c"; then
8363 case ,${enable_stage1_languages}, in
8364 *,$other,*) ;;
cdfee50a 8365 *,default,*) ;;
69ecd18f
ILT
8366 *,all,*) ;;
8367 *)
8368 case ,${enable_languages}, in
8369 *,$language,*)
8370 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8371 enable_stage1_languages="$enable_stage1_languages,${other}"
8372 ;;
8373 esac
8374 ;;
8375 esac
8376 fi
8377 done
55ffb5ed
NN
8378 ;;
8379 esac
8380 done
8381
e1888513 8382 new_enable_languages=,c,
d7f09764
DN
8383
8384 # If LTO is enabled, add the LTO front end.
d7f09764 8385 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
8386 case ,${enable_languages}, in
8387 *,lto,*) ;;
8388 *) enable_languages="${enable_languages},lto" ;;
8389 esac
1cd0b716 8390 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 8391 configdirs="$configdirs lto-plugin"
d7f09764
DN
8392 fi
8393 fi
8394
426c1eb0
TS
8395 # If we're building an offloading compiler, add the LTO front end.
8396 if test x"$enable_as_accelerator_for" != x ; then
8397 case ,${enable_languages}, in
8398 *,lto,*) ;;
8399 *) enable_languages="${enable_languages},lto" ;;
8400 esac
8401 fi
8402
cdfee50a 8403 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
e1888513 8404 potential_languages=,c,
55ffb5ed 8405
4da3b0f8
ILT
8406 enabled_target_libs=
8407 disabled_target_libs=
8408
55ffb5ed
NN
8409 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8410 case ${lang_frag} in
8411 ..) ;;
8412 # The odd quoting in the next line works around
8413 # an apparent bug in bash 1.12 on linux.
8414 ${srcdir}/gcc/[*]/config-lang.in) ;;
8415 *)
1c710c3c 8416 # From the config-lang.in, get $language, $target_libs,
2805b53a 8417 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
8418 language=
8419 target_libs=
8420 lang_dirs=
1546bb64 8421 subdir_requires=
e1888513
PB
8422 boot_language=no
8423 build_by_default=yes
d4360477
NS
8424 # set srcdir during sourcing. See above about save & restore
8425 saved_srcdir=${srcdir}
8426 srcdir=${srcdir}/gcc . ${lang_frag}
8427 srcdir=${saved_srcdir}
e1888513
PB
8428 if test x${language} = x; then
8429 echo "${lang_frag} doesn't set \$language." 1>&2
8430 exit 1
8431 fi
8432
78767fd9 8433 if test "$language" = "c++"; then
0823efed 8434 boot_language=yes
00020c16
ILT
8435 fi
8436
178f875a 8437 add_this_lang=no
cdfee50a
NS
8438 # C is always enabled, so no need to add it again
8439 if test "$language" != "c"; then
8440 case ,${enable_languages}, in
8441 *,${language},*)
8442 # Language was explicitly selected; include it
d4a10d0a 8443 add_this_lang=yes
cdfee50a
NS
8444 ;;
8445 *,all,*)
8446 # All languages are enabled
8447 add_this_lang=all
8448 ;;
8449 *,default,*)
8450 # 'default' was selected, select it if it is a default language
178f875a 8451 add_this_lang=${build_by_default}
cdfee50a
NS
8452 ;;
8453 esac
8454 fi
6de9cd9a 8455
1546bb64 8456 # Disable languages that need other directories if these aren't available.
95695ad3 8457 for i in $subdir_requires; do
b6348cb3 8458 test -f "$srcdir/gcc/$i/config-lang.in" && continue
cdfee50a
NS
8459 case ${add_this_lang} in
8460 yes)
1546bb64 8461 # Specifically requested language; tell them.
22e05272 8462 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64 8463 ;;
cdfee50a
NS
8464 all)
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8466$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8467 add_this_lang=unsupported
8468 ;;
1546bb64
PB
8469 *)
8470 # Silently disable.
e1888513 8471 add_this_lang=unsupported
1546bb64
PB
8472 ;;
8473 esac
8474 done
8475
e1888513 8476 # Disable Ada if no preexisting GNAT is available.
cdfee50a
NS
8477 case ${add_this_lang}:${language}:${have_gnat} in
8478 yes:ada:no)
e1888513 8479 # Specifically requested language; tell them.
22e05272 8480 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
e1888513 8481 ;;
cdfee50a
NS
8482 all:ada:no)
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8484$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8485 add_this_lang=unsupported
8486 ;;
e1888513
PB
8487 *:ada:no)
8488 # Silently disable.
8489 add_this_lang=unsupported
8490 ;;
8491 esac
8492
cdfee50a 8493 # Disable jit if -enable-host-shared not specified
ffac9597
JM
8494 # but not if building for Mingw. All code in Windows
8495 # is position independent code (PIC).
c83027f3
NB
8496 case $target in
8497 *mingw*) ;;
8498 *)
8499 case ${add_this_lang}:${language}:${host_shared} in
8500 yes:jit:no)
8501 # PR jit/64780: explicitly specify --enable-host-shared
22e05272 8502 as_fn_error $? "
cdfee50a
NS
8503Enabling language \"jit\" requires --enable-host-shared.
8504
8505--enable-host-shared typically slows the rest of the compiler down by
8506a few %, so you must explicitly enable it.
8507
8508If you want to build both the jit and the regular compiler, it is often
8509best to do this via two separate configure/builds, in separate
8510directories, to avoid imposing the performance cost of
8511--enable-host-shared on the regular compiler." "$LINENO" 5
c83027f3
NB
8512 ;;
8513 all:jit:no)
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
cdfee50a 8515$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
c83027f3
NB
8516 add_this_lang=unsupported
8517 ;;
8518 *:jit:no)
8519 # Silently disable.
8520 add_this_lang=unsupported
8521 ;;
8522 esac
8523 ;;
8524 esac
cdfee50a
NS
8525
8526 # Disable a language that is unsupported by the target.
8527 case "${add_this_lang}: $unsupported_languages " in
8528 no:*) ;;
8529 unsupported:*) ;;
8530 *:*" $language "*)
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8532$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
e1888513 8533 add_this_lang=unsupported
4fab7234
HPN
8534 ;;
8535 esac
8536
6de9cd9a 8537 case $add_this_lang in
e1888513 8538 unsupported)
55ffb5ed 8539 # Remove language-dependent dirs.
4da3b0f8
ILT
8540 disabled_target_libs="$disabled_target_libs $target_libs"
8541 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 8542 ;;
e1888513
PB
8543 no)
8544 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
8545 disabled_target_libs="$disabled_target_libs $target_libs"
8546 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
8547 potential_languages="${potential_languages}${language},"
8548 ;;
cdfee50a 8549 all|yes)
e1888513
PB
8550 new_enable_languages="${new_enable_languages}${language},"
8551 potential_languages="${potential_languages}${language},"
2805b53a 8552 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 8553 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
8554 case "${boot_language}:,$enable_stage1_languages," in
8555 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 8556 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
8557 case ",$stage1_languages," in
8558 *,$language,* | ,yes, | ,all,) ;;
8559 *) stage1_languages="${stage1_languages}${language}," ;;
8560 esac
00020c16
ILT
8561 # We need to bootstrap any supporting libraries.
8562 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
8563 ;;
8564 esac
8565 ;;
55ffb5ed
NN
8566 esac
8567 ;;
8568 esac
8569 done
8570
4da3b0f8
ILT
8571 # Add target libraries which are only needed for disabled languages
8572 # to noconfigdirs.
8573 if test -n "$disabled_target_libs"; then
8574 for dir in $disabled_target_libs; do
8575 case " $enabled_target_libs " in
8576 *" ${dir} "*) ;;
8577 *) noconfigdirs="$noconfigdirs $dir" ;;
8578 esac
8579 done
8580 fi
8581
5213506e
RW
8582 # Check whether --enable-stage1-languages was given.
8583if test "${enable_stage1_languages+set}" = set; then :
8584 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
8585 ,no,|,,)
8586 # Set it to something that will have no effect in the loop below
8587 enable_stage1_languages=c ;;
8588 ,yes,)
8589 enable_stage1_languages=`echo $new_enable_languages | \
8590 sed -e "s/^,//" -e "s/,$//" ` ;;
8591 *,all,*)
8592 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8593 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8594 esac
8595
8596 # Add "good" languages from enable_stage1_languages to stage1_languages,
8597 # while "bad" languages go in missing_languages. Leave no duplicates.
8598 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8599 case $potential_languages in
8600 *,$i,*)
8601 case $stage1_languages in
8602 *,$i,*) ;;
8603 *) stage1_languages="$stage1_languages$i," ;;
8604 esac ;;
8605 *)
8606 case $missing_languages in
8607 *,$i,*) ;;
8608 *) missing_languages="$missing_languages$i," ;;
8609 esac ;;
8610 esac
8611 done
5213506e
RW
8612fi
8613
e1888513
PB
8614
8615 # Remove leading/trailing commas that were added for simplicity
8616 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 8617 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
8618 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8619 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8620
55ffb5ed 8621 if test "x$missing_languages" != x; then
22e05272 8622 as_fn_error $? "
0cf085e4 8623The following requested languages could not be built: ${missing_languages}
5213506e 8624Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 8625 fi
55ffb5ed
NN
8626 if test "x$new_enable_languages" != "x$enable_languages"; then
8627 echo The following languages will be built: ${new_enable_languages}
e1888513 8628 enable_languages="$new_enable_languages"
55ffb5ed 8629 fi
e1888513 8630
1c710c3c 8631
b2eaac4a 8632 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
8633fi
8634
27079765
AH
8635# Handle --disable-<component> generically.
8636for dir in $configdirs $build_configdirs $target_configdirs ; do
8637 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
8638 varname=`echo $dirname | sed -e s/+/_/g`
8639 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
8640 noconfigdirs="$noconfigdirs $dir"
8641 fi
8642done
8643
43c40f3e
RO
8644# Check for Boehm's garbage collector
8645# Check whether --enable-objc-gc was given.
8646if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
8647 enableval=$enable_objc_gc;
8648fi
8649
8650
8651# Check whether --with-target-bdw-gc was given.
8652if test "${with_target_bdw_gc+set}" = set; then :
8653 withval=$with_target_bdw_gc;
8654fi
8655
8656
8657# Check whether --with-target-bdw-gc-include was given.
8658if test "${with_target_bdw_gc_include+set}" = set; then :
8659 withval=$with_target_bdw_gc_include;
8660fi
8661
8662
8663# Check whether --with-target-bdw-gc-lib was given.
8664if test "${with_target_bdw_gc_lib+set}" = set; then :
8665 withval=$with_target_bdw_gc_lib;
8666fi
8667
8668
8669case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8671$as_echo_n "checking for bdw garbage collector... " >&6; }
8672 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8674$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
8675 else
8676 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
22e05272 8677 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
114bf3f1 8678 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
22e05272 8679 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
114bf3f1
MK
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8682$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8683 fi
8684 fi
43c40f3e
RO
8685esac
8686
5e9d6aa4 8687# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 8688case ,${enable_languages}, in
1007a55c 8689 *,c++,*)
5e9d6aa4 8690 # Disable libitm, libsanitizer if we're not building libstdc++
1007a55c
JW
8691 case "${noconfigdirs}" in
8692 *target-libstdc++-v3*)
5e9d6aa4 8693 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1007a55c
JW
8694 ;;
8695 *) ;;
8696 esac
8697 ;;
99776ebd 8698 *)
5e9d6aa4 8699 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
8700 ;;
8701esac
8702
ee6a22df
L
8703# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8704# $build_configdirs and $target_configdirs.
55ffb5ed
NN
8705# If we have the source for $noconfigdirs entries, add them to $notsupp.
8706
8707notsupp=""
8708for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 8709 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
8710 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8711 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8712 if test -r $srcdir/$dirname/configure ; then
8713 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8714 true
8715 else
8716 notsupp="$notsupp $dir"
8717 fi
8718 fi
8719 fi
ee6a22df
L
8720 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8721 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8722 if test -r $srcdir/$dirname/configure ; then
8723 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8724 true
8725 else
8726 notsupp="$notsupp $dir"
8727 fi
8728 fi
8729 fi
55ffb5ed
NN
8730 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8731 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8732 if test -r $srcdir/$dirname/configure ; then
8733 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8734 true
8735 else
8736 notsupp="$notsupp $dir"
8737 fi
8738 fi
8739 fi
8740done
8741
55ffb5ed
NN
8742# Quietly strip out all directories which aren't configurable in this tree.
8743# This relies on all configurable subdirectories being autoconfiscated, which
8744# is now the case.
23f6b2f9
PB
8745build_configdirs_all="$build_configdirs"
8746build_configdirs=
8747for i in ${build_configdirs_all} ; do
1c710c3c 8748 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
8749 if test -f ${srcdir}/$j/configure ; then
8750 build_configdirs="${build_configdirs} $i"
8751 fi
8752done
8753
55ffb5ed
NN
8754configdirs_all="$configdirs"
8755configdirs=
8756for i in ${configdirs_all} ; do
8757 if test -f ${srcdir}/$i/configure ; then
8758 configdirs="${configdirs} $i"
8759 fi
8760done
23f6b2f9 8761
55ffb5ed
NN
8762target_configdirs_all="$target_configdirs"
8763target_configdirs=
8764for i in ${target_configdirs_all} ; do
1c710c3c 8765 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
8766 if test -f ${srcdir}/$j/configure ; then
8767 target_configdirs="${target_configdirs} $i"
8768 fi
8769done
8770
45b3824d
TS
8771# libiberty-linker-plugin is special: it doesn't have its own source directory,
8772# so we have to add it after the preceding checks.
8773if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8774then
8775 case " $configdirs " in
8776 *" libiberty "*)
8777 # If we can build libiberty, we can also build libiberty-linker-plugin.
8778 configdirs="$configdirs libiberty-linker-plugin"
8779 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
8780 --with-libiberty=../libiberty-linker-plugin";;
8781 *)
22e05272 8782 as_fn_error $? "libiberty missing" "$LINENO" 5;;
45b3824d
TS
8783 esac
8784fi
8785
fca38047
TS
8786# Sometimes we have special requirements for the host libiberty.
8787extra_host_libiberty_configure_flags=
1c01ebf6 8788extra_host_zlib_configure_flags=
fca38047
TS
8789case " $configdirs " in
8790 *" lto-plugin "* | *" libcc1 "*)
8791 # When these are to be built as shared libraries, the same applies to
8792 # libiberty.
8793 extra_host_libiberty_configure_flags=--enable-shared
8794 ;;
1c01ebf6
L
8795 *" bfd "*)
8796 # When bfd is to be built as a shared library, the same applies to
8797 # zlib.
8798 if test "$enable_shared" = "yes"; then
8799 extra_host_zlib_configure_flags=--enable-host-shared
8800 fi
8801 ;;
fca38047
TS
8802esac
8803
8804
1c01ebf6 8805
55ffb5ed
NN
8806# Produce a warning message for the subdirs we can't configure.
8807# This isn't especially interesting in the Cygnus tree, but in the individual
8808# FSF releases, it's important to let people know when their machine isn't
8809# supported by the one or two programs in a package.
8810
8811if test -n "${notsupp}" && test -z "${norecursion}" ; then
8812 # If $appdirs is non-empty, at least one of those directories must still
8813 # be configured, or we error out. (E.g., if the gas release supports a
8814 # specified target in some subdirs but not the gas subdir, we shouldn't
8815 # pretend that all is well.)
8816 if test -n "$appdirs" ; then
8817 for dir in $appdirs ; do
8818 if test -r $dir/Makefile.in ; then
8819 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
8820 appdirs=""
8821 break
8822 fi
23f6b2f9 8823 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
8824 appdirs=""
8825 break
8826 fi
8827 fi
8828 done
8829 if test -n "$appdirs" ; then
8830 echo "*** This configuration is not supported by this package." 1>&2
8831 exit 1
8832 fi
8833 fi
8834 # Okay, some application will build, or we don't care to check. Still
8835 # notify of subdirs not getting built.
8836 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
8837 echo " ${notsupp}" 1>&2
8838 echo " (Any other directories should still work fine.)" 1>&2
8839fi
8840
8841case "$host" in
8842 *msdosdjgpp*)
8843 enable_gdbtk=no ;;
8844esac
8845
c3a86da9
DJ
8846# To find our prefix, in gcc_cv_tool_prefix.
8847
8848# The user is always right.
8849if test "${PATH_SEPARATOR+set}" != set; then
8850 echo "#! /bin/sh" >conf$$.sh
8851 echo "exit 0" >>conf$$.sh
8852 chmod +x conf$$.sh
8853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8854 PATH_SEPARATOR=';'
8855 else
8856 PATH_SEPARATOR=:
8857 fi
8858 rm -f conf$$.sh
8859fi
8860
8861
3c36aa6b
JJ
8862 get_gcc_base_ver="cat"
8863
8864# Check whether --with-gcc-major-version-only was given.
8865if test "${with_gcc_major_version_only+set}" = set; then :
8866 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
31db0fe0 8867 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
3c36aa6b
JJ
8868 fi
8869
8870fi
8871
8872
8873
8874
8875
c3a86da9
DJ
8876
8877if test "x$exec_prefix" = xNONE; then
8878 if test "x$prefix" = xNONE; then
8879 gcc_cv_tool_prefix=$ac_default_prefix
8880 else
8881 gcc_cv_tool_prefix=$prefix
8882 fi
8883else
8884 gcc_cv_tool_prefix=$exec_prefix
8885fi
8886
8887# If there is no compiler in the tree, use the PATH only. In any
8888# case, if there is no compiler in the tree nobody should use
8889# AS_FOR_TARGET and LD_FOR_TARGET.
8890if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
8891 if test x$with_gcc_major_version_only = xyes ; then
8892 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
8893 else
8894 gcc_version=`cat $srcdir/gcc/BASE-VER`
8895 fi
c3a86da9
DJ
8896 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8897 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
8898 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8899 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
8900 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
8901 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
8902else
8903 gcc_cv_tool_dirs=
8904fi
8905
8906if test x$build = x$target && test -n "$md_exec_prefix"; then
8907 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
8908fi
8909
8910
8911
55ffb5ed
NN
8912copy_dirs=
8913
1c710c3c 8914
5213506e
RW
8915# Check whether --with-build-sysroot was given.
8916if test "${with_build_sysroot+set}" = set; then :
8917 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
8918 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
8919 fi
8920else
8921 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 8922fi
526635cb
MM
8923
8924
c8aea42c 8925
5213506e
RW
8926
8927# Check whether --with-debug-prefix-map was given.
8928if test "${with_debug_prefix_map+set}" = set; then :
8929 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
8930 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
8931 for debug_map in $withval; do
8932 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
8933 done
8934 fi
8935else
8936 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
8937fi
8938
c8aea42c
PB
8939
8940
1c8bd6a3
PB
8941# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
8942# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
8943# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
8944# We want to ensure that TARGET libraries (which we know are built with
8945# gcc) are built with "-O2 -g", so include those options when setting
8946# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
8947if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
8948 if test "x${is_cross_compiler}" = xyes; then
8949 CFLAGS_FOR_TARGET="-g -O2"
8950 else
8951 CFLAGS_FOR_TARGET=$CFLAGS
8952 case " $CFLAGS " in
8953 *" -O2 "*) ;;
8954 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
8955 esac
8956 case " $CFLAGS " in
8957 *" -g "* | *" -g3 "*) ;;
8958 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
8959 esac
8960 fi
1c8bd6a3
PB
8961fi
8962
8963
8964if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
8965 if test "x${is_cross_compiler}" = xyes; then
8966 CXXFLAGS_FOR_TARGET="-g -O2"
8967 else
8968 CXXFLAGS_FOR_TARGET=$CXXFLAGS
8969 case " $CXXFLAGS " in
8970 *" -O2 "*) ;;
8971 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
8972 esac
8973 case " $CXXFLAGS " in
8974 *" -g "* | *" -g3 "*) ;;
8975 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
8976 esac
8977 fi
1c8bd6a3
PB
8978fi
8979
8980
6f57bdf6
DK
8981
8982
55ffb5ed
NN
8983# Handle --with-headers=XXX. If the value is not "yes", the contents of
8984# the named directory are copied to $(tooldir)/sys-include.
8985if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
8986 if test x${is_cross_compiler} = xno ; then
8987 echo 1>&2 '***' --with-headers is only supported when cross compiling
8988 exit 1
8989 fi
8990 if test x"${with_headers}" != xyes ; then
c3a86da9 8991 x=${gcc_cv_tool_prefix}
1c710c3c 8992 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
8993 fi
8994fi
8995
8996# Handle --with-libs=XXX. If the value is not "yes", the contents of
8997# the name directories are copied to $(tooldir)/lib. Multiple directories
8998# are permitted.
8999if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9000 if test x${is_cross_compiler} = xno ; then
9001 echo 1>&2 '***' --with-libs is only supported when cross compiling
9002 exit 1
9003 fi
9004 if test x"${with_libs}" != xyes ; then
9005 # Copy the libraries in reverse order, so that files in the first named
9006 # library override files in subsequent libraries.
c3a86da9 9007 x=${gcc_cv_tool_prefix}
55ffb5ed 9008 for l in ${with_libs}; do
1c710c3c 9009 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
9010 done
9011 fi
9012fi
9013
d7f09764 9014# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
9015#
9016# This is done by determining whether or not the appropriate directory
9017# is available, and by checking whether or not specific configurations
9018# have requested that this magic not happen.
1c710c3c
DJ
9019#
9020# The command line options always override the explicit settings in
6b1786aa 9021# configure.ac, and the settings in configure.ac override this magic.
e8b05380 9022#
1c710c3c 9023# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 9024# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
9025# --without-gnu-ld options for the configure script. Similarly, if
9026# the default is to use the included zlib and you don't want to do that,
9027# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
9028
9029if test x${use_gnu_as} = x &&
9030 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9031 with_gnu_as=yes
9032 extra_host_args="$extra_host_args --with-gnu-as"
9033fi
9034
9035if test x${use_gnu_ld} = x &&
5afab7ad 9036 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
9037 with_gnu_ld=yes
9038 extra_host_args="$extra_host_args --with-gnu-ld"
9039fi
9040
d7f09764
DN
9041if test x${use_included_zlib} = x &&
9042 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9043 :
9044else
9045 with_system_zlib=yes
9046 extra_host_args="$extra_host_args --with-system-zlib"
9047fi
9048
e8b05380
PB
9049# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9050# can detect this case.
9051
9052if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9053 with_newlib=yes
9054 extra_host_args="$extra_host_args --with-newlib"
9055fi
9056
55ffb5ed
NN
9057# Handle ${copy_dirs}
9058set fnord ${copy_dirs}
9059shift
9060while test $# != 0 ; do
9061 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9062 :
9063 else
9064 echo Copying $1 to $2
9065
9066 # Use the install script to create the directory and all required
9067 # parent directories.
9068 if test -d $2 ; then
9069 :
9070 else
9071 echo >config.temp
9072 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9073 fi
9074
9075 # Copy the directory, assuming we have tar.
9076 # FIXME: Should we use B in the second tar? Not all systems support it.
9077 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9078
9079 # It is the responsibility of the user to correctly adjust all
9080 # symlinks. If somebody can figure out how to handle them correctly
9081 # here, feel free to add the code.
9082
9083 echo $1 > $2/COPIED
9084 fi
9085 shift; shift
9086done
9087
e8b05380
PB
9088# Determine a target-dependent exec_prefix that the installed
9089# gcc will search in. Keep this list sorted by triplet, with
9090# the *-*-osname triplets last.
9091md_exec_prefix=
9092case "${target}" in
30b74385 9093 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
9094 md_exec_prefix=/dev/env/DJDIR/bin
9095 ;;
e8b05380 9096 *-*-hpux* | \
e8b05380 9097 *-*-nto-qnx* | \
6de66370 9098 *-*-solaris2*)
e8b05380
PB
9099 md_exec_prefix=/usr/ccs/bin
9100 ;;
9101esac
9102
671aa708
NN
9103extra_arflags_for_target=
9104extra_nmflags_for_target=
9105extra_ranlibflags_for_target=
9106target_makefile_frag=/dev/null
9107case "${target}" in
58e24147
AM
9108 spu-*-*)
9109 target_makefile_frag="config/mt-spu"
9110 ;;
d896cc4d 9111 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
9112 target_makefile_frag="config/mt-sde"
9113 ;;
1ec3b87b
RS
9114 mipsisa*-*-elfoabi*)
9115 target_makefile_frag="config/mt-mips-elfoabi"
9116 ;;
08d0963a
RS
9117 mips*-*-*linux* | mips*-*-gnu*)
9118 target_makefile_frag="config/mt-mips-gnu"
9119 ;;
707f1839
SL
9120 nios2-*-elf*)
9121 target_makefile_frag="config/mt-nios2-elf"
9122 ;;
76052545
EB
9123 *-*-linux-android*)
9124 target_makefile_frag="config/mt-android"
9125 ;;
416ac4d4 9126 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 9127 target_makefile_frag="config/mt-gnu"
671aa708
NN
9128 ;;
9129 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 9130 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
9131 # commands to handle both 32-bit and 64-bit objects. These flags are
9132 # harmless if we're using GNU nm or ar.
9133 extra_arflags_for_target=" -X32_64"
9134 extra_nmflags_for_target=" -B -X32_64"
9135 ;;
671aa708
NN
9136esac
9137
9138alphaieee_frag=/dev/null
9139case $target in
9140 alpha*-*-*)
9141 # This just makes sure to use the -mieee option to build target libs.
9142 # This should probably be set individually by each library.
9143 alphaieee_frag="config/mt-alphaieee"
9144 ;;
9145esac
9146
9147# If --enable-target-optspace always use -Os instead of -O2 to build
9148# the target libraries, similarly if it is not specified, use -Os
9149# on selected platforms.
9150ospace_frag=/dev/null
9151case "${enable_target_optspace}:${target}" in
9152 yes:*)
9153 ospace_frag="config/mt-ospace"
9154 ;;
9155 :d30v-*)
9156 ospace_frag="config/mt-d30v"
9157 ;;
d9063947 9158 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
9159 ospace_frag="config/mt-ospace"
9160 ;;
9161 no:* | :*)
9162 ;;
9163 *)
9164 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9165 ;;
9166esac
9167
671aa708
NN
9168# Some systems (e.g., one of the i386-aix systems the gas testers are
9169# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 9170tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
9171build_tooldir=${tooldir}
9172
671aa708
NN
9173# Create a .gdbinit file which runs the one in srcdir
9174# and tells GDB to look there for source files.
9175
9176if test -r ${srcdir}/.gdbinit ; then
9177 case ${srcdir} in
9178 .) ;;
9179 *) cat > ./.gdbinit <<EOF
9180# ${NO_EDIT}
9181dir ${srcdir}
9182dir .
9183source ${srcdir}/.gdbinit
9184EOF
9185 ;;
9186 esac
9187fi
9188
671aa708
NN
9189# Make sure that the compiler is able to generate an executable. If it
9190# can't, we are probably in trouble. We don't care whether we can run the
9191# executable--we might be using a cross compiler--we only care whether it
9192# can be created. At this point the main configure script has set CC.
9193we_are_ok=no
9194echo "int main () { return 0; }" > conftest.c
9195${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9196if test $? = 0 ; then
9197 if test -s conftest || test -s conftest.exe ; then
9198 we_are_ok=yes
9199 fi
1c710c3c 9200fi
671aa708
NN
9201case $we_are_ok in
9202 no)
9203 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9204 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9205 rm -f conftest*
9206 exit 1
9207 ;;
9208esac
9209rm -f conftest*
9210
d89f0ad6 9211# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
9212case "${host}" in
9213 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 9214 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 9215 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
9216 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9217esac
9218
d89f0ad6
AL
9219# On systems where the dynamic library environment variable is PATH,
9220# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9221# built executables to PATH.
9222if test "$RPATH_ENVVAR" = PATH; then
9223 GCC_SHLIB_SUBDIR=/shlib
9224else
9225 GCC_SHLIB_SUBDIR=
9226fi
9227
beeda1d9
JJ
9228# Adjust the toplevel makefile according to whether bootstrap was selected.
9229case $enable_bootstrap in
9230 yes)
9231 bootstrap_suffix=bootstrap
9232 BUILD_CONFIG=bootstrap-debug
9233 ;;
9234 no)
9235 bootstrap_suffix=no-bootstrap
9236 BUILD_CONFIG=
9237 ;;
9238esac
9239
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9241$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9242
9243
9244# Check whether --with-build-config was given.
9245if test "${with_build_config+set}" = set; then :
9246 withval=$with_build_config; case $with_build_config in
9247 yes) with_build_config= ;;
9248 no) with_build_config= BUILD_CONFIG= ;;
9249 esac
9250fi
9251
9252
9253if test "x${with_build_config}" != x; then
9254 BUILD_CONFIG=$with_build_config
9255else
9256 case $BUILD_CONFIG in
9257 bootstrap-debug)
9258 if echo "int f (void) { return 0; }" > conftest.c &&
9259 ${CC} -c conftest.c &&
9260 mv conftest.o conftest.o.g0 &&
9261 ${CC} -c -g conftest.c &&
9262 mv conftest.o conftest.o.g &&
9263 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9264 :
9265 else
9266 BUILD_CONFIG=
9267 fi
9268 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9269 ;;
9270 esac
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9273$as_echo "$BUILD_CONFIG" >&6; }
9274
9275
9276# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9278$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9279# Check whether --enable-vtable-verify was given.
9280if test "${enable_vtable_verify+set}" = set; then :
9281 enableval=$enable_vtable_verify; case "$enableval" in
9282 yes) enable_vtable_verify=yes ;;
9283 no) enable_vtable_verify=no ;;
9284 *) enable_vtable_verify=no;;
9285 esac
9286else
9287 enable_vtable_verify=no
9288fi
9289
9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9291$as_echo "$enable_vtable_verify" >&6; }
9292
671aa708
NN
9293# Record target_configdirs and the configure arguments for target and
9294# build configuration in Makefile.
9295target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 9296build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 9297bootstrap_fixincludes=no
671aa708 9298
ad1e5170
JR
9299# If we are building libgomp, bootstrap it.
9300if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9301 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9302fi
9303
beeda1d9
JJ
9304# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9305# or bootstrap-ubsan, bootstrap it.
9306if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9307 case "$BUILD_CONFIG" in
9308 *bootstrap-asan* | *bootstrap-ubsan* )
9309 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 9310 bootstrap_fixincludes=yes
beeda1d9
JJ
9311 ;;
9312 esac
ac8701fe
L
9313fi
9314
beeda1d9
JJ
9315# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9316if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9317 test "$enable_vtable_verify" != no; then
2077db1b
CT
9318 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9319fi
9320
671aa708
NN
9321# Determine whether gdb needs tk/tcl or not.
9322# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9323# and in that case we want gdb to be built without tk. Ugh!
9324# In fact I believe gdb is the *only* package directly dependent on tk,
9325# so we should be able to put the 'maybe's in unconditionally and
9326# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9327# 100% sure that that's safe though.
e914a571 9328
b4f96efe 9329gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
9330case "$enable_gdbtk" in
9331 no)
9332 GDB_TK="" ;;
e914a571
AC
9333 yes)
9334 GDB_TK="${gdb_tk}" ;;
671aa708 9335 *)
e914a571
AC
9336 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9337 # distro. Eventually someone will fix this and move Insight, nee
9338 # gdbtk to a separate directory.
9339 if test -d ${srcdir}/gdb/gdbtk ; then
9340 GDB_TK="${gdb_tk}"
9341 else
9342 GDB_TK=""
9343 fi
9344 ;;
671aa708 9345esac
ef9db8d5
DJ
9346CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9347INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 9348
f9d09df0
TT
9349# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9350# else does, only include them if one of these is built. The Makefile
9351# provides the ordering, so it's enough here to add to the list.
9352case " ${configdirs} " in
9353 *\ gdb\ *)
9354 configdirs="${configdirs} gnulib gdbsupport"
9355 ;;
9356 *\ gdbserver\ *)
9357 configdirs="${configdirs} gnulib gdbsupport"
9358 ;;
9359esac
98e5be21 9360
60975492 9361# Strip out unwanted targets.
8b87bb96
NN
9362
9363# While at that, we remove Makefiles if we were started for recursive
9364# configuration, so that the top-level Makefile reconfigures them,
9365# like we used to do when configure itself was recursive.
8b87bb96 9366
3e54529c
RW
9367# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9368# but now we're fixing up the Makefile ourselves with the additional
9369# commands passed to AC_CONFIG_FILES. Use separate variables
9370# extrasub-{build,host,target} not because there is any reason to split
9371# the substitutions up that way, but only to remain below the limit of
9372# 99 commands in a script, for HP-UX sed.
da34ca3f
AO
9373
9374# Do not nest @if/@endif or @unless/@endunless pairs, because
9375# configure will not warn you at all.
8b87bb96 9376
79cd2b23
RW
9377case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9378 yes:yes:*\ gold\ *:*,c++,*) ;;
9379 yes:yes:*\ gold\ *:*)
22e05272 9380 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
79cd2b23
RW
9381 ;;
9382esac
9383
3e54529c 9384extrasub_build=
23f6b2f9 9385for module in ${build_configdirs} ; do
5607edfd
PB
9386 if test -z "${no_recursion}" \
9387 && test -f ${build_subdir}/${module}/Makefile; then
9388 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9389 rm -f ${build_subdir}/${module}/Makefile
9390 fi
3e54529c 9391 extrasub_build="$extrasub_build
5607edfd
PB
9392/^@if build-$module\$/d
9393/^@endif build-$module\$/d
da34ca3f 9394/^@unless build-$module\$/,/^@endunless build-$module\$/d
5607edfd 9395/^@if build-$module-$bootstrap_suffix\$/d
da34ca3f
AO
9396/^@endif build-$module-$bootstrap_suffix\$/d
9397/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
5607edfd 9398done
3e54529c 9399extrasub_host=
5607edfd 9400for module in ${configdirs} ; do
a6fbc1e2 9401 if test -z "${no_recursion}"; then
f063a9ed 9402 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
9403 if test -f ${file}; then
9404 echo 1>&2 "*** removing ${file} to force reconfigure"
9405 rm -f ${file}
9406 fi
9407 done
5607edfd 9408 fi
9e1c8fc1
JJ
9409 case ${module},${bootstrap_fixincludes} in
9410 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9411 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9412 esac
3e54529c 9413 extrasub_host="$extrasub_host
5607edfd
PB
9414/^@if $module\$/d
9415/^@endif $module\$/d
da34ca3f 9416/^@unless $module\$/,/^@endunless $module\$/d
9e1c8fc1 9417/^@if $module-$host_bootstrap_suffix\$/d
da34ca3f
AO
9418/^@endif $module-$host_bootstrap_suffix\$/d
9419/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
5607edfd 9420done
3e54529c 9421extrasub_target=
5607edfd
PB
9422for module in ${target_configdirs} ; do
9423 if test -z "${no_recursion}" \
9424 && test -f ${target_subdir}/${module}/Makefile; then
9425 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9426 rm -f ${target_subdir}/${module}/Makefile
9427 fi
00020c16
ILT
9428
9429 # We only bootstrap target libraries listed in bootstrap_target_libs.
9430 case $bootstrap_target_libs in
9431 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9432 *) target_bootstrap_suffix=no-bootstrap ;;
9433 esac
9434
3e54529c 9435 extrasub_target="$extrasub_target
5607edfd
PB
9436/^@if target-$module\$/d
9437/^@endif target-$module\$/d
da34ca3f 9438/^@unless target-$module\$/,/^@endunless target-$module\$/d
00020c16 9439/^@if target-$module-$target_bootstrap_suffix\$/d
da34ca3f
AO
9440/^@endif target-$module-$target_bootstrap_suffix\$/d
9441/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
9442done
9443
3e54529c
RW
9444# Do the final fixup along with target modules.
9445extrasub_target="$extrasub_target
da34ca3f
AO
9446/^@if /,/^@endif /d
9447/^@unless /d
9448/^@endunless /d"
671aa708
NN
9449
9450# Create the serialization dependencies. This uses a temporary file.
9451
5213506e
RW
9452# Check whether --enable-serial-configure was given.
9453if test "${enable_serial_configure+set}" = set; then :
9454 enableval=$enable_serial_configure;
9455fi
ade82b16
AO
9456
9457
bf1d3e81
NN
9458case ${enable_serial_configure} in
9459 yes)
9460 enable_serial_build_configure=yes
9461 enable_serial_host_configure=yes
9462 enable_serial_target_configure=yes
9463 ;;
9464esac
9465
671aa708
NN
9466# These force 'configure's to be done one at a time, to avoid problems
9467# with contention over a shared config.cache.
9468rm -f serdep.tmp
ade82b16 9469echo '# serdep.tmp' > serdep.tmp
671aa708 9470olditem=
bf1d3e81 9471test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
9472for item in ${build_configdirs} ; do
9473 case ${olditem} in
9474 "") ;;
ade82b16 9475 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
9476 esac
9477 olditem=${item}
9478done
9479olditem=
bf1d3e81 9480test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
9481for item in ${configdirs} ; do
9482 case ${olditem} in
9483 "") ;;
ade82b16 9484 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
9485 esac
9486 olditem=${item}
9487done
9488olditem=
bf1d3e81 9489test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
9490for item in ${target_configdirs} ; do
9491 case ${olditem} in
9492 "") ;;
ade82b16 9493 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
9494 esac
9495 olditem=${item}
9496done
9497serialization_dependencies=serdep.tmp
9498
9499
ade82b16 9500# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 9501# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
9502# might not want to pass down to subconfigures. The exception being
9503# --cache-file=/dev/null, which is used to turn off the use of cache
9504# files altogether, and which should be passed on to subconfigures.
9505# Also strip program-prefix, program-suffix, and program-transform-name,
9506# so that we can pass down a consistent program-transform-name.
1c710c3c 9507baseargs=
29a63921 9508tbaseargs=
1c710c3c
DJ
9509keep_next=no
9510skip_next=no
9511eval "set -- $ac_configure_args"
44bfc3ac
DJ
9512for ac_arg
9513do
1c710c3c
DJ
9514 if test X"$skip_next" = X"yes"; then
9515 skip_next=no
9516 continue
9517 fi
9518 if test X"$keep_next" = X"yes"; then
9519 case $ac_arg in
9520 *\'*)
9521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9522 esac
9523 baseargs="$baseargs '$ac_arg'"
29a63921 9524 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
9525 keep_next=no
9526 continue
9527 fi
9528
9529 # Handle separated arguments. Based on the logic generated by
9530 # autoconf 2.59.
9531 case $ac_arg in
9532 *=* | --config-cache | -C | -disable-* | --disable-* \
9533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9535 | -with-* | --with-* | -without-* | --without-* | --x)
9536 separate_arg=no
9537 ;;
9538 -*)
9539 separate_arg=yes
9540 ;;
9541 *)
9542 separate_arg=no
9543 ;;
9544 esac
9545
29a63921
AO
9546 skip_targ=no
9547 case $ac_arg in
9548
9549 --with-* | --without-*)
9550 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9551
9552 case $libopt in
9553 *[-_]include)
9554 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9555 ;;
9556 *[-_]lib)
9557 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9558 ;;
9559 *)
9560 lib=$libopt
9561 ;;
9562 esac
9563
9564
9565 case $lib in
4a9bb2aa 9566 mpc | mpfr | gmp | isl)
29a63921
AO
9567 # If we're processing --with-$lib, --with-$lib-include or
9568 # --with-$lib-lib, for one of the libs above, and target is
9569 # different from host, don't pass the current argument to any
9570 # target library's configure.
9571 if test x$is_cross_compiler = xyes; then
9572 skip_targ=yes
9573 fi
9574 ;;
9575 esac
9576 ;;
9577 esac
9578
1c710c3c 9579 case "$ac_arg" in
f1a036e4
NC
9580 --cache-file=/dev/null | \
9581 -cache-file=/dev/null )
9582 # Handled here to avoid the test to skip args below.
9583 baseargs="$baseargs '$ac_arg'"
29a63921 9584 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
9585 # Assert: $separate_arg should always be no.
9586 keep_next=$separate_arg
9587 ;;
1c710c3c
DJ
9588 --no*)
9589 continue
9590 ;;
9591 --c* | \
9592 --sr* | \
9593 --ho* | \
9594 --bu* | \
9595 --t* | \
9596 --program-* | \
9597 -cache_file* | \
9598 -srcdir* | \
9599 -host* | \
9600 -build* | \
9601 -target* | \
9602 -program-prefix* | \
9603 -program-suffix* | \
9604 -program-transform-name* )
9605 skip_next=$separate_arg
9606 continue
9607 ;;
9608 -*)
9609 # An option. Add it.
9610 case $ac_arg in
9611 *\'*)
9612 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9613 esac
9614 baseargs="$baseargs '$ac_arg'"
29a63921
AO
9615 if test X"$skip_targ" = Xno; then
9616 tbaseargs="$tbaseargs '$ac_arg'"
9617 fi
1c710c3c
DJ
9618 keep_next=$separate_arg
9619 ;;
9620 *)
9621 # Either a variable assignment, or a nonopt (triplet). Don't
9622 # pass it down; let the Makefile handle this.
9623 continue
9624 ;;
9625 esac
9626done
9627# Remove the initial space we just introduced and, as these will be
9628# expanded by make, quote '$'.
9629baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 9630
43bb47c2
DJ
9631# Add in --program-transform-name, after --program-prefix and
9632# --program-suffix have been applied to it. Autoconf has already
9633# doubled dollar signs and backslashes in program_transform_name; we want
9634# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 9635# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
9636# Also, because we want to override the logic in subdir configure scripts to
9637# choose program_transform_name, replace any s,x,x, with s,y,y,.
9638sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9639${program_transform_name}
9640EOF_SED
9641gcc_transform_name=`cat conftestsed.out`
9642rm -f conftestsed.out
9643baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 9644tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
9645if test "$silent" = yes; then
9646 baseargs="$baseargs --silent"
29a63921 9647 tbaseargs="$tbaseargs --silent"
d9acb717 9648fi
0115d4a3 9649baseargs="$baseargs --disable-option-checking"
29a63921 9650tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 9651
ffedf511
RW
9652# Record and document user additions to sub configure arguments.
9653
9654
9655
9656
671aa708
NN
9657# For the build-side libraries, we just need to pretend we're native,
9658# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
9659# desired. We can't even use the same cache file for all build-side
9660# libraries, as they're compiled differently; some with C, some with
9661# C++ or with different feature-enabling options.
9662build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
9663
9664# For host modules, accept cache file option, or specification as blank.
9665case "${cache_file}" in
9666"") # empty
9667 cache_file_option="" ;;
9668/* | [A-Za-z]:[\\/]* ) # absolute path
9669 cache_file_option="--cache-file=${cache_file}" ;;
9670*) # relative path
9671 cache_file_option="--cache-file=../${cache_file}" ;;
9672esac
9673
09438bde
NN
9674# Host dirs don't like to share a cache file either, horribly enough.
9675# This seems to be due to autoconf 2.5x stupidity.
ffedf511 9676host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 9677
29a63921 9678target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
9679
9680# Passing a --with-cross-host argument lets the target libraries know
9681# whether they are being built with a cross-compiler or being built
9682# native. However, it would be better to use other mechanisms to make the
9683# sorts of decisions they want to make on this basis. Please consider
9684# this option to be deprecated. FIXME.
9685if test x${is_cross_compiler} = xyes ; then
1c710c3c 9686 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
9687fi
9688
79e0604d
FXC
9689# Special user-friendly check for native x86_64-linux build, if
9690# multilib is not explicitly enabled.
9691case "$target:$have_compiler:$host:$target:$enable_multilib" in
9692 x86_64-*linux*:yes:$build:$build:)
e640447c 9693 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
9694 dev64=no
9695 echo "int main () { return 0; }" > conftest.c
9696 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9697 if test $? = 0 ; then
9698 if test -s conftest || test -s conftest.exe ; then
9699 dev64=yes
9700 fi
9701 fi
9702 rm -f conftest*
9703 if test x${dev64} != xyes ; then
22e05272 9704 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
9705 fi
9706 ;;
9707esac
9708
dc683a3f
RW
9709# Default to --enable-multilib.
9710if test x${enable_multilib} = x ; then
671aa708 9711 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 9712fi
671aa708
NN
9713
9714# Pass --with-newlib if appropriate. Note that target_configdirs has
9715# changed from the earlier setting of with_newlib.
9716if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
9717 target_configargs="--with-newlib ${target_configargs}"
9718fi
9719
6b9eb62c
NN
9720# Different target subdirs use different values of certain variables
9721# (notably CXX). Worse, multilibs use *lots* of different values.
9722# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9723# it doesn't automatically accept command-line overrides of them.
9724# This means it's not safe for target subdirs to share a cache file,
9725# which is disgusting, but there you have it. Hopefully this can be
9726# fixed in future. It's still worthwhile to use a cache file for each
9727# directory. I think.
9728
bebcd931
MS
9729# Pass the appropriate --build, --host, --target and --cache-file arguments.
9730# We need to pass --target, as newer autoconf's requires consistency
9731# for target_alias and gcc doesn't manage it consistently.
e69bf64b 9732target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 9733
671aa708
NN
9734FLAGS_FOR_TARGET=
9735case " $target_configdirs " in
9736 *" newlib "*)
9737 case " $target_configargs " in
9738 *" --with-newlib "*)
9739 case "$target" in
5d571eaa 9740 *-cygwin*)
443e6238 9741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 9742 ;;
671aa708
NN
9743 esac
9744
9745 # If we're not building GCC, don't discard standard headers.
9746 if test -d ${srcdir}/gcc; then
9747 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
9748
9749 if test "${build}" != "${host}"; then
9750 # On Canadian crosses, CC_FOR_TARGET will have already been set
9751 # by `configure', so we won't have an opportunity to add -Bgcc/
9752 # to it. This is right: we don't want to search that directory
9753 # for binaries, but we want the header files in there, so add
9754 # them explicitly.
0463992b 9755 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
9756
9757 # Someone might think of using the pre-installed headers on
9758 # Canadian crosses, in case the installed compiler is not fully
9759 # compatible with the compiler being built. In this case, it
9760 # would be better to flag an error than risking having
9761 # incompatible object files being constructed. We can't
9762 # guarantee that an error will be flagged, but let's hope the
9763 # compiler will do it, when presented with incompatible header
9764 # files.
9765 fi
9766 fi
9767
9768 case "${target}-${is_cross_compiler}" in
f2a0e225 9769 i[3456789]86-*-linux*-no)
671aa708
NN
9770 # Here host == target, so we don't need to build gcc,
9771 # so we don't want to discard standard headers.
9772 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9773 ;;
9774 *)
9775 # If we're building newlib, use its generic headers last, but search
9776 # for any libc-related directories first (so make it the last -B
9777 # switch).
9778 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
9779
9780 # If we're building libgloss, find the startup file, simulator library
9781 # and linker script.
9782 case " $target_configdirs " in
9783 *" libgloss "*)
9784 # Look for startup file, simulator library and maybe linker script.
9785 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9786 # Look for libnosys.a in case the target needs it.
9787 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9788 # Most targets have the linker script in the source directory.
9789 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9790 ;;
9791 esac
671aa708
NN
9792 ;;
9793 esac
9794 ;;
9795 esac
9796 ;;
9797esac
5d571eaa 9798
b91f0a41 9799case "$target" in
5d571eaa
OS
9800 x86_64-*mingw* | *-w64-mingw*)
9801 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9802 # however, use a symlink named 'mingw' in ${prefix} .
9803 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9804 ;;
9805 *-mingw*)
9806 # MinGW can't be handled as Cygwin above since it does not use newlib.
9807 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'
9808 ;;
b91f0a41 9809esac
671aa708 9810
6691a79e
ME
9811# Allow the user to override the flags for
9812# our build compiler if desired.
f019adc1
MF
9813if test x"${build}" = x"${host}" ; then
9814 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
9815 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
9816 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
9817fi
6691a79e 9818
671aa708
NN
9819# On Canadian crosses, we'll be searching the right directories for
9820# the previously-installed cross compiler, so don't bother to add
9821# flags for directories within the install tree of the compiler
9822# being built; programs in there won't even run.
9823if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
9824 # Search for pre-installed headers if nothing else fits.
9124bc53 9825 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
9826fi
9827
9828if test "x${use_gnu_ld}" = x &&
9829 echo " ${configdirs} " | grep " ld " > /dev/null ; then
9830 # Arrange for us to find uninstalled linker scripts.
215c351a 9831 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
9832fi
9833
e88a2c09
DD
9834# Search for other target-specific linker scripts and such.
9835case "${target}" in
3e19841a
PB
9836 mep*)
9837 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
9838 ;;
e88a2c09
DD
9839esac
9840
671aa708 9841# Makefile fragments.
7b61653a
PE
9842for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
9843do
9844 eval fragval=\$$frag
9845 if test $fragval != /dev/null; then
9846 eval $frag=${srcdir}/$fragval
9847 fi
9848done
671aa708
NN
9849
9850
9851
9852
9853
9854# Miscellanea: directories, flags, etc.
9855
9856
9857
9858
9859
9860
9861
d89f0ad6 9862
23f6b2f9 9863# Build module lists & subconfigure args.
671aa708
NN
9864
9865
9866
2abefe3d
PB
9867# Host module lists & subconfigure args.
9868
9869
9870
aae29963 9871
2abefe3d
PB
9872# Target module lists & subconfigure args.
9873
9874
9875
9876# Build tools.
9877
9878
9879
0999159b
PB
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
b4c522fa 9893
2abefe3d
PB
9894# Generate default definitions for YACC, M4, LEX and other programs that run
9895# on the build machine. These are used if the Makefile can't locate these
9896# programs in objdir.
9897MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
9898
9899for ac_prog in 'bison -y' byacc yacc
9900do
1c710c3c 9901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 9902set dummy $ac_prog; ac_word=$2
5213506e
RW
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9905if ${ac_cv_prog_YACC+:} false; then :
5213506e 9906 $as_echo_n "(cached) " >&6
2abefe3d
PB
9907else
9908 if test -n "$YACC"; then
9909 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9910else
1c710c3c
DJ
9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912for as_dir in $PATH
9913do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
5213506e 9916 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9918 ac_cv_prog_YACC="$ac_prog"
5213506e 9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9920 break 2
9921 fi
9922done
5213506e
RW
9923 done
9924IFS=$as_save_IFS
1c710c3c 9925
2abefe3d
PB
9926fi
9927fi
1c710c3c 9928YACC=$ac_cv_prog_YACC
2abefe3d 9929if test -n "$YACC"; then
5213506e
RW
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
9931$as_echo "$YACC" >&6; }
2abefe3d 9932else
5213506e
RW
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934$as_echo "no" >&6; }
2abefe3d
PB
9935fi
9936
5213506e 9937
1c710c3c 9938 test -n "$YACC" && break
2abefe3d
PB
9939done
9940test -n "$YACC" || YACC="$MISSING bison -y"
9941
9942case " $build_configdirs " in
9943 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
9944esac
9945
9946for ac_prog in bison
9947do
1c710c3c 9948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 9949set dummy $ac_prog; ac_word=$2
5213506e
RW
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9952if ${ac_cv_prog_BISON+:} false; then :
5213506e 9953 $as_echo_n "(cached) " >&6
2abefe3d
PB
9954else
9955 if test -n "$BISON"; then
9956 ac_cv_prog_BISON="$BISON" # Let the user override the test.
9957else
1c710c3c
DJ
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
5213506e 9963 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 9965 ac_cv_prog_BISON="$ac_prog"
5213506e 9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9967 break 2
9968 fi
9969done
5213506e
RW
9970 done
9971IFS=$as_save_IFS
1c710c3c 9972
2abefe3d
PB
9973fi
9974fi
1c710c3c 9975BISON=$ac_cv_prog_BISON
2abefe3d 9976if test -n "$BISON"; then
5213506e
RW
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
9978$as_echo "$BISON" >&6; }
2abefe3d 9979else
5213506e
RW
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
2abefe3d
PB
9982fi
9983
5213506e 9984
1c710c3c 9985 test -n "$BISON" && break
2abefe3d
PB
9986done
9987test -n "$BISON" || BISON="$MISSING bison"
9988
9989case " $build_configdirs " in
9990 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
9991esac
9992
9993for ac_prog in gm4 gnum4 m4
9994do
1c710c3c 9995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 9996set dummy $ac_prog; ac_word=$2
5213506e
RW
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9998$as_echo_n "checking for $ac_word... " >&6; }
22e05272 9999if ${ac_cv_prog_M4+:} false; then :
5213506e 10000 $as_echo_n "(cached) " >&6
2abefe3d
PB
10001else
10002 if test -n "$M4"; then
10003 ac_cv_prog_M4="$M4" # Let the user override the test.
10004else
1c710c3c
DJ
10005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006for as_dir in $PATH
10007do
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
5213506e 10010 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10012 ac_cv_prog_M4="$ac_prog"
5213506e 10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10014 break 2
10015 fi
10016done
5213506e
RW
10017 done
10018IFS=$as_save_IFS
1c710c3c 10019
2abefe3d
PB
10020fi
10021fi
1c710c3c 10022M4=$ac_cv_prog_M4
2abefe3d 10023if test -n "$M4"; then
5213506e
RW
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10025$as_echo "$M4" >&6; }
2abefe3d 10026else
5213506e
RW
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028$as_echo "no" >&6; }
2abefe3d
PB
10029fi
10030
5213506e 10031
1c710c3c 10032 test -n "$M4" && break
2abefe3d
PB
10033done
10034test -n "$M4" || M4="$MISSING m4"
10035
10036case " $build_configdirs " in
10037 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10038esac
10039
10040for ac_prog in flex lex
10041do
1c710c3c 10042 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10043set dummy $ac_prog; ac_word=$2
5213506e
RW
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10046if ${ac_cv_prog_LEX+:} false; then :
5213506e 10047 $as_echo_n "(cached) " >&6
2abefe3d
PB
10048else
10049 if test -n "$LEX"; then
10050 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10051else
1c710c3c
DJ
10052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10053for as_dir in $PATH
10054do
10055 IFS=$as_save_IFS
10056 test -z "$as_dir" && as_dir=.
5213506e 10057 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10059 ac_cv_prog_LEX="$ac_prog"
5213506e 10060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10061 break 2
10062 fi
10063done
5213506e
RW
10064 done
10065IFS=$as_save_IFS
1c710c3c 10066
2abefe3d
PB
10067fi
10068fi
1c710c3c 10069LEX=$ac_cv_prog_LEX
2abefe3d 10070if test -n "$LEX"; then
5213506e
RW
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10072$as_echo "$LEX" >&6; }
2abefe3d 10073else
5213506e
RW
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10075$as_echo "no" >&6; }
2abefe3d
PB
10076fi
10077
5213506e 10078
1c710c3c 10079 test -n "$LEX" && break
2abefe3d
PB
10080done
10081test -n "$LEX" || LEX="$MISSING flex"
10082
10083case " $build_configdirs " in
10084 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10085 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10086esac
10087
10088for ac_prog in flex
10089do
1c710c3c 10090 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10091set dummy $ac_prog; ac_word=$2
5213506e
RW
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10094if ${ac_cv_prog_FLEX+:} false; then :
5213506e 10095 $as_echo_n "(cached) " >&6
2abefe3d
PB
10096else
10097 if test -n "$FLEX"; then
10098 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10099else
1c710c3c
DJ
10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
5213506e 10105 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10107 ac_cv_prog_FLEX="$ac_prog"
5213506e 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10109 break 2
10110 fi
10111done
5213506e
RW
10112 done
10113IFS=$as_save_IFS
1c710c3c 10114
2abefe3d
PB
10115fi
10116fi
1c710c3c 10117FLEX=$ac_cv_prog_FLEX
2abefe3d 10118if test -n "$FLEX"; then
5213506e
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10120$as_echo "$FLEX" >&6; }
2abefe3d 10121else
5213506e
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
2abefe3d
PB
10124fi
10125
5213506e 10126
1c710c3c 10127 test -n "$FLEX" && break
2abefe3d
PB
10128done
10129test -n "$FLEX" || FLEX="$MISSING flex"
10130
10131case " $build_configdirs " in
10132 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10133esac
10134
10135for ac_prog in makeinfo
10136do
1c710c3c 10137 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10138set dummy $ac_prog; ac_word=$2
5213506e
RW
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10141if ${ac_cv_prog_MAKEINFO+:} false; then :
5213506e 10142 $as_echo_n "(cached) " >&6
2abefe3d
PB
10143else
10144 if test -n "$MAKEINFO"; then
10145 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10146else
1c710c3c
DJ
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
5213506e 10152 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10154 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10156 break 2
10157 fi
10158done
5213506e
RW
10159 done
10160IFS=$as_save_IFS
1c710c3c 10161
2abefe3d
PB
10162fi
10163fi
1c710c3c 10164MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 10165if test -n "$MAKEINFO"; then
5213506e
RW
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10167$as_echo "$MAKEINFO" >&6; }
2abefe3d 10168else
5213506e
RW
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
2abefe3d
PB
10171fi
10172
5213506e 10173
1c710c3c 10174 test -n "$MAKEINFO" && break
2abefe3d
PB
10175done
10176test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10177
10178case " $build_configdirs " in
10179 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10180 *)
10181
d18ff35a 10182 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
10183 # higher, else we use the "missing" dummy.
10184 if ${MAKEINFO} --version \
d18ff35a 10185 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
10186 :
10187 else
10188 MAKEINFO="$MISSING makeinfo"
10189 fi
10190 ;;
10191
10192esac
671aa708 10193
2abefe3d 10194# FIXME: expect and dejagnu may become build tools?
671aa708 10195
2abefe3d
PB
10196for ac_prog in expect
10197do
1c710c3c 10198 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10199set dummy $ac_prog; ac_word=$2
5213506e
RW
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10202if ${ac_cv_prog_EXPECT+:} false; then :
5213506e 10203 $as_echo_n "(cached) " >&6
2abefe3d
PB
10204else
10205 if test -n "$EXPECT"; then
10206 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10207else
1c710c3c
DJ
10208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10209for as_dir in $PATH
10210do
10211 IFS=$as_save_IFS
10212 test -z "$as_dir" && as_dir=.
5213506e 10213 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10215 ac_cv_prog_EXPECT="$ac_prog"
5213506e 10216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10217 break 2
10218 fi
10219done
5213506e
RW
10220 done
10221IFS=$as_save_IFS
1c710c3c 10222
2abefe3d
PB
10223fi
10224fi
1c710c3c 10225EXPECT=$ac_cv_prog_EXPECT
2abefe3d 10226if test -n "$EXPECT"; then
5213506e
RW
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10228$as_echo "$EXPECT" >&6; }
2abefe3d 10229else
5213506e
RW
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10231$as_echo "no" >&6; }
2abefe3d 10232fi
671aa708 10233
5213506e 10234
1c710c3c 10235 test -n "$EXPECT" && break
2abefe3d
PB
10236done
10237test -n "$EXPECT" || EXPECT="expect"
671aa708 10238
2abefe3d
PB
10239case " $configdirs " in
10240 *" expect "*)
10241 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10242 ;;
10243esac
671aa708 10244
2abefe3d
PB
10245for ac_prog in runtest
10246do
1c710c3c 10247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 10248set dummy $ac_prog; ac_word=$2
5213506e
RW
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10251if ${ac_cv_prog_RUNTEST+:} false; then :
5213506e 10252 $as_echo_n "(cached) " >&6
2abefe3d
PB
10253else
10254 if test -n "$RUNTEST"; then
10255 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 10256else
1c710c3c
DJ
10257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258for as_dir in $PATH
10259do
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
5213506e 10262 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10264 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10266 break 2
10267 fi
10268done
5213506e
RW
10269 done
10270IFS=$as_save_IFS
1c710c3c 10271
2abefe3d
PB
10272fi
10273fi
1c710c3c 10274RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 10275if test -n "$RUNTEST"; then
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10277$as_echo "$RUNTEST" >&6; }
2abefe3d 10278else
5213506e
RW
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280$as_echo "no" >&6; }
2abefe3d 10281fi
671aa708 10282
5213506e 10283
1c710c3c 10284 test -n "$RUNTEST" && break
2abefe3d
PB
10285done
10286test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 10287
2abefe3d
PB
10288case " $configdirs " in
10289 *" dejagnu "*)
c394e891 10290 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
10291 ;;
10292esac
671aa708
NN
10293
10294
671aa708 10295# Host tools.
ca9f4b81
AO
10296ncn_tool_prefix=
10297test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10298ncn_target_tool_prefix=
10299test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10300
278a7a38
AO
10301
10302
10303if test -n "$AR"; then
10304 ac_cv_prog_AR=$AR
10305elif test -n "$ac_cv_prog_AR"; then
10306 AR=$ac_cv_prog_AR
10307fi
10308
10309if test -n "$ac_cv_prog_AR"; then
10310 for ncn_progname in ar; do
10311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10312set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10315if ${ac_cv_prog_AR+:} false; then :
5213506e 10316 $as_echo_n "(cached) " >&6
278a7a38
AO
10317else
10318 if test -n "$AR"; then
10319 ac_cv_prog_AR="$AR" # Let the user override the test.
10320else
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
5213506e 10326 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10328 ac_cv_prog_AR="${ncn_progname}"
5213506e 10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10330 break 2
10331 fi
10332done
5213506e
RW
10333 done
10334IFS=$as_save_IFS
278a7a38
AO
10335
10336fi
10337fi
10338AR=$ac_cv_prog_AR
10339if test -n "$AR"; then
5213506e
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10341$as_echo "$AR" >&6; }
278a7a38 10342else
5213506e
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
278a7a38
AO
10345fi
10346
5213506e 10347
278a7a38
AO
10348 done
10349fi
10350
10351for ncn_progname in ar; do
2693c0b0
PB
10352 if test -n "$ncn_tool_prefix"; then
10353 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10354set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10357if ${ac_cv_prog_AR+:} false; then :
5213506e 10358 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10359else
10360 if test -n "$AR"; then
10361 ac_cv_prog_AR="$AR" # Let the user override the test.
10362else
1c710c3c
DJ
10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366 IFS=$as_save_IFS
10367 test -z "$as_dir" && as_dir=.
5213506e 10368 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10370 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 10371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10372 break 2
10373 fi
10374done
5213506e
RW
10375 done
10376IFS=$as_save_IFS
1c710c3c 10377
ca9f4b81
AO
10378fi
10379fi
1c710c3c 10380AR=$ac_cv_prog_AR
ca9f4b81 10381if test -n "$AR"; then
5213506e
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10383$as_echo "$AR" >&6; }
ca9f4b81 10384else
5213506e
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386$as_echo "no" >&6; }
ca9f4b81
AO
10387fi
10388
5213506e 10389
2693c0b0
PB
10390 fi
10391 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10393set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10396if ${ac_cv_prog_AR+:} false; then :
5213506e 10397 $as_echo_n "(cached) " >&6
ca9f4b81 10398else
2693c0b0 10399 if test -n "$AR"; then
af71363e
AS
10400 ac_cv_prog_AR="$AR" # Let the user override the test.
10401else
1c710c3c
DJ
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
5213506e 10407 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10409 ac_cv_prog_AR="${ncn_progname}"
5213506e 10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10411 break 2
10412 fi
10413done
5213506e
RW
10414 done
10415IFS=$as_save_IFS
1c710c3c 10416
ca9f4b81
AO
10417fi
10418fi
1c710c3c 10419AR=$ac_cv_prog_AR
2693c0b0 10420if test -n "$AR"; then
5213506e
RW
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10422$as_echo "$AR" >&6; }
ca9f4b81 10423else
5213506e
RW
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425$as_echo "no" >&6; }
ca9f4b81 10426fi
1c710c3c 10427
5213506e 10428
2693c0b0
PB
10429 fi
10430 test -n "$ac_cv_prog_AR" && break
10431done
10432
10433if test -z "$ac_cv_prog_AR" ; then
10434 set dummy ar
10435 if test $build = $host ; then
10436 AR="$2"
ca9f4b81 10437 else
2693c0b0 10438 AR="${ncn_tool_prefix}$2"
ca9f4b81 10439 fi
ca9f4b81
AO
10440fi
10441
278a7a38
AO
10442
10443
10444if test -n "$AS"; then
10445 ac_cv_prog_AS=$AS
10446elif test -n "$ac_cv_prog_AS"; then
10447 AS=$ac_cv_prog_AS
10448fi
10449
10450if test -n "$ac_cv_prog_AS"; then
10451 for ncn_progname in as; do
10452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10453set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10455$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10456if ${ac_cv_prog_AS+:} false; then :
5213506e 10457 $as_echo_n "(cached) " >&6
278a7a38
AO
10458else
10459 if test -n "$AS"; then
10460 ac_cv_prog_AS="$AS" # Let the user override the test.
10461else
10462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463for as_dir in $PATH
10464do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
5213506e 10467 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10469 ac_cv_prog_AS="${ncn_progname}"
5213506e 10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10471 break 2
10472 fi
10473done
5213506e
RW
10474 done
10475IFS=$as_save_IFS
278a7a38
AO
10476
10477fi
10478fi
10479AS=$ac_cv_prog_AS
10480if test -n "$AS"; then
5213506e
RW
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10482$as_echo "$AS" >&6; }
278a7a38 10483else
5213506e
RW
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10485$as_echo "no" >&6; }
278a7a38
AO
10486fi
10487
5213506e 10488
278a7a38
AO
10489 done
10490fi
10491
10492for ncn_progname in as; do
2693c0b0
PB
10493 if test -n "$ncn_tool_prefix"; then
10494 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10495set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10497$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10498if ${ac_cv_prog_AS+:} false; then :
5213506e 10499 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10500else
10501 if test -n "$AS"; then
10502 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 10503else
1c710c3c
DJ
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
5213506e 10509 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10511 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 10512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10513 break 2
10514 fi
10515done
5213506e
RW
10516 done
10517IFS=$as_save_IFS
1c710c3c 10518
ca9f4b81
AO
10519fi
10520fi
1c710c3c 10521AS=$ac_cv_prog_AS
ca9f4b81 10522if test -n "$AS"; then
5213506e
RW
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10524$as_echo "$AS" >&6; }
ca9f4b81 10525else
5213506e
RW
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527$as_echo "no" >&6; }
ca9f4b81
AO
10528fi
10529
5213506e 10530
2693c0b0
PB
10531 fi
10532 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10534set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10537if ${ac_cv_prog_AS+:} false; then :
5213506e 10538 $as_echo_n "(cached) " >&6
ca9f4b81 10539else
2693c0b0
PB
10540 if test -n "$AS"; then
10541 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 10542else
1c710c3c
DJ
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
5213506e 10548 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10550 ac_cv_prog_AS="${ncn_progname}"
5213506e 10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10552 break 2
10553 fi
10554done
5213506e
RW
10555 done
10556IFS=$as_save_IFS
1c710c3c 10557
ca9f4b81
AO
10558fi
10559fi
1c710c3c 10560AS=$ac_cv_prog_AS
2693c0b0 10561if test -n "$AS"; then
5213506e
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10563$as_echo "$AS" >&6; }
ca9f4b81 10564else
5213506e
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
ca9f4b81 10567fi
1c710c3c 10568
5213506e 10569
2693c0b0
PB
10570 fi
10571 test -n "$ac_cv_prog_AS" && break
10572done
10573
10574if test -z "$ac_cv_prog_AS" ; then
10575 set dummy as
10576 if test $build = $host ; then
10577 AS="$2"
ca9f4b81 10578 else
2693c0b0 10579 AS="${ncn_tool_prefix}$2"
ca9f4b81 10580 fi
ca9f4b81
AO
10581fi
10582
278a7a38
AO
10583
10584
10585if test -n "$DLLTOOL"; then
10586 ac_cv_prog_DLLTOOL=$DLLTOOL
10587elif test -n "$ac_cv_prog_DLLTOOL"; then
10588 DLLTOOL=$ac_cv_prog_DLLTOOL
10589fi
10590
10591if test -n "$ac_cv_prog_DLLTOOL"; then
10592 for ncn_progname in dlltool; do
10593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10594set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10596$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10597if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10598 $as_echo_n "(cached) " >&6
278a7a38
AO
10599else
10600 if test -n "$DLLTOOL"; then
10601 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10602else
10603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10604for as_dir in $PATH
10605do
10606 IFS=$as_save_IFS
10607 test -z "$as_dir" && as_dir=.
5213506e 10608 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10610 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10612 break 2
10613 fi
10614done
5213506e
RW
10615 done
10616IFS=$as_save_IFS
278a7a38
AO
10617
10618fi
10619fi
10620DLLTOOL=$ac_cv_prog_DLLTOOL
10621if test -n "$DLLTOOL"; then
5213506e
RW
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10623$as_echo "$DLLTOOL" >&6; }
278a7a38 10624else
5213506e
RW
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626$as_echo "no" >&6; }
278a7a38
AO
10627fi
10628
5213506e 10629
278a7a38
AO
10630 done
10631fi
10632
10633for ncn_progname in dlltool; do
2693c0b0
PB
10634 if test -n "$ncn_tool_prefix"; then
10635 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10636set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10639if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10640 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10641else
10642 if test -n "$DLLTOOL"; then
10643 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10644else
1c710c3c
DJ
10645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646for as_dir in $PATH
10647do
10648 IFS=$as_save_IFS
10649 test -z "$as_dir" && as_dir=.
5213506e 10650 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10652 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10654 break 2
10655 fi
10656done
5213506e
RW
10657 done
10658IFS=$as_save_IFS
1c710c3c 10659
ca9f4b81
AO
10660fi
10661fi
1c710c3c 10662DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 10663if test -n "$DLLTOOL"; then
5213506e
RW
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10665$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10666else
5213506e
RW
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }
ca9f4b81
AO
10669fi
10670
5213506e 10671
2693c0b0
PB
10672 fi
10673 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10675set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10678if ${ac_cv_prog_DLLTOOL+:} false; then :
5213506e 10679 $as_echo_n "(cached) " >&6
ca9f4b81 10680else
2693c0b0
PB
10681 if test -n "$DLLTOOL"; then
10682 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 10683else
1c710c3c
DJ
10684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685for as_dir in $PATH
10686do
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
5213506e 10689 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10691 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10693 break 2
10694 fi
10695done
5213506e
RW
10696 done
10697IFS=$as_save_IFS
1c710c3c 10698
ca9f4b81
AO
10699fi
10700fi
1c710c3c 10701DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 10702if test -n "$DLLTOOL"; then
5213506e
RW
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10704$as_echo "$DLLTOOL" >&6; }
ca9f4b81 10705else
5213506e
RW
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707$as_echo "no" >&6; }
ca9f4b81 10708fi
1c710c3c 10709
5213506e 10710
2693c0b0
PB
10711 fi
10712 test -n "$ac_cv_prog_DLLTOOL" && break
10713done
10714
10715if test -z "$ac_cv_prog_DLLTOOL" ; then
10716 set dummy dlltool
10717 if test $build = $host ; then
10718 DLLTOOL="$2"
ca9f4b81 10719 else
2693c0b0 10720 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 10721 fi
ca9f4b81
AO
10722fi
10723
278a7a38
AO
10724
10725
10726if test -n "$LD"; then
10727 ac_cv_prog_LD=$LD
10728elif test -n "$ac_cv_prog_LD"; then
10729 LD=$ac_cv_prog_LD
10730fi
10731
10732if test -n "$ac_cv_prog_LD"; then
10733 for ncn_progname in ld; do
10734 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10735set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10738if ${ac_cv_prog_LD+:} false; then :
5213506e 10739 $as_echo_n "(cached) " >&6
278a7a38
AO
10740else
10741 if test -n "$LD"; then
10742 ac_cv_prog_LD="$LD" # Let the user override the test.
10743else
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
5213506e 10749 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10751 ac_cv_prog_LD="${ncn_progname}"
5213506e 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10753 break 2
10754 fi
10755done
5213506e
RW
10756 done
10757IFS=$as_save_IFS
278a7a38
AO
10758
10759fi
10760fi
10761LD=$ac_cv_prog_LD
10762if test -n "$LD"; then
5213506e
RW
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10764$as_echo "$LD" >&6; }
278a7a38 10765else
5213506e
RW
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
278a7a38
AO
10768fi
10769
5213506e 10770
278a7a38
AO
10771 done
10772fi
10773
10774for ncn_progname in ld; do
2693c0b0
PB
10775 if test -n "$ncn_tool_prefix"; then
10776 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10777set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10780if ${ac_cv_prog_LD+:} false; then :
5213506e 10781 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10782else
10783 if test -n "$LD"; then
10784 ac_cv_prog_LD="$LD" # Let the user override the test.
10785else
1c710c3c
DJ
10786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
5213506e 10791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10793 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10795 break 2
10796 fi
10797done
5213506e
RW
10798 done
10799IFS=$as_save_IFS
1c710c3c 10800
ca9f4b81
AO
10801fi
10802fi
1c710c3c 10803LD=$ac_cv_prog_LD
ca9f4b81 10804if test -n "$LD"; then
5213506e
RW
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10806$as_echo "$LD" >&6; }
ca9f4b81 10807else
5213506e
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809$as_echo "no" >&6; }
ca9f4b81
AO
10810fi
10811
5213506e 10812
2693c0b0
PB
10813 fi
10814 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
10815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10816set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10819if ${ac_cv_prog_LD+:} false; then :
5213506e 10820 $as_echo_n "(cached) " >&6
ca9f4b81 10821else
2693c0b0
PB
10822 if test -n "$LD"; then
10823 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 10824else
1c710c3c
DJ
10825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826for as_dir in $PATH
10827do
10828 IFS=$as_save_IFS
10829 test -z "$as_dir" && as_dir=.
5213506e 10830 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10832 ac_cv_prog_LD="${ncn_progname}"
5213506e 10833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10834 break 2
10835 fi
10836done
5213506e
RW
10837 done
10838IFS=$as_save_IFS
1c710c3c 10839
ca9f4b81
AO
10840fi
10841fi
1c710c3c 10842LD=$ac_cv_prog_LD
2693c0b0 10843if test -n "$LD"; then
5213506e
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10845$as_echo "$LD" >&6; }
ca9f4b81 10846else
5213506e
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10848$as_echo "no" >&6; }
ca9f4b81 10849fi
1c710c3c 10850
5213506e 10851
2693c0b0
PB
10852 fi
10853 test -n "$ac_cv_prog_LD" && break
10854done
10855
10856if test -z "$ac_cv_prog_LD" ; then
10857 set dummy ld
10858 if test $build = $host ; then
10859 LD="$2"
ca9f4b81 10860 else
2693c0b0 10861 LD="${ncn_tool_prefix}$2"
ca9f4b81 10862 fi
ca9f4b81
AO
10863fi
10864
278a7a38
AO
10865
10866
10867if test -n "$LIPO"; then
10868 ac_cv_prog_LIPO=$LIPO
10869elif test -n "$ac_cv_prog_LIPO"; then
10870 LIPO=$ac_cv_prog_LIPO
10871fi
10872
10873if test -n "$ac_cv_prog_LIPO"; then
10874 for ncn_progname in lipo; do
10875 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10876set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10878$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10879if ${ac_cv_prog_LIPO+:} false; then :
5213506e 10880 $as_echo_n "(cached) " >&6
278a7a38
AO
10881else
10882 if test -n "$LIPO"; then
10883 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10884else
10885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $PATH
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
5213506e 10890 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 10892 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10894 break 2
10895 fi
10896done
5213506e
RW
10897 done
10898IFS=$as_save_IFS
278a7a38
AO
10899
10900fi
10901fi
10902LIPO=$ac_cv_prog_LIPO
10903if test -n "$LIPO"; then
5213506e
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10905$as_echo "$LIPO" >&6; }
278a7a38 10906else
5213506e
RW
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10908$as_echo "no" >&6; }
278a7a38
AO
10909fi
10910
5213506e 10911
278a7a38
AO
10912 done
10913fi
10914
10915for ncn_progname in lipo; do
2abefe3d
PB
10916 if test -n "$ncn_tool_prefix"; then
10917 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10918set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10920$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10921if ${ac_cv_prog_LIPO+:} false; then :
5213506e 10922 $as_echo_n "(cached) " >&6
2abefe3d
PB
10923else
10924 if test -n "$LIPO"; then
10925 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10926else
1c710c3c
DJ
10927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10928for as_dir in $PATH
10929do
10930 IFS=$as_save_IFS
10931 test -z "$as_dir" && as_dir=.
5213506e 10932 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10934 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 10935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10936 break 2
10937 fi
10938done
5213506e
RW
10939 done
10940IFS=$as_save_IFS
1c710c3c 10941
2abefe3d
PB
10942fi
10943fi
1c710c3c 10944LIPO=$ac_cv_prog_LIPO
2abefe3d 10945if test -n "$LIPO"; then
5213506e
RW
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10947$as_echo "$LIPO" >&6; }
2abefe3d 10948else
5213506e
RW
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10950$as_echo "no" >&6; }
2abefe3d
PB
10951fi
10952
5213506e 10953
2abefe3d
PB
10954 fi
10955 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
10956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10957set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10959$as_echo_n "checking for $ac_word... " >&6; }
22e05272 10960if ${ac_cv_prog_LIPO+:} false; then :
5213506e 10961 $as_echo_n "(cached) " >&6
2abefe3d
PB
10962else
10963 if test -n "$LIPO"; then
10964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10965else
1c710c3c
DJ
10966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967for as_dir in $PATH
10968do
10969 IFS=$as_save_IFS
10970 test -z "$as_dir" && as_dir=.
5213506e 10971 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 10972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 10973 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 10974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10975 break 2
10976 fi
10977done
5213506e
RW
10978 done
10979IFS=$as_save_IFS
1c710c3c 10980
2abefe3d
PB
10981fi
10982fi
1c710c3c 10983LIPO=$ac_cv_prog_LIPO
2abefe3d 10984if test -n "$LIPO"; then
5213506e
RW
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10986$as_echo "$LIPO" >&6; }
2abefe3d 10987else
5213506e
RW
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10989$as_echo "no" >&6; }
2abefe3d 10990fi
1c710c3c 10991
5213506e 10992
2abefe3d
PB
10993 fi
10994 test -n "$ac_cv_prog_LIPO" && break
10995done
10996
10997if test -z "$ac_cv_prog_LIPO" ; then
10998 set dummy lipo
10999 if test $build = $host ; then
11000 LIPO="$2"
11001 else
11002 LIPO="${ncn_tool_prefix}$2"
11003 fi
11004fi
11005
278a7a38
AO
11006
11007
11008if test -n "$NM"; then
11009 ac_cv_prog_NM=$NM
11010elif test -n "$ac_cv_prog_NM"; then
11011 NM=$ac_cv_prog_NM
11012fi
11013
11014if test -n "$ac_cv_prog_NM"; then
11015 for ncn_progname in nm; do
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11020if ${ac_cv_prog_NM+:} false; then :
5213506e 11021 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11022else
11023 if test -n "$NM"; then
11024 ac_cv_prog_NM="$NM" # Let the user override the test.
11025else
1c710c3c
DJ
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
5213506e 11031 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11033 ac_cv_prog_NM="${ncn_progname}"
5213506e 11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11035 break 2
11036 fi
11037done
5213506e
RW
11038 done
11039IFS=$as_save_IFS
1c710c3c 11040
ca9f4b81
AO
11041fi
11042fi
1c710c3c 11043NM=$ac_cv_prog_NM
ca9f4b81 11044if test -n "$NM"; then
5213506e
RW
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11046$as_echo "$NM" >&6; }
ca9f4b81 11047else
5213506e
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
ca9f4b81
AO
11050fi
11051
5213506e 11052
278a7a38
AO
11053 done
11054fi
11055
11056for ncn_progname in nm; do
11057 if test -n "$ncn_tool_prefix"; then
11058 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11059set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11061$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11062if ${ac_cv_prog_NM+:} false; then :
5213506e 11063 $as_echo_n "(cached) " >&6
ca9f4b81 11064else
2693c0b0
PB
11065 if test -n "$NM"; then
11066 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 11067else
1c710c3c
DJ
11068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069for as_dir in $PATH
11070do
11071 IFS=$as_save_IFS
11072 test -z "$as_dir" && as_dir=.
5213506e 11073 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11075 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 11076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11077 break 2
11078 fi
11079done
5213506e
RW
11080 done
11081IFS=$as_save_IFS
1c710c3c 11082
ca9f4b81
AO
11083fi
11084fi
1c710c3c 11085NM=$ac_cv_prog_NM
2693c0b0 11086if test -n "$NM"; then
5213506e
RW
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11088$as_echo "$NM" >&6; }
ca9f4b81 11089else
5213506e
RW
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091$as_echo "no" >&6; }
ca9f4b81 11092fi
1c710c3c 11093
5213506e 11094
2693c0b0 11095 fi
278a7a38
AO
11096 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11098set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11101if ${ac_cv_prog_NM+:} false; then :
5213506e 11102 $as_echo_n "(cached) " >&6
278a7a38
AO
11103else
11104 if test -n "$NM"; then
11105 ac_cv_prog_NM="$NM" # Let the user override the test.
11106else
11107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH
11109do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
5213506e 11112 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11114 ac_cv_prog_NM="${ncn_progname}"
5213506e 11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11116 break 2
11117 fi
11118done
5213506e
RW
11119 done
11120IFS=$as_save_IFS
278a7a38
AO
11121
11122fi
11123fi
11124NM=$ac_cv_prog_NM
11125if test -n "$NM"; then
5213506e
RW
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11127$as_echo "$NM" >&6; }
278a7a38 11128else
5213506e
RW
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
278a7a38
AO
11131fi
11132
5213506e 11133
278a7a38
AO
11134 fi
11135 test -n "$ac_cv_prog_NM" && break
11136done
11137
11138if test -z "$ac_cv_prog_NM" ; then
11139 set dummy nm
11140 if test $build = $host ; then
11141 NM="$2"
11142 else
11143 NM="${ncn_tool_prefix}$2"
11144 fi
11145fi
11146
11147
11148
11149if test -n "$RANLIB"; then
11150 ac_cv_prog_RANLIB=$RANLIB
11151elif test -n "$ac_cv_prog_RANLIB"; then
11152 RANLIB=$ac_cv_prog_RANLIB
11153fi
11154
11155if test -n "$ac_cv_prog_RANLIB"; then
11156 for ncn_progname in ranlib; do
11157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11158set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11161if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11162 $as_echo_n "(cached) " >&6
278a7a38
AO
11163else
11164 if test -n "$RANLIB"; then
11165 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170 IFS=$as_save_IFS
11171 test -z "$as_dir" && as_dir=.
5213506e 11172 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11174 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11176 break 2
11177 fi
11178done
5213506e
RW
11179 done
11180IFS=$as_save_IFS
278a7a38
AO
11181
11182fi
11183fi
11184RANLIB=$ac_cv_prog_RANLIB
11185if test -n "$RANLIB"; then
5213506e
RW
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11187$as_echo "$RANLIB" >&6; }
278a7a38 11188else
5213506e
RW
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
278a7a38
AO
11191fi
11192
5213506e 11193
278a7a38
AO
11194 done
11195fi
ca9f4b81 11196
278a7a38 11197for ncn_progname in ranlib; do
2693c0b0
PB
11198 if test -n "$ncn_tool_prefix"; then
11199 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11200set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11202$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11203if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11204 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11205else
11206 if test -n "$RANLIB"; then
11207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11208else
1c710c3c
DJ
11209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210for as_dir in $PATH
11211do
11212 IFS=$as_save_IFS
11213 test -z "$as_dir" && as_dir=.
5213506e 11214 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11216 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 11217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11218 break 2
11219 fi
11220done
5213506e
RW
11221 done
11222IFS=$as_save_IFS
1c710c3c 11223
ca9f4b81
AO
11224fi
11225fi
1c710c3c 11226RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 11227if test -n "$RANLIB"; then
5213506e
RW
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11229$as_echo "$RANLIB" >&6; }
ca9f4b81 11230else
5213506e
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
ca9f4b81
AO
11233fi
11234
5213506e 11235
2693c0b0
PB
11236 fi
11237 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11239set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11241$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11242if ${ac_cv_prog_RANLIB+:} false; then :
5213506e 11243 $as_echo_n "(cached) " >&6
ca9f4b81 11244else
2693c0b0
PB
11245 if test -n "$RANLIB"; then
11246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 11247else
1c710c3c
DJ
11248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249for as_dir in $PATH
11250do
11251 IFS=$as_save_IFS
11252 test -z "$as_dir" && as_dir=.
5213506e 11253 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11255 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11257 break 2
11258 fi
11259done
5213506e
RW
11260 done
11261IFS=$as_save_IFS
1c710c3c 11262
ca9f4b81
AO
11263fi
11264fi
1c710c3c 11265RANLIB=$ac_cv_prog_RANLIB
2693c0b0 11266if test -n "$RANLIB"; then
5213506e
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11268$as_echo "$RANLIB" >&6; }
ca9f4b81 11269else
5213506e
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
ca9f4b81 11272fi
1c710c3c 11273
5213506e 11274
ca9f4b81 11275 fi
2693c0b0
PB
11276 test -n "$ac_cv_prog_RANLIB" && break
11277done
11278
11279if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 11280 RANLIB="true"
ca9f4b81
AO
11281fi
11282
278a7a38
AO
11283
11284
11285if test -n "$STRIP"; then
11286 ac_cv_prog_STRIP=$STRIP
11287elif test -n "$ac_cv_prog_STRIP"; then
11288 STRIP=$ac_cv_prog_STRIP
11289fi
11290
11291if test -n "$ac_cv_prog_STRIP"; then
11292 for ncn_progname in strip; do
11293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11294set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11297if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11298 $as_echo_n "(cached) " >&6
278a7a38
AO
11299else
11300 if test -n "$STRIP"; then
11301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11302else
11303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304for as_dir in $PATH
11305do
11306 IFS=$as_save_IFS
11307 test -z "$as_dir" && as_dir=.
5213506e 11308 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11310 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11312 break 2
11313 fi
11314done
5213506e
RW
11315 done
11316IFS=$as_save_IFS
278a7a38
AO
11317
11318fi
11319fi
11320STRIP=$ac_cv_prog_STRIP
11321if test -n "$STRIP"; then
5213506e
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11323$as_echo "$STRIP" >&6; }
278a7a38 11324else
5213506e
RW
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326$as_echo "no" >&6; }
278a7a38
AO
11327fi
11328
5213506e 11329
278a7a38
AO
11330 done
11331fi
11332
11333for ncn_progname in strip; do
2abefe3d
PB
11334 if test -n "$ncn_tool_prefix"; then
11335 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11336set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11339if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11340 $as_echo_n "(cached) " >&6
2abefe3d
PB
11341else
11342 if test -n "$STRIP"; then
11343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11344else
1c710c3c
DJ
11345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $PATH
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
5213506e 11350 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11352 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11354 break 2
11355 fi
11356done
5213506e
RW
11357 done
11358IFS=$as_save_IFS
1c710c3c 11359
2abefe3d
PB
11360fi
11361fi
1c710c3c 11362STRIP=$ac_cv_prog_STRIP
2abefe3d 11363if test -n "$STRIP"; then
5213506e
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11365$as_echo "$STRIP" >&6; }
2abefe3d 11366else
5213506e
RW
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368$as_echo "no" >&6; }
2abefe3d
PB
11369fi
11370
5213506e 11371
2abefe3d
PB
11372 fi
11373 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11375set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11378if ${ac_cv_prog_STRIP+:} false; then :
5213506e 11379 $as_echo_n "(cached) " >&6
2abefe3d
PB
11380else
11381 if test -n "$STRIP"; then
11382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11383else
1c710c3c
DJ
11384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11385for as_dir in $PATH
11386do
11387 IFS=$as_save_IFS
11388 test -z "$as_dir" && as_dir=.
5213506e 11389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11391 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 11392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11393 break 2
11394 fi
11395done
5213506e
RW
11396 done
11397IFS=$as_save_IFS
1c710c3c 11398
2abefe3d
PB
11399fi
11400fi
1c710c3c 11401STRIP=$ac_cv_prog_STRIP
2abefe3d 11402if test -n "$STRIP"; then
5213506e
RW
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11404$as_echo "$STRIP" >&6; }
2abefe3d 11405else
5213506e
RW
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407$as_echo "no" >&6; }
2abefe3d 11408fi
1c710c3c 11409
5213506e 11410
2abefe3d
PB
11411 fi
11412 test -n "$ac_cv_prog_STRIP" && break
11413done
11414
11415if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 11416 STRIP="true"
2abefe3d
PB
11417fi
11418
278a7a38
AO
11419
11420
11421if test -n "$WINDRES"; then
11422 ac_cv_prog_WINDRES=$WINDRES
11423elif test -n "$ac_cv_prog_WINDRES"; then
11424 WINDRES=$ac_cv_prog_WINDRES
11425fi
11426
11427if test -n "$ac_cv_prog_WINDRES"; then
11428 for ncn_progname in windres; do
11429 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11430set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11433if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11434 $as_echo_n "(cached) " >&6
278a7a38
AO
11435else
11436 if test -n "$WINDRES"; then
11437 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
5213506e 11444 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11446 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11448 break 2
11449 fi
11450done
5213506e
RW
11451 done
11452IFS=$as_save_IFS
278a7a38
AO
11453
11454fi
11455fi
11456WINDRES=$ac_cv_prog_WINDRES
11457if test -n "$WINDRES"; then
5213506e
RW
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11459$as_echo "$WINDRES" >&6; }
278a7a38 11460else
5213506e
RW
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462$as_echo "no" >&6; }
278a7a38
AO
11463fi
11464
5213506e 11465
278a7a38
AO
11466 done
11467fi
11468
11469for ncn_progname in windres; do
2693c0b0
PB
11470 if test -n "$ncn_tool_prefix"; then
11471 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11472set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11475if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11476 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11477else
11478 if test -n "$WINDRES"; then
11479 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11480else
1c710c3c
DJ
11481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482for as_dir in $PATH
11483do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
5213506e 11486 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11488 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 11489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11490 break 2
11491 fi
11492done
5213506e
RW
11493 done
11494IFS=$as_save_IFS
1c710c3c 11495
ca9f4b81
AO
11496fi
11497fi
1c710c3c 11498WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 11499if test -n "$WINDRES"; then
5213506e
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11501$as_echo "$WINDRES" >&6; }
ca9f4b81 11502else
5213506e
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504$as_echo "no" >&6; }
ca9f4b81
AO
11505fi
11506
5213506e 11507
2693c0b0
PB
11508 fi
11509 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11511set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11514if ${ac_cv_prog_WINDRES+:} false; then :
5213506e 11515 $as_echo_n "(cached) " >&6
ca9f4b81 11516else
2693c0b0
PB
11517 if test -n "$WINDRES"; then
11518 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 11519else
1c710c3c
DJ
11520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521for as_dir in $PATH
11522do
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
5213506e 11525 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11527 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 11528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11529 break 2
11530 fi
11531done
5213506e
RW
11532 done
11533IFS=$as_save_IFS
1c710c3c 11534
ca9f4b81
AO
11535fi
11536fi
1c710c3c 11537WINDRES=$ac_cv_prog_WINDRES
2693c0b0 11538if test -n "$WINDRES"; then
5213506e
RW
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11540$as_echo "$WINDRES" >&6; }
ca9f4b81 11541else
5213506e
RW
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
ca9f4b81 11544fi
1c710c3c 11545
5213506e 11546
2693c0b0
PB
11547 fi
11548 test -n "$ac_cv_prog_WINDRES" && break
11549done
11550
11551if test -z "$ac_cv_prog_WINDRES" ; then
11552 set dummy windres
11553 if test $build = $host ; then
11554 WINDRES="$2"
ca9f4b81 11555 else
2693c0b0 11556 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 11557 fi
ca9f4b81
AO
11558fi
11559
278a7a38
AO
11560
11561
901119ae
KT
11562if test -n "$WINDMC"; then
11563 ac_cv_prog_WINDMC=$WINDMC
11564elif test -n "$ac_cv_prog_WINDMC"; then
11565 WINDMC=$ac_cv_prog_WINDMC
11566fi
11567
11568if test -n "$ac_cv_prog_WINDMC"; then
11569 for ncn_progname in windmc; do
11570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11574if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11575 $as_echo_n "(cached) " >&6
901119ae
KT
11576else
11577 if test -n "$WINDMC"; then
11578 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11579else
11580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581for as_dir in $PATH
11582do
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
5213506e 11585 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11587 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11589 break 2
11590 fi
11591done
5213506e
RW
11592 done
11593IFS=$as_save_IFS
901119ae
KT
11594
11595fi
11596fi
11597WINDMC=$ac_cv_prog_WINDMC
11598if test -n "$WINDMC"; then
5213506e
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11600$as_echo "$WINDMC" >&6; }
901119ae 11601else
5213506e
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
901119ae
KT
11604fi
11605
5213506e 11606
901119ae
KT
11607 done
11608fi
11609
11610for ncn_progname in windmc; do
11611 if test -n "$ncn_tool_prefix"; then
11612 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11613set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11615$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11616if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11617 $as_echo_n "(cached) " >&6
901119ae
KT
11618else
11619 if test -n "$WINDMC"; then
11620 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11621else
11622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11623for as_dir in $PATH
11624do
11625 IFS=$as_save_IFS
11626 test -z "$as_dir" && as_dir=.
5213506e 11627 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11629 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 11630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11631 break 2
11632 fi
11633done
5213506e
RW
11634 done
11635IFS=$as_save_IFS
901119ae
KT
11636
11637fi
11638fi
11639WINDMC=$ac_cv_prog_WINDMC
11640if test -n "$WINDMC"; then
5213506e
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11642$as_echo "$WINDMC" >&6; }
901119ae 11643else
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
901119ae
KT
11646fi
11647
5213506e 11648
901119ae
KT
11649 fi
11650 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11652set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11654$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11655if ${ac_cv_prog_WINDMC+:} false; then :
5213506e 11656 $as_echo_n "(cached) " >&6
901119ae
KT
11657else
11658 if test -n "$WINDMC"; then
11659 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11660else
11661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11662for as_dir in $PATH
11663do
11664 IFS=$as_save_IFS
11665 test -z "$as_dir" && as_dir=.
5213506e 11666 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 11668 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 11669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
11670 break 2
11671 fi
11672done
5213506e
RW
11673 done
11674IFS=$as_save_IFS
901119ae
KT
11675
11676fi
11677fi
11678WINDMC=$ac_cv_prog_WINDMC
11679if test -n "$WINDMC"; then
5213506e
RW
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
11681$as_echo "$WINDMC" >&6; }
901119ae 11682else
5213506e
RW
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
901119ae
KT
11685fi
11686
5213506e 11687
901119ae
KT
11688 fi
11689 test -n "$ac_cv_prog_WINDMC" && break
11690done
11691
11692if test -z "$ac_cv_prog_WINDMC" ; then
11693 set dummy windmc
11694 if test $build = $host ; then
11695 WINDMC="$2"
11696 else
11697 WINDMC="${ncn_tool_prefix}$2"
11698 fi
11699fi
11700
11701
11702
278a7a38
AO
11703if test -n "$OBJCOPY"; then
11704 ac_cv_prog_OBJCOPY=$OBJCOPY
11705elif test -n "$ac_cv_prog_OBJCOPY"; then
11706 OBJCOPY=$ac_cv_prog_OBJCOPY
11707fi
11708
11709if test -n "$ac_cv_prog_OBJCOPY"; then
11710 for ncn_progname in objcopy; do
11711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11712set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11715if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 11716 $as_echo_n "(cached) " >&6
278a7a38
AO
11717else
11718 if test -n "$OBJCOPY"; then
11719 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11720else
11721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722for as_dir in $PATH
11723do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
5213506e 11726 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11728 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11730 break 2
11731 fi
11732done
5213506e
RW
11733 done
11734IFS=$as_save_IFS
278a7a38
AO
11735
11736fi
11737fi
11738OBJCOPY=$ac_cv_prog_OBJCOPY
11739if test -n "$OBJCOPY"; then
5213506e
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11741$as_echo "$OBJCOPY" >&6; }
278a7a38 11742else
5213506e
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744$as_echo "no" >&6; }
278a7a38
AO
11745fi
11746
5213506e 11747
278a7a38
AO
11748 done
11749fi
11750
11751for ncn_progname in objcopy; do
2693c0b0
PB
11752 if test -n "$ncn_tool_prefix"; then
11753 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11754set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11757if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 11758 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11759else
11760 if test -n "$OBJCOPY"; then
11761 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11762else
1c710c3c
DJ
11763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764for as_dir in $PATH
11765do
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
5213506e 11768 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11770 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 11771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11772 break 2
11773 fi
11774done
5213506e
RW
11775 done
11776IFS=$as_save_IFS
1c710c3c 11777
ca9f4b81
AO
11778fi
11779fi
1c710c3c 11780OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 11781if test -n "$OBJCOPY"; then
5213506e
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11783$as_echo "$OBJCOPY" >&6; }
ca9f4b81 11784else
5213506e
RW
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786$as_echo "no" >&6; }
ca9f4b81
AO
11787fi
11788
5213506e 11789
2693c0b0
PB
11790 fi
11791 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11793set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11796if ${ac_cv_prog_OBJCOPY+:} false; then :
5213506e 11797 $as_echo_n "(cached) " >&6
ca9f4b81 11798else
2693c0b0
PB
11799 if test -n "$OBJCOPY"; then
11800 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 11801else
1c710c3c
DJ
11802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803for as_dir in $PATH
11804do
11805 IFS=$as_save_IFS
11806 test -z "$as_dir" && as_dir=.
5213506e 11807 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11809 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11811 break 2
11812 fi
11813done
5213506e
RW
11814 done
11815IFS=$as_save_IFS
1c710c3c 11816
ca9f4b81
AO
11817fi
11818fi
1c710c3c 11819OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 11820if test -n "$OBJCOPY"; then
5213506e
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
11822$as_echo "$OBJCOPY" >&6; }
ca9f4b81 11823else
5213506e
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
ca9f4b81 11826fi
1c710c3c 11827
5213506e 11828
2693c0b0
PB
11829 fi
11830 test -n "$ac_cv_prog_OBJCOPY" && break
11831done
11832
11833if test -z "$ac_cv_prog_OBJCOPY" ; then
11834 set dummy objcopy
11835 if test $build = $host ; then
11836 OBJCOPY="$2"
ca9f4b81 11837 else
2693c0b0 11838 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 11839 fi
ca9f4b81
AO
11840fi
11841
278a7a38
AO
11842
11843
11844if test -n "$OBJDUMP"; then
11845 ac_cv_prog_OBJDUMP=$OBJDUMP
11846elif test -n "$ac_cv_prog_OBJDUMP"; then
11847 OBJDUMP=$ac_cv_prog_OBJDUMP
11848fi
11849
11850if test -n "$ac_cv_prog_OBJDUMP"; then
11851 for ncn_progname in objdump; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11856if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 11857 $as_echo_n "(cached) " >&6
278a7a38
AO
11858else
11859 if test -n "$OBJDUMP"; then
11860 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
5213506e 11867 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 11869 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11871 break 2
11872 fi
11873done
5213506e
RW
11874 done
11875IFS=$as_save_IFS
278a7a38
AO
11876
11877fi
11878fi
11879OBJDUMP=$ac_cv_prog_OBJDUMP
11880if test -n "$OBJDUMP"; then
5213506e
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11882$as_echo "$OBJDUMP" >&6; }
278a7a38 11883else
5213506e
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
278a7a38
AO
11886fi
11887
5213506e 11888
278a7a38
AO
11889 done
11890fi
11891
11892for ncn_progname in objdump; do
2693c0b0
PB
11893 if test -n "$ncn_tool_prefix"; then
11894 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11895set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11898if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 11899 $as_echo_n "(cached) " >&6
ca9f4b81
AO
11900else
11901 if test -n "$OBJDUMP"; then
11902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11903else
1c710c3c
DJ
11904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905for as_dir in $PATH
11906do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
5213506e 11909 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11911 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11913 break 2
11914 fi
11915done
5213506e
RW
11916 done
11917IFS=$as_save_IFS
1c710c3c 11918
ca9f4b81
AO
11919fi
11920fi
1c710c3c 11921OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 11922if test -n "$OBJDUMP"; then
5213506e
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11924$as_echo "$OBJDUMP" >&6; }
ca9f4b81 11925else
5213506e
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927$as_echo "no" >&6; }
ca9f4b81
AO
11928fi
11929
5213506e 11930
2693c0b0
PB
11931 fi
11932 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
11933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11934set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11936$as_echo_n "checking for $ac_word... " >&6; }
22e05272 11937if ${ac_cv_prog_OBJDUMP+:} false; then :
5213506e 11938 $as_echo_n "(cached) " >&6
ca9f4b81 11939else
2693c0b0
PB
11940 if test -n "$OBJDUMP"; then
11941 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 11942else
1c710c3c
DJ
11943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944for as_dir in $PATH
11945do
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
5213506e 11948 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 11949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 11950 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 11951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11952 break 2
11953 fi
11954done
5213506e
RW
11955 done
11956IFS=$as_save_IFS
1c710c3c 11957
ca9f4b81
AO
11958fi
11959fi
1c710c3c 11960OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 11961if test -n "$OBJDUMP"; then
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11963$as_echo "$OBJDUMP" >&6; }
ca9f4b81 11964else
5213506e
RW
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11966$as_echo "no" >&6; }
ca9f4b81 11967fi
1c710c3c 11968
5213506e 11969
2693c0b0
PB
11970 fi
11971 test -n "$ac_cv_prog_OBJDUMP" && break
11972done
11973
11974if test -z "$ac_cv_prog_OBJDUMP" ; then
11975 set dummy objdump
11976 if test $build = $host ; then
11977 OBJDUMP="$2"
ca9f4b81 11978 else
2693c0b0 11979 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 11980 fi
ca9f4b81
AO
11981fi
11982
671aa708
NN
11983
11984
e4a9a572
IS
11985if test -n "$OTOOL"; then
11986 ac_cv_prog_OTOOL=$OTOOL
11987elif test -n "$ac_cv_prog_OTOOL"; then
11988 OTOOL=$ac_cv_prog_OTOOL
11989fi
11990
11991if test -n "$ac_cv_prog_OTOOL"; then
11992 for ncn_progname in otool; do
11993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11994set dummy ${ncn_progname}; ac_word=$2
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
11997if ${ac_cv_prog_OTOOL+:} false; then :
11998 $as_echo_n "(cached) " >&6
11999else
12000 if test -n "$OTOOL"; then
12001 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12002else
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010 ac_cv_prog_OTOOL="${ncn_progname}"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012 break 2
12013 fi
12014done
12015 done
12016IFS=$as_save_IFS
12017
12018fi
12019fi
12020OTOOL=$ac_cv_prog_OTOOL
12021if test -n "$OTOOL"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12023$as_echo "$OTOOL" >&6; }
12024else
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027fi
12028
12029
12030 done
12031fi
12032
12033for ncn_progname in otool; do
12034 if test -n "$ncn_tool_prefix"; then
12035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12036set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038$as_echo_n "checking for $ac_word... " >&6; }
12039if ${ac_cv_prog_OTOOL+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041else
12042 if test -n "$OTOOL"; then
12043 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12044else
12045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056done
12057 done
12058IFS=$as_save_IFS
12059
12060fi
12061fi
12062OTOOL=$ac_cv_prog_OTOOL
12063if test -n "$OTOOL"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12065$as_echo "$OTOOL" >&6; }
12066else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; }
12069fi
12070
12071
12072 fi
12073 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12075set dummy ${ncn_progname}; ac_word=$2
12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12077$as_echo_n "checking for $ac_word... " >&6; }
12078if ${ac_cv_prog_OTOOL+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080else
12081 if test -n "$OTOOL"; then
12082 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12083else
12084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085for as_dir in $PATH
12086do
12087 IFS=$as_save_IFS
12088 test -z "$as_dir" && as_dir=.
12089 for ac_exec_ext in '' $ac_executable_extensions; do
12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091 ac_cv_prog_OTOOL="${ncn_progname}"
12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093 break 2
12094 fi
12095done
12096 done
12097IFS=$as_save_IFS
12098
12099fi
12100fi
12101OTOOL=$ac_cv_prog_OTOOL
12102if test -n "$OTOOL"; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12104$as_echo "$OTOOL" >&6; }
12105else
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107$as_echo "no" >&6; }
12108fi
12109
12110
12111 fi
12112 test -n "$ac_cv_prog_OTOOL" && break
12113done
12114
12115if test -z "$ac_cv_prog_OTOOL" ; then
12116 set dummy otool
12117 if test $build = $host ; then
12118 OTOOL="$2"
12119 else
12120 OTOOL="${ncn_tool_prefix}$2"
12121 fi
12122fi
12123
12124
12125
e7a82751
RM
12126if test -n "$READELF"; then
12127 ac_cv_prog_READELF=$READELF
12128elif test -n "$ac_cv_prog_READELF"; then
12129 READELF=$ac_cv_prog_READELF
12130fi
12131
12132if test -n "$ac_cv_prog_READELF"; then
12133 for ncn_progname in readelf; do
12134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12135set dummy ${ncn_progname}; ac_word=$2
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12138if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12139 $as_echo_n "(cached) " >&6
12140else
12141 if test -n "$READELF"; then
12142 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12143else
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12151 ac_cv_prog_READELF="${ncn_progname}"
12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 break 2
12154 fi
12155done
12156 done
12157IFS=$as_save_IFS
12158
12159fi
12160fi
12161READELF=$ac_cv_prog_READELF
12162if test -n "$READELF"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12164$as_echo "$READELF" >&6; }
12165else
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
12168fi
12169
12170
12171 done
12172fi
12173
12174for ncn_progname in readelf; do
12175 if test -n "$ncn_tool_prefix"; then
12176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12177set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12180if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12181 $as_echo_n "(cached) " >&6
12182else
12183 if test -n "$READELF"; then
12184 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12185else
12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12193 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12196 fi
12197done
12198 done
12199IFS=$as_save_IFS
12200
12201fi
12202fi
12203READELF=$ac_cv_prog_READELF
12204if test -n "$READELF"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12206$as_echo "$READELF" >&6; }
12207else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
12210fi
12211
12212
12213 fi
12214 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12216set dummy ${ncn_progname}; ac_word=$2
12217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12219if ${ac_cv_prog_READELF+:} false; then :
e7a82751
RM
12220 $as_echo_n "(cached) " >&6
12221else
12222 if test -n "$READELF"; then
12223 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12224else
12225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226for as_dir in $PATH
12227do
12228 IFS=$as_save_IFS
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
12232 ac_cv_prog_READELF="${ncn_progname}"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12234 break 2
12235 fi
12236done
12237 done
12238IFS=$as_save_IFS
12239
12240fi
12241fi
12242READELF=$ac_cv_prog_READELF
12243if test -n "$READELF"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12245$as_echo "$READELF" >&6; }
12246else
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248$as_echo "no" >&6; }
12249fi
12250
12251
12252 fi
12253 test -n "$ac_cv_prog_READELF" && break
12254done
12255
12256if test -z "$ac_cv_prog_READELF" ; then
12257 set dummy readelf
12258 if test $build = $host ; then
12259 READELF="$2"
12260 else
12261 READELF="${ncn_tool_prefix}$2"
12262 fi
12263fi
12264
12265
12266
671aa708
NN
12267
12268
12269
2abefe3d 12270# Target tools.
1c710c3c 12271
5213506e
RW
12272# Check whether --with-build-time-tools was given.
12273if test "${with_build_time_tools+set}" = set; then :
12274 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
12275 x/*) ;;
12276 *)
12277 with_build_time_tools=
5213506e
RW
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12279$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
12280 ;;
12281 esac
ca9f4b81 12282else
e8b05380 12283 with_build_time_tools=
5213506e
RW
12284fi
12285
ca9f4b81 12286
278a7a38
AO
12287
12288
12289if test -n "$CC_FOR_TARGET"; then
12290 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12291elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12292 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12293fi
12294
12295if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12296 for ncn_progname in cc gcc; do
12297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12298set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12300$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12301if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12302 $as_echo_n "(cached) " >&6
278a7a38
AO
12303else
12304 if test -n "$CC_FOR_TARGET"; then
12305 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12306else
12307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
5213506e 12312 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12314 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12316 break 2
12317 fi
12318done
5213506e
RW
12319 done
12320IFS=$as_save_IFS
278a7a38
AO
12321
12322fi
12323fi
12324CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12325if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12327$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 12328else
5213506e
RW
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12330$as_echo "no" >&6; }
278a7a38
AO
12331fi
12332
5213506e 12333
278a7a38
AO
12334 done
12335fi
12336
12337if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12338 for ncn_progname in cc gcc; do
5213506e
RW
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12340$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12341 if test -x $with_build_time_tools/${ncn_progname}; then
12342 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12344$as_echo "yes" >&6; }
72a7ab82 12345 break
e8b05380 12346 else
5213506e
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
72a7ab82
AP
12349 fi
12350 done
4de997d1
PB
12351fi
12352
e8b05380
PB
12353if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12354 for ncn_progname in cc gcc; do
12355 if test -n "$ncn_target_tool_prefix"; then
12356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12357set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12360if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12361 $as_echo_n "(cached) " >&6
4de997d1
PB
12362else
12363 if test -n "$CC_FOR_TARGET"; then
12364 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12365else
1c710c3c
DJ
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
5213506e 12371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12373 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12375 break 2
12376 fi
12377done
5213506e
RW
12378 done
12379IFS=$as_save_IFS
1c710c3c 12380
4de997d1
PB
12381fi
12382fi
1c710c3c 12383CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 12384if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12386$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12387else
5213506e
RW
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
4de997d1
PB
12390fi
12391
5213506e 12392
e8b05380
PB
12393 fi
12394 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12398$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12399if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
5213506e 12400 $as_echo_n "(cached) " >&6
4de997d1 12401else
2693c0b0
PB
12402 if test -n "$CC_FOR_TARGET"; then
12403 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 12404else
1c710c3c
DJ
12405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406for as_dir in $PATH
12407do
12408 IFS=$as_save_IFS
12409 test -z "$as_dir" && as_dir=.
5213506e 12410 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12412 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 12413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12414 break 2
12415 fi
12416done
5213506e
RW
12417 done
12418IFS=$as_save_IFS
1c710c3c 12419
4de997d1
PB
12420fi
12421fi
1c710c3c 12422CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 12423if test -n "$CC_FOR_TARGET"; then
5213506e
RW
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12425$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 12426else
5213506e
RW
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12428$as_echo "no" >&6; }
4de997d1 12429fi
1c710c3c 12430
5213506e 12431
e8b05380
PB
12432 fi
12433 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12434 done
12435fi
1c710c3c 12436
2693c0b0
PB
12437if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12438 set dummy cc gcc
12439 if test $build = $target ; then
12440 CC_FOR_TARGET="$2"
4de997d1 12441 else
2693c0b0 12442 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12443 fi
1c00b503
PB
12444else
12445 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
12446fi
12447
278a7a38
AO
12448
12449
12450if test -n "$CXX_FOR_TARGET"; then
12451 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12452elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12453 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12454fi
12455
12456if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12457 for ncn_progname in c++ g++ cxx gxx; do
12458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12459set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12462if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12463 $as_echo_n "(cached) " >&6
278a7a38
AO
12464else
12465 if test -n "$CXX_FOR_TARGET"; then
12466 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12467else
12468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469for as_dir in $PATH
12470do
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
5213506e 12473 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12475 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12477 break 2
12478 fi
12479done
5213506e
RW
12480 done
12481IFS=$as_save_IFS
278a7a38
AO
12482
12483fi
12484fi
12485CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12486if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12488$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 12489else
5213506e
RW
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491$as_echo "no" >&6; }
278a7a38
AO
12492fi
12493
5213506e 12494
278a7a38
AO
12495 done
12496fi
12497
12498if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12499 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12501$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12502 if test -x $with_build_time_tools/${ncn_progname}; then
12503 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12505$as_echo "yes" >&6; }
e8b05380
PB
12506 break
12507 else
5213506e
RW
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
e8b05380
PB
12510 fi
12511 done
12512fi
12513
12514if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12515 for ncn_progname in c++ g++ cxx gxx; do
12516 if test -n "$ncn_target_tool_prefix"; then
12517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12518set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12521if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12522 $as_echo_n "(cached) " >&6
4de997d1
PB
12523else
12524 if test -n "$CXX_FOR_TARGET"; then
12525 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12526else
1c710c3c
DJ
12527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528for as_dir in $PATH
12529do
12530 IFS=$as_save_IFS
12531 test -z "$as_dir" && as_dir=.
5213506e 12532 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12534 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12536 break 2
12537 fi
12538done
5213506e
RW
12539 done
12540IFS=$as_save_IFS
1c710c3c 12541
4de997d1
PB
12542fi
12543fi
1c710c3c 12544CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 12545if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12547$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12548else
5213506e
RW
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550$as_echo "no" >&6; }
4de997d1
PB
12551fi
12552
5213506e 12553
e8b05380
PB
12554 fi
12555 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12557set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12559$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12560if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
5213506e 12561 $as_echo_n "(cached) " >&6
4de997d1 12562else
2693c0b0
PB
12563 if test -n "$CXX_FOR_TARGET"; then
12564 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 12565else
1c710c3c
DJ
12566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567for as_dir in $PATH
12568do
12569 IFS=$as_save_IFS
12570 test -z "$as_dir" && as_dir=.
5213506e 12571 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12573 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 12574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12575 break 2
12576 fi
12577done
5213506e
RW
12578 done
12579IFS=$as_save_IFS
1c710c3c 12580
4de997d1
PB
12581fi
12582fi
1c710c3c 12583CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 12584if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
12586$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 12587else
5213506e
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589$as_echo "no" >&6; }
4de997d1 12590fi
1c710c3c 12591
5213506e 12592
e8b05380
PB
12593 fi
12594 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12595 done
12596fi
1c710c3c 12597
2693c0b0
PB
12598if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12599 set dummy c++ g++ cxx gxx
12600 if test $build = $target ; then
12601 CXX_FOR_TARGET="$2"
4de997d1 12602 else
2693c0b0 12603 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 12604 fi
1c00b503
PB
12605else
12606 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
12607fi
12608
278a7a38
AO
12609
12610
12611if test -n "$GCC_FOR_TARGET"; then
12612 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12613elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12614 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12615fi
12616
12617if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12618 for ncn_progname in gcc; do
12619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12620set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12623if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12624 $as_echo_n "(cached) " >&6
278a7a38
AO
12625else
12626 if test -n "$GCC_FOR_TARGET"; then
12627 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12628else
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
5213506e 12634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12636 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12638 break 2
12639 fi
12640done
5213506e
RW
12641 done
12642IFS=$as_save_IFS
278a7a38
AO
12643
12644fi
12645fi
12646GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12647if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12649$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 12650else
5213506e
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
278a7a38
AO
12653fi
12654
5213506e 12655
278a7a38
AO
12656 done
12657fi
12658
12659if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12660 for ncn_progname in gcc; do
5213506e
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12662$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12663 if test -x $with_build_time_tools/${ncn_progname}; then
12664 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12666$as_echo "yes" >&6; }
e8b05380
PB
12667 break
12668 else
5213506e
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
e8b05380
PB
12671 fi
12672 done
12673fi
12674
12675if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12676 for ncn_progname in gcc; do
12677 if test -n "$ncn_target_tool_prefix"; then
12678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12679set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12682if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12683 $as_echo_n "(cached) " >&6
ca9f4b81 12684else
e8b05380
PB
12685 if test -n "$GCC_FOR_TARGET"; then
12686 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 12687else
1c710c3c
DJ
12688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689for as_dir in $PATH
12690do
12691 IFS=$as_save_IFS
12692 test -z "$as_dir" && as_dir=.
5213506e 12693 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12695 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12697 break 2
12698 fi
12699done
5213506e
RW
12700 done
12701IFS=$as_save_IFS
1c710c3c 12702
ca9f4b81
AO
12703fi
12704fi
1c710c3c 12705GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 12706if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12708$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 12709else
5213506e
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
ca9f4b81
AO
12712fi
12713
5213506e 12714
e8b05380
PB
12715 fi
12716 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12718set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12721if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
5213506e 12722 $as_echo_n "(cached) " >&6
ca9f4b81 12723else
e8b05380
PB
12724 if test -n "$GCC_FOR_TARGET"; then
12725 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 12726else
1c710c3c
DJ
12727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728for as_dir in $PATH
12729do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
5213506e 12732 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12734 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12736 break 2
12737 fi
12738done
5213506e
RW
12739 done
12740IFS=$as_save_IFS
1c710c3c 12741
ca9f4b81
AO
12742fi
12743fi
1c710c3c 12744GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 12745if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
12747$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 12748else
5213506e
RW
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
ca9f4b81 12751fi
1c710c3c 12752
5213506e 12753
e8b05380
PB
12754 fi
12755 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12756 done
12757fi
1c710c3c 12758
e8b05380
PB
12759if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12760 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
12761else
12762 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
12763fi
12764
278a7a38
AO
12765
12766
278a7a38
AO
12767if test -n "$GFORTRAN_FOR_TARGET"; then
12768 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12769elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12770 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
12771fi
12772
278a7a38
AO
12773if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12774 for ncn_progname in gfortran; do
12775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 12776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12779if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 12780 $as_echo_n "(cached) " >&6
e8b05380 12781else
278a7a38
AO
12782 if test -n "$GFORTRAN_FOR_TARGET"; then
12783 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 12784else
1c710c3c
DJ
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
5213506e 12790 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 12792 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12794 break 2
12795 fi
12796done
5213506e
RW
12797 done
12798IFS=$as_save_IFS
1c710c3c 12799
e8b05380
PB
12800fi
12801fi
278a7a38
AO
12802GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12803if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12805$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 12806else
5213506e
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
e8b05380 12809fi
1c710c3c 12810
5213506e 12811
e8b05380
PB
12812 done
12813fi
1c710c3c 12814
278a7a38 12815if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12816 for ncn_progname in gfortran; do
5213506e
RW
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12819 if test -x $with_build_time_tools/${ncn_progname}; then
12820 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822$as_echo "yes" >&6; }
e8b05380
PB
12823 break
12824 else
5213506e
RW
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12826$as_echo "no" >&6; }
e8b05380
PB
12827 fi
12828 done
12829fi
12830
12831if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12832 for ncn_progname in gfortran; do
12833 if test -n "$ncn_target_tool_prefix"; then
12834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12838if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 12839 $as_echo_n "(cached) " >&6
e8b05380
PB
12840else
12841 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
12842 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12843else
12844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847 IFS=$as_save_IFS
12848 test -z "$as_dir" && as_dir=.
5213506e 12849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12851 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12853 break 2
12854 fi
12855done
5213506e
RW
12856 done
12857IFS=$as_save_IFS
1c710c3c 12858
e8b05380
PB
12859fi
12860fi
1c710c3c 12861GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 12862if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12864$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 12865else
5213506e
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867$as_echo "no" >&6; }
e8b05380
PB
12868fi
12869
5213506e 12870
e8b05380
PB
12871 fi
12872 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
12873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12874set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12877if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
5213506e 12878 $as_echo_n "(cached) " >&6
e8b05380
PB
12879else
12880 if test -n "$GFORTRAN_FOR_TARGET"; then
12881 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12882else
1c710c3c
DJ
12883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884for as_dir in $PATH
12885do
12886 IFS=$as_save_IFS
12887 test -z "$as_dir" && as_dir=.
5213506e 12888 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 12890 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12892 break 2
12893 fi
12894done
5213506e
RW
12895 done
12896IFS=$as_save_IFS
1c710c3c 12897
e8b05380
PB
12898fi
12899fi
1c710c3c 12900GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 12901if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
12903$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 12904else
5213506e
RW
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906$as_echo "no" >&6; }
e8b05380 12907fi
1c710c3c 12908
5213506e 12909
e8b05380
PB
12910 fi
12911 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
12912 done
12913fi
1c710c3c 12914
e8b05380
PB
12915if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
12916 set dummy gfortran
2693c0b0 12917 if test $build = $target ; then
e8b05380 12918 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 12919 else
e8b05380
PB
12920 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
12921 fi
1c00b503
PB
12922else
12923 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
12924fi
12925
12926
12927
632e2a07
ILT
12928if test -n "$GOC_FOR_TARGET"; then
12929 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
12930elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12931 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12932fi
12933
12934if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
12935 for ncn_progname in gccgo; do
12936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12937set dummy ${ncn_progname}; ac_word=$2
12938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12940if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
12941 $as_echo_n "(cached) " >&6
12942else
12943 if test -n "$GOC_FOR_TARGET"; then
12944 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 12952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
12953 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
12954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12956 fi
12957done
12958 done
12959IFS=$as_save_IFS
12960
12961fi
12962fi
12963GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
12964if test -n "$GOC_FOR_TARGET"; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
12966$as_echo "$GOC_FOR_TARGET" >&6; }
12967else
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969$as_echo "no" >&6; }
12970fi
12971
12972
12973 done
12974fi
12975
12976if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12977 for ncn_progname in gccgo; do
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12980 if test -x $with_build_time_tools/${ncn_progname}; then
12981 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983$as_echo "yes" >&6; }
12984 break
12985 else
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
12988 fi
12989 done
12990fi
12991
12992if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
12993 for ncn_progname in gccgo; do
12994 if test -n "$ncn_target_tool_prefix"; then
12995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
22e05272 12999if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13000 $as_echo_n "(cached) " >&6
13001else
13002 if test -n "$GOC_FOR_TARGET"; then
13003 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13012 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13015 fi
13016done
13017 done
13018IFS=$as_save_IFS
13019
13020fi
13021fi
13022GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13023if test -n "$GOC_FOR_TARGET"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13025$as_echo "$GOC_FOR_TARGET" >&6; }
13026else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
13029fi
13030
13031
13032 fi
13033 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13035set dummy ${ncn_progname}; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13038if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
632e2a07
ILT
13039 $as_echo_n "(cached) " >&6
13040else
13041 if test -n "$GOC_FOR_TARGET"; then
13042 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13043else
13044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $PATH
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
632e2a07
ILT
13051 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13053 break 2
13054 fi
13055done
13056 done
13057IFS=$as_save_IFS
13058
13059fi
13060fi
13061GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13062if test -n "$GOC_FOR_TARGET"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13064$as_echo "$GOC_FOR_TARGET" >&6; }
13065else
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067$as_echo "no" >&6; }
13068fi
13069
13070
13071 fi
13072 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13073 done
13074fi
13075
13076if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13077 set dummy gccgo
13078 if test $build = $target ; then
13079 GOC_FOR_TARGET="$2"
13080 else
13081 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13082 fi
13083else
13084 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13085fi
13086
13087
13088
b4c522fa
IB
13089if test -n "$GDC_FOR_TARGET"; then
13090 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13091elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13092 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13093fi
13094
13095if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13096 for ncn_progname in gdc; do
13097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13098set dummy ${ncn_progname}; ac_word=$2
13099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13100$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13101if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13102 $as_echo_n "(cached) " >&6
13103else
13104 if test -n "$GDC_FOR_TARGET"; then
13105 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13106else
13107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108for as_dir in $PATH
13109do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13114 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13116 break 2
13117 fi
13118done
13119 done
13120IFS=$as_save_IFS
13121
13122fi
13123fi
13124GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13125if test -n "$GDC_FOR_TARGET"; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13127$as_echo "$GDC_FOR_TARGET" >&6; }
13128else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
13131fi
13132
13133
13134 done
13135fi
13136
13137if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13138 for ncn_progname in gdc; do
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13140$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13141 if test -x $with_build_time_tools/${ncn_progname}; then
13142 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13144$as_echo "yes" >&6; }
13145 break
13146 else
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13148$as_echo "no" >&6; }
13149 fi
13150 done
13151fi
13152
13153if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13154 for ncn_progname in gdc; do
13155 if test -n "$ncn_target_tool_prefix"; then
13156 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13157set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13160if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13161 $as_echo_n "(cached) " >&6
13162else
13163 if test -n "$GDC_FOR_TARGET"; then
13164 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13165else
13166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167for as_dir in $PATH
13168do
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13173 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13176 fi
13177done
13178 done
13179IFS=$as_save_IFS
13180
13181fi
13182fi
13183GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13184if test -n "$GDC_FOR_TARGET"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13186$as_echo "$GDC_FOR_TARGET" >&6; }
13187else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189$as_echo "no" >&6; }
13190fi
13191
13192
13193 fi
13194 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13195 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13196set dummy ${ncn_progname}; ac_word=$2
13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13199if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
b4c522fa
IB
13200 $as_echo_n "(cached) " >&6
13201else
13202 if test -n "$GDC_FOR_TARGET"; then
13203 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13204else
13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b4c522fa
IB
13212 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216done
13217 done
13218IFS=$as_save_IFS
13219
13220fi
13221fi
13222GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13223if test -n "$GDC_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13225$as_echo "$GDC_FOR_TARGET" >&6; }
13226else
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228$as_echo "no" >&6; }
13229fi
13230
13231
13232 fi
13233 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13234 done
13235fi
13236
13237if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13238 set dummy gdc
13239 if test $build = $target ; then
13240 GDC_FOR_TARGET="$2"
13241 else
13242 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13243 fi
13244else
13245 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13246fi
13247
13248
13249
e8b05380
PB
13250cat > conftest.c << \EOF
13251#ifdef __GNUC__
13252 gcc_yay;
13253#endif
13254EOF
13255if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13256 have_gcc_for_target=yes
13257else
13258 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13259 have_gcc_for_target=no
13260fi
13261rm conftest.c
13262
13263
13264
13265
13266if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13267 if test -n "$with_build_time_tools"; then
5213506e
RW
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13269$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13270 if test -x $with_build_time_tools/ar; then
13271 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13272 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13274$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 13275 else
5213506e
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
d1f8db0c 13278 fi
e8b05380
PB
13279 elif test $build != $host && test $have_gcc_for_target = yes; then
13280 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
13281 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13282 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
13283 fi
13284fi
3e19841a 13285if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13286 # Extract the first word of "ar", so it can be a program name with args.
13287set dummy ar; ac_word=$2
5213506e
RW
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13289$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13290if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
5213506e 13291 $as_echo_n "(cached) " >&6
e8b05380 13292else
1c710c3c
DJ
13293 case $AR_FOR_TARGET in
13294 [\\/]* | ?:[\\/]*)
e8b05380
PB
13295 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13296 ;;
e8b05380 13297 *)
1c710c3c
DJ
13298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $gcc_cv_tool_dirs
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
5213506e 13303 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13305 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13307 break 2
13308 fi
13309done
5213506e
RW
13310 done
13311IFS=$as_save_IFS
1c710c3c 13312
e8b05380
PB
13313 ;;
13314esac
13315fi
1c710c3c 13316AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 13317if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13319$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13320else
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
4de997d1
PB
13323fi
13324
5213506e 13325
e8b05380
PB
13326fi
13327if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
13328
13329
13330if test -n "$AR_FOR_TARGET"; then
13331 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13332elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13333 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13334fi
13335
13336if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13337 for ncn_progname in ar; do
13338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13339set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13341$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13342if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13343 $as_echo_n "(cached) " >&6
278a7a38
AO
13344else
13345 if test -n "$AR_FOR_TARGET"; then
13346 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13347else
13348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349for as_dir in $PATH
13350do
13351 IFS=$as_save_IFS
13352 test -z "$as_dir" && as_dir=.
5213506e 13353 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13355 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13357 break 2
13358 fi
13359done
5213506e
RW
13360 done
13361IFS=$as_save_IFS
278a7a38
AO
13362
13363fi
13364fi
13365AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13366if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13368$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 13369else
5213506e
RW
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13371$as_echo "no" >&6; }
278a7a38
AO
13372fi
13373
5213506e 13374
278a7a38
AO
13375 done
13376fi
13377
13378if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13379 for ncn_progname in ar; do
5213506e
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13381$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13382 if test -x $with_build_time_tools/${ncn_progname}; then
13383 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385$as_echo "yes" >&6; }
e8b05380
PB
13386 break
13387 else
5213506e
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
e8b05380
PB
13390 fi
13391 done
13392fi
13393
13394if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13395 for ncn_progname in ar; do
13396 if test -n "$ncn_target_tool_prefix"; then
13397 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13398set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13401if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13402 $as_echo_n "(cached) " >&6
4de997d1 13403else
e8b05380
PB
13404 if test -n "$AR_FOR_TARGET"; then
13405 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 13406else
1c710c3c
DJ
13407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408for as_dir in $PATH
13409do
13410 IFS=$as_save_IFS
13411 test -z "$as_dir" && as_dir=.
5213506e 13412 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13414 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13416 break 2
13417 fi
13418done
5213506e
RW
13419 done
13420IFS=$as_save_IFS
1c710c3c 13421
4de997d1
PB
13422fi
13423fi
1c710c3c 13424AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13425if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13427$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 13428else
5213506e
RW
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430$as_echo "no" >&6; }
4de997d1
PB
13431fi
13432
5213506e 13433
e8b05380
PB
13434 fi
13435 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13436 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13437set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13439$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13440if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
5213506e 13441 $as_echo_n "(cached) " >&6
e8b05380
PB
13442else
13443 if test -n "$AR_FOR_TARGET"; then
13444 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13445else
1c710c3c
DJ
13446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13447for as_dir in $PATH
13448do
13449 IFS=$as_save_IFS
13450 test -z "$as_dir" && as_dir=.
5213506e 13451 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13453 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 13454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13455 break 2
13456 fi
13457done
5213506e
RW
13458 done
13459IFS=$as_save_IFS
1c710c3c 13460
e8b05380
PB
13461fi
13462fi
1c710c3c 13463AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 13464if test -n "$AR_FOR_TARGET"; then
5213506e
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13466$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 13467else
5213506e
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469$as_echo "no" >&6; }
e8b05380 13470fi
1c710c3c 13471
5213506e 13472
e8b05380
PB
13473 fi
13474 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13475 done
13476fi
1c710c3c 13477
e8b05380
PB
13478if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13479 set dummy ar
13480 if test $build = $target ; then
13481 AR_FOR_TARGET="$2"
13482 else
13483 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 13484 fi
1c00b503
PB
13485else
13486 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
13487fi
13488
d1f8db0c
PB
13489else
13490 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
13491fi
13492
13493
13494
13495
13496if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13497 if test -n "$with_build_time_tools"; then
5213506e
RW
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
13499$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13500 if test -x $with_build_time_tools/as; then
13501 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13502 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
13504$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 13505 else
5213506e
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507$as_echo "no" >&6; }
d1f8db0c 13508 fi
e8b05380
PB
13509 elif test $build != $host && test $have_gcc_for_target = yes; then
13510 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
13511 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13512 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
13513 fi
13514fi
3e19841a 13515if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13516 # Extract the first word of "as", so it can be a program name with args.
13517set dummy as; ac_word=$2
5213506e
RW
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13519$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13520if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
5213506e 13521 $as_echo_n "(cached) " >&6
e8b05380 13522else
1c710c3c
DJ
13523 case $AS_FOR_TARGET in
13524 [\\/]* | ?:[\\/]*)
e8b05380
PB
13525 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13526 ;;
e8b05380 13527 *)
1c710c3c
DJ
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $gcc_cv_tool_dirs
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
5213506e 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
1c710c3c 13535 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13537 break 2
13538 fi
13539done
5213506e
RW
13540 done
13541IFS=$as_save_IFS
1c710c3c 13542
e8b05380
PB
13543 ;;
13544esac
13545fi
1c710c3c 13546AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 13547if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13549$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13550else
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
e8b05380
PB
13553fi
13554
5213506e 13555
e8b05380
PB
13556fi
13557if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
13558
13559
13560if test -n "$AS_FOR_TARGET"; then
13561 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13562elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13563 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13564fi
13565
13566if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13567 for ncn_progname in as; do
13568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13569set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13571$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13572if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13573 $as_echo_n "(cached) " >&6
278a7a38
AO
13574else
13575 if test -n "$AS_FOR_TARGET"; then
13576 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13577else
13578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579for as_dir in $PATH
13580do
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
5213506e 13583 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13585 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 13586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13587 break 2
13588 fi
13589done
5213506e
RW
13590 done
13591IFS=$as_save_IFS
278a7a38
AO
13592
13593fi
13594fi
13595AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13596if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13598$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 13599else
5213506e
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13601$as_echo "no" >&6; }
278a7a38
AO
13602fi
13603
5213506e 13604
278a7a38
AO
13605 done
13606fi
13607
13608if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13609 for ncn_progname in as; do
5213506e
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13611$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13612 if test -x $with_build_time_tools/${ncn_progname}; then
13613 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13615$as_echo "yes" >&6; }
e8b05380
PB
13616 break
13617 else
5213506e
RW
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13619$as_echo "no" >&6; }
e8b05380
PB
13620 fi
13621 done
13622fi
13623
13624if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13625 for ncn_progname in as; do
13626 if test -n "$ncn_target_tool_prefix"; then
13627 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13628set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13630$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13631if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13632 $as_echo_n "(cached) " >&6
e8b05380
PB
13633else
13634 if test -n "$AS_FOR_TARGET"; then
13635 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13636else
1c710c3c
DJ
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
5213506e 13642 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13644 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13646 break 2
13647 fi
13648done
5213506e
RW
13649 done
13650IFS=$as_save_IFS
1c710c3c 13651
e8b05380
PB
13652fi
13653fi
1c710c3c 13654AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 13655if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13657$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 13658else
5213506e
RW
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13660$as_echo "no" >&6; }
e8b05380
PB
13661fi
13662
5213506e 13663
e8b05380
PB
13664 fi
13665 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13666 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13667set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13669$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13670if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
5213506e 13671 $as_echo_n "(cached) " >&6
4de997d1 13672else
e8b05380
PB
13673 if test -n "$AS_FOR_TARGET"; then
13674 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 13675else
1c710c3c
DJ
13676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13677for as_dir in $PATH
13678do
13679 IFS=$as_save_IFS
13680 test -z "$as_dir" && as_dir=.
5213506e 13681 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13683 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 13684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13685 break 2
13686 fi
13687done
5213506e
RW
13688 done
13689IFS=$as_save_IFS
1c710c3c 13690
4de997d1
PB
13691fi
13692fi
1c710c3c 13693AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 13694if test -n "$AS_FOR_TARGET"; then
5213506e
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
13696$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 13697else
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13699$as_echo "no" >&6; }
4de997d1 13700fi
1c710c3c 13701
5213506e 13702
e8b05380
PB
13703 fi
13704 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13705 done
13706fi
1c710c3c 13707
e8b05380
PB
13708if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13709 set dummy as
13710 if test $build = $target ; then
13711 AS_FOR_TARGET="$2"
13712 else
13713 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 13714 fi
1c00b503
PB
13715else
13716 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 13717fi
2693c0b0 13718
d1f8db0c
PB
13719else
13720 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
13721fi
13722
e8b05380
PB
13723
13724
13725
13726if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13727 if test -n "$with_build_time_tools"; then
5213506e
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
13729$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13730 if test -x $with_build_time_tools/dlltool; then
13731 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13732 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13734$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 13735 else
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
d1f8db0c 13738 fi
e8b05380
PB
13739 elif test $build != $host && test $have_gcc_for_target = yes; then
13740 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
13741 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13742 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
13743 fi
13744fi
3e19841a 13745if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13746 # Extract the first word of "dlltool", so it can be a program name with args.
13747set dummy dlltool; ac_word=$2
5213506e
RW
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13749$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13750if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 13751 $as_echo_n "(cached) " >&6
4de997d1 13752else
1c710c3c
DJ
13753 case $DLLTOOL_FOR_TARGET in
13754 [\\/]* | ?:[\\/]*)
e8b05380
PB
13755 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13756 ;;
e8b05380 13757 *)
1c710c3c
DJ
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $gcc_cv_tool_dirs
13760do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
5213506e 13763 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13765 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13767 break 2
13768 fi
13769done
5213506e
RW
13770 done
13771IFS=$as_save_IFS
1c710c3c 13772
e8b05380
PB
13773 ;;
13774esac
4de997d1 13775fi
1c710c3c 13776DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 13777if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13779$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 13780else
5213506e
RW
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
4de997d1
PB
13783fi
13784
5213506e 13785
e8b05380
PB
13786fi
13787if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
13788
13789
13790if test -n "$DLLTOOL_FOR_TARGET"; then
13791 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13792elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13793 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13794fi
13795
13796if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13797 for ncn_progname in dlltool; do
13798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13799set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13801$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13802if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 13803 $as_echo_n "(cached) " >&6
278a7a38
AO
13804else
13805 if test -n "$DLLTOOL_FOR_TARGET"; then
13806 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13807else
13808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13809for as_dir in $PATH
13810do
13811 IFS=$as_save_IFS
13812 test -z "$as_dir" && as_dir=.
5213506e 13813 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 13815 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 13816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13817 break 2
13818 fi
13819done
5213506e
RW
13820 done
13821IFS=$as_save_IFS
278a7a38
AO
13822
13823fi
13824fi
13825DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13826if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13828$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 13829else
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13831$as_echo "no" >&6; }
278a7a38
AO
13832fi
13833
5213506e 13834
278a7a38
AO
13835 done
13836fi
13837
13838if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13839 for ncn_progname in dlltool; do
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13841$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13842 if test -x $with_build_time_tools/${ncn_progname}; then
13843 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845$as_echo "yes" >&6; }
e8b05380
PB
13846 break
13847 else
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13849$as_echo "no" >&6; }
e8b05380
PB
13850 fi
13851 done
13852fi
13853
13854if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13855 for ncn_progname in dlltool; do
13856 if test -n "$ncn_target_tool_prefix"; then
13857 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13858set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13861if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 13862 $as_echo_n "(cached) " >&6
4de997d1 13863else
e8b05380
PB
13864 if test -n "$DLLTOOL_FOR_TARGET"; then
13865 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 13866else
1c710c3c
DJ
13867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13868for as_dir in $PATH
13869do
13870 IFS=$as_save_IFS
13871 test -z "$as_dir" && as_dir=.
5213506e 13872 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13874 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13876 break 2
13877 fi
13878done
5213506e
RW
13879 done
13880IFS=$as_save_IFS
1c710c3c 13881
4de997d1
PB
13882fi
13883fi
1c710c3c 13884DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 13885if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13887$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 13888else
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890$as_echo "no" >&6; }
4de997d1 13891fi
4de997d1 13892
5213506e 13893
e8b05380
PB
13894 fi
13895 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
13896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13897set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13899$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13900if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
5213506e 13901 $as_echo_n "(cached) " >&6
4de997d1 13902else
e8b05380
PB
13903 if test -n "$DLLTOOL_FOR_TARGET"; then
13904 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 13905else
1c710c3c
DJ
13906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13907for as_dir in $PATH
13908do
13909 IFS=$as_save_IFS
13910 test -z "$as_dir" && as_dir=.
5213506e 13911 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13913 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 13914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13915 break 2
13916 fi
13917done
5213506e
RW
13918 done
13919IFS=$as_save_IFS
1c710c3c 13920
4de997d1
PB
13921fi
13922fi
1c710c3c 13923DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 13924if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
13926$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 13927else
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13929$as_echo "no" >&6; }
4de997d1 13930fi
1c710c3c 13931
5213506e 13932
e8b05380
PB
13933 fi
13934 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
13935 done
13936fi
1c710c3c 13937
e8b05380
PB
13938if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
13939 set dummy dlltool
13940 if test $build = $target ; then
13941 DLLTOOL_FOR_TARGET="$2"
13942 else
13943 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
13944 fi
1c00b503
PB
13945else
13946 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
13947fi
13948
d1f8db0c
PB
13949else
13950 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
13951fi
13952
4de997d1 13953
e8b05380
PB
13954
13955
13956if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
13957 if test -n "$with_build_time_tools"; then
5213506e
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
13959$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13960 if test -x $with_build_time_tools/ld; then
13961 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
13962 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
13964$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 13965 else
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967$as_echo "no" >&6; }
d1f8db0c 13968 fi
e8b05380
PB
13969 elif test $build != $host && test $have_gcc_for_target = yes; then
13970 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
13971 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
13972 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 13973 fi
e8b05380 13974fi
3e19841a 13975if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13976 # Extract the first word of "ld", so it can be a program name with args.
13977set dummy ld; ac_word=$2
5213506e
RW
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13979$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13980if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
5213506e 13981 $as_echo_n "(cached) " >&6
4de997d1 13982else
1c710c3c
DJ
13983 case $LD_FOR_TARGET in
13984 [\\/]* | ?:[\\/]*)
e8b05380
PB
13985 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
13986 ;;
e8b05380 13987 *)
1c710c3c
DJ
13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13989for as_dir in $gcc_cv_tool_dirs
13990do
13991 IFS=$as_save_IFS
13992 test -z "$as_dir" && as_dir=.
5213506e 13993 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 13995 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13997 break 2
13998 fi
13999done
5213506e
RW
14000 done
14001IFS=$as_save_IFS
1c710c3c 14002
e8b05380
PB
14003 ;;
14004esac
4de997d1 14005fi
1c710c3c 14006LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 14007if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14009$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 14010else
5213506e
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14012$as_echo "no" >&6; }
4de997d1 14013fi
2693c0b0 14014
5213506e 14015
e8b05380
PB
14016fi
14017if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
14018
14019
14020if test -n "$LD_FOR_TARGET"; then
14021 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14022elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14023 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14024fi
14025
14026if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14027 for ncn_progname in ld; do
14028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14029set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14031$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14032if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14033 $as_echo_n "(cached) " >&6
278a7a38
AO
14034else
14035 if test -n "$LD_FOR_TARGET"; then
14036 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14037else
14038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14039for as_dir in $PATH
14040do
14041 IFS=$as_save_IFS
14042 test -z "$as_dir" && as_dir=.
5213506e 14043 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14045 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14047 break 2
14048 fi
14049done
5213506e
RW
14050 done
14051IFS=$as_save_IFS
278a7a38
AO
14052
14053fi
14054fi
14055LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14056if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14058$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 14059else
5213506e
RW
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14061$as_echo "no" >&6; }
278a7a38
AO
14062fi
14063
5213506e 14064
278a7a38
AO
14065 done
14066fi
14067
14068if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14069 for ncn_progname in ld; do
5213506e
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14071$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14072 if test -x $with_build_time_tools/${ncn_progname}; then
14073 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14075$as_echo "yes" >&6; }
e8b05380
PB
14076 break
14077 else
5213506e
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14079$as_echo "no" >&6; }
e8b05380
PB
14080 fi
14081 done
ca9f4b81
AO
14082fi
14083
e8b05380
PB
14084if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14085 for ncn_progname in ld; do
14086 if test -n "$ncn_target_tool_prefix"; then
14087 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14088set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14090$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14091if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14092 $as_echo_n "(cached) " >&6
ca9f4b81 14093else
4de997d1
PB
14094 if test -n "$LD_FOR_TARGET"; then
14095 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14096else
1c710c3c
DJ
14097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14098for as_dir in $PATH
14099do
14100 IFS=$as_save_IFS
14101 test -z "$as_dir" && as_dir=.
5213506e 14102 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14104 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14106 break 2
14107 fi
14108done
5213506e
RW
14109 done
14110IFS=$as_save_IFS
1c710c3c 14111
ca9f4b81
AO
14112fi
14113fi
1c710c3c 14114LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 14115if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14117$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14118else
5213506e
RW
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14120$as_echo "no" >&6; }
ca9f4b81
AO
14121fi
14122
5213506e 14123
e8b05380
PB
14124 fi
14125 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14127set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14129$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14130if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
5213506e 14131 $as_echo_n "(cached) " >&6
ca9f4b81 14132else
2693c0b0
PB
14133 if test -n "$LD_FOR_TARGET"; then
14134 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 14135else
1c710c3c
DJ
14136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14137for as_dir in $PATH
14138do
14139 IFS=$as_save_IFS
14140 test -z "$as_dir" && as_dir=.
5213506e 14141 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14143 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 14144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14145 break 2
14146 fi
14147done
5213506e
RW
14148 done
14149IFS=$as_save_IFS
1c710c3c 14150
ca9f4b81
AO
14151fi
14152fi
1c710c3c 14153LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 14154if test -n "$LD_FOR_TARGET"; then
5213506e
RW
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14156$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 14157else
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159$as_echo "no" >&6; }
ca9f4b81 14160fi
1c710c3c 14161
5213506e 14162
e8b05380
PB
14163 fi
14164 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14165 done
14166fi
1c710c3c 14167
2693c0b0
PB
14168if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14169 set dummy ld
14170 if test $build = $target ; then
14171 LD_FOR_TARGET="$2"
ca9f4b81 14172 else
2693c0b0 14173 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14174 fi
1c00b503
PB
14175else
14176 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
14177fi
14178
d1f8db0c
PB
14179else
14180 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
14181fi
14182
14183
14184
14185
14186if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14187 if test -n "$with_build_time_tools"; then
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14189$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14190 if test -x $with_build_time_tools/lipo; then
14191 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14192 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14194$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 14195 else
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14197$as_echo "no" >&6; }
d1f8db0c 14198 fi
e8b05380
PB
14199 elif test $build != $host && test $have_gcc_for_target = yes; then
14200 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
14201 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14202 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
14203 fi
14204fi
278a7a38
AO
14205if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14206 # Extract the first word of "lipo", so it can be a program name with args.
14207set dummy lipo; ac_word=$2
5213506e
RW
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14209$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14210if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
5213506e 14211 $as_echo_n "(cached) " >&6
278a7a38
AO
14212else
14213 case $LIPO_FOR_TARGET in
14214 [\\/]* | ?:[\\/]*)
14215 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14216 ;;
14217 *)
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219for as_dir in $gcc_cv_tool_dirs
14220do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
5213506e 14223 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14225 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14227 break 2
14228 fi
14229done
5213506e
RW
14230 done
14231IFS=$as_save_IFS
278a7a38
AO
14232
14233 ;;
14234esac
14235fi
14236LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 14237if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14239$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 14240else
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14242$as_echo "no" >&6; }
278a7a38
AO
14243fi
14244
5213506e 14245
278a7a38
AO
14246fi
14247if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14248
14249
14250if test -n "$LIPO_FOR_TARGET"; then
14251 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14252elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14253 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14254fi
14255
14256if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14257 for ncn_progname in lipo; do
14258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14259set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14261$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14262if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14263 $as_echo_n "(cached) " >&6
e8b05380 14264else
278a7a38
AO
14265 if test -n "$LIPO_FOR_TARGET"; then
14266 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14267else
14268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269for as_dir in $PATH
1c710c3c
DJ
14270do
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
5213506e 14273 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14275 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14277 break 2
14278 fi
14279done
5213506e
RW
14280 done
14281IFS=$as_save_IFS
1c710c3c 14282
e8b05380 14283fi
278a7a38
AO
14284fi
14285LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 14286if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14288$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 14289else
5213506e
RW
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291$as_echo "no" >&6; }
e8b05380
PB
14292fi
14293
5213506e 14294
278a7a38 14295 done
e8b05380 14296fi
278a7a38
AO
14297
14298if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14299 for ncn_progname in lipo; do
5213506e
RW
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14301$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14302 if test -x $with_build_time_tools/${ncn_progname}; then
14303 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14305$as_echo "yes" >&6; }
e8b05380
PB
14306 break
14307 else
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309$as_echo "no" >&6; }
e8b05380
PB
14310 fi
14311 done
14312fi
14313
14314if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14315 for ncn_progname in lipo; do
14316 if test -n "$ncn_target_tool_prefix"; then
14317 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 14318set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14321if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14322 $as_echo_n "(cached) " >&6
040b1c5a
GK
14323else
14324 if test -n "$LIPO_FOR_TARGET"; then
14325 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14326else
1c710c3c
DJ
14327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14328for as_dir in $PATH
14329do
14330 IFS=$as_save_IFS
14331 test -z "$as_dir" && as_dir=.
5213506e 14332 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14334 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14336 break 2
14337 fi
14338done
5213506e
RW
14339 done
14340IFS=$as_save_IFS
1c710c3c 14341
040b1c5a
GK
14342fi
14343fi
1c710c3c 14344LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14345if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14347$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14348else
5213506e
RW
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14350$as_echo "no" >&6; }
040b1c5a
GK
14351fi
14352
5213506e 14353
e8b05380
PB
14354 fi
14355 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 14357set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14360if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
5213506e 14361 $as_echo_n "(cached) " >&6
040b1c5a
GK
14362else
14363 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
14364 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14365else
1c710c3c
DJ
14366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14367for as_dir in $PATH
14368do
14369 IFS=$as_save_IFS
14370 test -z "$as_dir" && as_dir=.
5213506e 14371 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14373 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 14374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14375 break 2
14376 fi
14377done
5213506e
RW
14378 done
14379IFS=$as_save_IFS
1c710c3c 14380
040b1c5a
GK
14381fi
14382fi
1c710c3c 14383LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 14384if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14386$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 14387else
5213506e
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389$as_echo "no" >&6; }
040b1c5a 14390fi
1c710c3c 14391
5213506e 14392
e8b05380
PB
14393 fi
14394 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14395 done
14396fi
1c710c3c 14397
040b1c5a
GK
14398if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14399 set dummy lipo
14400 if test $build = $target ; then
14401 LIPO_FOR_TARGET="$2"
14402 else
14403 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14404 fi
1c00b503
PB
14405else
14406 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
14407fi
14408
d1f8db0c
PB
14409else
14410 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
14411fi
14412
14413
14414
14415
14416if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14417 if test -n "$with_build_time_tools"; then
5213506e
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
14419$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14420 if test -x $with_build_time_tools/nm; then
14421 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14422 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
14424$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 14425 else
5213506e
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427$as_echo "no" >&6; }
d1f8db0c 14428 fi
e8b05380
PB
14429 elif test $build != $host && test $have_gcc_for_target = yes; then
14430 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
14431 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14432 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
14433 fi
14434fi
3e19841a 14435if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14436 # Extract the first word of "nm", so it can be a program name with args.
14437set dummy nm; ac_word=$2
5213506e
RW
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14439$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14440if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
5213506e 14441 $as_echo_n "(cached) " >&6
e8b05380 14442else
1c710c3c
DJ
14443 case $NM_FOR_TARGET in
14444 [\\/]* | ?:[\\/]*)
e8b05380
PB
14445 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14446 ;;
e8b05380 14447 *)
1c710c3c
DJ
14448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14449for as_dir in $gcc_cv_tool_dirs
14450do
14451 IFS=$as_save_IFS
14452 test -z "$as_dir" && as_dir=.
5213506e 14453 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14455 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14457 break 2
14458 fi
14459done
5213506e
RW
14460 done
14461IFS=$as_save_IFS
1c710c3c 14462
e8b05380
PB
14463 ;;
14464esac
14465fi
1c710c3c 14466NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 14467if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14469$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 14470else
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472$as_echo "no" >&6; }
e8b05380
PB
14473fi
14474
5213506e 14475
e8b05380
PB
14476fi
14477if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
14478
14479
14480if test -n "$NM_FOR_TARGET"; then
14481 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14482elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14483 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14484fi
14485
14486if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14487 for ncn_progname in nm; do
14488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14489set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14492if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 14493 $as_echo_n "(cached) " >&6
278a7a38
AO
14494else
14495 if test -n "$NM_FOR_TARGET"; then
14496 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14497else
14498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499for as_dir in $PATH
14500do
14501 IFS=$as_save_IFS
14502 test -z "$as_dir" && as_dir=.
5213506e 14503 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14505 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 14506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14507 break 2
14508 fi
14509done
5213506e
RW
14510 done
14511IFS=$as_save_IFS
278a7a38
AO
14512
14513fi
14514fi
14515NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14516if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14518$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 14519else
5213506e
RW
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521$as_echo "no" >&6; }
278a7a38
AO
14522fi
14523
5213506e 14524
278a7a38
AO
14525 done
14526fi
14527
14528if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14529 for ncn_progname in nm; do
5213506e
RW
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14531$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14532 if test -x $with_build_time_tools/${ncn_progname}; then
14533 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14535$as_echo "yes" >&6; }
e8b05380
PB
14536 break
14537 else
5213506e
RW
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14539$as_echo "no" >&6; }
e8b05380
PB
14540 fi
14541 done
14542fi
14543
14544if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14545 for ncn_progname in nm; do
14546 if test -n "$ncn_target_tool_prefix"; then
14547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 14548set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
14549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14550$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14551if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 14552 $as_echo_n "(cached) " >&6
ca9f4b81 14553else
4de997d1
PB
14554 if test -n "$NM_FOR_TARGET"; then
14555 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 14556else
1c710c3c
DJ
14557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558for as_dir in $PATH
14559do
14560 IFS=$as_save_IFS
14561 test -z "$as_dir" && as_dir=.
5213506e 14562 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14564 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 14565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14566 break 2
14567 fi
14568done
5213506e
RW
14569 done
14570IFS=$as_save_IFS
1c710c3c 14571
ca9f4b81
AO
14572fi
14573fi
1c710c3c 14574NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 14575if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14577$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 14578else
5213506e
RW
14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14580$as_echo "no" >&6; }
ca9f4b81
AO
14581fi
14582
5213506e 14583
e8b05380
PB
14584 fi
14585 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 14587set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14589$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14590if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
5213506e 14591 $as_echo_n "(cached) " >&6
ca9f4b81 14592else
2693c0b0
PB
14593 if test -n "$NM_FOR_TARGET"; then
14594 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 14595else
1c710c3c
DJ
14596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14597for as_dir in $PATH
14598do
14599 IFS=$as_save_IFS
14600 test -z "$as_dir" && as_dir=.
5213506e 14601 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14603 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 14604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14605 break 2
14606 fi
14607done
5213506e
RW
14608 done
14609IFS=$as_save_IFS
1c710c3c 14610
ca9f4b81
AO
14611fi
14612fi
1c710c3c 14613NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 14614if test -n "$NM_FOR_TARGET"; then
5213506e
RW
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
14616$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 14617else
5213506e
RW
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14619$as_echo "no" >&6; }
ca9f4b81 14620fi
1c710c3c 14621
5213506e 14622
e8b05380
PB
14623 fi
14624 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14625 done
14626fi
1c710c3c 14627
2693c0b0
PB
14628if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14629 set dummy nm
14630 if test $build = $target ; then
14631 NM_FOR_TARGET="$2"
ca9f4b81 14632 else
2693c0b0 14633 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 14634 fi
1c00b503
PB
14635else
14636 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
14637fi
14638
d1f8db0c
PB
14639else
14640 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
14641fi
14642
14643
14644
14645
9bccfdf5
AP
14646if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14647 if test -n "$with_build_time_tools"; then
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
14649$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
14650 if test -x $with_build_time_tools/objcopy; then
14651 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14652 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14654$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14655 else
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657$as_echo "no" >&6; }
14658 fi
14659 elif test $build != $host && test $have_gcc_for_target = yes; then
14660 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14661 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14662 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14663 fi
14664fi
14665if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14666 # Extract the first word of "objcopy", so it can be a program name with args.
14667set dummy objcopy; ac_word=$2
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14669$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14670if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
14671 $as_echo_n "(cached) " >&6
14672else
14673 case $OBJCOPY_FOR_TARGET in
14674 [\\/]* | ?:[\\/]*)
14675 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14676 ;;
14677 *)
14678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14679for as_dir in $gcc_cv_tool_dirs
14680do
14681 IFS=$as_save_IFS
14682 test -z "$as_dir" && as_dir=.
14683 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
14685 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14687 break 2
14688 fi
14689done
14690 done
14691IFS=$as_save_IFS
14692
14693 ;;
14694esac
14695fi
14696OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14697if test -n "$OBJCOPY_FOR_TARGET"; then
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14699$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14700else
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14702$as_echo "no" >&6; }
14703fi
14704
14705
14706fi
14707if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14708
14709
14710if test -n "$OBJCOPY_FOR_TARGET"; then
14711 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14712elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14713 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14714fi
14715
14716if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14717 for ncn_progname in objcopy; do
14718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14719set dummy ${ncn_progname}; ac_word=$2
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14721$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14722if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
14723 $as_echo_n "(cached) " >&6
14724else
14725 if test -n "$OBJCOPY_FOR_TARGET"; then
14726 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14727else
14728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14729for as_dir in $PATH
14730do
14731 IFS=$as_save_IFS
14732 test -z "$as_dir" && as_dir=.
14733 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
14735 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14737 break 2
14738 fi
14739done
14740 done
14741IFS=$as_save_IFS
14742
14743fi
14744fi
14745OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14746if test -n "$OBJCOPY_FOR_TARGET"; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14748$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14749else
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14751$as_echo "no" >&6; }
14752fi
14753
14754
14755 done
14756fi
14757
14758if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14759 for ncn_progname in objcopy; do
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14761$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14762 if test -x $with_build_time_tools/${ncn_progname}; then
14763 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14765$as_echo "yes" >&6; }
14766 break
14767 else
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14769$as_echo "no" >&6; }
14770 fi
14771 done
14772fi
14773
14774if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14775 for ncn_progname in objcopy; do
14776 if test -n "$ncn_target_tool_prefix"; then
14777 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14778set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14780$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14781if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
14782 $as_echo_n "(cached) " >&6
14783else
14784 if test -n "$OBJCOPY_FOR_TARGET"; then
14785 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14786else
14787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14788for as_dir in $PATH
14789do
14790 IFS=$as_save_IFS
14791 test -z "$as_dir" && as_dir=.
14792 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
14794 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14796 break 2
14797 fi
14798done
14799 done
14800IFS=$as_save_IFS
14801
14802fi
14803fi
14804OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14805if test -n "$OBJCOPY_FOR_TARGET"; then
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14807$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14808else
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810$as_echo "no" >&6; }
14811fi
14812
14813
14814 fi
14815 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
14816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14817set dummy ${ncn_progname}; ac_word=$2
14818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14820if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
9bccfdf5
AP
14821 $as_echo_n "(cached) " >&6
14822else
14823 if test -n "$OBJCOPY_FOR_TARGET"; then
14824 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14825else
14826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827for as_dir in $PATH
14828do
14829 IFS=$as_save_IFS
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9bccfdf5
AP
14833 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14835 break 2
14836 fi
14837done
14838 done
14839IFS=$as_save_IFS
14840
14841fi
14842fi
14843OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14844if test -n "$OBJCOPY_FOR_TARGET"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
14846$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14847else
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14849$as_echo "no" >&6; }
14850fi
14851
14852
14853 fi
14854 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
14855 done
14856fi
14857
14858if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
14859 set dummy objcopy
14860 if test $build = $target ; then
14861 OBJCOPY_FOR_TARGET="$2"
14862 else
14863 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
14864 fi
14865else
14866 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
14867fi
14868
14869else
14870 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14871fi
14872
14873
14874
14875
e8b05380
PB
14876if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
14877 if test -n "$with_build_time_tools"; then
5213506e
RW
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
14879$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14880 if test -x $with_build_time_tools/objdump; then
14881 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
14882 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
14884$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 14885 else
5213506e
RW
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887$as_echo "no" >&6; }
d1f8db0c 14888 fi
e8b05380
PB
14889 elif test $build != $host && test $have_gcc_for_target = yes; then
14890 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
14891 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
14892 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
14893 fi
14894fi
3e19841a 14895if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
14896 # Extract the first word of "objdump", so it can be a program name with args.
14897set dummy objdump; ac_word=$2
5213506e
RW
14898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14899$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14900if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 14901 $as_echo_n "(cached) " >&6
e8b05380 14902else
1c710c3c
DJ
14903 case $OBJDUMP_FOR_TARGET in
14904 [\\/]* | ?:[\\/]*)
e8b05380
PB
14905 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
14906 ;;
e8b05380 14907 *)
1c710c3c
DJ
14908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14909for as_dir in $gcc_cv_tool_dirs
14910do
14911 IFS=$as_save_IFS
14912 test -z "$as_dir" && as_dir=.
5213506e 14913 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 14915 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 14916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
14917 break 2
14918 fi
14919done
5213506e
RW
14920 done
14921IFS=$as_save_IFS
1c710c3c 14922
e8b05380
PB
14923 ;;
14924esac
14925fi
1c710c3c 14926OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 14927if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14929$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 14930else
5213506e
RW
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14932$as_echo "no" >&6; }
e8b05380
PB
14933fi
14934
5213506e 14935
e8b05380
PB
14936fi
14937if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
14938
14939
14940if test -n "$OBJDUMP_FOR_TARGET"; then
14941 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
14942elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14943 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14944fi
14945
14946if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
14947 for ncn_progname in objdump; do
14948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14949set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14951$as_echo_n "checking for $ac_word... " >&6; }
22e05272 14952if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 14953 $as_echo_n "(cached) " >&6
278a7a38
AO
14954else
14955 if test -n "$OBJDUMP_FOR_TARGET"; then
14956 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
14957else
14958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14959for as_dir in $PATH
14960do
14961 IFS=$as_save_IFS
14962 test -z "$as_dir" && as_dir=.
5213506e 14963 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 14964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 14965 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 14966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
14967 break 2
14968 fi
14969done
5213506e
RW
14970 done
14971IFS=$as_save_IFS
278a7a38
AO
14972
14973fi
14974fi
14975OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
14976if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
14978$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 14979else
5213506e
RW
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14981$as_echo "no" >&6; }
278a7a38
AO
14982fi
14983
5213506e 14984
278a7a38
AO
14985 done
14986fi
14987
14988if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 14989 for ncn_progname in objdump; do
5213506e
RW
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14991$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
14992 if test -x $with_build_time_tools/${ncn_progname}; then
14993 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14995$as_echo "yes" >&6; }
e8b05380
PB
14996 break
14997 else
5213506e
RW
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999$as_echo "no" >&6; }
e8b05380
PB
15000 fi
15001 done
15002fi
15003
15004if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15005 for ncn_progname in objdump; do
15006 if test -n "$ncn_target_tool_prefix"; then
15007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 15008set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15010$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15011if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15012 $as_echo_n "(cached) " >&6
d739199a
DJ
15013else
15014 if test -n "$OBJDUMP_FOR_TARGET"; then
15015 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15016else
1c710c3c
DJ
15017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15018for as_dir in $PATH
15019do
15020 IFS=$as_save_IFS
15021 test -z "$as_dir" && as_dir=.
5213506e 15022 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15024 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15026 break 2
15027 fi
15028done
5213506e
RW
15029 done
15030IFS=$as_save_IFS
1c710c3c 15031
d739199a
DJ
15032fi
15033fi
1c710c3c 15034OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15035if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15037$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15038else
5213506e
RW
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15040$as_echo "no" >&6; }
d739199a
DJ
15041fi
15042
5213506e 15043
e8b05380
PB
15044 fi
15045 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 15047set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15050if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
5213506e 15051 $as_echo_n "(cached) " >&6
d739199a
DJ
15052else
15053 if test -n "$OBJDUMP_FOR_TARGET"; then
15054 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15055else
1c710c3c
DJ
15056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15057for as_dir in $PATH
15058do
15059 IFS=$as_save_IFS
15060 test -z "$as_dir" && as_dir=.
5213506e 15061 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15063 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 15064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15065 break 2
15066 fi
15067done
5213506e
RW
15068 done
15069IFS=$as_save_IFS
1c710c3c 15070
d739199a
DJ
15071fi
15072fi
1c710c3c 15073OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 15074if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15076$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 15077else
5213506e
RW
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15079$as_echo "no" >&6; }
d739199a 15080fi
1c710c3c 15081
5213506e 15082
e8b05380
PB
15083 fi
15084 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15085 done
15086fi
1c710c3c 15087
d739199a
DJ
15088if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15089 set dummy objdump
15090 if test $build = $target ; then
15091 OBJDUMP_FOR_TARGET="$2"
15092 else
15093 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15094 fi
1c00b503
PB
15095else
15096 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
15097fi
15098
d1f8db0c
PB
15099else
15100 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
15101fi
15102
15103
15104
15105
e4a9a572
IS
15106if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15107 if test -n "$with_build_time_tools"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15109$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15110 if test -x $with_build_time_tools/otool; then
15111 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15112 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15114$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15115 else
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15117$as_echo "no" >&6; }
15118 fi
15119 elif test $build != $host && test $have_gcc_for_target = yes; then
15120 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15121 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15122 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15123 fi
15124fi
15125if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15126 # Extract the first word of "otool", so it can be a program name with args.
15127set dummy otool; ac_word=$2
15128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15129$as_echo_n "checking for $ac_word... " >&6; }
15130if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132else
15133 case $OTOOL_FOR_TARGET in
15134 [\\/]* | ?:[\\/]*)
15135 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15136 ;;
15137 *)
15138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15139for as_dir in $gcc_cv_tool_dirs
15140do
15141 IFS=$as_save_IFS
15142 test -z "$as_dir" && as_dir=.
15143 for ac_exec_ext in '' $ac_executable_extensions; do
15144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15145 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15147 break 2
15148 fi
15149done
15150 done
15151IFS=$as_save_IFS
15152
15153 ;;
15154esac
15155fi
15156OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15157if test -n "$OTOOL_FOR_TARGET"; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15159$as_echo "$OTOOL_FOR_TARGET" >&6; }
15160else
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15162$as_echo "no" >&6; }
15163fi
15164
15165
15166fi
15167if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15168
15169
15170if test -n "$OTOOL_FOR_TARGET"; then
15171 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15172elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15173 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15174fi
15175
15176if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15177 for ncn_progname in otool; do
15178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15179set dummy ${ncn_progname}; ac_word=$2
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15181$as_echo_n "checking for $ac_word... " >&6; }
15182if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184else
15185 if test -n "$OTOOL_FOR_TARGET"; then
15186 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15187else
15188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15189for as_dir in $PATH
15190do
15191 IFS=$as_save_IFS
15192 test -z "$as_dir" && as_dir=.
15193 for ac_exec_ext in '' $ac_executable_extensions; do
15194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15195 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15197 break 2
15198 fi
15199done
15200 done
15201IFS=$as_save_IFS
15202
15203fi
15204fi
15205OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15206if test -n "$OTOOL_FOR_TARGET"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15208$as_echo "$OTOOL_FOR_TARGET" >&6; }
15209else
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15211$as_echo "no" >&6; }
15212fi
15213
15214
15215 done
15216fi
15217
15218if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15219 for ncn_progname in otool; do
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15221$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15222 if test -x $with_build_time_tools/${ncn_progname}; then
15223 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15225$as_echo "yes" >&6; }
15226 break
15227 else
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15229$as_echo "no" >&6; }
15230 fi
15231 done
15232fi
15233
15234if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15235 for ncn_progname in otool; do
15236 if test -n "$ncn_target_tool_prefix"; then
15237 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15238set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15240$as_echo_n "checking for $ac_word... " >&6; }
15241if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243else
15244 if test -n "$OTOOL_FOR_TARGET"; then
15245 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15246else
15247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15248for as_dir in $PATH
15249do
15250 IFS=$as_save_IFS
15251 test -z "$as_dir" && as_dir=.
15252 for ac_exec_ext in '' $ac_executable_extensions; do
15253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15254 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15256 break 2
15257 fi
15258done
15259 done
15260IFS=$as_save_IFS
15261
15262fi
15263fi
15264OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15265if test -n "$OTOOL_FOR_TARGET"; then
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15267$as_echo "$OTOOL_FOR_TARGET" >&6; }
15268else
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15270$as_echo "no" >&6; }
15271fi
15272
15273
15274 fi
15275 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15276 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15277set dummy ${ncn_progname}; ac_word=$2
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15279$as_echo_n "checking for $ac_word... " >&6; }
15280if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15281 $as_echo_n "(cached) " >&6
15282else
15283 if test -n "$OTOOL_FOR_TARGET"; then
15284 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15285else
15286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15287for as_dir in $PATH
15288do
15289 IFS=$as_save_IFS
15290 test -z "$as_dir" && as_dir=.
15291 for ac_exec_ext in '' $ac_executable_extensions; do
15292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15293 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15295 break 2
15296 fi
15297done
15298 done
15299IFS=$as_save_IFS
15300
15301fi
15302fi
15303OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15304if test -n "$OTOOL_FOR_TARGET"; then
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15306$as_echo "$OTOOL_FOR_TARGET" >&6; }
15307else
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309$as_echo "no" >&6; }
15310fi
15311
15312
15313 fi
15314 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15315 done
15316fi
15317
15318if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15319 set dummy otool
15320 if test $build = $target ; then
15321 OTOOL_FOR_TARGET="$2"
15322 else
15323 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15324 fi
15325else
15326 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15327fi
15328
15329else
15330 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15331fi
15332
15333
15334
15335
e8b05380
PB
15336if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15337 if test -n "$with_build_time_tools"; then
5213506e
RW
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
15339$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15340 if test -x $with_build_time_tools/ranlib; then
15341 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15342 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15344$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 15345 else
5213506e
RW
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15347$as_echo "no" >&6; }
d1f8db0c 15348 fi
e8b05380
PB
15349 elif test $build != $host && test $have_gcc_for_target = yes; then
15350 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
15351 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15352 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
15353 fi
15354fi
3e19841a 15355if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15356 # Extract the first word of "ranlib", so it can be a program name with args.
15357set dummy ranlib; ac_word=$2
5213506e
RW
15358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15359$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15360if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
5213506e 15361 $as_echo_n "(cached) " >&6
e8b05380 15362else
1c710c3c
DJ
15363 case $RANLIB_FOR_TARGET in
15364 [\\/]* | ?:[\\/]*)
e8b05380
PB
15365 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15366 ;;
e8b05380 15367 *)
1c710c3c
DJ
15368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15369for as_dir in $gcc_cv_tool_dirs
15370do
15371 IFS=$as_save_IFS
15372 test -z "$as_dir" && as_dir=.
5213506e 15373 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15375 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15377 break 2
15378 fi
15379done
5213506e
RW
15380 done
15381IFS=$as_save_IFS
1c710c3c 15382
e8b05380
PB
15383 ;;
15384esac
15385fi
1c710c3c 15386RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 15387if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15389$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 15390else
5213506e
RW
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15392$as_echo "no" >&6; }
e8b05380
PB
15393fi
15394
5213506e 15395
e8b05380
PB
15396fi
15397if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
15398
15399
15400if test -n "$RANLIB_FOR_TARGET"; then
15401 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15402elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15403 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15404fi
15405
15406if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15407 for ncn_progname in ranlib; do
15408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15409set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15411$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15412if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15413 $as_echo_n "(cached) " >&6
278a7a38
AO
15414else
15415 if test -n "$RANLIB_FOR_TARGET"; then
15416 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15417else
15418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15419for as_dir in $PATH
15420do
15421 IFS=$as_save_IFS
15422 test -z "$as_dir" && as_dir=.
5213506e 15423 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15425 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 15426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15427 break 2
15428 fi
15429done
5213506e
RW
15430 done
15431IFS=$as_save_IFS
278a7a38
AO
15432
15433fi
15434fi
15435RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15436if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15438$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 15439else
5213506e
RW
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441$as_echo "no" >&6; }
278a7a38
AO
15442fi
15443
5213506e 15444
278a7a38
AO
15445 done
15446fi
15447
15448if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15449 for ncn_progname in ranlib; do
5213506e
RW
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15451$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15452 if test -x $with_build_time_tools/${ncn_progname}; then
15453 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15455$as_echo "yes" >&6; }
e8b05380
PB
15456 break
15457 else
5213506e
RW
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459$as_echo "no" >&6; }
e8b05380
PB
15460 fi
15461 done
15462fi
15463
15464if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15465 for ncn_progname in ranlib; do
15466 if test -n "$ncn_target_tool_prefix"; then
15467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 15468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15470$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15471if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15472 $as_echo_n "(cached) " >&6
ca9f4b81 15473else
4de997d1
PB
15474 if test -n "$RANLIB_FOR_TARGET"; then
15475 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 15476else
1c710c3c
DJ
15477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15478for as_dir in $PATH
15479do
15480 IFS=$as_save_IFS
15481 test -z "$as_dir" && as_dir=.
5213506e 15482 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15484 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15486 break 2
15487 fi
15488done
5213506e
RW
15489 done
15490IFS=$as_save_IFS
1c710c3c 15491
ca9f4b81
AO
15492fi
15493fi
1c710c3c 15494RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 15495if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15497$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 15498else
5213506e
RW
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15500$as_echo "no" >&6; }
ca9f4b81
AO
15501fi
15502
5213506e 15503
e8b05380
PB
15504 fi
15505 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 15507set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15509$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15510if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
5213506e 15511 $as_echo_n "(cached) " >&6
ca9f4b81 15512else
2693c0b0
PB
15513 if test -n "$RANLIB_FOR_TARGET"; then
15514 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 15515else
1c710c3c
DJ
15516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15517for as_dir in $PATH
15518do
15519 IFS=$as_save_IFS
15520 test -z "$as_dir" && as_dir=.
5213506e 15521 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15523 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 15524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15525 break 2
15526 fi
15527done
5213506e
RW
15528 done
15529IFS=$as_save_IFS
1c710c3c 15530
ca9f4b81
AO
15531fi
15532fi
1c710c3c 15533RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 15534if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
15536$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 15537else
5213506e
RW
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15539$as_echo "no" >&6; }
ca9f4b81 15540fi
1c710c3c 15541
5213506e 15542
e8b05380
PB
15543 fi
15544 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15545 done
15546fi
1c710c3c 15547
e8b05380
PB
15548if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15549 set dummy ranlib
15550 if test $build = $target ; then
15551 RANLIB_FOR_TARGET="$2"
15552 else
15553 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 15554 fi
1c00b503
PB
15555else
15556 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 15557fi
2693c0b0 15558
d1f8db0c
PB
15559else
15560 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
15561fi
15562
e8b05380
PB
15563
15564
15565
e7a82751
RM
15566if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15567 if test -n "$with_build_time_tools"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
15569$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
15570 if test -x $with_build_time_tools/readelf; then
15571 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15572 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
15574$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15575 else
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577$as_echo "no" >&6; }
15578 fi
15579 elif test $build != $host && test $have_gcc_for_target = yes; then
15580 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15581 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15582 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15583 fi
15584fi
15585if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15586 # Extract the first word of "readelf", so it can be a program name with args.
15587set dummy readelf; ac_word=$2
15588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15589$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15590if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
15591 $as_echo_n "(cached) " >&6
15592else
15593 case $READELF_FOR_TARGET in
15594 [\\/]* | ?:[\\/]*)
15595 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15596 ;;
15597 *)
15598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15599for as_dir in $gcc_cv_tool_dirs
15600do
15601 IFS=$as_save_IFS
15602 test -z "$as_dir" && as_dir=.
15603 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
15605 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15607 break 2
15608 fi
15609done
15610 done
15611IFS=$as_save_IFS
15612
15613 ;;
15614esac
15615fi
15616READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15617if test -n "$READELF_FOR_TARGET"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15619$as_echo "$READELF_FOR_TARGET" >&6; }
15620else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622$as_echo "no" >&6; }
15623fi
15624
15625
15626fi
15627if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15628
15629
15630if test -n "$READELF_FOR_TARGET"; then
15631 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15632elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15633 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15634fi
15635
15636if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15637 for ncn_progname in readelf; do
15638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15639set dummy ${ncn_progname}; ac_word=$2
15640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15641$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15642if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
15643 $as_echo_n "(cached) " >&6
15644else
15645 if test -n "$READELF_FOR_TARGET"; then
15646 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15647else
15648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15649for as_dir in $PATH
15650do
15651 IFS=$as_save_IFS
15652 test -z "$as_dir" && as_dir=.
15653 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
15655 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 break 2
15658 fi
15659done
15660 done
15661IFS=$as_save_IFS
15662
15663fi
15664fi
15665READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15666if test -n "$READELF_FOR_TARGET"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15668$as_echo "$READELF_FOR_TARGET" >&6; }
15669else
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15671$as_echo "no" >&6; }
15672fi
15673
15674
15675 done
15676fi
15677
15678if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15679 for ncn_progname in readelf; do
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15681$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15682 if test -x $with_build_time_tools/${ncn_progname}; then
15683 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15685$as_echo "yes" >&6; }
15686 break
15687 else
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689$as_echo "no" >&6; }
15690 fi
15691 done
15692fi
15693
15694if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15695 for ncn_progname in readelf; do
15696 if test -n "$ncn_target_tool_prefix"; then
15697 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15698set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15700$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15701if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
15702 $as_echo_n "(cached) " >&6
15703else
15704 if test -n "$READELF_FOR_TARGET"; then
15705 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15706else
15707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708for as_dir in $PATH
15709do
15710 IFS=$as_save_IFS
15711 test -z "$as_dir" && as_dir=.
15712 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
15714 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15716 break 2
15717 fi
15718done
15719 done
15720IFS=$as_save_IFS
15721
15722fi
15723fi
15724READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15725if test -n "$READELF_FOR_TARGET"; then
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15727$as_echo "$READELF_FOR_TARGET" >&6; }
15728else
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15730$as_echo "no" >&6; }
15731fi
15732
15733
15734 fi
15735 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15737set dummy ${ncn_progname}; ac_word=$2
15738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15739$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15740if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
e7a82751
RM
15741 $as_echo_n "(cached) " >&6
15742else
15743 if test -n "$READELF_FOR_TARGET"; then
15744 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15745else
15746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15747for as_dir in $PATH
15748do
15749 IFS=$as_save_IFS
15750 test -z "$as_dir" && as_dir=.
15751 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
e7a82751
RM
15753 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15755 break 2
15756 fi
15757done
15758 done
15759IFS=$as_save_IFS
15760
15761fi
15762fi
15763READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15764if test -n "$READELF_FOR_TARGET"; then
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
15766$as_echo "$READELF_FOR_TARGET" >&6; }
15767else
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769$as_echo "no" >&6; }
15770fi
15771
15772
15773 fi
15774 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15775 done
15776fi
15777
15778if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15779 set dummy readelf
15780 if test $build = $target ; then
15781 READELF_FOR_TARGET="$2"
15782 else
15783 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15784 fi
15785else
15786 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15787fi
15788
15789else
15790 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15791fi
15792
15793
15794
15795
e8b05380
PB
15796if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15797 if test -n "$with_build_time_tools"; then
5213506e
RW
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
15799$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15800 if test -x $with_build_time_tools/strip; then
15801 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15802 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
15804$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 15805 else
5213506e
RW
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15807$as_echo "no" >&6; }
d1f8db0c 15808 fi
e8b05380
PB
15809 elif test $build != $host && test $have_gcc_for_target = yes; then
15810 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
15811 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
15812 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
15813 fi
15814fi
3e19841a 15815if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
15816 # Extract the first word of "strip", so it can be a program name with args.
15817set dummy strip; ac_word=$2
5213506e
RW
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15819$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15820if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
5213506e 15821 $as_echo_n "(cached) " >&6
e8b05380 15822else
1c710c3c
DJ
15823 case $STRIP_FOR_TARGET in
15824 [\\/]* | ?:[\\/]*)
e8b05380
PB
15825 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
15826 ;;
e8b05380 15827 *)
1c710c3c
DJ
15828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15829for as_dir in $gcc_cv_tool_dirs
15830do
15831 IFS=$as_save_IFS
15832 test -z "$as_dir" && as_dir=.
5213506e 15833 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15835 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 15836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15837 break 2
15838 fi
15839done
5213506e
RW
15840 done
15841IFS=$as_save_IFS
1c710c3c 15842
e8b05380
PB
15843 ;;
15844esac
15845fi
1c710c3c 15846STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 15847if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15849$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 15850else
5213506e
RW
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15852$as_echo "no" >&6; }
e8b05380
PB
15853fi
15854
5213506e 15855
e8b05380
PB
15856fi
15857if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
15858
15859
15860if test -n "$STRIP_FOR_TARGET"; then
15861 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15862elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15863 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15864fi
15865
15866if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
15867 for ncn_progname in strip; do
15868 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15869set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15871$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15872if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 15873 $as_echo_n "(cached) " >&6
278a7a38
AO
15874else
15875 if test -n "$STRIP_FOR_TARGET"; then
15876 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15877else
15878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15879for as_dir in $PATH
15880do
15881 IFS=$as_save_IFS
15882 test -z "$as_dir" && as_dir=.
5213506e 15883 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 15885 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 15886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
15887 break 2
15888 fi
15889done
5213506e
RW
15890 done
15891IFS=$as_save_IFS
278a7a38
AO
15892
15893fi
15894fi
15895STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
15896if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15898$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 15899else
5213506e
RW
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15901$as_echo "no" >&6; }
278a7a38
AO
15902fi
15903
5213506e 15904
278a7a38
AO
15905 done
15906fi
15907
15908if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 15909 for ncn_progname in strip; do
5213506e
RW
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15911$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
15912 if test -x $with_build_time_tools/${ncn_progname}; then
15913 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15915$as_echo "yes" >&6; }
e8b05380
PB
15916 break
15917 else
5213506e
RW
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15919$as_echo "no" >&6; }
e8b05380
PB
15920 fi
15921 done
15922fi
15923
15924if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
15925 for ncn_progname in strip; do
15926 if test -n "$ncn_target_tool_prefix"; then
15927 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 15928set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
15929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15930$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15931if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 15932 $as_echo_n "(cached) " >&6
af71363e
AS
15933else
15934 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
15935 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15936else
15937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938for as_dir in $PATH
15939do
15940 IFS=$as_save_IFS
15941 test -z "$as_dir" && as_dir=.
5213506e 15942 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15944 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 15945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15946 break 2
15947 fi
15948done
5213506e
RW
15949 done
15950IFS=$as_save_IFS
1c710c3c 15951
040b1c5a
GK
15952fi
15953fi
1c710c3c 15954STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 15955if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15957$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 15958else
5213506e
RW
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960$as_echo "no" >&6; }
040b1c5a
GK
15961fi
15962
5213506e 15963
e8b05380
PB
15964 fi
15965 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
15966 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 15967set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
15968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15969$as_echo_n "checking for $ac_word... " >&6; }
22e05272 15970if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
5213506e 15971 $as_echo_n "(cached) " >&6
040b1c5a
GK
15972else
15973 if test -n "$STRIP_FOR_TARGET"; then
15974 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
15975else
1c710c3c
DJ
15976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977for as_dir in $PATH
15978do
15979 IFS=$as_save_IFS
15980 test -z "$as_dir" && as_dir=.
5213506e 15981 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 15982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 15983 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 15984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
15985 break 2
15986 fi
15987done
5213506e
RW
15988 done
15989IFS=$as_save_IFS
1c710c3c 15990
040b1c5a
GK
15991fi
15992fi
1c710c3c 15993STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 15994if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
15996$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 15997else
5213506e
RW
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999$as_echo "no" >&6; }
040b1c5a 16000fi
1c710c3c 16001
5213506e 16002
e8b05380
PB
16003 fi
16004 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16005 done
16006fi
1c710c3c 16007
040b1c5a
GK
16008if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16009 set dummy strip
16010 if test $build = $target ; then
16011 STRIP_FOR_TARGET="$2"
16012 else
16013 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16014 fi
1c00b503
PB
16015else
16016 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
16017fi
16018
d1f8db0c
PB
16019else
16020 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
16021fi
16022
16023
16024
16025
16026if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16027 if test -n "$with_build_time_tools"; then
5213506e
RW
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16029$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16030 if test -x $with_build_time_tools/windres; then
16031 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16032 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16034$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 16035 else
5213506e
RW
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16037$as_echo "no" >&6; }
d1f8db0c 16038 fi
e8b05380
PB
16039 elif test $build != $host && test $have_gcc_for_target = yes; then
16040 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
16041 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16042 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
16043 fi
16044fi
3e19841a 16045if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
16046 # Extract the first word of "windres", so it can be a program name with args.
16047set dummy windres; ac_word=$2
5213506e
RW
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16049$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16050if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
5213506e 16051 $as_echo_n "(cached) " >&6
e8b05380 16052else
1c710c3c
DJ
16053 case $WINDRES_FOR_TARGET in
16054 [\\/]* | ?:[\\/]*)
e8b05380
PB
16055 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16056 ;;
e8b05380 16057 *)
1c710c3c
DJ
16058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16059for as_dir in $gcc_cv_tool_dirs
16060do
16061 IFS=$as_save_IFS
16062 test -z "$as_dir" && as_dir=.
5213506e 16063 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16065 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16067 break 2
16068 fi
16069done
5213506e
RW
16070 done
16071IFS=$as_save_IFS
1c710c3c 16072
e8b05380
PB
16073 ;;
16074esac
16075fi
1c710c3c 16076WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 16077if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16079$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 16080else
5213506e
RW
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16082$as_echo "no" >&6; }
e8b05380
PB
16083fi
16084
5213506e 16085
e8b05380
PB
16086fi
16087if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
16088
16089
16090if test -n "$WINDRES_FOR_TARGET"; then
16091 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16092elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16093 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16094fi
16095
16096if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16097 for ncn_progname in windres; do
16098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16099set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16101$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16102if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16103 $as_echo_n "(cached) " >&6
278a7a38
AO
16104else
16105 if test -n "$WINDRES_FOR_TARGET"; then
16106 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16107else
16108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109for as_dir in $PATH
16110do
16111 IFS=$as_save_IFS
16112 test -z "$as_dir" && as_dir=.
5213506e 16113 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
278a7a38 16115 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
16117 break 2
16118 fi
16119done
5213506e
RW
16120 done
16121IFS=$as_save_IFS
278a7a38
AO
16122
16123fi
16124fi
16125WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16126if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16128$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 16129else
5213506e
RW
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131$as_echo "no" >&6; }
278a7a38
AO
16132fi
16133
5213506e 16134
278a7a38
AO
16135 done
16136fi
16137
16138if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 16139 for ncn_progname in windres; do
5213506e
RW
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16141$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
16142 if test -x $with_build_time_tools/${ncn_progname}; then
16143 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16145$as_echo "yes" >&6; }
e8b05380
PB
16146 break
16147 else
5213506e
RW
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149$as_echo "no" >&6; }
e8b05380
PB
16150 fi
16151 done
16152fi
16153
16154if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16155 for ncn_progname in windres; do
16156 if test -n "$ncn_target_tool_prefix"; then
16157 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 16158set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16160$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16161if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16162 $as_echo_n "(cached) " >&6
ca9f4b81 16163else
4de997d1
PB
16164 if test -n "$WINDRES_FOR_TARGET"; then
16165 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16166else
1c710c3c
DJ
16167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16168for as_dir in $PATH
16169do
16170 IFS=$as_save_IFS
16171 test -z "$as_dir" && as_dir=.
5213506e 16172 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16174 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16176 break 2
16177 fi
16178done
5213506e
RW
16179 done
16180IFS=$as_save_IFS
1c710c3c 16181
ca9f4b81
AO
16182fi
16183fi
1c710c3c 16184WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 16185if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16187$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16188else
5213506e
RW
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190$as_echo "no" >&6; }
ca9f4b81
AO
16191fi
16192
5213506e 16193
e8b05380
PB
16194 fi
16195 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 16197set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16199$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16200if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
5213506e 16201 $as_echo_n "(cached) " >&6
ca9f4b81 16202else
2693c0b0
PB
16203 if test -n "$WINDRES_FOR_TARGET"; then
16204 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 16205else
1c710c3c
DJ
16206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16207for as_dir in $PATH
16208do
16209 IFS=$as_save_IFS
16210 test -z "$as_dir" && as_dir=.
5213506e 16211 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1c710c3c 16213 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 16214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
16215 break 2
16216 fi
16217done
5213506e
RW
16218 done
16219IFS=$as_save_IFS
1c710c3c 16220
ca9f4b81
AO
16221fi
16222fi
1c710c3c 16223WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 16224if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16226$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 16227else
5213506e
RW
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16229$as_echo "no" >&6; }
ca9f4b81 16230fi
1c710c3c 16231
5213506e 16232
e8b05380
PB
16233 fi
16234 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16235 done
16236fi
1c710c3c 16237
2693c0b0
PB
16238if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16239 set dummy windres
16240 if test $build = $target ; then
16241 WINDRES_FOR_TARGET="$2"
ca9f4b81 16242 else
2693c0b0 16243 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 16244 fi
1c00b503
PB
16245else
16246 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
16247fi
16248
d1f8db0c
PB
16249else
16250 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
16251fi
16252
4977bab6 16253
901119ae
KT
16254
16255
16256if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16257 if test -n "$with_build_time_tools"; then
5213506e
RW
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
16259$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
16260 if test -x $with_build_time_tools/windmc; then
16261 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16262 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16264$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 16265 else
5213506e
RW
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16267$as_echo "no" >&6; }
901119ae
KT
16268 fi
16269 elif test $build != $host && test $have_gcc_for_target = yes; then
16270 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
16271 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16272 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
16273 fi
16274fi
16275if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16276 # Extract the first word of "windmc", so it can be a program name with args.
16277set dummy windmc; ac_word=$2
5213506e
RW
16278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16280if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
5213506e 16281 $as_echo_n "(cached) " >&6
901119ae
KT
16282else
16283 case $WINDMC_FOR_TARGET in
16284 [\\/]* | ?:[\\/]*)
16285 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16286 ;;
16287 *)
16288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16289for as_dir in $gcc_cv_tool_dirs
16290do
16291 IFS=$as_save_IFS
16292 test -z "$as_dir" && as_dir=.
5213506e 16293 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16295 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 16296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16297 break 2
16298 fi
16299done
5213506e
RW
16300 done
16301IFS=$as_save_IFS
901119ae
KT
16302
16303 ;;
16304esac
16305fi
16306WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 16307if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16309$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16310else
5213506e
RW
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312$as_echo "no" >&6; }
901119ae
KT
16313fi
16314
5213506e 16315
901119ae
KT
16316fi
16317if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16318
16319
16320if test -n "$WINDMC_FOR_TARGET"; then
16321 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16322elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16323 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16324fi
16325
16326if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16327 for ncn_progname in windmc; do
16328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16329set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16331$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16332if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16333 $as_echo_n "(cached) " >&6
901119ae
KT
16334else
16335 if test -n "$WINDMC_FOR_TARGET"; then
16336 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16337else
16338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16339for as_dir in $PATH
16340do
16341 IFS=$as_save_IFS
16342 test -z "$as_dir" && as_dir=.
5213506e 16343 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16345 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16347 break 2
16348 fi
16349done
5213506e
RW
16350 done
16351IFS=$as_save_IFS
901119ae
KT
16352
16353fi
16354fi
16355WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16356if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16358$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16359else
5213506e
RW
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16361$as_echo "no" >&6; }
901119ae
KT
16362fi
16363
5213506e 16364
901119ae
KT
16365 done
16366fi
16367
16368if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16369 for ncn_progname in windmc; do
5213506e
RW
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16371$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
16372 if test -x $with_build_time_tools/${ncn_progname}; then
16373 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16375$as_echo "yes" >&6; }
901119ae
KT
16376 break
16377 else
5213506e
RW
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379$as_echo "no" >&6; }
901119ae
KT
16380 fi
16381 done
16382fi
16383
16384if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16385 for ncn_progname in windmc; do
16386 if test -n "$ncn_target_tool_prefix"; then
16387 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16388set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
16389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16390$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16391if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16392 $as_echo_n "(cached) " >&6
901119ae
KT
16393else
16394 if test -n "$WINDMC_FOR_TARGET"; then
16395 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16396else
16397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16398for as_dir in $PATH
16399do
16400 IFS=$as_save_IFS
16401 test -z "$as_dir" && as_dir=.
5213506e 16402 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16404 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 16405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16406 break 2
16407 fi
16408done
5213506e
RW
16409 done
16410IFS=$as_save_IFS
901119ae
KT
16411
16412fi
16413fi
16414WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16415if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16417$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16418else
5213506e
RW
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16420$as_echo "no" >&6; }
901119ae
KT
16421fi
16422
5213506e 16423
901119ae
KT
16424 fi
16425 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16427set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16429$as_echo_n "checking for $ac_word... " >&6; }
22e05272 16430if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
5213506e 16431 $as_echo_n "(cached) " >&6
901119ae
KT
16432else
16433 if test -n "$WINDMC_FOR_TARGET"; then
16434 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16435else
16436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16437for as_dir in $PATH
16438do
16439 IFS=$as_save_IFS
16440 test -z "$as_dir" && as_dir=.
5213506e 16441 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 16442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
901119ae 16443 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 16444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
16445 break 2
16446 fi
16447done
5213506e
RW
16448 done
16449IFS=$as_save_IFS
901119ae
KT
16450
16451fi
16452fi
16453WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16454if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
16456$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 16457else
5213506e
RW
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16459$as_echo "no" >&6; }
901119ae
KT
16460fi
16461
5213506e 16462
901119ae
KT
16463 fi
16464 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16465 done
16466fi
16467
16468if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16469 set dummy windmc
16470 if test $build = $target ; then
16471 WINDMC_FOR_TARGET="$2"
16472 else
16473 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16474 fi
1c00b503
PB
16475else
16476 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
16477fi
16478
16479else
16480 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16481fi
16482
16483
2abefe3d
PB
16484RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16485
5213506e
RW
16486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
16487$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 16488if test "x${build}" != "x${host}" ; then
e8b05380
PB
16489 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16490 # We already found the complete path
172e41aa 16491 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16493$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16494 else
16495 # Canadian cross, just use what we found
5213506e
RW
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16497$as_echo "pre-installed" >&6; }
e8b05380 16498 fi
2abefe3d
PB
16499else
16500 ok=yes
16501 case " ${configdirs} " in
16502 *" binutils "*) ;;
16503 *) ok=no ;;
16504 esac
1c710c3c 16505
2abefe3d
PB
16506 if test $ok = yes; then
16507 # An in-tree tool is available and we can use it
16508 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16510$as_echo "just compiled" >&6; }
e8b05380
PB
16511 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
16512 # We already found the complete path
172e41aa 16513 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16515$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16516 elif test "x$target" = "x$host"; then
16517 # We can use an host tool
16518 AR_FOR_TARGET='$(AR)'
5213506e
RW
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16520$as_echo "host tool" >&6; }
2abefe3d
PB
16521 else
16522 # We need a cross tool
5213506e
RW
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16524$as_echo "pre-installed" >&6; }
2abefe3d
PB
16525 fi
16526fi
0b0dc272 16527
5213506e
RW
16528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
16529$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 16530if test "x${build}" != "x${host}" ; then
e8b05380
PB
16531 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16532 # We already found the complete path
172e41aa 16533 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16535$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16536 else
16537 # Canadian cross, just use what we found
5213506e
RW
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16539$as_echo "pre-installed" >&6; }
e8b05380 16540 fi
2abefe3d
PB
16541else
16542 ok=yes
16543 case " ${configdirs} " in
16544 *" gas "*) ;;
16545 *) ok=no ;;
16546 esac
1c710c3c 16547
2abefe3d
PB
16548 if test $ok = yes; then
16549 # An in-tree tool is available and we can use it
16550 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16552$as_echo "just compiled" >&6; }
e8b05380
PB
16553 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
16554 # We already found the complete path
172e41aa 16555 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16557$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16558 elif test "x$target" = "x$host"; then
16559 # We can use an host tool
16560 AS_FOR_TARGET='$(AS)'
5213506e
RW
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16562$as_echo "host tool" >&6; }
2abefe3d
PB
16563 else
16564 # We need a cross tool
5213506e
RW
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16566$as_echo "pre-installed" >&6; }
2abefe3d
PB
16567 fi
16568fi
0b0dc272 16569
5213506e
RW
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
16571$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 16572if test "x${build}" != "x${host}" ; then
e8b05380
PB
16573 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16574 # We already found the complete path
172e41aa 16575 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16577$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16578 else
16579 # Canadian cross, just use what we found
5213506e
RW
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16581$as_echo "pre-installed" >&6; }
e8b05380 16582 fi
2abefe3d
PB
16583else
16584 ok=yes
16585 case " ${configdirs} " in
16586 *" gcc "*) ;;
16587 *) ok=no ;;
16588 esac
1c710c3c 16589
2abefe3d
PB
16590 if test $ok = yes; then
16591 # An in-tree tool is available and we can use it
16592 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16594$as_echo "just compiled" >&6; }
e8b05380
PB
16595 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
16596 # We already found the complete path
172e41aa 16597 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16599$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16600 elif test "x$target" = "x$host"; then
16601 # We can use an host tool
16602 CC_FOR_TARGET='$(CC)'
5213506e
RW
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16604$as_echo "host tool" >&6; }
2abefe3d
PB
16605 else
16606 # We need a cross tool
5213506e
RW
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16608$as_echo "pre-installed" >&6; }
2abefe3d
PB
16609 fi
16610fi
0b0dc272 16611
5213506e
RW
16612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
16613$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 16614if test "x${build}" != "x${host}" ; then
e8b05380
PB
16615 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16616 # We already found the complete path
172e41aa 16617 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16619$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16620 else
16621 # Canadian cross, just use what we found
5213506e
RW
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16623$as_echo "pre-installed" >&6; }
e8b05380 16624 fi
2abefe3d
PB
16625else
16626 ok=yes
16627 case " ${configdirs} " in
16628 *" gcc "*) ;;
16629 *) ok=no ;;
16630 esac
16631 case ,${enable_languages}, in
16632 *,c++,*) ;;
16633 *) ok=no ;;
16634 esac
16635 if test $ok = yes; then
16636 # An in-tree tool is available and we can use it
2077db1b 16637 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
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16639$as_echo "just compiled" >&6; }
e8b05380
PB
16640 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
16641 # We already found the complete path
172e41aa 16642 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16644$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16645 elif test "x$target" = "x$host"; then
16646 # We can use an host tool
16647 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16649$as_echo "host tool" >&6; }
2abefe3d
PB
16650 else
16651 # We need a cross tool
5213506e
RW
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16653$as_echo "pre-installed" >&6; }
2abefe3d
PB
16654 fi
16655fi
0b0dc272 16656
5213506e
RW
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
16658$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 16659if test "x${build}" != "x${host}" ; then
e8b05380
PB
16660 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16661 # We already found the complete path
172e41aa 16662 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16664$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16665 else
16666 # Canadian cross, just use what we found
5213506e
RW
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16668$as_echo "pre-installed" >&6; }
e8b05380 16669 fi
2abefe3d
PB
16670else
16671 ok=yes
16672 case " ${configdirs} " in
16673 *" gcc "*) ;;
16674 *) ok=no ;;
16675 esac
16676 case ,${enable_languages}, in
16677 *,c++,*) ;;
16678 *) ok=no ;;
16679 esac
16680 if test $ok = yes; then
16681 # An in-tree tool is available and we can use it
2077db1b 16682 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
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16684$as_echo "just compiled" >&6; }
e8b05380
PB
16685 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
16686 # We already found the complete path
172e41aa 16687 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16689$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16690 elif test "x$target" = "x$host"; then
16691 # We can use an host tool
16692 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16694$as_echo "host tool" >&6; }
2abefe3d
PB
16695 else
16696 # We need a cross tool
5213506e
RW
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16698$as_echo "pre-installed" >&6; }
2abefe3d
PB
16699 fi
16700fi
0b0dc272 16701
5213506e
RW
16702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
16703$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 16704if test "x${build}" != "x${host}" ; then
e8b05380
PB
16705 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16706 # We already found the complete path
172e41aa 16707 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16709$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16710 else
16711 # Canadian cross, just use what we found
5213506e
RW
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16713$as_echo "pre-installed" >&6; }
e8b05380 16714 fi
2abefe3d
PB
16715else
16716 ok=yes
16717 case " ${configdirs} " in
16718 *" binutils "*) ;;
16719 *) ok=no ;;
16720 esac
1c710c3c 16721
2abefe3d
PB
16722 if test $ok = yes; then
16723 # An in-tree tool is available and we can use it
16724 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16726$as_echo "just compiled" >&6; }
e8b05380
PB
16727 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
16728 # We already found the complete path
172e41aa 16729 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16731$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16732 elif test "x$target" = "x$host"; then
16733 # We can use an host tool
16734 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16736$as_echo "host tool" >&6; }
2abefe3d
PB
16737 else
16738 # We need a cross tool
5213506e
RW
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16740$as_echo "pre-installed" >&6; }
2abefe3d
PB
16741 fi
16742fi
0b0dc272 16743
5213506e
RW
16744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
16745$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 16746if test "x${build}" != "x${host}" ; then
e8b05380
PB
16747 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16748 # We already found the complete path
172e41aa 16749 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
16750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16751$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16752 else
16753 # Canadian cross, just use what we found
5213506e
RW
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16755$as_echo "pre-installed" >&6; }
e8b05380 16756 fi
2abefe3d
PB
16757else
16758 ok=yes
16759 case " ${configdirs} " in
16760 *" gcc "*) ;;
16761 *) ok=no ;;
16762 esac
1c710c3c 16763
2abefe3d
PB
16764 if test $ok = yes; then
16765 # An in-tree tool is available and we can use it
16766 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16768$as_echo "just compiled" >&6; }
e8b05380
PB
16769 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
16770 # We already found the complete path
172e41aa 16771 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16773$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16774 elif test "x$target" = "x$host"; then
16775 # We can use an host tool
16776 GCC_FOR_TARGET='$()'
5213506e
RW
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16778$as_echo "host tool" >&6; }
2abefe3d
PB
16779 else
16780 # We need a cross tool
5213506e
RW
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16782$as_echo "pre-installed" >&6; }
2abefe3d
PB
16783 fi
16784fi
0b0dc272 16785
5213506e
RW
16786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
16787$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 16788if test "x${build}" != "x${host}" ; then
e8b05380
PB
16789 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16790 # We already found the complete path
172e41aa 16791 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16793$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16794 else
16795 # Canadian cross, just use what we found
5213506e
RW
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16797$as_echo "pre-installed" >&6; }
e8b05380 16798 fi
2abefe3d
PB
16799else
16800 ok=yes
16801 case " ${configdirs} " in
16802 *" gcc "*) ;;
16803 *) ok=no ;;
16804 esac
16805 case ,${enable_languages}, in
16806 *,fortran,*) ;;
16807 *) ok=no ;;
16808 esac
16809 if test $ok = yes; then
16810 # An in-tree tool is available and we can use it
16811 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16813$as_echo "just compiled" >&6; }
e8b05380
PB
16814 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
16815 # We already found the complete path
172e41aa 16816 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16818$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16819 elif test "x$target" = "x$host"; then
16820 # We can use an host tool
16821 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16823$as_echo "host tool" >&6; }
2abefe3d
PB
16824 else
16825 # We need a cross tool
5213506e
RW
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16827$as_echo "pre-installed" >&6; }
2abefe3d
PB
16828 fi
16829fi
0b0dc272 16830
632e2a07
ILT
16831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
16832$as_echo_n "checking where to find the target gccgo... " >&6; }
16833if test "x${build}" != "x${host}" ; then
16834 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16835 # We already found the complete path
16836 ac_dir=`dirname $GOC_FOR_TARGET`
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16838$as_echo "pre-installed in $ac_dir" >&6; }
16839 else
16840 # Canadian cross, just use what we found
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16842$as_echo "pre-installed" >&6; }
16843 fi
16844else
16845 ok=yes
16846 case " ${configdirs} " in
16847 *" gcc "*) ;;
16848 *) ok=no ;;
16849 esac
16850 case ,${enable_languages}, in
16851 *,go,*) ;;
16852 *) ok=no ;;
16853 esac
16854 if test $ok = yes; then
16855 # An in-tree tool is available and we can use it
16856 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16858$as_echo "just compiled" >&6; }
16859 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
16860 # We already found the complete path
16861 ac_dir=`dirname $GOC_FOR_TARGET`
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16863$as_echo "pre-installed in $ac_dir" >&6; }
16864 elif test "x$target" = "x$host"; then
16865 # We can use an host tool
16866 GOC_FOR_TARGET='$(GOC)'
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16868$as_echo "host tool" >&6; }
16869 else
16870 # We need a cross tool
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16872$as_echo "pre-installed" >&6; }
16873 fi
16874fi
16875
b4c522fa
IB
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
16877$as_echo_n "checking where to find the target gdc... " >&6; }
16878if test "x${build}" != "x${host}" ; then
16879 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16880 # We already found the complete path
16881 ac_dir=`dirname $GDC_FOR_TARGET`
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16883$as_echo "pre-installed in $ac_dir" >&6; }
16884 else
16885 # Canadian cross, just use what we found
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16887$as_echo "pre-installed" >&6; }
16888 fi
16889else
16890 ok=yes
16891 case " ${configdirs} " in
16892 *" gcc "*) ;;
16893 *) ok=no ;;
16894 esac
16895 case ,${enable_languages}, in
16896 *,d,*) ;;
16897 *) ok=no ;;
16898 esac
16899 if test $ok = yes; then
16900 # An in-tree tool is available and we can use it
16901 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16903$as_echo "just compiled" >&6; }
16904 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
16905 # We already found the complete path
16906 ac_dir=`dirname $GDC_FOR_TARGET`
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16908$as_echo "pre-installed in $ac_dir" >&6; }
16909 elif test "x$target" = "x$host"; then
16910 # We can use an host tool
16911 GDC_FOR_TARGET='$(GDC)'
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16913$as_echo "host tool" >&6; }
16914 else
16915 # We need a cross tool
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16917$as_echo "pre-installed" >&6; }
16918 fi
16919fi
16920
5213506e
RW
16921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
16922$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 16923if test "x${build}" != "x${host}" ; then
e8b05380
PB
16924 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16925 # We already found the complete path
172e41aa 16926 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16928$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16929 else
16930 # Canadian cross, just use what we found
5213506e
RW
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16932$as_echo "pre-installed" >&6; }
e8b05380 16933 fi
2abefe3d
PB
16934else
16935 ok=yes
16936 case " ${configdirs} " in
16937 *" ld "*) ;;
16938 *) ok=no ;;
16939 esac
1c710c3c 16940
2abefe3d
PB
16941 if test $ok = yes; then
16942 # An in-tree tool is available and we can use it
16943 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
16945$as_echo "just compiled" >&6; }
e8b05380
PB
16946 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
16947 # We already found the complete path
172e41aa 16948 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16950$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
16951 elif test "x$target" = "x$host"; then
16952 # We can use an host tool
16953 LD_FOR_TARGET='$(LD)'
5213506e
RW
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16955$as_echo "host tool" >&6; }
2abefe3d
PB
16956 else
16957 # We need a cross tool
5213506e
RW
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16959$as_echo "pre-installed" >&6; }
2abefe3d
PB
16960 fi
16961fi
0b0dc272 16962
5213506e
RW
16963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
16964$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 16965if test "x${build}" != "x${host}" ; then
e8b05380
PB
16966 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16967 # We already found the complete path
172e41aa 16968 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16970$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
16971 else
16972 # Canadian cross, just use what we found
5213506e
RW
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16974$as_echo "pre-installed" >&6; }
e8b05380 16975 fi
2abefe3d 16976else
e8b05380
PB
16977 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
16978 # We already found the complete path
172e41aa 16979 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
16981$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 16982 elif test "x$target" = "x$host"; then
2abefe3d
PB
16983 # We can use an host tool
16984 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
16986$as_echo "host tool" >&6; }
2abefe3d
PB
16987 else
16988 # We need a cross tool
5213506e
RW
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
16990$as_echo "pre-installed" >&6; }
2abefe3d
PB
16991 fi
16992fi
0b0dc272 16993
5213506e
RW
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
16995$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 16996if test "x${build}" != "x${host}" ; then
e8b05380
PB
16997 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
16998 # We already found the complete path
172e41aa 16999 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17001$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17002 else
17003 # Canadian cross, just use what we found
5213506e
RW
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17005$as_echo "pre-installed" >&6; }
e8b05380 17006 fi
2abefe3d
PB
17007else
17008 ok=yes
17009 case " ${configdirs} " in
17010 *" binutils "*) ;;
17011 *) ok=no ;;
17012 esac
1c710c3c 17013
2abefe3d
PB
17014 if test $ok = yes; then
17015 # An in-tree tool is available and we can use it
17016 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17018$as_echo "just compiled" >&6; }
e8b05380
PB
17019 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17020 # We already found the complete path
172e41aa 17021 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17023$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17024 elif test "x$target" = "x$host"; then
17025 # We can use an host tool
17026 NM_FOR_TARGET='$(NM)'
5213506e
RW
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17028$as_echo "host tool" >&6; }
2abefe3d
PB
17029 else
17030 # We need a cross tool
5213506e
RW
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17032$as_echo "pre-installed" >&6; }
2abefe3d
PB
17033 fi
17034fi
0b0dc272 17035
9bccfdf5
AP
17036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17037$as_echo_n "checking where to find the target objcopy... " >&6; }
17038if test "x${build}" != "x${host}" ; then
17039 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17040 # We already found the complete path
17041 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17043$as_echo "pre-installed in $ac_dir" >&6; }
17044 else
17045 # Canadian cross, just use what we found
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17047$as_echo "pre-installed" >&6; }
17048 fi
17049else
17050 ok=yes
17051 case " ${configdirs} " in
17052 *" binutils "*) ;;
17053 *) ok=no ;;
17054 esac
17055
17056 if test $ok = yes; then
17057 # An in-tree tool is available and we can use it
17058 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17060$as_echo "just compiled" >&6; }
17061 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17062 # We already found the complete path
17063 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17065$as_echo "pre-installed in $ac_dir" >&6; }
17066 elif test "x$target" = "x$host"; then
17067 # We can use an host tool
ec8fd1c0 17068 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17070$as_echo "host tool" >&6; }
17071 else
17072 # We need a cross tool
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17074$as_echo "pre-installed" >&6; }
17075 fi
17076fi
17077
5213506e
RW
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17079$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 17080if test "x${build}" != "x${host}" ; then
e8b05380
PB
17081 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17082 # We already found the complete path
172e41aa 17083 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17085$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17086 else
17087 # Canadian cross, just use what we found
5213506e
RW
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17089$as_echo "pre-installed" >&6; }
e8b05380 17090 fi
2abefe3d
PB
17091else
17092 ok=yes
17093 case " ${configdirs} " in
17094 *" binutils "*) ;;
17095 *) ok=no ;;
17096 esac
1c710c3c 17097
2abefe3d
PB
17098 if test $ok = yes; then
17099 # An in-tree tool is available and we can use it
17100 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17102$as_echo "just compiled" >&6; }
e8b05380
PB
17103 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17104 # We already found the complete path
172e41aa 17105 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17107$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17108 elif test "x$target" = "x$host"; then
17109 # We can use an host tool
17110 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17112$as_echo "host tool" >&6; }
2abefe3d
PB
17113 else
17114 # We need a cross tool
5213506e
RW
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17116$as_echo "pre-installed" >&6; }
2abefe3d
PB
17117 fi
17118fi
0b0dc272 17119
e4a9a572
IS
17120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17121$as_echo_n "checking where to find the target otool... " >&6; }
17122if test "x${build}" != "x${host}" ; then
17123 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17124 # We already found the complete path
17125 ac_dir=`dirname $OTOOL_FOR_TARGET`
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17127$as_echo "pre-installed in $ac_dir" >&6; }
17128 else
17129 # Canadian cross, just use what we found
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17131$as_echo "pre-installed" >&6; }
17132 fi
17133else
17134 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17135 # We already found the complete path
17136 ac_dir=`dirname $OTOOL_FOR_TARGET`
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17138$as_echo "pre-installed in $ac_dir" >&6; }
17139 elif test "x$target" = "x$host"; then
17140 # We can use an host tool
17141 OTOOL_FOR_TARGET='$(OTOOL)'
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17143$as_echo "host tool" >&6; }
17144 else
17145 # We need a cross tool
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17147$as_echo "pre-installed" >&6; }
17148 fi
17149fi
17150
5213506e
RW
17151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17152$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 17153if test "x${build}" != "x${host}" ; then
e8b05380
PB
17154 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17155 # We already found the complete path
172e41aa 17156 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17158$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17159 else
17160 # Canadian cross, just use what we found
5213506e
RW
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17162$as_echo "pre-installed" >&6; }
e8b05380 17163 fi
2abefe3d
PB
17164else
17165 ok=yes
17166 case " ${configdirs} " in
17167 *" binutils "*) ;;
17168 *) ok=no ;;
17169 esac
1c710c3c 17170
2abefe3d
PB
17171 if test $ok = yes; then
17172 # An in-tree tool is available and we can use it
17173 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
17174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17175$as_echo "just compiled" >&6; }
e8b05380
PB
17176 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17177 # We already found the complete path
172e41aa 17178 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17180$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17181 elif test "x$target" = "x$host"; then
17182 # We can use an host tool
17183 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17185$as_echo "host tool" >&6; }
2abefe3d
PB
17186 else
17187 # We need a cross tool
5213506e
RW
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17189$as_echo "pre-installed" >&6; }
2abefe3d
PB
17190 fi
17191fi
0b0dc272 17192
e7a82751
RM
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17194$as_echo_n "checking where to find the target readelf... " >&6; }
17195if test "x${build}" != "x${host}" ; then
17196 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17197 # We already found the complete path
17198 ac_dir=`dirname $READELF_FOR_TARGET`
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17200$as_echo "pre-installed in $ac_dir" >&6; }
17201 else
17202 # Canadian cross, just use what we found
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17204$as_echo "pre-installed" >&6; }
17205 fi
17206else
17207 ok=yes
17208 case " ${configdirs} " in
17209 *" binutils "*) ;;
17210 *) ok=no ;;
17211 esac
17212
17213 if test $ok = yes; then
17214 # An in-tree tool is available and we can use it
17215 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17217$as_echo "just compiled" >&6; }
17218 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17219 # We already found the complete path
17220 ac_dir=`dirname $READELF_FOR_TARGET`
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17222$as_echo "pre-installed in $ac_dir" >&6; }
17223 elif test "x$target" = "x$host"; then
17224 # We can use an host tool
17225 READELF_FOR_TARGET='$(READELF)'
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17227$as_echo "host tool" >&6; }
17228 else
17229 # We need a cross tool
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17231$as_echo "pre-installed" >&6; }
17232 fi
17233fi
17234
5213506e
RW
17235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
17236$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 17237if test "x${build}" != "x${host}" ; then
e8b05380
PB
17238 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17239 # We already found the complete path
172e41aa 17240 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17242$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17243 else
17244 # Canadian cross, just use what we found
5213506e
RW
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17246$as_echo "pre-installed" >&6; }
e8b05380 17247 fi
2abefe3d
PB
17248else
17249 ok=yes
17250 case " ${configdirs} " in
17251 *" binutils "*) ;;
17252 *) ok=no ;;
17253 esac
1c710c3c 17254
2abefe3d
PB
17255 if test $ok = yes; then
17256 # An in-tree tool is available and we can use it
455c8f48 17257 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17259$as_echo "just compiled" >&6; }
e8b05380
PB
17260 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
17261 # We already found the complete path
172e41aa 17262 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17264$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17265 elif test "x$target" = "x$host"; then
17266 # We can use an host tool
17267 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17269$as_echo "host tool" >&6; }
2abefe3d
PB
17270 else
17271 # We need a cross tool
5213506e
RW
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17273$as_echo "pre-installed" >&6; }
2abefe3d
PB
17274 fi
17275fi
0b0dc272 17276
5213506e
RW
17277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
17278$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 17279if test "x${build}" != "x${host}" ; then
e8b05380
PB
17280 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17281 # We already found the complete path
172e41aa 17282 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17284$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
17285 else
17286 # Canadian cross, just use what we found
5213506e
RW
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17288$as_echo "pre-installed" >&6; }
e8b05380 17289 fi
2abefe3d
PB
17290else
17291 ok=yes
17292 case " ${configdirs} " in
17293 *" binutils "*) ;;
17294 *) ok=no ;;
17295 esac
1c710c3c 17296
2abefe3d
PB
17297 if test $ok = yes; then
17298 # An in-tree tool is available and we can use it
17299 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17301$as_echo "just compiled" >&6; }
e8b05380
PB
17302 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
17303 # We already found the complete path
172e41aa 17304 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17306$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
17307 elif test "x$target" = "x$host"; then
17308 # We can use an host tool
17309 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17311$as_echo "host tool" >&6; }
2abefe3d
PB
17312 else
17313 # We need a cross tool
5213506e
RW
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17315$as_echo "pre-installed" >&6; }
2abefe3d 17316 fi
671aa708 17317fi
be912515 17318
5213506e
RW
17319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
17320$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
17321if test "x${build}" != "x${host}" ; then
17322 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17326$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17327 else
17328 # Canadian cross, just use what we found
5213506e
RW
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17330$as_echo "pre-installed" >&6; }
901119ae
KT
17331 fi
17332else
17333 ok=yes
17334 case " ${configdirs} " in
17335 *" binutils "*) ;;
17336 *) ok=no ;;
17337 esac
17338
17339 if test $ok = yes; then
17340 # An in-tree tool is available and we can use it
17341 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17343$as_echo "just compiled" >&6; }
901119ae
KT
17344 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
17345 # We already found the complete path
17346 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17348$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
17349 elif test "x$target" = "x$host"; then
17350 # We can use an host tool
17351 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17353$as_echo "host tool" >&6; }
901119ae
KT
17354 else
17355 # We need a cross tool
5213506e
RW
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17357$as_echo "pre-installed" >&6; }
901119ae
KT
17358 fi
17359fi
17360
be912515
NN
17361
17362
2abefe3d 17363
0b0dc272 17364
671aa708
NN
17365# Certain tools may need extra flags.
17366AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17367RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17368NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17369
2abefe3d
PB
17370# When building target libraries, except in a Canadian cross, we use
17371# the same toolchain as the compiler we just built.
17372COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17373COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17374COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17375if test $host = $build; then
17376 case " $configdirs " in
17377 *" gcc "*)
17378 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17379 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17380 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17381 ;;
17382 esac
17383fi
17384
17385
17386
17387
17388
5213506e
RW
17389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17390$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17391# Check whether --enable-maintainer-mode was given.
17392if test "${enable_maintainer_mode+set}" = set; then :
17393 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
17394else
17395 USE_MAINTAINER_MODE=no
5213506e
RW
17396fi
17397
17398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17399$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
17400
17401
17402if test "$USE_MAINTAINER_MODE" = yes; then
17403 MAINTAINER_MODE_TRUE=
17404 MAINTAINER_MODE_FALSE='#'
17405else
17406 MAINTAINER_MODE_TRUE='#'
17407 MAINTAINER_MODE_FALSE=
1c710c3c 17408fi
ee03dc5e
AO
17409MAINT=$MAINTAINER_MODE_TRUE
17410
2805b53a
NN
17411# ---------------------
17412# GCC bootstrap support
17413# ---------------------
17414
17415# Stage specific cflags for build.
17416stage1_cflags="-g"
17417case $build in
17418 vax-*-*)
17419 case ${GCC} in
17420 yes) stage1_cflags="-g -Wa,-J" ;;
17421 *) stage1_cflags="-g -J" ;;
17422 esac ;;
2805b53a
NN
17423esac
17424
0b50988a 17425
2805b53a 17426
8efea775 17427# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
17428# Check whether --enable-stage1-checking was given.
17429if test "${enable_stage1_checking+set}" = set; then :
17430 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 17431else
e643dc23 17432 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
17433 # For --disable-checking or implicit --enable-checking=release, avoid
17434 # setting --enable-checking=gc in the default stage1 checking for LTO
17435 # bootstraps. See PR62077.
c10b5ea0
JJ
17436 case $BUILD_CONFIG in
17437 *lto*)
7db11a5a
JJ
17438 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17439 *)
17440 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 17441 esac
7db11a5a
JJ
17442 if test "x$enable_checking" = x && \
17443 test -d ${srcdir}/gcc && \
17444 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 17445 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 17446 fi
8efea775 17447else
e643dc23 17448 stage1_checking=--enable-checking=$enable_checking,types
8efea775 17449fi
5213506e 17450fi
8efea775
PB
17451
17452
2aeb72e9 17453
5213506e
RW
17454# Enable -Werror in bootstrap stage2 and later.
17455# Check whether --enable-werror was given.
17456if test "${enable_werror+set}" = set; then :
17457 enableval=$enable_werror;
09a9c095
NN
17458case ${enable_werror} in
17459 yes) stage2_werror_flag="--enable-werror-always" ;;
17460 *) stage2_werror_flag="" ;;
2805b53a
NN
17461esac
17462
afd88efc
ML
17463else
17464
01c712cb
ML
17465if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17466 case $BUILD_CONFIG in
17467 bootstrap-debug)
17468 stage2_werror_flag="--enable-werror-always" ;;
17469 "")
17470 stage2_werror_flag="--enable-werror-always" ;;
17471 esac
17472fi
17473
afd88efc
ML
17474fi
17475
17476
01c712cb 17477
2805b53a 17478
f2689b09
SE
17479# Specify what files to not compare during bootstrap.
17480
17481compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
17482case "$target" in
17483 hppa*64*-*-hpux*) ;;
4f943869
MK
17484 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
17485 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
f2689b09
SE
17486esac
17487
17488
5213506e
RW
17489ac_config_files="$ac_config_files Makefile"
17490
1c710c3c 17491cat >confcache <<\_ACEOF
671aa708
NN
17492# This file is a shell script that caches the results of configure
17493# tests run on this system so they can be shared between configure
1c710c3c
DJ
17494# scripts and configure runs, see configure's option --config-cache.
17495# It is not useful on other systems. If it contains results you don't
17496# want to keep, you may remove or edit it.
671aa708 17497#
1c710c3c
DJ
17498# config.status only pays attention to the cache file if you give it
17499# the --recheck option to rerun configure.
671aa708 17500#
1c710c3c
DJ
17501# `ac_cv_env_foo' variables (set or unset) will be overridden when
17502# loading this file, other *unset* `ac_cv_foo' will be assigned the
17503# following values.
17504
17505_ACEOF
17506
671aa708
NN
17507# The following way of writing the cache mishandles newlines in values,
17508# but we know of no workaround that is simple, portable, and efficient.
5213506e 17509# So, we kill variables containing newlines.
671aa708
NN
17510# Ultrix sh set writes to stderr and can't be redirected directly,
17511# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
17512(
17513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17514 eval ac_val=\$$ac_var
17515 case $ac_val in #(
17516 *${as_nl}*)
17517 case $ac_var in #(
17518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17519$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17520 esac
17521 case $ac_var in #(
17522 _ | IFS | as_nl) ;; #(
17523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17524 *) { eval $ac_var=; unset $ac_var;} ;;
17525 esac ;;
17526 esac
17527 done
17528
1c710c3c 17529 (set) 2>&1 |
5213506e
RW
17530 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17531 *${as_nl}ac_space=\ *)
17532 # `set' does not quote correctly, so add quotes: double-quote
17533 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
17534 sed -n \
17535 "s/'/'\\\\''/g;
17536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 17537 ;; #(
1c710c3c
DJ
17538 *)
17539 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 17540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 17541 ;;
5213506e
RW
17542 esac |
17543 sort
17544) |
1c710c3c 17545 sed '
5213506e 17546 /^ac_cv_env_/b end
1c710c3c 17547 t clear
5213506e 17548 :clear
1c710c3c
DJ
17549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17550 t end
5213506e
RW
17551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17552 :end' >>confcache
17553if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17554 if test -w "$cache_file"; then
22e05272 17555 if test "x$cache_file" != "x/dev/null"; then
5213506e
RW
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17557$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
17558 if test ! -f "$cache_file" || test -h "$cache_file"; then
17559 cat confcache >"$cache_file"
17560 else
17561 case $cache_file in #(
17562 */* | ?:*)
17563 mv -f confcache "$cache_file"$$ &&
17564 mv -f "$cache_file"$$ "$cache_file" ;; #(
17565 *)
17566 mv -f confcache "$cache_file" ;;
17567 esac
17568 fi
17569 fi
671aa708 17570 else
5213506e
RW
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 17573 fi
4977bab6 17574fi
671aa708 17575rm -f confcache
79c06341 17576
671aa708
NN
17577test "x$prefix" = xNONE && prefix=$ac_default_prefix
17578# Let make expand exec_prefix.
17579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 17580
671aa708
NN
17581# Transform confdefs.h into DEFS.
17582# Protect against shell expansion while executing Makefile rules.
17583# Protect against Makefile macro expansion.
1c710c3c
DJ
17584#
17585# If the first sed substitution is executed (which looks for macros that
5213506e 17586# take arguments), then branch to the quote section. Otherwise,
1c710c3c 17587# look for a macro that doesn't take arguments.
5213506e
RW
17588ac_script='
17589:mline
17590/\\$/{
17591 N
17592 s,\\\n,,
17593 b mline
17594}
1c710c3c 17595t clear
5213506e
RW
17596:clear
17597s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 17598t quote
5213506e 17599s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 17600t quote
5213506e
RW
17601b any
17602:quote
17603s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
17604s/\[/\\&/g
17605s/\]/\\&/g
17606s/\$/$$/g
17607H
17608:any
17609${
17610 g
17611 s/^\n//
17612 s/\n/ /g
17613 p
17614}
17615'
17616DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
17617
17618
17619ac_libobjs=
17620ac_ltlibobjs=
22e05272 17621U=
1c710c3c
DJ
17622for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17623 # 1. Remove the extension, and $U if already installed.
5213506e
RW
17624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17627 # will be set to the directory where LIBOBJS objects are built.
17628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
17630done
17631LIBOBJS=$ac_libobjs
fb0103e5 17632
1c710c3c 17633LTLIBOBJS=$ac_ltlibobjs
0b0dc272 17634
af71363e 17635
1c710c3c 17636
22e05272 17637: "${CONFIG_STATUS=./config.status}"
5213506e 17638ac_write_fail=0
1c710c3c
DJ
17639ac_clean_files_save=$ac_clean_files
17640ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17642$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17643as_write_fail=0
17644cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
17645#! $SHELL
17646# Generated by $as_me.
671aa708 17647# Run this file to recreate the current configuration.
671aa708 17648# Compiler output produced by configure, useful for debugging
1c710c3c 17649# configure, is in config.log if it exists.
0b0dc272 17650
1c710c3c
DJ
17651debug=false
17652ac_cs_recheck=false
17653ac_cs_silent=false
1c710c3c 17654
5213506e
RW
17655SHELL=\${CONFIG_SHELL-$SHELL}
17656export SHELL
17657_ASEOF
17658cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17659## -------------------- ##
17660## M4sh Initialization. ##
17661## -------------------- ##
17662
17663# Be more Bourne compatible
17664DUALCASE=1; export DUALCASE # for MKS sh
17665if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
17666 emulate sh
17667 NULLCMD=:
5213506e 17668 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
17669 # is contrary to our usage. Disable this feature.
17670 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
17671 setopt NO_GLOB_SUBST
17672else
17673 case `(set -o) 2>/dev/null` in #(
17674 *posix*) :
17675 set -o posix ;; #(
17676 *) :
17677 ;;
17678esac
1c710c3c 17679fi
1c710c3c 17680
5213506e
RW
17681
17682as_nl='
17683'
17684export as_nl
17685# Printing a long string crashes Solaris 7 /usr/bin/printf.
17686as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17687as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17688as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17689# Prefer a ksh shell builtin over an external printf program on Solaris,
17690# but without wasting forks for bash or zsh.
17691if test -z "$BASH_VERSION$ZSH_VERSION" \
17692 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17693 as_echo='print -r --'
17694 as_echo_n='print -rn --'
17695elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17696 as_echo='printf %s\n'
17697 as_echo_n='printf %s'
17698else
17699 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17700 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17701 as_echo_n='/usr/ucb/echo -n'
17702 else
17703 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17704 as_echo_n_body='eval
17705 arg=$1;
17706 case $arg in #(
17707 *"$as_nl"*)
17708 expr "X$arg" : "X\\(.*\\)$as_nl";
17709 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17710 esac;
17711 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17712 '
17713 export as_echo_n_body
17714 as_echo_n='sh -c $as_echo_n_body as_echo'
17715 fi
17716 export as_echo_body
17717 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
17718fi
17719
5213506e
RW
17720# The user is always right.
17721if test "${PATH_SEPARATOR+set}" != set; then
17722 PATH_SEPARATOR=:
17723 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17724 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17725 PATH_SEPARATOR=';'
17726 }
17727fi
17728
17729
17730# IFS
17731# We need space, tab and new line, in precisely that order. Quoting is
17732# there to prevent editors from complaining about space-tab.
17733# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17734# splitting by setting IFS to empty value.)
17735IFS=" "" $as_nl"
17736
17737# Find who we are. Look in the path if we contain no directory separator.
22e05272 17738as_myself=
5213506e
RW
17739case $0 in #((
17740 *[\\/]* ) as_myself=$0 ;;
17741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742for as_dir in $PATH
17743do
17744 IFS=$as_save_IFS
17745 test -z "$as_dir" && as_dir=.
17746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17747 done
17748IFS=$as_save_IFS
17749
17750 ;;
17751esac
17752# We did not find ourselves, most probably we were run as `sh COMMAND'
17753# in which case we are not to be found in the path.
17754if test "x$as_myself" = x; then
17755 as_myself=$0
17756fi
17757if test ! -f "$as_myself"; then
17758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17759 exit 1
17760fi
1c710c3c 17761
5213506e
RW
17762# Unset variables that we do not need and which cause bugs (e.g. in
17763# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17764# suppresses any "Segmentation fault" message there. '((' could
17765# trigger a bug in pdksh 5.2.14.
17766for as_var in BASH_ENV ENV MAIL MAILPATH
17767do eval test x\${$as_var+set} = xset \
17768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17769done
1c710c3c
DJ
17770PS1='$ '
17771PS2='> '
17772PS4='+ '
17773
17774# NLS nuisances.
5213506e
RW
17775LC_ALL=C
17776export LC_ALL
17777LANGUAGE=C
17778export LANGUAGE
17779
17780# CDPATH.
17781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17782
17783
22e05272
JM
17784# as_fn_error STATUS ERROR [LINENO LOG_FD]
17785# ----------------------------------------
5213506e
RW
17786# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17787# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 17788# script with STATUS, using 1 if that was 0.
5213506e
RW
17789as_fn_error ()
17790{
22e05272
JM
17791 as_status=$1; test $as_status -eq 0 && as_status=1
17792 if test "$4"; then
17793 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1c710c3c 17795 fi
22e05272 17796 $as_echo "$as_me: error: $2" >&2
5213506e
RW
17797 as_fn_exit $as_status
17798} # as_fn_error
17799
17800
17801# as_fn_set_status STATUS
17802# -----------------------
17803# Set $? to STATUS, without forking.
17804as_fn_set_status ()
17805{
17806 return $1
17807} # as_fn_set_status
17808
17809# as_fn_exit STATUS
17810# -----------------
17811# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17812as_fn_exit ()
17813{
17814 set +e
17815 as_fn_set_status $1
17816 exit $1
17817} # as_fn_exit
17818
17819# as_fn_unset VAR
17820# ---------------
17821# Portably unset VAR.
17822as_fn_unset ()
17823{
17824 { eval $1=; unset $1;}
17825}
17826as_unset=as_fn_unset
17827# as_fn_append VAR VALUE
17828# ----------------------
17829# Append the text in VALUE to the end of the definition contained in VAR. Take
17830# advantage of any shell optimizations that allow amortized linear growth over
17831# repeated appends, instead of the typical quadratic growth present in naive
17832# implementations.
17833if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17834 eval 'as_fn_append ()
17835 {
17836 eval $1+=\$2
17837 }'
17838else
17839 as_fn_append ()
17840 {
17841 eval $1=\$$1\$2
17842 }
17843fi # as_fn_append
17844
17845# as_fn_arith ARG...
17846# ------------------
17847# Perform arithmetic evaluation on the ARGs, and store the result in the
17848# global $as_val. Take advantage of shells that can avoid forks. The arguments
17849# must be portable across $(()) and expr.
17850if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17851 eval 'as_fn_arith ()
17852 {
17853 as_val=$(( $* ))
17854 }'
17855else
17856 as_fn_arith ()
17857 {
17858 as_val=`expr "$@" || test $? -eq 1`
17859 }
17860fi # as_fn_arith
17861
1c710c3c 17862
5213506e
RW
17863if expr a : '\(a\)' >/dev/null 2>&1 &&
17864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
17865 as_expr=expr
17866else
17867 as_expr=false
17868fi
17869
5213506e 17870if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
17871 as_basename=basename
17872else
17873 as_basename=false
17874fi
17875
5213506e
RW
17876if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17877 as_dirname=dirname
17878else
17879 as_dirname=false
17880fi
1c710c3c 17881
5213506e 17882as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
17883$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17884 X"$0" : 'X\(//\)$' \| \
5213506e
RW
17885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17886$as_echo X/"$0" |
17887 sed '/^.*\/\([^/][^/]*\)\/*$/{
17888 s//\1/
17889 q
17890 }
17891 /^X\/\(\/\/\)$/{
17892 s//\1/
17893 q
17894 }
17895 /^X\/\(\/\).*/{
17896 s//\1/
17897 q
17898 }
17899 s/.*/./; q'`
2aeb72e9 17900
2aeb72e9
DD
17901# Avoid depending upon Character Ranges.
17902as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17903as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17904as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17905as_cr_digits='0123456789'
17906as_cr_alnum=$as_cr_Letters$as_cr_digits
17907
5213506e
RW
17908ECHO_C= ECHO_N= ECHO_T=
17909case `echo -n x` in #(((((
17910-n*)
17911 case `echo 'xy\c'` in
17912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17913 xy) ECHO_C='\c';;
17914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17915 ECHO_T=' ';;
17916 esac;;
17917*)
17918 ECHO_N='-n';;
1c710c3c
DJ
17919esac
17920
5213506e
RW
17921rm -f conf$$ conf$$.exe conf$$.file
17922if test -d conf$$.dir; then
17923 rm -f conf$$.dir/conf$$.file
1c710c3c 17924else
5213506e
RW
17925 rm -f conf$$.dir
17926 mkdir conf$$.dir 2>/dev/null
1c710c3c 17927fi
5213506e
RW
17928if (echo >conf$$.file) 2>/dev/null; then
17929 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 17930 as_ln_s='ln -s'
5213506e
RW
17931 # ... but there are two gotchas:
17932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 17934 # In both cases, we have to default to `cp -pR'.
5213506e 17935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 17936 as_ln_s='cp -pR'
5213506e
RW
17937 elif ln conf$$.file conf$$ 2>/dev/null; then
17938 as_ln_s=ln
17939 else
22e05272 17940 as_ln_s='cp -pR'
2aeb72e9 17941 fi
1c710c3c 17942else
22e05272 17943 as_ln_s='cp -pR'
1c710c3c 17944fi
5213506e
RW
17945rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17946rmdir conf$$.dir 2>/dev/null
17947
17948
17949# as_fn_mkdir_p
17950# -------------
17951# Create "$as_dir" as a directory, including parents if necessary.
17952as_fn_mkdir_p ()
17953{
17954
17955 case $as_dir in #(
17956 -*) as_dir=./$as_dir;;
17957 esac
17958 test -d "$as_dir" || eval $as_mkdir_p || {
17959 as_dirs=
17960 while :; do
17961 case $as_dir in #(
17962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17963 *) as_qdir=$as_dir;;
17964 esac
17965 as_dirs="'$as_qdir' $as_dirs"
17966 as_dir=`$as_dirname -- "$as_dir" ||
17967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17968 X"$as_dir" : 'X\(//\)[^/]' \| \
17969 X"$as_dir" : 'X\(//\)$' \| \
17970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17971$as_echo X"$as_dir" |
17972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17973 s//\1/
17974 q
17975 }
17976 /^X\(\/\/\)[^/].*/{
17977 s//\1/
17978 q
17979 }
17980 /^X\(\/\/\)$/{
17981 s//\1/
17982 q
17983 }
17984 /^X\(\/\).*/{
17985 s//\1/
17986 q
17987 }
17988 s/.*/./; q'`
17989 test -d "$as_dir" && break
17990 done
17991 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 17992 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5213506e 17993
1c710c3c 17994
5213506e 17995} # as_fn_mkdir_p
1c710c3c 17996if mkdir -p . 2>/dev/null; then
5213506e 17997 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
17998else
17999 test -d ./-p && rmdir ./-p
18000 as_mkdir_p=false
18001fi
18002
22e05272
JM
18003
18004# as_fn_executable_p FILE
18005# -----------------------
18006# Test if FILE is an executable regular file.
18007as_fn_executable_p ()
18008{
18009 test -f "$1" && test -x "$1"
18010} # as_fn_executable_p
18011as_test_x='test -x'
18012as_executable_p=as_fn_executable_p
1c710c3c
DJ
18013
18014# Sed expression to map a string onto a valid CPP name.
18015as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18016
18017# Sed expression to map a string onto a valid variable name.
18018as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18019
18020
1c710c3c 18021exec 6>&1
5213506e
RW
18022## ----------------------------------- ##
18023## Main body of $CONFIG_STATUS script. ##
18024## ----------------------------------- ##
18025_ASEOF
18026test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18027
18028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18029# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 18030# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
18031# values after options handling.
18032ac_log="
1c710c3c 18033This file was extended by $as_me, which was
22e05272 18034generated by GNU Autoconf 2.69. Invocation command line was
1c710c3c
DJ
18035
18036 CONFIG_FILES = $CONFIG_FILES
18037 CONFIG_HEADERS = $CONFIG_HEADERS
18038 CONFIG_LINKS = $CONFIG_LINKS
18039 CONFIG_COMMANDS = $CONFIG_COMMANDS
18040 $ $0 $@
18041
5213506e
RW
18042on `(hostname || uname -n) 2>/dev/null | sed 1q`
18043"
18044
1c710c3c
DJ
18045_ACEOF
18046
5213506e
RW
18047case $ac_config_files in *"
18048"*) set x $ac_config_files; shift; ac_config_files=$*;;
18049esac
1c710c3c 18050
2aeb72e9 18051
2aeb72e9 18052
5213506e
RW
18053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18054# Files that config.status was made for.
18055config_files="$ac_config_files"
1c710c3c 18056
5213506e 18057_ACEOF
2aeb72e9 18058
5213506e 18059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 18060ac_cs_usage="\
5213506e
RW
18061\`$as_me' instantiates files and other configuration actions
18062from templates according to the current configuration. Unless the files
18063and actions are specified as TAGs, all are instantiated by default.
1c710c3c 18064
5213506e 18065Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
18066
18067 -h, --help print this help, then exit
5213506e 18068 -V, --version print version number and configuration settings, then exit
22e05272 18069 --config print configuration, then exit
5213506e
RW
18070 -q, --quiet, --silent
18071 do not print progress messages
1c710c3c
DJ
18072 -d, --debug don't remove temporary files
18073 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
18074 --file=FILE[:TEMPLATE]
18075 instantiate the configuration file FILE
1c710c3c
DJ
18076
18077Configuration files:
18078$config_files
18079
5213506e 18080Report bugs to the package provider."
2aeb72e9 18081
5213506e
RW
18082_ACEOF
18083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18084ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1c710c3c
DJ
18085ac_cs_version="\\
18086config.status
22e05272
JM
18087configured by $0, generated by GNU Autoconf 2.69,
18088 with options \\"\$ac_cs_config\\"
1c710c3c 18089
22e05272 18090Copyright (C) 2012 Free Software Foundation, Inc.
1c710c3c
DJ
18091This config.status script is free software; the Free Software Foundation
18092gives unlimited permission to copy, distribute and modify it."
5213506e
RW
18093
18094ac_pwd='$ac_pwd'
18095srcdir='$srcdir'
18096INSTALL='$INSTALL'
87264276 18097AWK='$AWK'
5213506e 18098test -n "\$AWK" || AWK=awk
1c710c3c
DJ
18099_ACEOF
18100
5213506e
RW
18101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18102# The default lists apply if the user does not specify any file.
1c710c3c
DJ
18103ac_need_defaults=:
18104while test $# != 0
a4b9e93e 18105do
1c710c3c 18106 case $1 in
22e05272 18107 --*=?*)
5213506e
RW
18108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18109 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
18110 ac_shift=:
18111 ;;
22e05272
JM
18112 --*=)
18113 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18114 ac_optarg=
18115 ac_shift=:
18116 ;;
5213506e 18117 *)
1c710c3c
DJ
18118 ac_option=$1
18119 ac_optarg=$2
18120 ac_shift=shift
18121 ;;
1c710c3c
DJ
18122 esac
18123
18124 case $ac_option in
18125 # Handling of the options.
671aa708 18126 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 18127 ac_cs_recheck=: ;;
5213506e
RW
18128 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18129 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
18130 --config | --confi | --conf | --con | --co | --c )
18131 $as_echo "$ac_cs_config"; exit ;;
5213506e 18132 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
18133 debug=: ;;
18134 --file | --fil | --fi | --f )
18135 $ac_shift
5213506e
RW
18136 case $ac_optarg in
18137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 18138 '') as_fn_error $? "missing file argument" ;;
5213506e
RW
18139 esac
18140 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 18141 ac_need_defaults=false;;
5213506e
RW
18142 --he | --h | --help | --hel | -h )
18143 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
18144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18145 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18146 ac_cs_silent=: ;;
18147
18148 # This is an error.
22e05272 18149 -*) as_fn_error $? "unrecognized option: \`$1'
5213506e 18150Try \`$0 --help' for more information." ;;
1c710c3c 18151
5213506e
RW
18152 *) as_fn_append ac_config_targets " $1"
18153 ac_need_defaults=false ;;
1c710c3c 18154
0b0dc272 18155 esac
1c710c3c 18156 shift
0b0dc272
AM
18157done
18158
1c710c3c 18159ac_configure_extra_args=
0b0dc272 18160
1c710c3c
DJ
18161if $ac_cs_silent; then
18162 exec 6>/dev/null
18163 ac_configure_extra_args="$ac_configure_extra_args --silent"
18164fi
0b0dc272 18165
1c710c3c 18166_ACEOF
5213506e 18167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 18168if \$ac_cs_recheck; then
22e05272 18169 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5213506e
RW
18170 shift
18171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18172 CONFIG_SHELL='$SHELL'
18173 export CONFIG_SHELL
18174 exec "\$@"
1c710c3c
DJ
18175fi
18176
18177_ACEOF
5213506e
RW
18178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18179exec 5>>config.log
18180{
18181 echo
18182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18183## Running $as_me. ##
18184_ASBOX
18185 $as_echo "$ac_log"
18186} >&5
1c710c3c 18187
5213506e
RW
18188_ACEOF
18189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
18190#
18191# INIT-COMMANDS
18192#
18193extrasub_build="$extrasub_build"
18194 extrasub_host="$extrasub_host"
18195 extrasub_target="$extrasub_target"
18196
5213506e 18197_ACEOF
1c710c3c 18198
5213506e 18199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 18200
5213506e 18201# Handling of arguments.
1c710c3c
DJ
18202for ac_config_target in $ac_config_targets
18203do
5213506e
RW
18204 case $ac_config_target in
18205 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18206
22e05272 18207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
18208 esac
18209done
18210
5213506e 18211
1c710c3c
DJ
18212# If the user did not use the arguments to specify the items to instantiate,
18213# then the envvar interface is used. Set only those that are not.
18214# We use the long form for the default assignment because of an extremely
18215# bizarre bug on SunOS 4.1.3.
18216if $ac_need_defaults; then
18217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18218fi
18219
18220# Have a temporary directory for convenience. Make it in the build tree
5213506e 18221# simply because there is no reason against having it here, and in addition,
1c710c3c 18222# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
18223# Hook for its removal unless debugging.
18224# Note that there is a small window in which the directory will not be cleaned:
18225# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
18226$debug ||
18227{
22e05272 18228 tmp= ac_tmp=
5213506e 18229 trap 'exit_status=$?
22e05272
JM
18230 : "${ac_tmp:=$tmp}"
18231 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5213506e
RW
18232' 0
18233 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 18234}
1c710c3c
DJ
18235# Create a (secure) tmp directory for tmp files.
18236
18237{
5213506e 18238 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 18239 test -d "$tmp"
1c710c3c
DJ
18240} ||
18241{
5213506e
RW
18242 tmp=./conf$$-$RANDOM
18243 (umask 077 && mkdir "$tmp")
22e05272
JM
18244} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18245ac_tmp=$tmp
5213506e
RW
18246
18247# Set up the scripts for CONFIG_FILES section.
18248# No need to generate them if there are no CONFIG_FILES.
18249# This happens for instance with `./config.status config.h'.
18250if test -n "$CONFIG_FILES"; then
18251
18252if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18253 ac_cs_awk_getline=:
18254 ac_cs_awk_pipe_init=
18255 ac_cs_awk_read_file='
18256 while ((getline aline < (F[key])) > 0)
18257 print(aline)
18258 close(F[key])'
18259 ac_cs_awk_pipe_fini=
18260else
18261 ac_cs_awk_getline=false
18262 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18263 ac_cs_awk_read_file='
18264 print "|#_!!_#|"
18265 print "cat " F[key] " &&"
18266 '$ac_cs_awk_pipe_init
18267 # The final `:' finishes the AND list.
18268 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18269fi
18270ac_cr=`echo X | tr X '\015'`
18271# On cygwin, bash can eat \r inside `` if the user requested igncr.
18272# But we know of no other shell where ac_cr would be empty at this
18273# point, so we can use a bashism as a fallback.
18274if test "x$ac_cr" = x; then
18275 eval ac_cr=\$\'\\r\'
18276fi
18277ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18278if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 18279 ac_cs_awk_cr='\\r'
5213506e
RW
18280else
18281 ac_cs_awk_cr=$ac_cr
18282fi
18283
22e05272 18284echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5213506e
RW
18285_ACEOF
18286
18287# Create commands to substitute file output variables.
1c710c3c 18288{
5213506e 18289 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
22e05272 18290 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
5213506e
RW
18291 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18292 echo "_ACAWK" &&
18293 echo "_ACEOF"
18294} >conf$$files.sh &&
18295. ./conf$$files.sh ||
22e05272 18296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e 18297rm -f conf$$files.sh
1c710c3c 18298
5213506e
RW
18299{
18300 echo "cat >conf$$subs.awk <<_ACEOF" &&
18301 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18302 echo "_ACEOF"
18303} >conf$$subs.sh ||
22e05272
JM
18304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18305ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5213506e
RW
18306ac_delim='%!_!# '
18307for ac_last_try in false false false false false :; do
18308 . ./conf$$subs.sh ||
22e05272 18309 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18310
18311 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18312 if test $ac_delim_n = $ac_delim_num; then
18313 break
18314 elif $ac_last_try; then
22e05272 18315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5213506e
RW
18316 else
18317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18318 fi
18319done
18320rm -f conf$$subs.sh
18321
18322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 18323cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 18324_ACEOF
5213506e
RW
18325sed -n '
18326h
18327s/^/S["/; s/!.*/"]=/
18328p
18329g
18330s/^[^!]*!//
18331:repl
18332t repl
18333s/'"$ac_delim"'$//
18334t delim
18335:nl
18336h
22e05272 18337s/\(.\{148\}\)..*/\1/
5213506e
RW
18338t more1
18339s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18340p
18341n
18342b repl
18343:more1
18344s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18345p
18346g
18347s/.\{148\}//
18348t nl
18349:delim
18350h
22e05272 18351s/\(.\{148\}\)..*/\1/
5213506e
RW
18352t more2
18353s/["\\]/\\&/g; s/^/"/; s/$/"/
18354p
18355b
18356:more2
18357s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18358p
18359g
18360s/.\{148\}//
18361t delim
18362' <conf$$subs.awk | sed '
18363/^[^""]/{
18364 N
18365 s/\n//
18366}
18367' >>$CONFIG_STATUS || ac_write_fail=1
18368rm -f conf$$subs.awk
18369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18370_ACAWK
22e05272 18371cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5213506e
RW
18372 for (key in S) S_is_set[key] = 1
18373 FS = "\a"
18374 \$ac_cs_awk_pipe_init
18375}
18376{
18377 line = $ 0
18378 nfields = split(line, field, "@")
18379 substed = 0
18380 len = length(field[1])
18381 for (i = 2; i < nfields; i++) {
18382 key = field[i]
18383 keylen = length(key)
18384 if (S_is_set[key]) {
18385 value = S[key]
18386 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18387 len += length(value) + length(field[++i])
18388 substed = 1
18389 } else
18390 len += 1 + keylen
18391 }
18392 if (nfields == 3 && !substed) {
18393 key = field[2]
18394 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18395 \$ac_cs_awk_read_file
18396 next
18397 }
18398 }
18399 print line
18400}
18401\$ac_cs_awk_pipe_fini
18402_ACAWK
18403_ACEOF
18404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18407else
18408 cat
22e05272
JM
18409fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18410 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5213506e
RW
18411_ACEOF
18412
22e05272
JM
18413# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18414# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5213506e
RW
18415# trailing colons and then remove the whole line if VPATH becomes empty
18416# (actually we leave an empty line to preserve line numbers).
18417if test "x$srcdir" = x.; then
22e05272
JM
18418 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18419h
18420s///
18421s/^/:/
18422s/[ ]*$/:/
18423s/:\$(srcdir):/:/g
18424s/:\${srcdir}:/:/g
18425s/:@srcdir@:/:/g
18426s/^:*//
5213506e 18427s/:*$//
22e05272
JM
18428x
18429s/\(=[ ]*\).*/\1/
18430G
18431s/\n//
5213506e
RW
18432s/^[^=]*=[ ]*$//
18433}'
18434fi
2aeb72e9 18435
5213506e
RW
18436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18437fi # test -n "$CONFIG_FILES"
2aeb72e9 18438
1c710c3c 18439
5213506e
RW
18440eval set X " :F $CONFIG_FILES "
18441shift
18442for ac_tag
18443do
18444 case $ac_tag in
18445 :[FHLC]) ac_mode=$ac_tag; continue;;
18446 esac
18447 case $ac_mode$ac_tag in
18448 :[FHL]*:*);;
22e05272 18449 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5213506e
RW
18450 :[FH]-) ac_tag=-:-;;
18451 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18452 esac
18453 ac_save_IFS=$IFS
18454 IFS=:
18455 set x $ac_tag
18456 IFS=$ac_save_IFS
18457 shift
18458 ac_file=$1
18459 shift
79c06341 18460
5213506e
RW
18461 case $ac_mode in
18462 :L) ac_source=$1;;
18463 :[FH])
18464 ac_file_inputs=
18465 for ac_f
18466 do
18467 case $ac_f in
22e05272 18468 -) ac_f="$ac_tmp/stdin";;
5213506e
RW
18469 *) # Look for the file first in the build tree, then in the source tree
18470 # (if the path is not absolute). The absolute path cannot be DOS-style,
18471 # because $ac_f cannot contain `:'.
18472 test -f "$ac_f" ||
18473 case $ac_f in
18474 [\\/$]*) false;;
18475 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18476 esac ||
22e05272 18477 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5213506e
RW
18478 esac
18479 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18480 as_fn_append ac_file_inputs " '$ac_f'"
18481 done
1c710c3c 18482
5213506e
RW
18483 # Let's still pretend it is `configure' which instantiates (i.e., don't
18484 # use $as_me), people would be surprised to read:
18485 # /* config.h. Generated by config.status. */
18486 configure_input='Generated from '`
18487 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18488 `' by configure.'
18489 if test x"$ac_file" != x-; then
18490 configure_input="$ac_file. $configure_input"
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18492$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 18493 fi
5213506e
RW
18494 # Neutralize special characters interpreted by sed in replacement strings.
18495 case $configure_input in #(
18496 *\&* | *\|* | *\\* )
18497 ac_sed_conf_input=`$as_echo "$configure_input" |
18498 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18499 *) ac_sed_conf_input=$configure_input;;
18500 esac
11a67599 18501
5213506e 18502 case $ac_tag in
22e05272
JM
18503 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5213506e
RW
18505 esac
18506 ;;
11a67599
ZW
18507 esac
18508
5213506e 18509 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
18510$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18511 X"$ac_file" : 'X\(//\)[^/]' \| \
18512 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
18513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18514$as_echo X"$ac_file" |
18515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18516 s//\1/
18517 q
18518 }
18519 /^X\(\/\/\)[^/].*/{
18520 s//\1/
18521 q
18522 }
18523 /^X\(\/\/\)$/{
18524 s//\1/
18525 q
18526 }
18527 /^X\(\/\).*/{
18528 s//\1/
18529 q
18530 }
18531 s/.*/./; q'`
18532 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 18533 ac_builddir=.
0b0dc272 18534
5213506e
RW
18535case "$ac_dir" in
18536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18537*)
18538 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18539 # A ".." for each directory in $ac_dir_suffix.
18540 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18541 case $ac_top_builddir_sub in
18542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18544 esac ;;
18545esac
18546ac_abs_top_builddir=$ac_pwd
18547ac_abs_builddir=$ac_pwd$ac_dir_suffix
18548# for backward compatibility:
18549ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
18550
18551case $srcdir in
5213506e 18552 .) # We are building in place.
1c710c3c 18553 ac_srcdir=.
5213506e
RW
18554 ac_top_srcdir=$ac_top_builddir_sub
18555 ac_abs_top_srcdir=$ac_pwd ;;
18556 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 18557 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
18558 ac_top_srcdir=$srcdir
18559 ac_abs_top_srcdir=$srcdir ;;
18560 *) # Relative name.
18561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18562 ac_top_srcdir=$ac_top_build_prefix$srcdir
18563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 18564esac
5213506e 18565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 18566
0b0dc272 18567
5213506e
RW
18568 case $ac_mode in
18569 :F)
18570 #
18571 # CONFIG_FILE
18572 #
1c710c3c
DJ
18573
18574 case $INSTALL in
18575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 18576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 18577 esac
5213506e 18578_ACEOF
11a67599 18579
5213506e
RW
18580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18581# If the template does not know about datarootdir, expand it.
18582# FIXME: This hack should be removed a few years after 2.60.
18583ac_datarootdir_hack=; ac_datarootdir_seen=
18584ac_sed_dataroot='
18585/datarootdir/ {
18586 p
18587 q
18588}
18589/@datadir@/p
18590/@docdir@/p
18591/@infodir@/p
18592/@localedir@/p
18593/@mandir@/p'
18594case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18595*datarootdir*) ac_datarootdir_seen=yes;;
18596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18598$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 18599_ACEOF
5213506e
RW
18600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18601 ac_datarootdir_hack='
18602 s&@datadir@&$datadir&g
18603 s&@docdir@&$docdir&g
18604 s&@infodir@&$infodir&g
18605 s&@localedir@&$localedir&g
18606 s&@mandir@&$mandir&g
18607 s&\\\${datarootdir}&$datarootdir&g' ;;
18608esac
18609_ACEOF
18610
18611# Neutralize VPATH when `$srcdir' = `.'.
18612# Shell code in configure.ac might set extrasub.
18613# FIXME: do we really want to maintain this feature?
18614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18615ac_sed_extra="$ac_vpsub
1c710c3c
DJ
18616$extrasub
18617_ACEOF
5213506e 18618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
18619:t
18620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
18621s|@configure_input@|$ac_sed_conf_input|;t t
18622s&@top_builddir@&$ac_top_builddir_sub&;t t
18623s&@top_build_prefix@&$ac_top_build_prefix&;t t
18624s&@srcdir@&$ac_srcdir&;t t
18625s&@abs_srcdir@&$ac_abs_srcdir&;t t
18626s&@top_srcdir@&$ac_top_srcdir&;t t
18627s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18628s&@builddir@&$ac_builddir&;t t
18629s&@abs_builddir@&$ac_abs_builddir&;t t
18630s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18631s&@INSTALL@&$ac_INSTALL&;t t
18632$ac_datarootdir_hack
18633"
18634eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18635if $ac_cs_awk_getline; then
22e05272 18636 $AWK -f "$ac_tmp/subs.awk"
5213506e 18637else
22e05272
JM
18638 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18639fi \
18640 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e
RW
18641
18642test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
18643 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18645 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5213506e 18646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18647which seems to be undefined. Please make sure it is defined" >&5
5213506e 18648$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 18649which seems to be undefined. Please make sure it is defined" >&2;}
5213506e 18650
22e05272 18651 rm -f "$ac_tmp/stdin"
5213506e 18652 case $ac_file in
22e05272
JM
18653 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18654 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5213506e 18655 esac \
22e05272 18656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5213506e 18657 ;;
11a67599 18658
11a67599 18659
79c06341 18660
5213506e
RW
18661 esac
18662
3e54529c
RW
18663
18664 case $ac_file$ac_mode in
18665 "Makefile":F) sed "$extrasub_build" Makefile |
18666 sed "$extrasub_host" |
18667 sed "$extrasub_target" > mf$$
18668 mv -f mf$$ Makefile ;;
18669
18670 esac
5213506e
RW
18671done # for ac_tag
18672
18673
18674as_fn_exit 0
1c710c3c 18675_ACEOF
1c710c3c
DJ
18676ac_clean_files=$ac_clean_files_save
18677
5213506e 18678test $ac_write_fail = 0 ||
22e05272 18679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5213506e 18680
1c710c3c
DJ
18681
18682# configure is writing to config.log, and then calls config.status.
18683# config.status does its own redirection, appending to config.log.
18684# Unfortunately, on DOS this fails, as config.log is still kept open
18685# by configure, so config.status won't be able to write to it; its
18686# output is simply discarded. So we exec the FD to /dev/null,
18687# effectively closing config.log, so it can be properly (re)opened and
18688# appended to by config.status. When coming back to configure, we
18689# need to make the FD available again.
18690if test "$no_create" != yes; then
18691 ac_cs_success=:
18692 ac_config_status_args=
18693 test "$silent" = yes &&
18694 ac_config_status_args="$ac_config_status_args --quiet"
18695 exec 5>/dev/null
18696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18697 exec 5>>config.log
18698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18699 # would make configure fail if this is the last instruction.
22e05272 18700 $ac_cs_success || as_fn_exit 1
5213506e
RW
18701fi
18702if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18704$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 18705fi
79c06341 18706