]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
refactor usage of compressed_debug_section_type
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 90as_myself=
81ecdfbb
RW
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
c6b750e1
DJ
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
81ecdfbb
RW
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d0ac1c44
SM
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
81ecdfbb
RW
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d0ac1c44
SM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
81ecdfbb
RW
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 211do
81ecdfbb
RW
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d0ac1c44
SM
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
81ecdfbb
RW
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 266 else
81ecdfbb
RW
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
c6b750e1 271 fi
81ecdfbb
RW
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
c6b750e1 301
81ecdfbb
RW
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
356
357
358} # as_fn_mkdir_p
d0ac1c44
SM
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
81ecdfbb
RW
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d0ac1c44
SM
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
81ecdfbb
RW
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 407# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
408as_fn_error ()
409{
d0ac1c44
SM
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 414 fi
d0ac1c44 415 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
421 as_expr=expr
422else
423 as_expr=false
424fi
425
81ecdfbb 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
427 as_basename=basename
428else
429 as_basename=false
430fi
431
81ecdfbb
RW
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
c6b750e1 437
81ecdfbb 438as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
c6b750e1 456
c6b750e1
DJ
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
c6b750e1 464
81ecdfbb
RW
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
c6b750e1 474 sed '
81ecdfbb
RW
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
c6b750e1 479 N
81ecdfbb
RW
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 482 t loop
81ecdfbb 483 s/-\n.*//
c6b750e1 484 ' >$as_me.lineno &&
81ecdfbb
RW
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1 487
d0ac1c44
SM
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
c6b750e1
DJ
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
c6b750e1
DJ
496 # Exit status is that of the last command.
497 exit
498}
499
81ecdfbb
RW
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
c6b750e1
DJ
511esac
512
81ecdfbb
RW
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
c6b750e1 516else
81ecdfbb
RW
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
c6b750e1 519fi
81ecdfbb
RW
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 522 as_ln_s='ln -s'
81ecdfbb
RW
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 526 # In both cases, we have to default to `cp -pR'.
81ecdfbb 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 528 as_ln_s='cp -pR'
81ecdfbb
RW
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d0ac1c44 532 as_ln_s='cp -pR'
c6b750e1 533 fi
c6b750e1 534else
d0ac1c44 535 as_ln_s='cp -pR'
c6b750e1 536fi
81ecdfbb
RW
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
539
540if mkdir -p . 2>/dev/null; then
81ecdfbb 541 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
d0ac1c44
SM
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
c6b750e1
DJ
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
d0ac1c44
SM
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
a0da8069 559
c6b750e1 560# Name of the host.
d0ac1c44 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c6b750e1
DJ
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
c6b750e1
DJ
565#
566# Initializations.
567#
a0da8069 568ac_default_prefix=/usr/local
81ecdfbb 569ac_clean_files=
c6b750e1 570ac_config_libobj_dir=.
81ecdfbb 571LIBOBJS=
c6b750e1
DJ
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
c6b750e1
DJ
576
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
81ecdfbb 583PACKAGE_URL=
c6b750e1
DJ
584
585ac_unique_file="move-if-change"
81ecdfbb
RW
586enable_option_checking=no
587ac_subst_vars='LTLIBOBJS
588LIBOBJS
589compare_exclusions
590stage2_werror_flag
591stage1_checking
592stage1_cflags
593MAINT
594MAINTAINER_MODE_FALSE
595MAINTAINER_MODE_TRUE
596COMPILER_NM_FOR_TARGET
597COMPILER_LD_FOR_TARGET
598COMPILER_AS_FOR_TARGET
599FLAGS_FOR_TARGET
600RAW_CXX_FOR_TARGET
601WINDMC_FOR_TARGET
602WINDRES_FOR_TARGET
603STRIP_FOR_TARGET
b121d7d4 604READELF_FOR_TARGET
81ecdfbb 605RANLIB_FOR_TARGET
228cf97d 606OTOOL_FOR_TARGET
81ecdfbb 607OBJDUMP_FOR_TARGET
6b91c541 608OBJCOPY_FOR_TARGET
81ecdfbb
RW
609NM_FOR_TARGET
610LIPO_FOR_TARGET
611LD_FOR_TARGET
228cf97d 612DSYMUTIL_FOR_TARGET
81ecdfbb
RW
613DLLTOOL_FOR_TARGET
614AS_FOR_TARGET
615AR_FOR_TARGET
228cf97d 616GDC_FOR_TARGET
e552509b 617GOC_FOR_TARGET
81ecdfbb 618GFORTRAN_FOR_TARGET
81ecdfbb
RW
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
50ad1254
L
622RANLIB_PLUGIN_OPTION
623AR_PLUGIN_OPTION
228cf97d
AM
624GDCFLAGS
625GDC
b121d7d4 626READELF
228cf97d 627OTOOL
81ecdfbb
RW
628OBJDUMP
629OBJCOPY
630WINDMC
631WINDRES
632STRIP
633RANLIB
634NM
635LIPO
636LD
228cf97d 637DSYMUTIL
81ecdfbb
RW
638DLLTOOL
639AS
640AR
641RUNTEST
642EXPECT
643MAKEINFO
644FLEX
645LEX
646M4
647BISON
648YACC
81ecdfbb
RW
649WINDRES_FOR_BUILD
650WINDMC_FOR_BUILD
651RANLIB_FOR_BUILD
652NM_FOR_BUILD
653LD_FOR_BUILD
654LDFLAGS_FOR_BUILD
228cf97d 655GDC_FOR_BUILD
e552509b 656GOC_FOR_BUILD
81ecdfbb 657GFORTRAN_FOR_BUILD
228cf97d 658DSYMUTIL_FOR_BUILD
81ecdfbb
RW
659DLLTOOL_FOR_BUILD
660CXX_FOR_BUILD
661CXXFLAGS_FOR_BUILD
e472ec9f 662CPPFLAGS_FOR_BUILD
228cf97d 663CPP_FOR_BUILD
81ecdfbb
RW
664CFLAGS_FOR_BUILD
665CC_FOR_BUILD
666AS_FOR_BUILD
667AR_FOR_BUILD
911e63d0 668target_configdirs
81ecdfbb 669configdirs
81ecdfbb 670build_configdirs
81ecdfbb
RW
671INSTALL_GDB_TK
672GDB_TK
673CONFIGURE_GDB_TK
674build_tooldir
675tooldir
676GCC_SHLIB_SUBDIR
677RPATH_ENVVAR
4074d5f2
RW
678target_configargs
679host_configargs
680build_configargs
96655cc4 681BUILD_CONFIG
91c1f14c 682LDFLAGS_FOR_TARGET
81ecdfbb
RW
683CXXFLAGS_FOR_TARGET
684CFLAGS_FOR_TARGET
685DEBUG_PREFIX_CFLAGS_FOR_TARGET
686SYSROOT_CFLAGS_FOR_TARGET
bf41f30d 687get_gcc_base_ver
e81d5d05 688extra_host_zlib_configure_flags
700d40ca 689extra_host_libiberty_configure_flags
1b6c0831 690stage1_languages
bf41f30d 691host_shared
1b6c0831
L
692extra_linker_plugin_flags
693extra_linker_plugin_configure_flags
7ec59b9e 694islinc
1b6c0831 695isllibs
81ecdfbb 696poststage1_ldflags
143754cd 697poststage1_libs
81ecdfbb 698stage1_ldflags
b3676d82 699stage1_libs
7ec59b9e 700extra_isl_gmp_configure_flags
81ecdfbb
RW
701extra_mpc_mpfr_configure_flags
702extra_mpc_gmp_configure_flags
703extra_mpfr_configure_flags
704gmpinc
705gmplibs
af019bfd
L
706PGO_BUILD_LTO_CFLAGS
707PGO_BUILD_USE_CFLAGS
708PGO_BUILD_GEN_CFLAGS
228cf97d
AM
709HAVE_CXX11_FOR_BUILD
710HAVE_CXX11
81ecdfbb
RW
711do_compare
712GNATMAKE
713GNATBIND
714ac_ct_CXX
715CXXFLAGS
716CXX
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
1b6c0831 724extra_liboffloadmic_configure_flags
81ecdfbb
RW
725target_subdir
726host_subdir
727build_subdir
728build_libsubdir
8e957354
PB
729AWK
730SED
81ecdfbb
RW
731LN_S
732LN
733INSTALL_DATA
734INSTALL_SCRIPT
735INSTALL_PROGRAM
736target_os
737target_vendor
738target_cpu
739target
740host_os
741host_vendor
742host_cpu
743host
744target_noncanonical
745host_noncanonical
746build_noncanonical
747build_os
748build_vendor
749build_cpu
750build
751TOPLEVEL_CONFIGURE_ARGUMENTS
752target_alias
753host_alias
754build_alias
755LIBS
756ECHO_T
757ECHO_N
758ECHO_C
759DEFS
760mandir
761localedir
762libdir
763psdir
764pdfdir
765dvidir
766htmldir
767infodir
768docdir
769oldincludedir
770includedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files='serialization_dependencies
791host_makefile_frag
792target_makefile_frag
793alphaieee_frag
794ospace_frag'
795ac_user_opts='
796enable_option_checking
797with_build_libsubdir
cf39cfc5 798with_system_zlib
2cac01e3 799with_zstd
1b6c0831
L
800enable_as_accelerator_for
801enable_offload_targets
228cf97d 802enable_offload_defaulted
81ecdfbb 803enable_gold
c7791212 804enable_ld
bb368aad 805enable_gprofng
edeefb67 806enable_compressed_debug_sections
e5f2f7d9 807enable_year2038
89a1e9c3
PB
808enable_libquadmath
809enable_libquadmath_support
81ecdfbb
RW
810enable_libada
811enable_libssp
f66a9a70 812enable_libstdcxx
1b6c0831 813enable_liboffloadmic
ffdd6afc 814enable_bootstrap
af019bfd 815enable_pgo_build
81ecdfbb
RW
816with_mpc
817with_mpc_include
818with_mpc_lib
81ecdfbb
RW
819with_mpfr
820with_mpfr_include
821with_mpfr_lib
81ecdfbb
RW
822with_gmp
823with_gmp_include
824with_gmp_lib
81ecdfbb 825with_stage1_libs
c1a5d03a 826with_static_standard_libraries
b3676d82 827with_stage1_ldflags
81ecdfbb 828with_boot_libs
143754cd 829with_boot_ldflags
7ec59b9e
L
830with_isl
831with_isl_include
832with_isl_lib
833enable_isl_version_check
700d40ca 834enable_lto
1b6c0831
L
835enable_linker_plugin_configure_flags
836enable_linker_plugin_flags
bf41f30d 837enable_host_shared
81ecdfbb
RW
838enable_stage1_languages
839enable_objc_gc
05a13254
NC
840with_target_bdw_gc
841with_target_bdw_gc_include
842with_target_bdw_gc_lib
bf41f30d 843with_gcc_major_version_only
81ecdfbb
RW
844with_build_sysroot
845with_debug_prefix_map
96655cc4 846with_build_config
730af8ee 847enable_vtable_verify
81ecdfbb
RW
848enable_serial_configure
849with_build_time_tools
850enable_maintainer_mode
851enable_stage1_checking
852enable_werror
81ecdfbb
RW
853'
854 ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
860LIBS
861CPPFLAGS
862CXX
863CXXFLAGS
864CCC
4074d5f2
RW
865build_configargs
866host_configargs
867target_configargs
81ecdfbb
RW
868AR
869AS
870DLLTOOL
228cf97d 871DSYMUTIL
81ecdfbb
RW
872LD
873LIPO
874NM
875RANLIB
876STRIP
877WINDRES
878WINDMC
879OBJCOPY
880OBJDUMP
228cf97d 881OTOOL
b121d7d4 882READELF
81ecdfbb
RW
883CC_FOR_TARGET
884CXX_FOR_TARGET
885GCC_FOR_TARGET
81ecdfbb 886GFORTRAN_FOR_TARGET
e552509b 887GOC_FOR_TARGET
228cf97d 888GDC_FOR_TARGET
81ecdfbb
RW
889AR_FOR_TARGET
890AS_FOR_TARGET
891DLLTOOL_FOR_TARGET
228cf97d 892DSYMUTIL_FOR_TARGET
81ecdfbb
RW
893LD_FOR_TARGET
894LIPO_FOR_TARGET
895NM_FOR_TARGET
6b91c541 896OBJCOPY_FOR_TARGET
81ecdfbb 897OBJDUMP_FOR_TARGET
228cf97d 898OTOOL_FOR_TARGET
81ecdfbb 899RANLIB_FOR_TARGET
b121d7d4 900READELF_FOR_TARGET
81ecdfbb
RW
901STRIP_FOR_TARGET
902WINDRES_FOR_TARGET
903WINDMC_FOR_TARGET'
904
a0da8069
NN
905
906# Initialize some variables set by options.
c6b750e1
DJ
907ac_init_help=
908ac_init_version=false
81ecdfbb
RW
909ac_unrecognized_opts=
910ac_unrecognized_sep=
a0da8069
NN
911# The variables have the same names as the options, with
912# dashes changed to underlines.
c6b750e1 913cache_file=/dev/null
a0da8069 914exec_prefix=NONE
a0da8069 915no_create=
a0da8069
NN
916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
a0da8069
NN
924verbose=
925x_includes=NONE
926x_libraries=NONE
c6b750e1
DJ
927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 933# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
a0da8069
NN
939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
a0da8069
NN
942includedir='${prefix}/include'
943oldincludedir='/usr/include'
81ecdfbb
RW
944docdir='${datarootdir}/doc/${PACKAGE}'
945infodir='${datarootdir}/info'
946htmldir='${docdir}'
947dvidir='${docdir}'
948pdfdir='${docdir}'
949psdir='${docdir}'
950libdir='${exec_prefix}/lib'
951localedir='${datarootdir}/locale'
952mandir='${datarootdir}/man'
252b5132 953
a0da8069 954ac_prev=
81ecdfbb 955ac_dashdash=
a0da8069
NN
956for ac_option
957do
a0da8069
NN
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
81ecdfbb 960 eval $ac_prev=\$ac_option
a0da8069
NN
961 ac_prev=
962 continue
963 fi
252b5132 964
81ecdfbb 965 case $ac_option in
d0ac1c44
SM
966 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 *=) ac_optarg= ;;
968 *) ac_optarg=yes ;;
81ecdfbb 969 esac
a0da8069
NN
970
971 # Accept the important Cygnus configure options, so we can diagnose typos.
972
81ecdfbb
RW
973 case $ac_dashdash$ac_option in
974 --)
975 ac_dashdash=yes ;;
a0da8069
NN
976
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 ac_prev=bindir ;;
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 980 bindir=$ac_optarg ;;
a0da8069
NN
981
982 -build | --build | --buil | --bui | --bu)
c6b750e1 983 ac_prev=build_alias ;;
a0da8069 984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 985 build_alias=$ac_optarg ;;
a0da8069
NN
986
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
992 cache_file=$ac_optarg ;;
993
994 --config-cache | -C)
995 cache_file=config.cache ;;
a0da8069 996
81ecdfbb 997 -datadir | --datadir | --datadi | --datad)
a0da8069 998 ac_prev=datadir ;;
81ecdfbb 999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 1000 datadir=$ac_optarg ;;
a0da8069 1001
81ecdfbb
RW
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1008
a0da8069 1009 -disable-* | --disable-*)
81ecdfbb 1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 1011 # Reject names that are not valid shell variable names.
81ecdfbb 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1013 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=no ;;
1024
1025 -docdir | --docdir | --docdi | --doc | --do)
1026 ac_prev=docdir ;;
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1029
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 ac_prev=dvidir ;;
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
a0da8069
NN
1034
1035 -enable-* | --enable-*)
81ecdfbb 1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1037 # Reject names that are not valid shell variable names.
81ecdfbb 1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1039 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"enable_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
a0da8069 1048 esac
81ecdfbb 1049 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1050
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
c6b750e1 1058 exec_prefix=$ac_optarg ;;
a0da8069
NN
1059
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1062 with_gas=yes ;;
1063
c6b750e1
DJ
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
a0da8069
NN
1070
1071 -host | --host | --hos | --ho)
c6b750e1 1072 ac_prev=host_alias ;;
a0da8069 1073 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1074 host_alias=$ac_optarg ;;
a0da8069 1075
81ecdfbb
RW
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 ac_prev=htmldir ;;
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 | --ht=*)
1080 htmldir=$ac_optarg ;;
1081
a0da8069
NN
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1087 includedir=$ac_optarg ;;
a0da8069
NN
1088
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 ac_prev=infodir ;;
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1092 infodir=$ac_optarg ;;
a0da8069
NN
1093
1094 -libdir | --libdir | --libdi | --libd)
1095 ac_prev=libdir ;;
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1097 libdir=$ac_optarg ;;
a0da8069
NN
1098
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1104 libexecdir=$ac_optarg ;;
a0da8069 1105
81ecdfbb
RW
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1110
a0da8069 1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1112 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1116 localstatedir=$ac_optarg ;;
a0da8069
NN
1117
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 ac_prev=mandir ;;
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1121 mandir=$ac_optarg ;;
a0da8069
NN
1122
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1125 with_fp=no ;;
1126
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1128 | --no-cr | --no-c | -n)
a0da8069
NN
1129 no_create=yes ;;
1130
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133 no_recursion=yes ;;
1134
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1142 oldincludedir=$ac_optarg ;;
a0da8069
NN
1143
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 ac_prev=prefix ;;
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1147 prefix=$ac_optarg ;;
a0da8069
NN
1148
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1154 program_prefix=$ac_optarg ;;
a0da8069
NN
1155
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1161 program_suffix=$ac_optarg ;;
a0da8069
NN
1162
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1178 program_transform_name=$ac_optarg ;;
a0da8069 1179
81ecdfbb
RW
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 ac_prev=pdfdir ;;
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1184
1185 -psdir | --psdir | --psdi | --psd | --ps)
1186 ac_prev=psdir ;;
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188 psdir=$ac_optarg ;;
1189
a0da8069
NN
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1192 silent=yes ;;
1193
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 ac_prev=sbindir ;;
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 | --sbi=* | --sb=*)
c6b750e1 1198 sbindir=$ac_optarg ;;
a0da8069
NN
1199
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1203 | --sha | --sh)
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 | --sha=* | --sh=*)
c6b750e1 1209 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1210
1211 -site | --site | --sit)
1212 ac_prev=site ;;
1213 -site=* | --site=* | --sit=*)
c6b750e1 1214 site=$ac_optarg ;;
a0da8069
NN
1215
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 ac_prev=srcdir ;;
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1219 srcdir=$ac_optarg ;;
a0da8069
NN
1220
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1226 sysconfdir=$ac_optarg ;;
a0da8069
NN
1227
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1229 ac_prev=target_alias ;;
a0da8069 1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1231 target_alias=$ac_optarg ;;
a0da8069
NN
1232
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234 verbose=yes ;;
1235
c6b750e1
DJ
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
a0da8069
NN
1238
1239 -with-* | --with-*)
81ecdfbb 1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1241 # Reject names that are not valid shell variable names.
81ecdfbb 1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1243 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1247 *"
1248"with_$ac_useropt"
1249"*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
a0da8069 1252 esac
81ecdfbb 1253 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1254
1255 -without-* | --without-*)
81ecdfbb 1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1257 # Reject names that are not valid shell variable names.
81ecdfbb 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1259 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264"with_$ac_useropt"
1265"*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=no ;;
a0da8069
NN
1270
1271 --x)
1272 # Obsolete; use --with-x.
1273 with_x=yes ;;
1274
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1280 x_includes=$ac_optarg ;;
a0da8069
NN
1281
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1287 x_libraries=$ac_optarg ;;
a0da8069 1288
d0ac1c44
SM
1289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290Try \`$0 --help' for more information"
a0da8069
NN
1291 ;;
1292
c6b750e1
DJ
1293 *=*)
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1299 esac
1300 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1301 export $ac_envvar ;;
1302
a0da8069 1303 *)
c6b750e1 1304 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
a0da8069
NN
1309 ;;
1310
1311 esac
1312done
1313
1314if test -n "$ac_prev"; then
c6b750e1 1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1316 as_fn_error $? "missing argument to $ac_option"
a0da8069 1317fi
a0da8069 1318
81ecdfbb
RW
1319if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1321 no) ;;
d0ac1c44 1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1324 esac
81ecdfbb 1325fi
a0da8069 1326
81ecdfbb
RW
1327# Check all directory arguments for consistency.
1328for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
a0da8069 1332do
81ecdfbb
RW
1333 eval ac_val=\$$ac_var
1334 # Remove trailing slashes.
1335 case $ac_val in
1336 */ )
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1339 esac
1340 # Be sure to have absolute directory names.
c6b750e1 1341 case $ac_val in
81ecdfbb
RW
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1344 esac
d0ac1c44 1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1346done
1347
c6b750e1
DJ
1348# There might be people who depend on the old broken behavior: `$host'
1349# used to hold the argument of --host etc.
1350# FIXME: To remove some day.
1351build=$build_alias
1352host=$host_alias
1353target=$target_alias
376a0e54 1354
c6b750e1
DJ
1355# FIXME: To remove some day.
1356if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
c6b750e1
DJ
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
a0da8069 1368
a0da8069 1369
81ecdfbb
RW
1370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1373 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1375 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1376
1377
a0da8069
NN
1378# Find the source files, if location was not specified.
1379if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
81ecdfbb
RW
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387$as_echo X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1389 s//\1/
1390 q
1391 }
1392 /^X\(\/\/\)[^/].*/{
1393 s//\1/
1394 q
1395 }
1396 /^X\(\/\/\)$/{
1397 s//\1/
1398 q
1399 }
1400 /^X\(\/\).*/{
1401 s//\1/
1402 q
1403 }
1404 s/.*/./; q'`
a0da8069 1405 srcdir=$ac_confdir
81ecdfbb 1406 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1407 srcdir=..
1408 fi
1409else
1410 ac_srcdir_defaulted=no
1411fi
81ecdfbb
RW
1412if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1415fi
1416ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417ac_abs_confdir=`(
d0ac1c44 1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1419 pwd)`
1420# When building in place, set srcdir=.
1421if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 srcdir=.
1423fi
1424# Remove unnecessary trailing slashes from srcdir.
1425# Double slashes in file names in object file debugging info
1426# mess up M-x gdb in Emacs.
1427case $srcdir in
1428*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429esac
6d0cd39e
AM
1430case $srcdir in
1431 *" "*)
d0ac1c44 1432 as_fn_error $? "path to source, $srcdir, contains spaces"
6d0cd39e
AM
1433 ;;
1434esac
9cc8ae67
PB
1435ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1436
81ecdfbb
RW
1437for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442done
c6b750e1
DJ
1443
1444#
1445# Report the --help message.
1446#
1447if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1450 cat <<_ACEOF
1451\`configure' configures this package to adapt to many kinds of systems.
1452
1453Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456VAR=VALUE. See below for descriptions of some of the useful variables.
1457
1458Defaults for the options are specified in brackets.
1459
1460Configuration:
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
d0ac1c44 1465 -q, --quiet, --silent do not print \`checking ...' messages
c6b750e1
DJ
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470
c6b750e1
DJ
1471Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1473 [$ac_default_prefix]
c6b750e1 1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1475 [PREFIX]
c6b750e1
DJ
1476
1477By default, \`make install' will install all the files in
1478\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480for instance \`--prefix=\$HOME'.
1481
1482For better control, use the options below.
1483
1484Fine tuning of the installation directories:
81ecdfbb
RW
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1504_ACEOF
1505
1506 cat <<\_ACEOF
1507
1508Program names:
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1512
1513System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 --target=TARGET configure for building compilers for TARGET [HOST]
1517_ACEOF
a0da8069 1518fi
a0da8069 1519
c6b750e1
DJ
1520if test -n "$ac_init_help"; then
1521
1522 cat <<\_ACEOF
1523
1524Optional Features:
81ecdfbb 1525 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1528 --enable-as-accelerator-for=ARG
1529 build as offload target compiler. Specify offload
1530 host triple by ARG
1531 --enable-offload-targets=LIST
1532 enable offloading to devices from comma-separated
1533 LIST of TARGET[=DIR]. Use optional path to find
1534 offload target compiler during the build
228cf97d
AM
1535 --enable-offload-defaulted
1536 If enabled, configured but not installed offload compilers and
1537 libgomp plugins are silently ignored. Useful for distribution
1538 compilers where those are in separate optional packages.
1539
c7791212 1540 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1541 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
bb368aad 1542 --enable-gprofng[=ARG] build gprofng [ARG={yes,no}]
6c3bc0f8 1543 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1544 Enable compressed debug sections for gas, gold or ld
1545 by default
e5f2f7d9 1546 --enable-year2038 enable support for timestamps past the year 2038
89a1e9c3
PB
1547 --disable-libquadmath do not build libquadmath directory
1548 --disable-libquadmath-support
1549 disable libquadmath support for Fortran
521ec477
DD
1550 --enable-libada build libada directory
1551 --enable-libssp build libssp directory
f66a9a70 1552 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1553 --enable-liboffloadmic=ARG
1554 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1555 --enable-bootstrap enable bootstrapping [yes if native build]
af019bfd
L
1556 --enable-pgo-build[=lto]
1557 enable the PGO build
7ec59b9e 1558 --disable-isl-version-check
4849dfd8 1559 disable check for isl version
700d40ca 1560 --enable-lto enable link time optimization support
1b6c0831
L
1561 --enable-linker-plugin-configure-flags=FLAGS
1562 additional flags for configuring linker plugins
1563 [none]
1564 --enable-linker-plugin-flags=FLAGS
1565 additional flags for configuring and building linker
1566 plugins [none]
bf41f30d 1567 --enable-host-shared build host code as shared libraries
7837304f
AS
1568 --enable-stage1-languages[=all]
1569 choose additional languages to build during stage1.
1570 Mostly useful for compiler development
1571 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1572 Objective-C runtime
ce6c656d 1573 --enable-vtable-verify Enable vtable verification feature
521ec477 1574 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1575 force sequential configuration of sub-packages for
1576 the host, target or build machine, or all
1577 sub-packages
1578 --enable-maintainer-mode
1579 enable make rules and dependencies not useful (and
1580 sometimes confusing) to the casual installer
1581 --enable-stage1-checking[=all]
1582 choose additional checking for stage1 of the
1583 compiler
c6b750e1
DJ
1584 --enable-werror enable -Werror in bootstrap stage2 and later
1585
1586Optional Packages:
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1590 --with-system-zlib use installed libz
2cac01e3
FS
1591 --with-zstd Support zstd compressed debug sections
1592 (default=auto)
7837304f
AS
1593 --with-mpc=PATH specify prefix directory for installed MPC package.
1594 Equivalent to --with-mpc-include=PATH/include plus
1595 --with-mpc-lib=PATH/lib
1596 --with-mpc-include=PATH specify directory for installed MPC include files
1597 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477 1598 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1599 Equivalent to --with-mpfr-include=PATH/include plus
1600 --with-mpfr-lib=PATH/lib
c6b750e1 1601 --with-mpfr-include=PATH
521ec477
DD
1602 specify directory for installed MPFR include files
1603 --with-mpfr-lib=PATH specify directory for the installed MPFR library
7837304f
AS
1604 --with-gmp=PATH specify prefix directory for the installed GMP
1605 package. Equivalent to
1606 --with-gmp-include=PATH/include plus
1607 --with-gmp-lib=PATH/lib
521ec477
DD
1608 --with-gmp-include=PATH specify directory for installed GMP include files
1609 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1610 --with-stage1-libs=LIBS libraries for stage1
c1a5d03a
TT
1611 --with-static-standard-libraries
1612 use -static-libstdc++ and -static-libgcc
1613 (default=auto)
7837304f
AS
1614 --with-stage1-ldflags=FLAGS
1615 linker flags for stage1
7837304f
AS
1616 --with-boot-libs=LIBS libraries for stage2 and later
1617 --with-boot-ldflags=FLAGS
1618 linker flags for stage2 and later
4849dfd8 1619 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1620 package. Equivalent to
7ec59b9e
L
1621 --with-isl-include=PATH/include plus
1622 --with-isl-lib=PATH/lib
4849dfd8
NC
1623 --with-isl-include=PATH Specify directory for installed isl include files
1624 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1625 --with-target-bdw-gc=PATHLIST
1626 specify prefix directory for installed bdw-gc
1627 package. Equivalent to
1628 --with-target-bdw-gc-include=PATH/include plus
1629 --with-target-bdw-gc-lib=PATH/lib
1630 --with-target-bdw-gc-include=PATHLIST
1631 specify directories for installed bdw-gc include
1632 files
1633 --with-target-bdw-gc-lib=PATHLIST
1634 specify directories for installed bdw-gc library
bf41f30d
NC
1635 --with-gcc-major-version-only
1636 use only GCC major number in filesystem paths
521ec477 1637 --with-build-sysroot=SYSROOT
c6b750e1 1638 use sysroot as the system root during the build
8a6ee3ab 1639 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1640 map A to B, C to D ... in debug information
1641 --with-build-config='NAME NAME2...'
1642 use config/NAME.mk build configuration
521ec477 1643 --with-build-time-tools=PATH
c6b750e1 1644 use given path to find target tools during the build
c6b750e1
DJ
1645
1646Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
81ecdfbb 1651 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1652 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1653 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1654 CXX C++ compiler command
1655 CXXFLAGS C++ compiler flags
4074d5f2
RW
1656 build_configargs
1657 additional configure arguments for build directories
1658 host_configargs
1659 additional configure arguments for host directories
1660 target_configargs
1661 additional configure arguments for target directories
9a819804
AO
1662 AR AR for the host
1663 AS AS for the host
1664 DLLTOOL DLLTOOL for the host
228cf97d 1665 DSYMUTIL DSYMUTIL for the host
9a819804
AO
1666 LD LD for the host
1667 LIPO LIPO for the host
1668 NM NM for the host
1669 RANLIB RANLIB for the host
1670 STRIP STRIP for the host
1671 WINDRES WINDRES for the host
0c24b341 1672 WINDMC WINDMC for the host
9a819804
AO
1673 OBJCOPY OBJCOPY for the host
1674 OBJDUMP OBJDUMP for the host
228cf97d 1675 OTOOL OTOOL for the host
b121d7d4 1676 READELF READELF for the host
9a819804
AO
1677 CC_FOR_TARGET
1678 CC for the target
1679 CXX_FOR_TARGET
1680 CXX for the target
1681 GCC_FOR_TARGET
1682 GCC for the target
9a819804
AO
1683 GFORTRAN_FOR_TARGET
1684 GFORTRAN for the target
e552509b
ILT
1685 GOC_FOR_TARGET
1686 GOC for the target
228cf97d
AM
1687 GDC_FOR_TARGET
1688 GDC for the target
9a819804
AO
1689 AR_FOR_TARGET
1690 AR for the target
1691 AS_FOR_TARGET
1692 AS for the target
1693 DLLTOOL_FOR_TARGET
1694 DLLTOOL for the target
228cf97d
AM
1695 DSYMUTIL_FOR_TARGET
1696 DSYMUTIL for the target
9a819804
AO
1697 LD_FOR_TARGET
1698 LD for the target
1699 LIPO_FOR_TARGET
1700 LIPO for the target
1701 NM_FOR_TARGET
1702 NM for the target
6b91c541
AP
1703 OBJCOPY_FOR_TARGET
1704 OBJCOPY for the target
9a819804
AO
1705 OBJDUMP_FOR_TARGET
1706 OBJDUMP for the target
228cf97d
AM
1707 OTOOL_FOR_TARGET
1708 OTOOL for the target
9a819804
AO
1709 RANLIB_FOR_TARGET
1710 RANLIB for the target
b121d7d4
DD
1711 READELF_FOR_TARGET
1712 READELF for the target
9a819804
AO
1713 STRIP_FOR_TARGET
1714 STRIP for the target
1715 WINDRES_FOR_TARGET
1716 WINDRES for the target
0c24b341
NC
1717 WINDMC_FOR_TARGET
1718 WINDMC for the target
c6b750e1
DJ
1719
1720Use these variables to override the choices made by `configure' or to help
1721it to find libraries and programs with nonstandard names/locations.
1722
81ecdfbb 1723Report bugs to the package provider.
c6b750e1 1724_ACEOF
81ecdfbb 1725ac_status=$?
c6b750e1
DJ
1726fi
1727
1728if test "$ac_init_help" = "recursive"; then
1729 # If there are subdirs, report their specific --help.
c6b750e1 1730 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1731 test -d "$ac_dir" ||
1732 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1733 continue
c6b750e1
DJ
1734 ac_builddir=.
1735
81ecdfbb
RW
1736case "$ac_dir" in
1737.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738*)
1739 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1740 # A ".." for each directory in $ac_dir_suffix.
1741 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1742 case $ac_top_builddir_sub in
1743 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1744 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1745 esac ;;
1746esac
1747ac_abs_top_builddir=$ac_pwd
1748ac_abs_builddir=$ac_pwd$ac_dir_suffix
1749# for backward compatibility:
1750ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1751
1752case $srcdir in
81ecdfbb 1753 .) # We are building in place.
c6b750e1 1754 ac_srcdir=.
81ecdfbb
RW
1755 ac_top_srcdir=$ac_top_builddir_sub
1756 ac_abs_top_srcdir=$ac_pwd ;;
1757 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1758 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1759 ac_top_srcdir=$srcdir
1760 ac_abs_top_srcdir=$srcdir ;;
1761 *) # Relative name.
1762 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1763 ac_top_srcdir=$ac_top_build_prefix$srcdir
1764 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1765esac
81ecdfbb
RW
1766ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1767
1768 cd "$ac_dir" || { ac_status=$?; continue; }
1769 # Check for guested configure.
1770 if test -f "$ac_srcdir/configure.gnu"; then
1771 echo &&
1772 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1773 elif test -f "$ac_srcdir/configure"; then
1774 echo &&
1775 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1776 else
81ecdfbb
RW
1777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778 fi || ac_status=$?
1779 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1780 done
1781fi
1782
81ecdfbb 1783test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1784if $ac_init_version; then
1785 cat <<\_ACEOF
81ecdfbb 1786configure
d0ac1c44 1787generated by GNU Autoconf 2.69
c6b750e1 1788
d0ac1c44 1789Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
1790This configure script is free software; the Free Software Foundation
1791gives unlimited permission to copy, distribute and modify it.
1792_ACEOF
81ecdfbb 1793 exit
c6b750e1 1794fi
81ecdfbb
RW
1795
1796## ------------------------ ##
1797## Autoconf initialization. ##
1798## ------------------------ ##
1799
1800# ac_fn_c_try_compile LINENO
1801# --------------------------
1802# Try to compile conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832fi
d0ac1c44
SM
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
81ecdfbb
RW
1835
1836} # ac_fn_c_try_compile
1837
1838# ac_fn_cxx_try_compile LINENO
1839# ----------------------------
1840# Try to compile conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_cxx_try_compile ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext
1845 if { { ac_try="$ac_compile"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_compile") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_cxx_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest.$ac_objext; then :
1864 ac_retval=0
1865else
1866 $as_echo "$as_me: failed program was:" >&5
1867sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870fi
d0ac1c44
SM
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
81ecdfbb
RW
1873
1874} # ac_fn_cxx_try_compile
1875
b3676d82
EB
1876# ac_fn_cxx_try_link LINENO
1877# -------------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_cxx_try_link ()
1880{
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 rm -f conftest.$ac_objext conftest$ac_exeext
1883 if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>conftest.err
1891 ac_status=$?
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1896 fi
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && {
1899 test -z "$ac_cxx_werror_flag" ||
1900 test ! -s conftest.err
1901 } && test -s conftest$ac_exeext && {
1902 test "$cross_compiling" = yes ||
d0ac1c44 1903 test -x conftest$ac_exeext
b3676d82
EB
1904 }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911fi
1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914 # interfere with the next link command; also delete a directory that is
1915 # left behind by Apple's compiler. We do this before executing the actions.
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
b3676d82
EB
1919
1920} # ac_fn_cxx_try_link
1921
81ecdfbb
RW
1922# ac_fn_c_try_link LINENO
1923# -----------------------
1924# Try to link conftest.$ac_ext, and return whether this succeeded.
1925ac_fn_c_try_link ()
1926{
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1930case "(($ac_try" in
1931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932 *) ac_try_echo=$ac_try;;
1933esac
1934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935$as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1937 ac_status=$?
1938 if test -s conftest.err; then
1939 grep -v '^ *+' conftest.err >conftest.er1
1940 cat conftest.er1 >&5
1941 mv -f conftest.er1 conftest.err
1942 fi
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_c_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest$ac_exeext && {
1948 test "$cross_compiling" = yes ||
d0ac1c44 1949 test -x conftest$ac_exeext
81ecdfbb
RW
1950 }; then :
1951 ac_retval=0
1952else
1953 $as_echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_retval=1
1957fi
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
81ecdfbb
RW
1965
1966} # ac_fn_c_try_link
1967cat >config.log <<_ACEOF
c6b750e1
DJ
1968This file contains any messages produced by compilers while
1969running configure, to aid debugging if configure makes a mistake.
1970
1971It was created by $as_me, which was
d0ac1c44 1972generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
1973
1974 $ $0 $@
1975
1976_ACEOF
81ecdfbb 1977exec 5>>config.log
c6b750e1
DJ
1978{
1979cat <<_ASUNAME
1980## --------- ##
1981## Platform. ##
1982## --------- ##
1983
1984hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989
1990/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1992
1993/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1996/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1997/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2000
2001_ASUNAME
2002
2003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004for as_dir in $PATH
2005do
2006 IFS=$as_save_IFS
2007 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2008 $as_echo "PATH: $as_dir"
2009 done
2010IFS=$as_save_IFS
c6b750e1
DJ
2011
2012} >&5
2013
2014cat >&5 <<_ACEOF
2015
2016
2017## ----------- ##
2018## Core tests. ##
2019## ----------- ##
2020
2021_ACEOF
2022
2023
2024# Keep a trace of the command line.
2025# Strip out --no-create and --no-recursion so they do not pile up.
2026# Strip out --silent because we don't want to record it for future runs.
2027# Also quote any args containing shell meta-characters.
2028# Make two passes to allow for proper duplicate-argument suppression.
2029ac_configure_args=
2030ac_configure_args0=
2031ac_configure_args1=
c6b750e1
DJ
2032ac_must_keep_next=false
2033for ac_pass in 1 2
2034do
2035 for ac_arg
2036 do
2037 case $ac_arg in
2038 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2040 | -silent | --silent | --silen | --sile | --sil)
2041 continue ;;
81ecdfbb
RW
2042 *\'*)
2043 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2044 esac
2045 case $ac_pass in
81ecdfbb 2046 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2047 2)
81ecdfbb 2048 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2049 if test $ac_must_keep_next = true; then
2050 ac_must_keep_next=false # Got value, back to normal.
2051 else
2052 case $ac_arg in
2053 *=* | --config-cache | -C | -disable-* | --disable-* \
2054 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2055 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2056 | -with-* | --with-* | -without-* | --without-* | --x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2059 esac
2060 ;;
2061 -* ) ac_must_keep_next=true ;;
2062 esac
2063 fi
81ecdfbb 2064 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2065 ;;
2066 esac
2067 done
2068done
81ecdfbb
RW
2069{ ac_configure_args0=; unset ac_configure_args0;}
2070{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2071
2072# When interrupted or exit'd, cleanup temporary files, and complete
2073# config.log. We remove comments because anyway the quotes in there
2074# would cause problems or look ugly.
81ecdfbb
RW
2075# WARNING: Use '\'' to represent an apostrophe within the trap.
2076# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2077trap 'exit_status=$?
2078 # Save into config.log some information that might help in debugging.
2079 {
2080 echo
2081
d0ac1c44 2082 $as_echo "## ---------------- ##
c6b750e1 2083## Cache variables. ##
d0ac1c44 2084## ---------------- ##"
c6b750e1
DJ
2085 echo
2086 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2087(
2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089 eval ac_val=\$$ac_var
2090 case $ac_val in #(
2091 *${as_nl}*)
2092 case $ac_var in #(
2093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2095 esac
2096 case $ac_var in #(
2097 _ | IFS | as_nl) ;; #(
2098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099 *) { eval $ac_var=; unset $ac_var;} ;;
2100 esac ;;
2101 esac
2102 done
c6b750e1 2103 (set) 2>&1 |
81ecdfbb
RW
2104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105 *${as_nl}ac_space=\ *)
c6b750e1 2106 sed -n \
81ecdfbb
RW
2107 "s/'\''/'\''\\\\'\'''\''/g;
2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2109 ;; #(
c6b750e1 2110 *)
81ecdfbb 2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2112 ;;
81ecdfbb
RW
2113 esac |
2114 sort
2115)
c6b750e1
DJ
2116 echo
2117
d0ac1c44 2118 $as_echo "## ----------------- ##
c6b750e1 2119## Output variables. ##
d0ac1c44 2120## ----------------- ##"
c6b750e1
DJ
2121 echo
2122 for ac_var in $ac_subst_vars
2123 do
81ecdfbb
RW
2124 eval ac_val=\$$ac_var
2125 case $ac_val in
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 esac
2128 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2129 done | sort
2130 echo
2131
2132 if test -n "$ac_subst_files"; then
d0ac1c44 2133 $as_echo "## ------------------- ##
81ecdfbb 2134## File substitutions. ##
d0ac1c44 2135## ------------------- ##"
c6b750e1
DJ
2136 echo
2137 for ac_var in $ac_subst_files
2138 do
81ecdfbb
RW
2139 eval ac_val=\$$ac_var
2140 case $ac_val in
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 esac
2143 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2144 done | sort
2145 echo
2146 fi
2147
2148 if test -s confdefs.h; then
d0ac1c44 2149 $as_echo "## ----------- ##
c6b750e1 2150## confdefs.h. ##
d0ac1c44 2151## ----------- ##"
c6b750e1 2152 echo
81ecdfbb 2153 cat confdefs.h
c6b750e1
DJ
2154 echo
2155 fi
2156 test "$ac_signal" != 0 &&
81ecdfbb
RW
2157 $as_echo "$as_me: caught signal $ac_signal"
2158 $as_echo "$as_me: exit $exit_status"
c6b750e1 2159 } >&5
81ecdfbb
RW
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2162 exit $exit_status
81ecdfbb 2163' 0
c6b750e1 2164for ac_signal in 1 2 13 15; do
81ecdfbb 2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2166done
2167ac_signal=0
2168
2169# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2170rm -f -r conftest* confdefs.h
2171
2172$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2173
2174# Predefined preprocessor variables.
2175
2176cat >>confdefs.h <<_ACEOF
2177#define PACKAGE_NAME "$PACKAGE_NAME"
2178_ACEOF
2179
c6b750e1
DJ
2180cat >>confdefs.h <<_ACEOF
2181#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2182_ACEOF
2183
c6b750e1
DJ
2184cat >>confdefs.h <<_ACEOF
2185#define PACKAGE_VERSION "$PACKAGE_VERSION"
2186_ACEOF
2187
c6b750e1
DJ
2188cat >>confdefs.h <<_ACEOF
2189#define PACKAGE_STRING "$PACKAGE_STRING"
2190_ACEOF
2191
c6b750e1
DJ
2192cat >>confdefs.h <<_ACEOF
2193#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2194_ACEOF
2195
81ecdfbb
RW
2196cat >>confdefs.h <<_ACEOF
2197#define PACKAGE_URL "$PACKAGE_URL"
2198_ACEOF
2199
c6b750e1
DJ
2200
2201# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2202# Prefer an explicitly selected file to automatically selected ones.
2203ac_site_file1=NONE
2204ac_site_file2=NONE
2205if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2206 # We do not want a PATH search for config.site.
2207 case $CONFIG_SITE in #((
2208 -*) ac_site_file1=./$CONFIG_SITE;;
2209 */*) ac_site_file1=$CONFIG_SITE;;
2210 *) ac_site_file1=./$CONFIG_SITE;;
2211 esac
81ecdfbb
RW
2212elif test "x$prefix" != xNONE; then
2213 ac_site_file1=$prefix/share/config.site
2214 ac_site_file2=$prefix/etc/config.site
2215else
2216 ac_site_file1=$ac_default_prefix/share/config.site
2217 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2218fi
81ecdfbb
RW
2219for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220do
2221 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2222 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2225 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2226 . "$ac_site_file" \
2227 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229as_fn_error $? "failed to load site script $ac_site_file
2230See \`config.log' for more details" "$LINENO" 5; }
a0da8069
NN
2231 fi
2232done
2233
2234if test -r "$cache_file"; then
d0ac1c44
SM
2235 # Some versions of bash will fail to source /dev/null (special files
2236 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2237 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2240 case $cache_file in
81ecdfbb
RW
2241 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2242 *) . "./$cache_file";;
c6b750e1
DJ
2243 esac
2244 fi
a0da8069 2245else
81ecdfbb
RW
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2248 >$cache_file
2249fi
2250
2251# Check that the precious variables saved in the cache have kept the same
2252# value.
2253ac_cache_corrupted=false
81ecdfbb 2254for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2255 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2256 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2257 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2258 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2259 case $ac_old_set,$ac_new_set in
2260 set,)
81ecdfbb
RW
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2262$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2263 ac_cache_corrupted=: ;;
2264 ,set)
81ecdfbb
RW
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2266$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2267 ac_cache_corrupted=: ;;
2268 ,);;
2269 *)
2270 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2271 # differences in whitespace do not lead to failure.
2272 ac_old_val_w=`echo x $ac_old_val`
2273 ac_new_val_w=`echo x $ac_new_val`
2274 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2276$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2277 ac_cache_corrupted=:
2278 else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2280$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2281 eval $ac_var=\$ac_old_val
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2284$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2286$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2287 fi;;
2288 esac
2289 # Pass precious variables to config.status.
2290 if test "$ac_new_set" = set; then
2291 case $ac_new_val in
81ecdfbb 2292 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2293 *) ac_arg=$ac_var=$ac_new_val ;;
2294 esac
2295 case " $ac_configure_args " in
2296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2297 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2298 esac
2299 fi
2300done
2301if $ac_cache_corrupted; then
81ecdfbb
RW
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2305$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2306 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2307fi
81ecdfbb
RW
2308## -------------------- ##
2309## Main body of script. ##
2310## -------------------- ##
a0da8069
NN
2311
2312ac_ext=c
a0da8069 2313ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317
2318
2319
2320
c6b750e1
DJ
2321
2322
34a0f3cf 2323
c6b750e1 2324
5b553f7e
RW
2325progname=$0
2326# if PWD already has a value, it is probably wrong.
2327if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2328
2329# Export original configure arguments for use by sub-configures.
2330# Quote arguments with shell meta charatcers.
2331TOPLEVEL_CONFIGURE_ARGUMENTS=
2332set -- "$progname" "$@"
2333for ac_arg
2334do
2335 case "$ac_arg" in
2336 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2337 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2338 # if the argument is of the form -foo=baz, quote the baz part only
2339 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2340 *) ;;
2341 esac
2342 # Add the quoted argument to the list.
2343 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2344done
2345if test "$silent" = yes; then
2346 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2347fi
2348# Remove the initial space we just introduced and, as these will be
2349# expanded by make, quote '$'.
2350TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2351
c6b750e1
DJ
2352
2353# Find the build, host, and target systems.
a0da8069 2354ac_aux_dir=
81ecdfbb 2355for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
d0ac1c44
SM
2356 if test -f "$ac_dir/install-sh"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/install-sh -c"
2359 break
2360 elif test -f "$ac_dir/install.sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install.sh -c"
2363 break
2364 elif test -f "$ac_dir/shtool"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/shtool install -c"
2367 break
2368 fi
a0da8069
NN
2369done
2370if test -z "$ac_aux_dir"; then
d0ac1c44 2371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2372fi
81ecdfbb
RW
2373
2374# These three variables are undocumented and unsupported,
2375# and are intended to be withdrawn in a future Autoconf release.
2376# They can cause serious problems if a builder's source tree is in a directory
2377# whose full name contains unusual characters.
2378ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2379ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2380ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381
a0da8069 2382
c6b750e1 2383# Make sure we can run config.sub.
81ecdfbb 2384$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2385 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2386
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2388$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2389if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2390 $as_echo_n "(cached) " >&6
2391else
2392 ac_build_alias=$build_alias
2393test "x$ac_build_alias" = x &&
2394 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2395test "x$ac_build_alias" = x &&
d0ac1c44 2396 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2397ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2398 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2399
2400fi
2401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2402$as_echo "$ac_cv_build" >&6; }
2403case $ac_cv_build in
2404*-*-*) ;;
d0ac1c44 2405*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2406esac
c6b750e1 2407build=$ac_cv_build
81ecdfbb
RW
2408ac_save_IFS=$IFS; IFS='-'
2409set x $ac_cv_build
2410shift
2411build_cpu=$1
2412build_vendor=$2
2413shift; shift
2414# Remember, the first character of IFS is used to create $*,
2415# except with old shells:
2416build_os=$*
2417IFS=$ac_save_IFS
2418case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2419
a0da8069 2420
c6b750e1
DJ
2421 case ${build_alias} in
2422 "") build_noncanonical=${build} ;;
2423 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2424esac
2425
2426
cac3d6c4 2427
c6b750e1
DJ
2428 case ${host_alias} in
2429 "") host_noncanonical=${build_noncanonical} ;;
2430 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2431esac
2432
cac3d6c4 2433
c6b750e1
DJ
2434
2435 case ${target_alias} in
2436 "") target_noncanonical=${host_noncanonical} ;;
2437 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2438esac
2439
cac3d6c4 2440
c6b750e1
DJ
2441
2442
2443test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2444 test "$program_prefix$program_suffix$program_transform_name" = \
2445 NONENONEs,x,x, &&
c6b750e1 2446 program_transform_name=s,y,y,
cac3d6c4 2447
81ecdfbb
RW
2448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2449$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2450if ${ac_cv_host+:} false; then :
81ecdfbb 2451 $as_echo_n "(cached) " >&6
cac3d6c4 2452else
81ecdfbb
RW
2453 if test "x$host_alias" = x; then
2454 ac_cv_host=$ac_cv_build
2455else
2456 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2457 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2458fi
c6b750e1
DJ
2459
2460fi
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2462$as_echo "$ac_cv_host" >&6; }
2463case $ac_cv_host in
2464*-*-*) ;;
d0ac1c44 2465*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2466esac
c6b750e1 2467host=$ac_cv_host
81ecdfbb
RW
2468ac_save_IFS=$IFS; IFS='-'
2469set x $ac_cv_host
2470shift
2471host_cpu=$1
2472host_vendor=$2
2473shift; shift
2474# Remember, the first character of IFS is used to create $*,
2475# except with old shells:
2476host_os=$*
2477IFS=$ac_save_IFS
2478case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2479
2480
81ecdfbb
RW
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2482$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2483if ${ac_cv_target+:} false; then :
81ecdfbb 2484 $as_echo_n "(cached) " >&6
c6b750e1 2485else
81ecdfbb
RW
2486 if test "x$target_alias" = x; then
2487 ac_cv_target=$ac_cv_host
2488else
2489 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2490 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2491fi
c6b750e1 2492
cac3d6c4 2493fi
81ecdfbb
RW
2494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2495$as_echo "$ac_cv_target" >&6; }
2496case $ac_cv_target in
2497*-*-*) ;;
d0ac1c44 2498*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2499esac
c6b750e1 2500target=$ac_cv_target
81ecdfbb
RW
2501ac_save_IFS=$IFS; IFS='-'
2502set x $ac_cv_target
2503shift
2504target_cpu=$1
2505target_vendor=$2
2506shift; shift
2507# Remember, the first character of IFS is used to create $*,
2508# except with old shells:
2509target_os=$*
2510IFS=$ac_save_IFS
2511case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2512
2513
2514# The aliases save the names the user supplied, while $host etc.
2515# will get canonicalized.
2516test -n "$target_alias" &&
2517 test "$program_prefix$program_suffix$program_transform_name" = \
2518 NONENONEs,x,x, &&
2519 program_prefix=${target_alias}-
81ecdfbb 2520
a0da8069 2521test "$program_prefix" != NONE &&
81ecdfbb 2522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2523# Use a double $ so make ignores it.
2524test "$program_suffix" != NONE &&
81ecdfbb
RW
2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2526# Double any \ or $.
c6b750e1 2527# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2530
a0da8069
NN
2531
2532
e5c3f801
NN
2533# Get 'install' or 'install-sh' and its variants.
2534# Find a good install program. We prefer a C program (faster),
2535# so one script is as good as another. But avoid the broken or
2536# incompatible versions:
2537# SysV /etc/install, /usr/sbin/install
2538# SunOS /usr/etc/install
2539# IRIX /sbin/install
2540# AIX /bin/install
c6b750e1 2541# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2542# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2545# OS/2's system install, which has a completely different semantic
e5c3f801 2546# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2547# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2550if test -z "$INSTALL"; then
d0ac1c44 2551if ${ac_cv_path_install+:} false; then :
81ecdfbb 2552 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2553else
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555for as_dir in $PATH
2556do
2557 IFS=$as_save_IFS
2558 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2559 # Account for people who put trailing slashes in PATH elements.
2560case $as_dir/ in #((
2561 ./ | .// | /[cC]/* | \
c6b750e1 2562 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2563 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2564 /usr/ucb/* ) ;;
2565 *)
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2568 # by default.
2569 for ac_prog in ginstall scoinst install; do
2570 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2571 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
e5c3f801 2572 if test $ac_prog = install &&
c6b750e1 2573 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2574 # AIX install. It has an incompatible calling convention.
2575 :
c6b750e1
DJ
2576 elif test $ac_prog = install &&
2577 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578 # program-specific install script used by HP pwplus--don't use.
2579 :
e5c3f801 2580 else
58c85be7
RW
2581 rm -rf conftest.one conftest.two conftest.dir
2582 echo one > conftest.one
2583 echo two > conftest.two
2584 mkdir conftest.dir
2585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2586 test -s conftest.one && test -s conftest.two &&
2587 test -s conftest.dir/conftest.one &&
2588 test -s conftest.dir/conftest.two
2589 then
2590 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2591 break 3
2592 fi
e5c3f801
NN
2593 fi
2594 fi
2595 done
c6b750e1
DJ
2596 done
2597 ;;
2598esac
81ecdfbb
RW
2599
2600 done
2601IFS=$as_save_IFS
c6b750e1 2602
58c85be7 2603rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2604
2605fi
2606 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2607 INSTALL=$ac_cv_path_install
e5c3f801 2608 else
58c85be7
RW
2609 # As a last resort, use the slow shell script. Don't cache a
2610 # value for INSTALL within a source directory, because that will
e5c3f801 2611 # break other packages using the cache if that directory is
58c85be7 2612 # removed, or if the value is a relative name.
c6b750e1 2613 INSTALL=$ac_install_sh
e5c3f801
NN
2614 fi
2615fi
81ecdfbb
RW
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2617$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2618
2619# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2620# It thinks the first close brace ends the variable substitution.
2621test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2622
c6b750e1 2623test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2624
2625test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2626
81ecdfbb
RW
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2628$as_echo_n "checking whether ln works... " >&6; }
d0ac1c44 2629if ${acx_cv_prog_LN+:} false; then :
81ecdfbb 2630 $as_echo_n "(cached) " >&6
656fdd47
PB
2631else
2632 rm -f conftestdata_t
2633echo >conftestdata_f
2634if ln conftestdata_f conftestdata_t 2>/dev/null
2635then
2636 acx_cv_prog_LN=ln
2637else
2638 acx_cv_prog_LN=no
2639fi
2640rm -f conftestdata_f conftestdata_t
2641
2642fi
2643if test $acx_cv_prog_LN = no; then
2644 LN="cp"
81ecdfbb
RW
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2646$as_echo "no, using $LN" >&6; }
656fdd47
PB
2647else
2648 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650$as_echo "yes" >&6; }
656fdd47
PB
2651fi
2652
81ecdfbb
RW
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2654$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2655LN_S=$as_ln_s
2656if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658$as_echo "yes" >&6; }
cac3d6c4 2659else
81ecdfbb
RW
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2661$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2662fi
2663
8e957354
PB
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2665$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 2666if ${ac_cv_path_SED+:} false; then :
8e957354
PB
2667 $as_echo_n "(cached) " >&6
2668else
2669 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2670 for ac_i in 1 2 3 4 5 6 7; do
2671 ac_script="$ac_script$as_nl$ac_script"
2672 done
2673 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2674 { ac_script=; unset ac_script;}
2675 if test -z "$SED"; then
2676 ac_path_SED_found=false
2677 # Loop through the user's path and test for each of PROGNAME-LIST
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_prog in sed gsed; do
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 2686 as_fn_executable_p "$ac_path_SED" || continue
8e957354
PB
2687# Check for GNU ac_path_SED and select it if it is found.
2688 # Check for GNU $ac_path_SED
2689case `"$ac_path_SED" --version 2>&1` in
2690*GNU*)
2691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2692*)
2693 ac_count=0
2694 $as_echo_n 0123456789 >"conftest.in"
2695 while :
2696 do
2697 cat "conftest.in" "conftest.in" >"conftest.tmp"
2698 mv "conftest.tmp" "conftest.in"
2699 cp "conftest.in" "conftest.nl"
2700 $as_echo '' >> "conftest.nl"
2701 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2703 as_fn_arith $ac_count + 1 && ac_count=$as_val
2704 if test $ac_count -gt ${ac_path_SED_max-0}; then
2705 # Best one so far, save it but keep looking for a better one
2706 ac_cv_path_SED="$ac_path_SED"
2707 ac_path_SED_max=$ac_count
2708 fi
2709 # 10*(2^10) chars as input seems more than enough
2710 test $ac_count -gt 10 && break
2711 done
2712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2713esac
2714
2715 $ac_path_SED_found && break 3
2716 done
2717 done
2718 done
2719IFS=$as_save_IFS
2720 if test -z "$ac_cv_path_SED"; then
d0ac1c44 2721 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8e957354
PB
2722 fi
2723else
2724 ac_cv_path_SED=$SED
2725fi
2726
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2729$as_echo "$ac_cv_path_SED" >&6; }
2730 SED="$ac_cv_path_SED"
2731 rm -f conftest.sed
2732
2733for ac_prog in gawk mawk nawk awk
2734do
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736set dummy $ac_prog; ac_word=$2
2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2739if ${ac_cv_prog_AWK+:} false; then :
8e957354
PB
2740 $as_echo_n "(cached) " >&6
2741else
2742 if test -n "$AWK"; then
2743 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2744else
2745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746for as_dir in $PATH
2747do
2748 IFS=$as_save_IFS
2749 test -z "$as_dir" && as_dir=.
2750 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8e957354
PB
2752 ac_cv_prog_AWK="$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 break 2
2755 fi
2756done
2757 done
2758IFS=$as_save_IFS
2759
2760fi
2761fi
2762AWK=$ac_cv_prog_AWK
2763if test -n "$AWK"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765$as_echo "$AWK" >&6; }
2766else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768$as_echo "no" >&6; }
2769fi
2770
2771
2772 test -n "$AWK" && break
2773done
2774
e5c3f801 2775
0fdbe983
DJ
2776srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2777
2778# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2779# a relative path.
2780if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2781 INSTALL="${srcpwd}/install-sh -c"
2782fi
2783
a0da8069
NN
2784# Set srcdir to "." if that's what it is.
2785# This is important for multilib support.
2786pwd=`${PWDCMD-pwd}`
a0da8069
NN
2787if test "${pwd}" = "${srcpwd}" ; then
2788 srcdir=.
252b5132
RH
2789fi
2790
a0da8069 2791topsrcdir=$srcpwd
252b5132 2792
a0da8069 2793extra_host_args=
afefada0 2794
a0da8069
NN
2795### To add a new directory to the tree, first choose whether it is a target
2796### or a host dependent tool. Then put it into the appropriate list
2797### (library or tools, host or target), doing a dependency sort.
252b5132 2798
c6b750e1 2799# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2800# configdirs, or target_configdirs; see the serialization section below.
252b5132 2801
c6b750e1
DJ
2802# Dependency sorting is only needed when *configuration* must be done in
2803# a particular order. In all cases a dependency should be specified in
a0da8069 2804# the Makefile, whether or not it's implicitly specified here.
252b5132 2805
a0da8069
NN
2806# Double entries in build_configdirs, configdirs, or target_configdirs may
2807# cause circular dependencies and break everything horribly.
252b5132 2808
6a9cf61e
PB
2809# these library is used by various programs built for the build
2810# environment
2811#
1b6c0831 2812build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2813
2814# these tools are built for the build environment
a90ef4bf 2815build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2816
a0da8069 2817# these libraries are used by various programs built for the host environment
1b6c0831 2818#f
228cf97d 2819host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
a0da8069 2820
a0da8069
NN
2821# these tools are built for the host environment
2822# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2823# know that we are building the simulator.
2824# binutils, gas and ld appear in that order because it makes sense to run
2825# "make check" in that particular order.
e6de499b 2826# If --enable-gold is used, "gold" may replace "ld".
228cf97d 2827host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
a0da8069 2828
a0da8069
NN
2829# these libraries are built for the target environment, and are built after
2830# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2831# Note that libiberty is not a target library.
b1299c4e 2832target_libraries="target-libgcc \
2bf680c4 2833 target-libbacktrace \
a0da8069
NN
2834 target-libgloss \
2835 target-newlib \
cff87f51 2836 target-libgomp \
1b6c0831 2837 target-liboffloadmic \
7ec59b9e 2838 target-libatomic \
d32e2926 2839 target-libitm \
b9459e83 2840 target-libstdc++-v3 \
5286fdef 2841 target-libsanitizer \
95e43135 2842 target-libvtv \
bb780410 2843 target-libssp \
e552509b 2844 target-libquadmath \
4b1cb4fe 2845 target-libgfortran \
05a13254 2846 target-libffi \
a2592b1b 2847 target-libobjc \
e552509b 2848 target-libada \
228cf97d
AM
2849 target-libgo \
2850 target-libphobos \
2851 target-zlib"
a0da8069 2852
9c14acb8
NN
2853# these tools are built using the target libraries, and are intended to
2854# run only in the target environment
a0da8069 2855#
9c14acb8 2856# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2857# list belongs in this list.
a0da8069 2858#
a90ef4bf 2859target_tools="target-rda"
252b5132 2860
a0da8069 2861################################################################################
252b5132 2862
a0da8069
NN
2863## All tools belong in one of the four categories, and are assigned above
2864## We assign ${configdirs} this way to remove all embedded newlines. This
2865## is important because configure will choke if they ever get through.
2866## ${configdirs} is directories we build using the host tools.
2867## ${target_configdirs} is directories we build using the target tools.
a0da8069 2868configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2869target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2870build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2871
9cc8ae67
PB
2872
2873
a0da8069 2874################################################################################
252b5132 2875
a0da8069 2876srcname="gnu development package"
252b5132 2877
a0da8069
NN
2878# This gets set non-empty for some net releases of packages.
2879appdirs=""
252b5132 2880
a0da8069
NN
2881# Define is_cross_compiler to save on calls to 'test'.
2882is_cross_compiler=
2883if test x"${host}" = x"${target}" ; then
2884 is_cross_compiler=no
252b5132 2885else
a0da8069 2886 is_cross_compiler=yes
c6b750e1 2887fi
252b5132 2888
9175bfc0 2889# Find the build and target subdir names.
dd12c3a8 2890
66a79c16
DJ
2891# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2892# have matching libraries, they should use host libraries: Makefile.tpl
2893# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2894# However, they still use the build modules, because the corresponding
2895# host modules (e.g. bison) are only built for the host when bootstrap
2896# finishes. So:
2897# - build_subdir is where we find build modules, and never changes.
2898# - build_libsubdir is where we find build libraries, and can be overridden.
2899
2900# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2901build_subdir="build-${build_noncanonical}"
c6b750e1 2902
81ecdfbb
RW
2903# Check whether --with-build-libsubdir was given.
2904if test "${with_build_libsubdir+set}" = set; then :
2905 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2906else
2907 build_libsubdir="$build_subdir"
81ecdfbb
RW
2908fi
2909
b00612cc
PB
2910# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2911if ( test $srcdir = . && test -d gcc ) \
2912 || test -d $srcdir/../host-${host_noncanonical}; then
2913 host_subdir="host-${host_noncanonical}"
2914else
2915 host_subdir=.
2916fi
dd12c3a8
NN
2917# No prefix.
2918target_subdir=${target_noncanonical}
c6b750e1 2919
2fd0b40b
RW
2920# Be sure to cover against remnants of an in-tree build.
2921if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
d0ac1c44 2922 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2fd0b40b
RW
2923Use a pristine source tree when building in a separate tree" "$LINENO" 5
2924fi
252b5132 2925
a0da8069
NN
2926# Skipdirs are removed silently.
2927skipdirs=
2928# Noconfigdirs are removed loudly.
2929noconfigdirs=""
252b5132 2930
a0da8069
NN
2931use_gnu_ld=
2932# Make sure we don't let GNU ld be added if we didn't want it.
2933if test x$with_gnu_ld = xno ; then
2934 use_gnu_ld=no
93f9b408 2935 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2936fi
2937
a0da8069
NN
2938use_gnu_as=
2939# Make sure we don't let GNU as be added if we didn't want it.
2940if test x$with_gnu_as = xno ; then
2941 use_gnu_as=no
2942 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2943fi
2944
700d40ca 2945use_included_zlib=
cf39cfc5
L
2946
2947# Check whether --with-system-zlib was given.
2948if test "${with_system_zlib+set}" = set; then :
2949 withval=$with_system_zlib;
2950fi
2951
700d40ca
ILT
2952# Make sure we don't let ZLIB be added if we didn't want it.
2953if test x$with_system_zlib = xyes ; then
2954 use_included_zlib=no
2955 noconfigdirs="$noconfigdirs zlib"
2956fi
2957
2cac01e3
FS
2958
2959# Check whether --with-zstd was given.
2960if test "${with_zstd+set}" = set; then :
2961 withval=$with_zstd;
2962fi
2963
2964
c6b750e1 2965# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2966# it's not even worth trying to configure, much less build, that tool.
252b5132 2967
a0da8069
NN
2968case ${with_x} in
2969 yes | "") ;; # the default value for this tree is that X11 is available
2970 no)
675c6968 2971 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2972 # We won't be able to build gdbtk without X.
c6b750e1 2973 enable_gdbtk=no
a0da8069
NN
2974 ;;
2975 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2976esac
252b5132 2977
0377a422 2978# Some are only suitable for cross toolchains.
a0da8069
NN
2979# Remove these if host=target.
2980cross_only="target-libgloss target-newlib target-opcodes"
2981
2982case $is_cross_compiler in
2983 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2984esac
252b5132 2985
a0da8069
NN
2986# If both --with-headers and --with-libs are specified, default to
2987# --without-newlib.
32be62b5
RS
2988if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2989 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2990 if test x"${with_newlib}" = x ; then
2991 with_newlib=no
2992 fi
252b5132
RH
2993fi
2994
a0da8069
NN
2995# Recognize --with-newlib/--without-newlib.
2996case ${with_newlib} in
2997 no) skipdirs="${skipdirs} target-newlib" ;;
2998 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2999esac
252b5132 3000
1b6c0831
L
3001# Check whether --enable-as-accelerator-for was given.
3002if test "${enable_as_accelerator_for+set}" = set; then :
3003 enableval=$enable_as_accelerator_for;
3004fi
3005
3006
3007# Check whether --enable-offload-targets was given.
3008if test "${enable_offload_targets+set}" = set; then :
3009 enableval=$enable_offload_targets;
3010 if test x"$enable_offload_targets" = x; then
d0ac1c44 3011 as_fn_error $? "no offload targets specified" "$LINENO" 5
1b6c0831
L
3012 fi
3013
3014else
3015 enable_offload_targets=
3016fi
3017
3018
228cf97d
AM
3019# Check whether --enable-offload-defaulted was given.
3020if test "${enable_offload_defaulted+set}" = set; then :
3021 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3022else
3023 enable_offload_defaulted=
3024fi
3025
3026
c7791212
NC
3027# Handle --enable-gold, --enable-ld.
3028# --disable-gold [--enable-ld]
3029# Build only ld. Default option.
d3b50760
L
3030# --enable-gold [--enable-ld]
3031# Build both gold and ld. Install gold as "ld.gold", install ld
3032# as "ld.bfd" and "ld".
3033# --enable-gold=default [--enable-ld]
c7791212
NC
3034# Build both gold and ld. Install gold as "ld.gold" and "ld",
3035# install ld as "ld.bfd".
3036# --enable-gold[=default] --disable-ld
3037# Build only gold, which is then installed as both "ld.gold" and "ld".
3038# --enable-gold --enable-ld=default
d3b50760
L
3039# Build both gold (installed as "ld.gold") and ld (installed as "ld"
3040# and ld.bfd).
c7791212
NC
3041# In other words, ld is default
3042# --enable-gold=default --enable-ld=default
3043# Error.
3044
3045default_ld=
81ecdfbb
RW
3046# Check whether --enable-gold was given.
3047if test "${enable_gold+set}" = set; then :
3048 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3049else
3050 ENABLE_GOLD=no
81ecdfbb
RW
3051fi
3052
c7791212
NC
3053case "${ENABLE_GOLD}" in
3054 yes|default)
e6de499b
NC
3055 # Check for ELF target.
3056 is_elf=no
3057 case "${target}" in
3058 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 3059 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 3060 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
228cf97d 3061 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
3062 case "${target}" in
3063 *-*-linux*aout* | *-*-linux*oldld*)
3064 ;;
3065 *)
3066 is_elf=yes
3067 ;;
3068 esac
3069 esac
3070
3071 if test "$is_elf" = "yes"; then
3072 # Check for target supported by gold.
93f9b408 3073 case "${target}" in
6d26190c 3074 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
228cf97d 3075 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
c7791212
NC
3076 configdirs="$configdirs gold"
3077 if test x${ENABLE_GOLD} = xdefault; then
3078 default_ld=gold
3079 fi
e6de499b 3080 ENABLE_GOLD=yes
93f9b408
ILT
3081 ;;
3082 esac
e6de499b
NC
3083 fi
3084 ;;
3085 no)
3086 ;;
3087 *)
d0ac1c44 3088 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
e6de499b 3089 ;;
c7791212
NC
3090esac
3091
3092# Check whether --enable-ld was given.
3093if test "${enable_ld+set}" = set; then :
3094 enableval=$enable_ld; ENABLE_LD=$enableval
3095else
3096 ENABLE_LD=yes
3097fi
3098
3099
3100case "${ENABLE_LD}" in
3101 default)
d3b50760 3102 if test x${default_ld} != x; then
d0ac1c44 3103 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
c7791212
NC
3104 fi
3105 ;;
3106 yes)
3107 ;;
3108 no)
3109 if test x${ENABLE_GOLD} != xyes; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3111$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3112 fi
3113 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3114 ;;
3115 *)
d0ac1c44 3116 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
c7791212
NC
3117 ;;
3118esac
93f9b408 3119
bb368aad
VM
3120# Check whether --enable-gprofng was given.
3121if test "${enable_gprofng+set}" = set; then :
3122 enableval=$enable_gprofng; enable_gprofng=$enableval
3123else
3124 enable_gprofng=yes
3125fi
3126
3127if test "$enable_gprofng" = "yes"; then
3128 case "${target}" in
3129 x86_64-*-linux* | i?86-*-linux* | aarch64-*-linux*)
3130 configdirs="$configdirs gprofng"
3131 ;;
3132 esac
3133fi
3134
3135
edeefb67
L
3136# PR gas/19109
3137# Decide the default method for compressing debug sections.
3138# Provide a configure time option to override our default.
3139# Check whether --enable-compressed_debug_sections was given.
3140if test "${enable_compressed_debug_sections+set}" = set; then :
3141 enableval=$enable_compressed_debug_sections;
3142 if test x"$enable_compressed_debug_sections" = xyes; then
d0ac1c44 3143 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
edeefb67
L
3144 fi
3145
3146else
3147 enable_compressed_debug_sections=
3148fi
3149
3150
a0da8069 3151# Configure extra directories which are host specific
252b5132 3152
a0da8069
NN
3153case "${host}" in
3154 *-cygwin*)
3155 configdirs="$configdirs libtermcap" ;;
3156esac
252b5132 3157
59f7ec45
HPN
3158# A target can indicate whether a language isn't supported for some reason.
3159# Only spaces may be used in this macro; not newlines or tabs.
3160unsupported_languages=
3161
c6b750e1 3162# Remove more programs from consideration, based on the host or
a0da8069
NN
3163# target this usually means that a port of the program doesn't
3164# exist yet.
252b5132 3165
a0da8069 3166case "${host}" in
3516a403 3167 i[3456789]86-*-msdosdjgpp*)
6a608608 3168 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3169 ;;
a0da8069 3170esac
252b5132 3171
e5f2f7d9
LM
3172# Default to --disable-year2038 until we can handle differences between
3173# projects that use gnulib (which understands year 2038) and projects that
3174# do not (like BFD).
3175# Check whether --enable-year2038 was given.
3176if test "${enable_year2038+set}" = set; then :
3177 enableval=$enable_year2038; ENABLE_YEAR2038=$enableval
3178else
3179 ENABLE_YEAR2038=no
3180fi
3181
3182enable_year2038=
3183if test "${ENABLE_YEAR2038}" = "no" ; then
3184 enable_year2038=no
3185fi
4b1cb4fe 3186
89a1e9c3
PB
3187# Check whether --enable-libquadmath was given.
3188if test "${enable_libquadmath+set}" = set; then :
3189 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3190else
3191 ENABLE_LIBQUADMATH=yes
3192fi
3193
3194if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3195 noconfigdirs="$noconfigdirs target-libquadmath"
3196fi
3197
3198
3199# Check whether --enable-libquadmath-support was given.
3200if test "${enable_libquadmath_support+set}" = set; then :
3201 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3202else
3203 ENABLE_LIBQUADMATH_SUPPORT=yes
3204fi
3205
3206enable_libquadmath_support=
3207if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3208 enable_libquadmath_support=no
3209fi
3210
3211
81ecdfbb
RW
3212# Check whether --enable-libada was given.
3213if test "${enable_libada+set}" = set; then :
3214 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3215else
3216 ENABLE_LIBADA=yes
81ecdfbb
RW
3217fi
3218
a2592b1b 3219if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3220 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3221fi
3222
81ecdfbb
RW
3223# Check whether --enable-libssp was given.
3224if test "${enable_libssp+set}" = set; then :
3225 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3226else
3227 ENABLE_LIBSSP=yes
81ecdfbb
RW
3228fi
3229
5f128533 3230
f66a9a70
L
3231# Check whether --enable-libstdcxx was given.
3232if test "${enable_libstdcxx+set}" = set; then :
3233 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3234else
3235 ENABLE_LIBSTDCXX=default
3236fi
3237
3238if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3239 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3240fi
3241
3242# If this is accelerator compiler and its target is intelmic we enable
3243# target liboffloadmic by default. If this is compiler with offloading
3244# for intelmic we enable host liboffloadmic by default. Otherwise
3245# liboffloadmic is disabled by default.
3246# Check whether --enable-liboffloadmic was given.
3247if test "${enable_liboffloadmic+set}" = set; then :
3248 enableval=$enable_liboffloadmic; case "$enableval" in
3249 no | host | target)
3250 enable_liboffloadmic=$enableval ;;
3251 *)
d0ac1c44 3252 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
1b6c0831
L
3253esac
3254else
3255 if test x"$enable_as_accelerator_for" != x; then
3256 case "${target}" in
3257 *-intelmic-* | *-intelmicemul-*)
3258 enable_liboffloadmic=target
3259 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3260 ;;
3261 *)
3262 enable_liboffloadmic=no
3263 ;;
3264 esac
3265else
3266 case "${enable_offload_targets}" in
3267 *-intelmic-* | *-intelmicemul-*)
3268 enable_liboffloadmic=host
3269 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3270 ;;
3271 *)
3272 enable_liboffloadmic=no
3273 ;;
3274 esac
3275fi
f66a9a70
L
3276fi
3277
1b6c0831
L
3278
3279
68996839 3280# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3281if test x$enable_libgomp = x ; then
b3ded179 3282 case "${target}" in
29383458 3283 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3284 ;;
5b806d27 3285 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3286 ;;
2479f722 3287 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3288 ;;
3289 *-*-darwin* | *-*-aix*)
3290 ;;
228cf97d 3291 nvptx*-*-* | amdgcn*-*-*)
68996839 3292 ;;
b3ded179
PB
3293 *)
3294 noconfigdirs="$noconfigdirs target-libgomp"
3295 ;;
3296 esac
a6df5a19 3297fi
b3ded179 3298
7ec59b9e
L
3299# Disable libatomic on unsupported systems.
3300if test -d ${srcdir}/libatomic; then
3301 if test x$enable_libatomic = x; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3303$as_echo_n "checking for libatomic support... " >&6; }
3304 if (srcdir=${srcdir}/libatomic; \
3305 . ${srcdir}/configure.tgt; \
3306 test -n "$UNSUPPORTED")
3307 then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
3310 noconfigdirs="$noconfigdirs target-libatomic"
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313$as_echo "yes" >&6; }
3314 fi
3315 fi
3316fi
3317
1b6c0831
L
3318# Disable liboffloadmic on unsupported systems.
3319if test -d ${srcdir}/liboffloadmic; then
3320 if test x$enable_liboffloadmic != xno; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3322$as_echo_n "checking for liboffloadmic support... " >&6; }
3323 if (srcdir=${srcdir}/liboffloadmic; \
3324 . ${srcdir}/configure.tgt; \
3325 test -n "$UNSUPPORTED")
3326 then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328$as_echo "no" >&6; }
3329 noconfigdirs="$noconfigdirs target-liboffloadmic"
3330 else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332$as_echo "yes" >&6; }
3333 fi
3334 fi
3335fi
3336
d32e2926
RH
3337# Disable libitm on unsupported systems.
3338if test -d ${srcdir}/libitm; then
3339 if test x$enable_libitm = x; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3341$as_echo_n "checking for libitm support... " >&6; }
3342 if (srcdir=${srcdir}/libitm; \
3343 . ${srcdir}/configure.tgt; \
3344 test -n "$UNSUPPORTED")
3345 then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347$as_echo "no" >&6; }
3348 noconfigdirs="$noconfigdirs target-libitm"
3349 else
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351$as_echo "yes" >&6; }
3352 fi
3353 fi
3354fi
3355
5286fdef
L
3356# Disable libsanitizer on unsupported systems.
3357if test -d ${srcdir}/libsanitizer; then
3358 if test x$enable_libsanitizer = x; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3360$as_echo_n "checking for libsanitizer support... " >&6; }
3361 if (srcdir=${srcdir}/libsanitizer; \
3362 . ${srcdir}/configure.tgt; \
3363 test -n "$UNSUPPORTED")
3364 then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367 noconfigdirs="$noconfigdirs target-libsanitizer"
3368 else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3370$as_echo "yes" >&6; }
3371 fi
3372 fi
3373fi
3374
95e43135
JBG
3375# Disable libvtv on unsupported systems.
3376if test -d ${srcdir}/libvtv; then
3377 if test x$enable_libvtv = x; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3379$as_echo_n "checking for libvtv support... " >&6; }
3380 if (srcdir=${srcdir}/libvtv; \
3381 . ${srcdir}/configure.tgt; \
3382 test "$VTV_SUPPORTED" != "yes")
3383 then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385$as_echo "no" >&6; }
3386 noconfigdirs="$noconfigdirs target-libvtv"
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3389$as_echo "yes" >&6; }
3390 fi
3391 fi
3392fi
3393
1488e230
DE
3394# Disable libquadmath for some systems.
3395case "${target}" in
5286fdef
L
3396 avr-*-*)
3397 noconfigdirs="$noconfigdirs target-libquadmath"
3398 ;;
1488e230
DE
3399 # libquadmath is unused on AIX and libquadmath build process use of
3400 # LD_LIBRARY_PATH can break AIX bootstrap.
3401 powerpc-*-aix* | rs6000-*-aix*)
3402 noconfigdirs="$noconfigdirs target-libquadmath"
3403 ;;
3404esac
3405
065a5627
JM
3406# Disable libssp for some systems.
3407case "${target}" in
3408 avr-*-*)
c5f5c3c2 3409 # No hosted I/O support.
065a5627
JM
3410 noconfigdirs="$noconfigdirs target-libssp"
3411 ;;
228cf97d
AM
3412 bpf-*-*)
3413 noconfigdirs="$noconfigdirs target-libssp"
3414 ;;
065a5627
JM
3415 powerpc-*-aix* | rs6000-*-aix*)
3416 noconfigdirs="$noconfigdirs target-libssp"
3417 ;;
228cf97d
AM
3418 pru-*-*)
3419 # No hosted I/O support.
3420 noconfigdirs="$noconfigdirs target-libssp"
3421 ;;
99c513f6 3422 rl78-*-*)
202e2356
NC
3423 # libssp uses a misaligned load to trigger a fault, but the RL78
3424 # doesn't fault for those - instead, it gives a build-time error
3425 # for explicit misaligned loads.
99c513f6
DD
3426 noconfigdirs="$noconfigdirs target-libssp"
3427 ;;
1b6c0831
L
3428 visium-*-*)
3429 # No hosted I/O support.
3430 noconfigdirs="$noconfigdirs target-libssp"
3431 ;;
065a5627
JM
3432esac
3433
065a5627 3434# Disable libstdc++-v3 for some systems.
228cf97d 3435# Allow user to override this if they pass --enable-libstdcxx
f66a9a70
L
3436if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3437 case "${target}" in
3438 *-*-vxworks*)
3439 # VxWorks uses the Dinkumware C++ library.
3440 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3441 ;;
228cf97d
AM
3442 amdgcn*-*-*)
3443 # Not ported/fails to build when using newlib.
3444 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3445 ;;
f66a9a70
L
3446 arm*-wince-pe*)
3447 # the C++ libraries don't build on top of CE's C libraries
3448 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3449 ;;
3450 avr-*-*)
3451 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3452 ;;
228cf97d
AM
3453 bpf-*-*)
3454 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3455 ;;
969b1713
L
3456 ft32-*-*)
3457 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3458 ;;
f66a9a70
L
3459 esac
3460fi
065a5627 3461
228cf97d
AM
3462# Disable C++ on systems where it is known to not work.
3463# For testing, you can override this with --enable-languages=c++.
3464case ,${enable_languages}, in
3465 *,c++,*)
3466 ;;
3467 *)
3468 case "${target}" in
3469 bpf-*-*)
3470 unsupported_languages="$unsupported_languages c++"
3471 ;;
3472 esac
3473 ;;
3474esac
3475
3476# Disable Objc on systems where it is known to not work.
3477# For testing, you can override this with --enable-languages=objc.
3478case ,${enable_languages}, in
3479 *,objc,*)
3480 ;;
3481 *)
3482 case "${target}" in
3483 bpf-*-*)
3484 unsupported_languages="$unsupported_languages objc"
3485 ;;
3486 esac
3487 ;;
3488esac
3489
3490# Disable D on systems where it is known to not work.
3491# For testing, you can override this with --enable-languages=d.
3492case ,${enable_languages}, in
3493 *,d,*)
3494 ;;
3495 *)
3496 case "${target}" in
3497 bpf-*-*)
3498 unsupported_languages="$unsupported_languages d"
3499 ;;
3500 esac
3501 ;;
3502esac
3503
3504# Disable libphobos on unsupported systems.
3505# For testing, you can override this with --enable-libphobos.
3506if test -d ${srcdir}/libphobos; then
3507 if test x$enable_libphobos = x; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3509$as_echo_n "checking for libphobos support... " >&6; }
3510 if (srcdir=${srcdir}/libphobos; \
3511 . ${srcdir}/configure.tgt; \
3512 test "$LIBPHOBOS_SUPPORTED" != "yes")
3513 then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516 noconfigdirs="$noconfigdirs target-libphobos"
3517 else
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519$as_echo "yes" >&6; }
3520 fi
3521 fi
3522fi
3523
065a5627
JM
3524# Disable Fortran for some systems.
3525case "${target}" in
3526 mmix-*-*)
3527 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3528 unsupported_languages="$unsupported_languages fortran"
3529 ;;
228cf97d
AM
3530 bpf-*-*)
3531 unsupported_languages="$unsupported_languages fortran"
3532 ;;
065a5627
JM
3533esac
3534
05a13254 3535# Disable libffi for some systems.
0827f9a6 3536case "${target}" in
9863d716
JM
3537 powerpc-*-darwin*)
3538 ;;
3539 i[3456789]86-*-darwin*)
3540 ;;
3541 x86_64-*-darwin[912]*)
3542 ;;
3543 *-*-darwin*)
05a13254 3544 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3545 ;;
9863d716 3546 *-*-netware*)
05a13254
NC
3547 noconfigdirs="$noconfigdirs target-libffi"
3548 ;;
3549 *-*-phoenix*)
3550 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3551 ;;
3552 *-*-rtems*)
05a13254 3553 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3554 ;;
3555 *-*-tpf*)
05a13254 3556 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3557 ;;
3558 *-*-uclinux*)
05a13254 3559 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3560 ;;
3561 *-*-vxworks*)
05a13254
NC
3562 noconfigdirs="$noconfigdirs target-libffi"
3563 ;;
3564 aarch64*-*-freebsd*)
3565 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3566 ;;
9863d716 3567 alpha*-*-*vms*)
05a13254 3568 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3569 ;;
1b6c0831 3570 arm*-*-freebsd*)
05a13254 3571 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3572 ;;
0827f9a6 3573 arm-wince-pe)
05a13254 3574 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3575 ;;
228cf97d
AM
3576 arm*-*-symbianelf*)
3577 noconfigdirs="$noconfigdirs target-libffi"
3578 ;;
3579 bpf-*-*)
3580 noconfigdirs="$noconfigdirs target-libffi"
3581 ;;
9863d716 3582 cris-*-* | crisv32-*-*)
9863d716
JM
3583 case "${target}" in
3584 *-*-linux*)
3585 ;;
3586 *) # See PR46792 regarding target-libffi.
05a13254 3587 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3588 esac
3589 ;;
82ae827f 3590 hppa*64*-*-hpux*)
05a13254 3591 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3592 ;;
3593 hppa*-hp-hpux11*)
3594 ;;
82ae827f 3595 hppa*-*-hpux*)
05a13254 3596 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3597 ;;
9863d716 3598 ia64*-*-*vms*)
05a13254 3599 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3600 ;;
9863d716 3601 i[3456789]86-w64-mingw*)
05a13254 3602 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3603 ;;
3604 i[3456789]86-*-mingw*)
05a13254 3605 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3606 ;;
3607 x86_64-*-mingw*)
05a13254 3608 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3609 ;;
9863d716 3610 mmix-*-*)
05a13254 3611 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3612 ;;
3613 powerpc-*-aix*)
9863d716 3614 ;;
9863d716 3615 rs6000-*-aix*)
9863d716 3616 ;;
3f8107ab 3617 ft32-*-*)
05a13254 3618 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3619 ;;
9863d716 3620 *-*-lynxos*)
05a13254 3621 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3622 ;;
9863d716
JM
3623esac
3624
1b6c0831
L
3625# Disable the go frontend on systems where it is known to not work. Please keep
3626# this in sync with contrib/config-list.mk.
3627case "${target}" in
228cf97d 3628*-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
1b6c0831
L
3629 unsupported_languages="$unsupported_languages go"
3630 ;;
3631esac
3632
919adfe8
TT
3633# Only allow gdbserver on some systems.
3634if test -d ${srcdir}/gdbserver; then
3635 if test x$enable_gdbserver = x; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3637$as_echo_n "checking for gdbserver support... " >&6; }
3638 if (srcdir=${srcdir}/gdbserver; \
3639 . ${srcdir}/configure.srv; \
3640 test -n "$UNSUPPORTED")
3641 then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
3644 noconfigdirs="$noconfigdirs gdbserver"
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647$as_echo "yes" >&6; }
3648 fi
3649 fi
3650fi
3651
a413f71a
ILT
3652# Disable libgo for some systems where it is known to not work.
3653# For testing, you can easily override this with --enable-libgo.
3654if test x$enable_libgo = x; then
3655 case "${target}" in
3656 *-*-darwin*)
3657 # PR 46986
3658 noconfigdirs="$noconfigdirs target-libgo"
3659 ;;
3660 *-*-cygwin* | *-*-mingw*)
3661 noconfigdirs="$noconfigdirs target-libgo"
3662 ;;
228cf97d
AM
3663 bpf-*-*)
3664 noconfigdirs="$noconfigdirs target-libgo"
3665 ;;
a413f71a
ILT
3666 esac
3667fi
3668
691bb5a1
DD
3669# Default libgloss CPU subdirectory.
3670libgloss_dir="$target_cpu"
4b1cb4fe 3671
ff46fb8f
JM
3672case "${target}" in
3673 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3674 libgloss_dir=wince
3675 ;;
f1dd87fc
YZ
3676 aarch64*-*-* )
3677 libgloss_dir=aarch64
3678 ;;
ff46fb8f
JM
3679 arm*-*-*)
3680 libgloss_dir=arm
3681 ;;
3682 cris-*-* | crisv32-*-*)
3683 libgloss_dir=cris
3684 ;;
3685 hppa*-*-*)
3686 libgloss_dir=pa
3687 ;;
3688 i[3456789]86-*-*)
3689 libgloss_dir=i386
3690 ;;
228cf97d
AM
3691 loongarch*-*-*)
3692 libgloss_dir=loongarch
3693 ;;
ff46fb8f
JM
3694 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3695 libgloss_dir=m68hc11
3696 ;;
3697 m68*-*-* | fido-*-*)
3698 libgloss_dir=m68k
3699 ;;
3700 mips*-*-*)
3701 libgloss_dir=mips
3702 ;;
3703 powerpc*-*-*)
3704 libgloss_dir=rs6000
3705 ;;
228cf97d
AM
3706 pru-*-*)
3707 libgloss_dir=pru
3708 ;;
ff46fb8f
JM
3709 sparc*-*-*)
3710 libgloss_dir=sparc
3711 ;;
3712esac
3713
c7e4b184 3714# Disable newlib and libgloss for various target OSes.
a0da8069 3715case "${target}" in
c7e4b184
JM
3716 alpha*-dec-osf*)
3717 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3718 ;;
3719 i[3456789]86-*-linux*)
3720 # This section makes it possible to build newlib natively on linux.
3721 # If we are using a cross compiler then don't configure newlib.
3722 if test x${is_cross_compiler} != xno ; then
3723 noconfigdirs="$noconfigdirs target-newlib"
3724 fi
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 # If we are not using a cross compiler, do configure newlib.
3727 # Note however, that newlib will only be configured in this situation
3728 # if the --with-newlib option has been given, because otherwise
3729 # 'target-newlib' will appear in skipdirs.
3730 ;;
3731 i[3456789]86-*-rdos*)
3732 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3733 ;;
3734 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737 sparc-*-sunos4*)
3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 ;;
228cf97d
AM
3740 bpf-*-*)
3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3742 ;;
c7e4b184
JM
3743 *-*-aix*)
3744 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3745 ;;
3746 *-*-beos*)
3747 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3748 ;;
a0da8069 3749 *-*-chorusos)
b2f14e4a 3750 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3751 ;;
c7e4b184
JM
3752 *-*-dragonfly*)
3753 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3754 ;;
3755 *-*-freebsd*)
3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3757 ;;
3758 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3759 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3760 ;;
3761 *-*-lynxos*)
3762 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3763 ;;
3764 *-*-mingw*)
3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3766 ;;
3767 *-*-netbsd*)
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 ;;
3770 *-*-netware*)
3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3772 ;;
3773 *-*-tpf*)
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 ;;
3776 *-*-uclinux*)
3777 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3778 ;;
3779 *-*-vxworks*)
3780 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3781 ;;
3782esac
3783
3784case "${target}" in
3785 *-*-chorusos)
3786 ;;
f075eb5e
TG
3787 aarch64-*-darwin*)
3788 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3789 noconfigdirs="$noconfigdirs sim target-rda"
3790 ;;
228cf97d
AM
3791 amdgcn*-*-*)
3792 ;;
f075eb5e
TG
3793 arm-*-darwin*)
3794 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs="$noconfigdirs sim target-rda"
3796 ;;
24741ab2 3797 powerpc-*-darwin*)
9d39db92 3798 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3799 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3800 ;;
85bd1942
TG
3801 i[3456789]86-*-darwin*)
3802 noconfigdirs="$noconfigdirs ld gprof"
3803 noconfigdirs="$noconfigdirs sim target-rda"
3804 ;;
e8a5fa9c 3805 x86_64-*-darwin[912]*)
652dec25
TG
3806 noconfigdirs="$noconfigdirs ld gas gprof"
3807 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3808 ;;
04d1ab34 3809 *-*-darwin*)
d320aacb 3810 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3811 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3812 ;;
5b806d27 3813 *-*-dragonfly*)
5b806d27 3814 ;;
de0b4a87 3815 *-*-freebsd*)
228cf97d
AM
3816 if test "x$with_gmp" = x \
3817 && ! test -d ${srcdir}/gmp \
4b1cb4fe
DD
3818 && test -f /usr/local/include/gmp.h; then
3819 with_gmp=/usr/local
3820 fi
4b1cb4fe 3821 ;;
f8a495c8
NC
3822 *-*-kaos*)
3823 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3824 noconfigdirs="$noconfigdirs target-libgloss"
3825 ;;
a0da8069 3826 *-*-netbsd*)
a0da8069 3827 ;;
2a3124ca 3828 *-*-netware*)
a0da8069 3829 ;;
05a13254
NC
3830 *-*-phoenix*)
3831 noconfigdirs="$noconfigdirs target-libgloss"
3832 ;;
a0da8069 3833 *-*-rtems*)
9863d716 3834 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3835 ;;
1587117a
EC
3836 # The tpf target doesn't support gdb yet.
3837 *-*-tpf*)
c7e4b184 3838 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3839 ;;
c1968181 3840 *-*-uclinux*)
c7e4b184 3841 noconfigdirs="$noconfigdirs target-rda"
c1968181 3842 ;;
a0da8069 3843 *-*-vxworks*)
a0da8069
NN
3844 ;;
3845 alpha*-dec-osf*)
3846 # ld works, but does not support shared libraries.
a0da8069 3847 # gas doesn't generate exception information.
c7e4b184 3848 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3849 ;;
3850 alpha*-*-*vms*)
9863d716 3851 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3852 ;;
a0da8069
NN
3853 alpha*-*-*)
3854 # newlib is not 64 bit ready
9863d716 3855 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3856 ;;
228cf97d
AM
3857 bpf-*-*)
3858 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3859 ;;
a0da8069 3860 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3861 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3862 ;;
05a13254
NC
3863 arc*-*-*)
3864 noconfigdirs="$noconfigdirs sim"
a0da8069 3865 ;;
a0da8069 3866 arm-*-pe*)
9863d716 3867 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3868 ;;
a0da8069 3869 arm-*-riscix*)
b2f14e4a 3870 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3871 ;;
8e71395b
L
3872 avr-*-*)
3873 if test x${with_avrlibc} != xno; then
3874 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3875 fi
3876 ;;
a0da8069 3877 c4x-*-* | tic4x-*-*)
b2f14e4a 3878 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3879 ;;
b2f14e4a
JM
3880 tic54x-*-*)
3881 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3882 ;;
a0da8069 3883 d10v-*-*)
b2f14e4a 3884 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3885 ;;
3886 d30v-*-*)
b2f14e4a 3887 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3888 ;;
3889 fr30-*-elf*)
9863d716 3890 noconfigdirs="$noconfigdirs gdb"
a0da8069 3891 ;;
3f8107ab
AM
3892 ft32-*-*)
3893 noconfigdirs="$noconfigdirs target-rda gprof"
3894 ;;
20135e4c 3895 moxie-*-*)
10b8fe5e 3896 noconfigdirs="$noconfigdirs"
20135e4c 3897 ;;
a0da8069 3898 h8300*-*-*)
9863d716 3899 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3900 ;;
3901 h8500-*-*)
b2f14e4a 3902 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3903 ;;
caeba88f 3904 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3905 ;;
5569a85f
JDA
3906 hppa*64*-*-hpux*)
3907 noconfigdirs="$noconfigdirs gdb"
3908 ;;
3909 hppa*-*-hpux11*)
3910 noconfigdirs="$noconfigdirs gdb ld"
3911 ;;
93cc359e 3912 hppa*64*-*-linux*)
a0da8069 3913 ;;
f0ff0f90 3914 hppa*-*-linux*)
5dcac624 3915 ;;
a0da8069 3916 hppa*-*-*elf* | \
a0da8069
NN
3917 hppa*-*-lites* | \
3918 hppa*-*-openbsd* | \
3919 hppa*64*-*-*)
4f0ef2d8 3920 ;;
691bb5a1 3921 hppa*-*-pro*)
691bb5a1 3922 ;;
a0da8069 3923 hppa*-*-*)
9863d716 3924 noconfigdirs="$noconfigdirs ld"
a0da8069 3925 ;;
b07c2aad 3926 i960-*-*)
b2f14e4a 3927 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3928 ;;
a0da8069
NN
3929 ia64*-*-elf*)
3930 # No gdb support yet.
0377a422 3931 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3932 ;;
3933 ia64*-**-hpux*)
92c9a463 3934 # No ld support yet.
5569a85f 3935 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3936 ;;
19e99079 3937 ia64*-*-*vms*)
7ec59b9e
L
3938 # No ld support yet.
3939 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3940 ;;
1f53ca9a 3941 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3942 ;;
3943 i[3456789]86-*-mingw*)
45055374 3944 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3945 ;;
a0da8069
NN
3946 *-*-cygwin*)
3947 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3948 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3949 # always build newlib if winsup directory is present.
45055374 3950 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3951 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3952 elif test -d "$srcdir/newlib"; then
45055374 3953 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3954 fi
c6b750e1 3955 ;;
ec11bdc6 3956 i[3456789]86-*-pe)
782cb41f 3957 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3958 ;;
ec11bdc6 3959 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3960 # The linker does not yet know about weak symbols in COFF,
3961 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3962 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3963 ;;
ec11bdc6 3964 i[3456789]86-*-sco*)
b2f14e4a 3965 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3966 ;;
cff32a7c 3967 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3968 noconfigdirs="$noconfigdirs target-libgloss"
3969 ;;
ec11bdc6 3970 i[3456789]86-*-sysv4*)
b2f14e4a 3971 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3972 ;;
ec11bdc6 3973 i[3456789]86-*-beos*)
c7e4b184 3974 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3975 ;;
b59bea8a 3976 i[3456789]86-*-rdos*)
c7e4b184 3977 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3978 ;;
a0da8069 3979 mmix-*-*)
9863d716 3980 noconfigdirs="$noconfigdirs gdb"
a0da8069 3981 ;;
4970f871 3982 mt-*-*)
cdb9b172
AH
3983 noconfigdirs="$noconfigdirs sim"
3984 ;;
1063beb5
FT
3985 nfp-*-*)
3986 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3987 noconfigdirs="$noconfigdirs $target_libraries"
3988 ;;
11104e42
SC
3989 pdp11-*-*)
3990 noconfigdirs="$noconfigdirs gdb gprof"
3991 ;;
a0da8069
NN
3992 powerpc-*-aix*)
3993 # copied from rs6000-*-* entry
c7e4b184 3994 noconfigdirs="$noconfigdirs gprof"
a0da8069 3995 ;;
93cc359e 3996 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3997 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3998 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3999 # always build newlib.
4000 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4001 ;;
4002 # This is temporary until we can link against shared libraries
4003 powerpcle-*-solaris*)
b2f14e4a 4004 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
4005 ;;
4006 powerpc-*-beos*)
c7e4b184 4007 noconfigdirs="$noconfigdirs gdb"
a0da8069 4008 ;;
a0da8069 4009 rs6000-*-lynxos*)
c7e4b184 4010 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4011 ;;
4012 rs6000-*-aix*)
c7e4b184 4013 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4014 ;;
4015 rs6000-*-*)
9863d716 4016 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
4017 ;;
4018 m68k-apollo-*)
b2f14e4a 4019 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 4020 ;;
25a07265 4021 microblaze*)
9863d716 4022 noconfigdirs="$noconfigdirs gprof"
25a07265 4023 ;;
a9d58c06 4024 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
4025 if test x$with_newlib = xyes; then
4026 noconfigdirs="$noconfigdirs gprof"
4027 fi
5bd8be13 4028 ;;
a0da8069 4029 mips*-*-irix5*)
b2f14e4a 4030 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
4031 ;;
4032 mips*-*-irix6*)
9863d716 4033 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 4034 ;;
a0da8069 4035 mips*-*-bsd*)
e8044f35 4036 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 4037 ;;
a0da8069 4038 mips*-*-linux*)
a0da8069 4039 ;;
e8044f35
RS
4040 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
4041 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
4042 noconfigdirs="$noconfigdirs ld gas gprof"
4043 ;;
a0da8069 4044 mips*-*-*)
9863d716 4045 noconfigdirs="$noconfigdirs gprof"
a0da8069 4046 ;;
1b6c0831 4047 nvptx*-*-*)
1b6c0831
L
4048 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4049 ;;
05a13254 4050 sh-*-*)
e8a5fa9c
RW
4051 case "${target}" in
4052 sh*-*-elf)
9863d716 4053 ;;
e8a5fa9c 4054 *)
9863d716 4055 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 4056 esac
a0da8069 4057 ;;
a0da8069 4058 sparc-*-sunos4*)
c7e4b184 4059 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
4060 use_gnu_ld=no
4061 fi
4062 ;;
619a3713 4063 tic6x-*-*)
40ae9136 4064 noconfigdirs="$noconfigdirs sim"
619a3713 4065 ;;
05a13254 4066 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
4067 noconfigdirs="$noconfigdirs sim"
4068 ;;
a0da8069 4069 v810-*-*)
b2f14e4a 4070 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
4071 ;;
4072 vax-*-*)
9863d716 4073 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 4074 ;;
b29d2641
MR
4075 wasm32-*-*)
4076 noconfigdirs="$noconfigdirs ld"
4077 ;;
228cf97d
AM
4078 loongarch*-*-linux*)
4079 ;;
4080 loongarch*-*-*)
4081 noconfigdirs="$noconfigdirs gprof"
4082 ;;
a0da8069 4083esac
252b5132 4084
a0da8069
NN
4085# If we aren't building newlib, then don't build libgloss, since libgloss
4086# depends upon some newlib header files.
4087case "${noconfigdirs}" in
4088 *target-libgloss*) ;;
4089 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4090esac
4091
a0da8069 4092# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
4093host_makefile_frag=/dev/null
4094if test -d ${srcdir}/config ; then
4095case "${host}" in
ec11bdc6 4096 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
4097 host_makefile_frag="config/mh-djgpp"
4098 ;;
4099 *-cygwin*)
e33b51a6 4100
81ecdfbb
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4102$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 4103echo a >cygwin-cat-check
1f53ca9a 4104if test `cat cygwin-cat-check` = a ; then
8ade07e9 4105 rm cygwin-cat-check
81ecdfbb
RW
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107$as_echo "yes" >&6; }
e33b51a6 4108else
8ade07e9 4109 rm cygwin-cat-check
81ecdfbb
RW
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
d0ac1c44 4112 as_fn_error $? "The cat command does not ignore carriage return characters.
e33b51a6
NC
4113 Please either mount the build directory in binary mode or run the following
4114 commands before running any configure script:
4115set -o igncr
4116export SHELLOPTS
81ecdfbb 4117 " "$LINENO" 5
e33b51a6 4118fi
e33b51a6 4119
a0da8069
NN
4120 host_makefile_frag="config/mh-cygwin"
4121 ;;
8a1599ab 4122 *-mingw*)
84e7906e 4123 host_makefile_frag="config/mh-mingw"
2d1e8239 4124 ;;
ce6c656d
L
4125 alpha*-linux*)
4126 host_makefile_frag="config/mh-alpha-linux"
4127 ;;
da888c87 4128 hppa*-hp-hpux10*)
da888c87 4129 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 4130 ;;
3516a403 4131 hppa*-hp-hpux*)
da888c87
PB
4132 host_makefile_frag="config/mh-pa"
4133 ;;
4134 hppa*-*)
4135 host_makefile_frag="config/mh-pa"
4136 ;;
228cf97d 4137 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
e552509b 4138 host_makefile_frag="config/mh-darwin"
0df3d27f 4139 ;;
f6d183c0
PB
4140 powerpc-*-aix*)
4141 host_makefile_frag="config/mh-ppc-aix"
4142 ;;
4143 rs6000-*-aix*)
4144 host_makefile_frag="config/mh-ppc-aix"
4145 ;;
a0da8069
NN
4146esac
4147fi
4148
9e07f89d 4149if test "${build}" != "${host}" ; then
1576798e
PB
4150 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4151 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 4152 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
228cf97d 4153 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
1576798e 4154 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
228cf97d 4155 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
1576798e 4156 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 4157 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
228cf97d 4158 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
1576798e
PB
4159 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4160 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4161 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4162 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4163 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4164 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4165else
4166 AR_FOR_BUILD="\$(AR)"
4167 AS_FOR_BUILD="\$(AS)"
512b7dfb 4168 CC_FOR_BUILD="\$(CC)"
1576798e 4169 CXX_FOR_BUILD="\$(CXX)"
228cf97d 4170 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
1576798e 4171 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 4172 GOC_FOR_BUILD="\$(GOC)"
228cf97d 4173 GDC_FOR_BUILD="\$(GDC)"
1576798e
PB
4174 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4175 LD_FOR_BUILD="\$(LD)"
4176 NM_FOR_BUILD="\$(NM)"
4177 RANLIB_FOR_BUILD="\$(RANLIB)"
4178 WINDRES_FOR_BUILD="\$(WINDRES)"
4179 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4180fi
4181
4182ac_ext=c
c6b750e1
DJ
4183ac_cpp='$CPP $CPPFLAGS'
4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4189set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4192if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4193 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4194else
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC="$CC" # Let the user override the test.
4197else
4198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
81ecdfbb 4203 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4205 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4207 break 2
4208 fi
4209done
81ecdfbb
RW
4210 done
4211IFS=$as_save_IFS
c6b750e1
DJ
4212
4213fi
4214fi
4215CC=$ac_cv_prog_CC
4216if test -n "$CC"; then
81ecdfbb
RW
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218$as_echo "$CC" >&6; }
c6b750e1 4219else
81ecdfbb
RW
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221$as_echo "no" >&6; }
c6b750e1
DJ
4222fi
4223
81ecdfbb 4224
c6b750e1
DJ
4225fi
4226if test -z "$ac_cv_prog_CC"; then
4227 ac_ct_CC=$CC
6a9cf61e 4228 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4229set dummy gcc; ac_word=$2
81ecdfbb
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4232if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4233 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4234else
4235 if test -n "$ac_ct_CC"; then
4236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
81ecdfbb 4243 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4245 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4247 break 2
4248 fi
4249done
81ecdfbb
RW
4250 done
4251IFS=$as_save_IFS
c6b750e1
DJ
4252
4253fi
4254fi
4255ac_ct_CC=$ac_cv_prog_ac_ct_CC
4256if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4258$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4259else
81ecdfbb
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261$as_echo "no" >&6; }
c6b750e1
DJ
4262fi
4263
81ecdfbb
RW
4264 if test "x$ac_ct_CC" = x; then
4265 CC=""
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268yes:)
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271ac_tool_warned=yes ;;
4272esac
4273 CC=$ac_ct_CC
4274 fi
c6b750e1
DJ
4275else
4276 CC="$ac_cv_prog_CC"
4277fi
4278
4279if test -z "$CC"; then
81ecdfbb
RW
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4282set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4285if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4286 $as_echo_n "(cached) " >&6
9e07f89d
NN
4287else
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC="$CC" # Let the user override the test.
4290else
c6b750e1
DJ
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
81ecdfbb 4296 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4298 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4300 break 2
4301 fi
4302done
81ecdfbb
RW
4303 done
4304IFS=$as_save_IFS
c6b750e1 4305
9e07f89d
NN
4306fi
4307fi
c6b750e1 4308CC=$ac_cv_prog_CC
9e07f89d 4309if test -n "$CC"; then
81ecdfbb
RW
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311$as_echo "$CC" >&6; }
c6b750e1 4312else
81ecdfbb
RW
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314$as_echo "no" >&6; }
c6b750e1
DJ
4315fi
4316
c6b750e1 4317
81ecdfbb 4318 fi
c6b750e1 4319fi
9e07f89d
NN
4320if test -z "$CC"; then
4321 # Extract the first word of "cc", so it can be a program name with args.
4322set dummy cc; ac_word=$2
81ecdfbb
RW
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4325if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4326 $as_echo_n "(cached) " >&6
9e07f89d
NN
4327else
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC="$CC" # Let the user override the test.
4330else
9e07f89d 4331 ac_prog_rejected=no
c6b750e1
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=.
81ecdfbb 4337 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1
DJ
4339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4340 ac_prog_rejected=yes
4341 continue
4342 fi
4343 ac_cv_prog_CC="cc"
81ecdfbb 4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4345 break 2
4346 fi
4347done
81ecdfbb
RW
4348 done
4349IFS=$as_save_IFS
c6b750e1 4350
9e07f89d
NN
4351if test $ac_prog_rejected = yes; then
4352 # We found a bogon in the path, so make sure we never use it.
4353 set dummy $ac_cv_prog_CC
4354 shift
c6b750e1 4355 if test $# != 0; then
9e07f89d
NN
4356 # We chose a different compiler from the bogus one.
4357 # However, it has the same basename, so the bogon will be chosen
4358 # first if we set CC to just the basename; use the full file name.
4359 shift
c6b750e1 4360 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4361 fi
4362fi
4363fi
4364fi
c6b750e1 4365CC=$ac_cv_prog_CC
9e07f89d 4366if test -n "$CC"; then
81ecdfbb
RW
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4368$as_echo "$CC" >&6; }
9e07f89d 4369else
81ecdfbb
RW
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371$as_echo "no" >&6; }
9e07f89d
NN
4372fi
4373
81ecdfbb 4374
c6b750e1
DJ
4375fi
4376if test -z "$CC"; then
4377 if test -n "$ac_tool_prefix"; then
81ecdfbb 4378 for ac_prog in cl.exe
c6b750e1
DJ
4379 do
4380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4384if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4385 $as_echo_n "(cached) " >&6
9e07f89d
NN
4386else
4387 if test -n "$CC"; then
4388 ac_cv_prog_CC="$CC" # Let the user override the test.
4389else
c6b750e1
DJ
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
81ecdfbb 4395 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4399 break 2
376a0e54 4400 fi
c6b750e1 4401done
81ecdfbb
RW
4402 done
4403IFS=$as_save_IFS
cac3d6c4 4404
c6b750e1
DJ
4405fi
4406fi
4407CC=$ac_cv_prog_CC
4408if test -n "$CC"; then
81ecdfbb
RW
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4410$as_echo "$CC" >&6; }
cac3d6c4 4411else
81ecdfbb
RW
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
9e07f89d 4414fi
cac3d6c4 4415
81ecdfbb 4416
c6b750e1
DJ
4417 test -n "$CC" && break
4418 done
cac3d6c4 4419fi
c6b750e1
DJ
4420if test -z "$CC"; then
4421 ac_ct_CC=$CC
81ecdfbb 4422 for ac_prog in cl.exe
c6b750e1
DJ
4423do
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4428if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4429 $as_echo_n "(cached) " >&6
cac3d6c4 4430else
c6b750e1
DJ
4431 if test -n "$ac_ct_CC"; then
4432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4433else
c6b750e1
DJ
4434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435for as_dir in $PATH
4436do
4437 IFS=$as_save_IFS
4438 test -z "$as_dir" && as_dir=.
81ecdfbb 4439 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 4441 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4443 break 2
4444 fi
4445done
81ecdfbb
RW
4446 done
4447IFS=$as_save_IFS
c6b750e1 4448
cac3d6c4
CM
4449fi
4450fi
c6b750e1
DJ
4451ac_ct_CC=$ac_cv_prog_ac_ct_CC
4452if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4454$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4455else
81ecdfbb
RW
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457$as_echo "no" >&6; }
cac3d6c4 4458fi
376a0e54 4459
81ecdfbb 4460
c6b750e1
DJ
4461 test -n "$ac_ct_CC" && break
4462done
4463
81ecdfbb
RW
4464 if test "x$ac_ct_CC" = x; then
4465 CC=""
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468yes:)
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471ac_tool_warned=yes ;;
4472esac
4473 CC=$ac_ct_CC
4474 fi
c6b750e1
DJ
4475fi
4476
4477fi
4478
4479
81ecdfbb
RW
4480test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4482as_fn_error $? "no acceptable C compiler found in \$PATH
4483See \`config.log' for more details" "$LINENO" 5; }
c6b750e1
DJ
4484
4485# Provide some information about the compiler.
81ecdfbb
RW
4486$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4487set X $ac_compile
4488ac_compiler=$2
4489for ac_option in --version -v -V -qversion; do
4490 { { ac_try="$ac_compiler $ac_option >&5"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
4495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496$as_echo "$ac_try_echo"; } >&5
4497 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4498 ac_status=$?
81ecdfbb
RW
4499 if test -s conftest.err; then
4500 sed '10a\
4501... rest of stderr output deleted ...
4502 10q' conftest.err >conftest.er1
4503 cat conftest.er1 >&5
81ecdfbb 4504 fi
d0ac1c44 4505 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }
4508done
c6b750e1 4509
81ecdfbb 4510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4511/* end confdefs.h. */
4512
4513int
4514main ()
4515{
4516
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521ac_clean_files_save=$ac_clean_files
d0ac1c44 4522ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
c6b750e1
DJ
4523# Try to create an executable without -o first, disregard a.out.
4524# It will help us diagnose broken compilers, and finding out an intuition
4525# of exeext.
d0ac1c44
SM
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4527$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
4528ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4529
4530# The possible output files:
4531ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4532
4533ac_rmfiles=
4534for ac_file in $ac_files
4535do
4536 case $ac_file in
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4539 esac
4540done
4541rm -f $ac_rmfiles
4542
4543if { { ac_try="$ac_link_default"
4544case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547esac
4548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4549$as_echo "$ac_try_echo"; } >&5
4550 (eval "$ac_link_default") 2>&5
c6b750e1 4551 ac_status=$?
81ecdfbb
RW
4552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553 test $ac_status = 0; }; then :
4554 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4555# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4556# in a Makefile. We should not override ac_cv_exeext if it was cached,
4557# so that the user can short-circuit this test for compilers unknown to
4558# Autoconf.
4559for ac_file in $ac_files ''
c6b750e1
DJ
4560do
4561 test -f "$ac_file" || continue
4562 case $ac_file in
81ecdfbb 4563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4564 ;;
4565 [ab].out )
4566 # We found the default executable, but exeext='' is most
4567 # certainly right.
4568 break;;
4569 *.* )
81ecdfbb
RW
4570 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4571 then :; else
4572 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4573 fi
4574 # We set ac_cv_exeext here because the later test for it is not
4575 # safe: cross compilers may not add the suffix if given an `-o'
4576 # argument, so we may need to know it at that point already.
4577 # Even if this section looks crufty: it has the advantage of
4578 # actually working.
c6b750e1
DJ
4579 break;;
4580 * )
4581 break;;
4582 esac
4583done
81ecdfbb
RW
4584test "$ac_cv_exeext" = no && ac_cv_exeext=
4585
c6b750e1 4586else
81ecdfbb
RW
4587 ac_file=''
4588fi
81ecdfbb 4589if test -z "$ac_file"; then :
d0ac1c44
SM
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591$as_echo "no" >&6; }
4592$as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4593sed 's/^/| /' conftest.$ac_ext >&5
4594
81ecdfbb
RW
4595{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4597as_fn_error 77 "C compiler cannot create executables
4598See \`config.log' for more details" "$LINENO" 5; }
4599else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601$as_echo "yes" >&6; }
c6b750e1 4602fi
d0ac1c44
SM
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4604$as_echo_n "checking for C compiler default output file name... " >&6; }
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4606$as_echo "$ac_file" >&6; }
c6b750e1 4607ac_exeext=$ac_cv_exeext
c6b750e1 4608
d0ac1c44 4609rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
c6b750e1 4610ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4612$as_echo_n "checking for suffix of executables... " >&6; }
4613if { { ac_try="$ac_link"
4614case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4617esac
4618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619$as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
c6b750e1 4621 ac_status=$?
81ecdfbb
RW
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }; then :
c6b750e1
DJ
4624 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4625# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4626# work properly (i.e., refer to `conftest.exe'), while it won't with
4627# `rm'.
4628for ac_file in conftest.exe conftest conftest.*; do
4629 test -f "$ac_file" || continue
4630 case $ac_file in
81ecdfbb 4631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4632 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4633 break;;
4634 * ) break;;
4635 esac
4636done
4637else
81ecdfbb
RW
4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4640as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4641See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4642fi
d0ac1c44 4643rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4645$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4646
4647rm -f conftest.$ac_ext
4648EXEEXT=$ac_cv_exeext
4649ac_exeext=$EXEEXT
d0ac1c44
SM
4650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h. */
4652#include <stdio.h>
4653int
4654main ()
4655{
4656FILE *f = fopen ("conftest.out", "w");
4657 return ferror (f) || fclose (f) != 0;
4658
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663ac_clean_files="$ac_clean_files conftest.out"
4664# Check that the compiler produces executables we can run. If not, either
4665# the compiler is broken, or we cross compile.
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4667$as_echo_n "checking whether we are cross compiling... " >&6; }
4668if test "$cross_compiling" != yes; then
4669 { { ac_try="$ac_link"
4670case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
4674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675$as_echo "$ac_try_echo"; } >&5
4676 (eval "$ac_link") 2>&5
4677 ac_status=$?
4678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }
4680 if { ac_try='./conftest$ac_cv_exeext'
4681 { { case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684esac
4685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686$as_echo "$ac_try_echo"; } >&5
4687 (eval "$ac_try") 2>&5
4688 ac_status=$?
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }; }; then
4691 cross_compiling=no
4692 else
4693 if test "$cross_compiling" = maybe; then
4694 cross_compiling=yes
4695 else
4696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4698as_fn_error $? "cannot run C compiled programs.
4699If you meant to cross compile, use \`--host'.
4700See \`config.log' for more details" "$LINENO" 5; }
4701 fi
4702 fi
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4705$as_echo "$cross_compiling" >&6; }
4706
4707rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4708ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4710$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 4711if ${ac_cv_objext+:} false; then :
81ecdfbb 4712 $as_echo_n "(cached) " >&6
c6b750e1 4713else
81ecdfbb 4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4715/* end confdefs.h. */
4716
4717int
4718main ()
4719{
4720
4721 ;
4722 return 0;
4723}
4724_ACEOF
4725rm -f conftest.o conftest.obj
81ecdfbb
RW
4726if { { ac_try="$ac_compile"
4727case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730esac
4731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732$as_echo "$ac_try_echo"; } >&5
4733 (eval "$ac_compile") 2>&5
c6b750e1 4734 ac_status=$?
81ecdfbb
RW
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }; then :
4737 for ac_file in conftest.o conftest.obj conftest.*; do
4738 test -f "$ac_file" || continue;
c6b750e1 4739 case $ac_file in
81ecdfbb 4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4742 break;;
4743 esac
4744done
cac3d6c4 4745else
81ecdfbb 4746 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
81ecdfbb
RW
4749{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4751as_fn_error $? "cannot compute suffix of object files: cannot compile
4752See \`config.log' for more details" "$LINENO" 5; }
c6b750e1 4753fi
c6b750e1
DJ
4754rm -f conftest.$ac_cv_objext conftest.$ac_ext
4755fi
81ecdfbb
RW
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4757$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4758OBJEXT=$ac_cv_objext
4759ac_objext=$OBJEXT
81ecdfbb
RW
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4761$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4762if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4763 $as_echo_n "(cached) " >&6
c6b750e1 4764else
81ecdfbb 4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771#ifndef __GNUC__
4772 choke me
4773#endif
4774
4775 ;
4776 return 0;
4777}
4778_ACEOF
81ecdfbb 4779if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4780 ac_compiler_gnu=yes
4781else
81ecdfbb 4782 ac_compiler_gnu=no
c6b750e1 4783fi
81ecdfbb 4784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4785ac_cv_c_compiler_gnu=$ac_compiler_gnu
4786
4787fi
81ecdfbb
RW
4788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4789$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4790if test $ac_compiler_gnu = yes; then
4791 GCC=yes
4792else
4793 GCC=
4794fi
c6b750e1
DJ
4795ac_test_CFLAGS=${CFLAGS+set}
4796ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4798$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4799if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4800 $as_echo_n "(cached) " >&6
4801else
4802 ac_save_c_werror_flag=$ac_c_werror_flag
4803 ac_c_werror_flag=yes
4804 ac_cv_prog_cc_g=no
4805 CFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812
4813 ;
4814 return 0;
4815}
4816_ACEOF
81ecdfbb 4817if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4818 ac_cv_prog_cc_g=yes
4819else
81ecdfbb
RW
4820 CFLAGS=""
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h. */
4823
4824int
4825main ()
4826{
4827
4828 ;
4829 return 0;
4830}
4831_ACEOF
4832if ac_fn_c_try_compile "$LINENO"; then :
4833
4834else
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4836 CFLAGS="-g"
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h. */
cac3d6c4 4839
81ecdfbb
RW
4840int
4841main ()
4842{
4843
4844 ;
4845 return 0;
4846}
4847_ACEOF
4848if ac_fn_c_try_compile "$LINENO"; then :
4849 ac_cv_prog_cc_g=yes
4850fi
4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4852fi
81ecdfbb 4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4854fi
81ecdfbb
RW
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_c_werror_flag=$ac_save_c_werror_flag
4857fi
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4859$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4860if test "$ac_test_CFLAGS" = set; then
c6b750e1 4861 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4862elif test $ac_cv_prog_cc_g = yes; then
4863 if test "$GCC" = yes; then
4864 CFLAGS="-g -O2"
4865 else
4866 CFLAGS="-g"
4867 fi
4868else
4869 if test "$GCC" = yes; then
4870 CFLAGS="-O2"
4871 else
4872 CFLAGS=
4873 fi
4874fi
81ecdfbb
RW
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4876$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4877if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4878 $as_echo_n "(cached) " >&6
c6b750e1 4879else
81ecdfbb 4880 ac_cv_prog_cc_c89=no
c6b750e1 4881ac_save_CC=$CC
81ecdfbb 4882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4883/* end confdefs.h. */
4884#include <stdarg.h>
4885#include <stdio.h>
d0ac1c44 4886struct stat;
c6b750e1
DJ
4887/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4888struct buf { int x; };
4889FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890static char *e (p, i)
4891 char **p;
4892 int i;
4893{
4894 return p[i];
4895}
4896static char *f (char * (*g) (char **, int), char **p, ...)
4897{
4898 char *s;
4899 va_list v;
4900 va_start (v,p);
4901 s = g (p, va_arg (v,int));
4902 va_end (v);
4903 return s;
4904}
4905
4906/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4907 function prototypes and stuff, but not '\xHH' hex character constants.
4908 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4909 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4911 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4912 that's true only with -std. */
c6b750e1
DJ
4913int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4914
81ecdfbb
RW
4915/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4916 inside strings and character constants. */
4917#define FOO(x) 'x'
4918int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4919
c6b750e1
DJ
4920int test (int i, double x);
4921struct s1 {int (*f) (int a);};
4922struct s2 {int (*f) (double a);};
4923int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4924int argc;
4925char **argv;
4926int
4927main ()
4928{
4929return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4930 ;
4931 return 0;
4932}
4933_ACEOF
81ecdfbb
RW
4934for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4936do
4937 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4940fi
81ecdfbb
RW
4941rm -f core conftest.err conftest.$ac_objext
4942 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4943done
81ecdfbb 4944rm -f conftest.$ac_ext
c6b750e1
DJ
4945CC=$ac_save_CC
4946
4947fi
81ecdfbb
RW
4948# AC_CACHE_VAL
4949case "x$ac_cv_prog_cc_c89" in
4950 x)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4952$as_echo "none needed" >&6; } ;;
4953 xno)
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4955$as_echo "unsupported" >&6; } ;;
c6b750e1 4956 *)
81ecdfbb
RW
4957 CC="$CC $ac_cv_prog_cc_c89"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4959$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4960esac
81ecdfbb 4961if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4962
c6b750e1
DJ
4963fi
4964
c6b750e1
DJ
4965ac_ext=c
4966ac_cpp='$CPP $CPPFLAGS'
4967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4970
a8d6316b
NC
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4972$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4973if ${ac_cv_prog_cc_c99+:} false; then :
4974 $as_echo_n "(cached) " >&6
4975else
4976 ac_cv_prog_cc_c99=no
4977ac_save_CC=$CC
4978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979/* end confdefs.h. */
4980#include <stdarg.h>
4981#include <stdbool.h>
4982#include <stdlib.h>
4983#include <wchar.h>
4984#include <stdio.h>
4985
4986// Check varargs macros. These examples are taken from C99 6.10.3.5.
4987#define debug(...) fprintf (stderr, __VA_ARGS__)
4988#define showlist(...) puts (#__VA_ARGS__)
4989#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4990static void
4991test_varargs_macros (void)
4992{
4993 int x = 1234;
4994 int y = 5678;
4995 debug ("Flag");
4996 debug ("X = %d\n", x);
4997 showlist (The first, second, and third items.);
4998 report (x>y, "x is %d but y is %d", x, y);
4999}
5000
5001// Check long long types.
5002#define BIG64 18446744073709551615ull
5003#define BIG32 4294967295ul
5004#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5005#if !BIG_OK
5006 your preprocessor is broken;
5007#endif
5008#if BIG_OK
5009#else
5010 your preprocessor is broken;
5011#endif
5012static long long int bignum = -9223372036854775807LL;
5013static unsigned long long int ubignum = BIG64;
5014
5015struct incomplete_array
5016{
5017 int datasize;
5018 double data[];
5019};
5020
5021struct named_init {
5022 int number;
5023 const wchar_t *name;
5024 double average;
5025};
5026
5027typedef const char *ccp;
5028
5029static inline int
5030test_restrict (ccp restrict text)
5031{
5032 // See if C++-style comments work.
5033 // Iterate through items via the restricted pointer.
5034 // Also check for declarations in for loops.
5035 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5036 continue;
5037 return 0;
5038}
5039
5040// Check varargs and va_copy.
5041static void
5042test_varargs (const char *format, ...)
5043{
5044 va_list args;
5045 va_start (args, format);
5046 va_list args_copy;
5047 va_copy (args_copy, args);
5048
5049 const char *str;
5050 int number;
5051 float fnumber;
5052
5053 while (*format)
5054 {
5055 switch (*format++)
5056 {
5057 case 's': // string
5058 str = va_arg (args_copy, const char *);
5059 break;
5060 case 'd': // int
5061 number = va_arg (args_copy, int);
5062 break;
5063 case 'f': // float
5064 fnumber = va_arg (args_copy, double);
5065 break;
5066 default:
5067 break;
5068 }
5069 }
5070 va_end (args_copy);
5071 va_end (args);
5072}
5073
5074int
5075main ()
5076{
5077
5078 // Check bool.
5079 _Bool success = false;
5080
5081 // Check restrict.
5082 if (test_restrict ("String literal") == 0)
5083 success = true;
5084 char *restrict newvar = "Another string";
5085
5086 // Check varargs.
5087 test_varargs ("s, d' f .", "string", 65, 34.234);
5088 test_varargs_macros ();
5089
5090 // Check flexible array members.
5091 struct incomplete_array *ia =
5092 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5093 ia->datasize = 10;
5094 for (int i = 0; i < ia->datasize; ++i)
5095 ia->data[i] = i * 1.234;
5096
5097 // Check named initializers.
5098 struct named_init ni = {
5099 .number = 34,
5100 .name = L"Test wide string",
5101 .average = 543.34343,
5102 };
5103
5104 ni.number = 58;
5105
5106 int dynamic_array[ni.number];
5107 dynamic_array[ni.number - 1] = 543;
5108
5109 // work around unused variable warnings
5110 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5111 || dynamic_array[ni.number - 1] != 543);
5112
5113 ;
5114 return 0;
5115}
5116_ACEOF
5117for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5118do
5119 CC="$ac_save_CC $ac_arg"
5120 if ac_fn_c_try_compile "$LINENO"; then :
5121 ac_cv_prog_cc_c99=$ac_arg
5122fi
5123rm -f core conftest.err conftest.$ac_objext
5124 test "x$ac_cv_prog_cc_c99" != "xno" && break
5125done
5126rm -f conftest.$ac_ext
5127CC=$ac_save_CC
5128
5129fi
5130# AC_CACHE_VAL
5131case "x$ac_cv_prog_cc_c99" in
5132 x)
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5134$as_echo "none needed" >&6; } ;;
5135 xno)
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5137$as_echo "unsupported" >&6; } ;;
5138 *)
5139 CC="$CC $ac_cv_prog_cc_c99"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5141$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5142esac
5143if test "x$ac_cv_prog_cc_c99" != xno; then :
5144
5145fi
5146
5147
81ecdfbb 5148ac_ext=cpp
18f6b6ee
PB
5149ac_cpp='$CXXCPP $CPPFLAGS'
5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
5153if test -z "$CXX"; then
5154 if test -n "$CCC"; then
5155 CXX=$CCC
5156 else
5157 if test -n "$ac_tool_prefix"; then
5158 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5159 do
5160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5164if ${ac_cv_prog_CXX+:} false; then :
81ecdfbb 5165 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5166else
5167 if test -n "$CXX"; then
5168 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5169else
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
81ecdfbb 5175 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
5179 break 2
5180 fi
5181done
81ecdfbb
RW
5182 done
5183IFS=$as_save_IFS
512b7dfb 5184
18f6b6ee
PB
5185fi
5186fi
5187CXX=$ac_cv_prog_CXX
5188if test -n "$CXX"; then
81ecdfbb
RW
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5190$as_echo "$CXX" >&6; }
18f6b6ee 5191else
81ecdfbb
RW
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193$as_echo "no" >&6; }
18f6b6ee
PB
5194fi
5195
81ecdfbb 5196
18f6b6ee
PB
5197 test -n "$CXX" && break
5198 done
5199fi
5200if test -z "$CXX"; then
5201 ac_ct_CXX=$CXX
81ecdfbb 5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
5203do
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5208if ${ac_cv_prog_ac_ct_CXX+:} false; then :
81ecdfbb 5209 $as_echo_n "(cached) " >&6
18f6b6ee
PB
5210else
5211 if test -n "$ac_ct_CXX"; then
5212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5213else
5214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215for as_dir in $PATH
5216do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
81ecdfbb 5219 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18f6b6ee 5221 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 5223 break 2
512b7dfb 5224 fi
18f6b6ee 5225done
81ecdfbb
RW
5226 done
5227IFS=$as_save_IFS
512b7dfb 5228
18f6b6ee
PB
5229fi
5230fi
5231ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5232if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5234$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 5235else
81ecdfbb
RW
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }
18f6b6ee
PB
5238fi
5239
81ecdfbb 5240
18f6b6ee
PB
5241 test -n "$ac_ct_CXX" && break
5242done
18f6b6ee 5243
81ecdfbb
RW
5244 if test "x$ac_ct_CXX" = x; then
5245 CXX="g++"
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248yes:)
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251ac_tool_warned=yes ;;
5252esac
5253 CXX=$ac_ct_CXX
5254 fi
18f6b6ee
PB
5255fi
5256
81ecdfbb
RW
5257 fi
5258fi
18f6b6ee 5259# Provide some information about the compiler.
81ecdfbb
RW
5260$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5261set X $ac_compile
5262ac_compiler=$2
5263for ac_option in --version -v -V -qversion; do
5264 { { ac_try="$ac_compiler $ac_option >&5"
5265case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268esac
5269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5270$as_echo "$ac_try_echo"; } >&5
5271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 5272 ac_status=$?
81ecdfbb
RW
5273 if test -s conftest.err; then
5274 sed '10a\
5275... rest of stderr output deleted ...
5276 10q' conftest.err >conftest.er1
5277 cat conftest.er1 >&5
81ecdfbb 5278 fi
d0ac1c44 5279 rm -f conftest.er1 conftest.err
81ecdfbb
RW
5280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281 test $ac_status = 0; }
5282done
18f6b6ee 5283
81ecdfbb
RW
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5285$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
d0ac1c44 5286if ${ac_cv_cxx_compiler_gnu+:} false; then :
81ecdfbb 5287 $as_echo_n "(cached) " >&6
18f6b6ee 5288else
81ecdfbb 5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5290/* end confdefs.h. */
5291
5292int
5293main ()
5294{
5295#ifndef __GNUC__
5296 choke me
5297#endif
5298
5299 ;
5300 return 0;
5301}
5302_ACEOF
81ecdfbb 5303if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5304 ac_compiler_gnu=yes
5305else
81ecdfbb 5306 ac_compiler_gnu=no
18f6b6ee 5307fi
81ecdfbb 5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
5309ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5310
5311fi
81ecdfbb
RW
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5313$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5314if test $ac_compiler_gnu = yes; then
5315 GXX=yes
5316else
5317 GXX=
5318fi
18f6b6ee
PB
5319ac_test_CXXFLAGS=${CXXFLAGS+set}
5320ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5322$as_echo_n "checking whether $CXX accepts -g... " >&6; }
d0ac1c44 5323if ${ac_cv_prog_cxx_g+:} false; then :
81ecdfbb
RW
5324 $as_echo_n "(cached) " >&6
5325else
5326 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5327 ac_cxx_werror_flag=yes
5328 ac_cv_prog_cxx_g=no
5329 CXXFLAGS="-g"
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
5331/* end confdefs.h. */
5332
5333int
5334main ()
5335{
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
81ecdfbb 5341if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
5342 ac_cv_prog_cxx_g=yes
5343else
81ecdfbb
RW
5344 CXXFLAGS=""
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5346/* end confdefs.h. */
81ecdfbb 5347
18f6b6ee
PB
5348int
5349main ()
5350{
81ecdfbb 5351
18f6b6ee
PB
5352 ;
5353 return 0;
5354}
5355_ACEOF
81ecdfbb 5356if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 5357
81ecdfbb
RW
5358else
5359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5360 CXXFLAGS="-g"
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 5362/* end confdefs.h. */
81ecdfbb 5363
18f6b6ee
PB
5364int
5365main ()
5366{
81ecdfbb 5367
18f6b6ee
PB
5368 ;
5369 return 0;
5370}
5371_ACEOF
81ecdfbb
RW
5372if ac_fn_cxx_try_compile "$LINENO"; then :
5373 ac_cv_prog_cxx_g=yes
18f6b6ee 5374fi
81ecdfbb
RW
5375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5376fi
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5383$as_echo "$ac_cv_prog_cxx_g" >&6; }
5384if test "$ac_test_CXXFLAGS" = set; then
5385 CXXFLAGS=$ac_save_CXXFLAGS
5386elif test $ac_cv_prog_cxx_g = yes; then
5387 if test "$GXX" = yes; then
5388 CXXFLAGS="-g -O2"
5389 else
5390 CXXFLAGS="-g"
5391 fi
5392else
5393 if test "$GXX" = yes; then
5394 CXXFLAGS="-O2"
5395 else
5396 CXXFLAGS=
5397 fi
18f6b6ee 5398fi
18f6b6ee
PB
5399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
5404
5405
5406# We must set the default linker to the linker used by gcc for the correct
5407# operation of libtool. If LD is not defined and we are using gcc, try to
5408# set the LD default to the ld used by gcc.
5409if test -z "$LD"; then
5410 if test "$GCC" = yes; then
5411 case $build in
5412 *-*-mingw*)
5413 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5414 *)
5415 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5416 esac
5417 case $gcc_prog_ld in
5418 # Accept absolute paths.
5419 [\\/]* | [A-Za-z]:[\\/]*)
5420 LD="$gcc_prog_ld" ;;
5421 esac
5422 fi
512b7dfb
PB
5423fi
5424
b3676d82
EB
5425# Check whether -static-libstdc++ -static-libgcc is supported.
5426have_static_libs=no
5427if test "$GCC" = yes; then
5428 saved_LDFLAGS="$LDFLAGS"
5429
5430 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5432$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5433 ac_ext=cpp
5434ac_cpp='$CXXCPP $CPPFLAGS'
5435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5438
5439
5440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h. */
a882be68
EB
5442
5443#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5444#error -static-libstdc++ not implemented
5445#endif
b3676d82
EB
5446int main() {}
5447_ACEOF
5448if ac_fn_cxx_try_link "$LINENO"; then :
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450$as_echo "yes" >&6; }; have_static_libs=yes
5451else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453$as_echo "no" >&6; }
5454fi
5455rm -f core conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
5457 ac_ext=c
5458ac_cpp='$CPP $CPPFLAGS'
5459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461ac_compiler_gnu=$ac_cv_c_compiler_gnu
5462
5463
5464 LDFLAGS="$saved_LDFLAGS"
5465fi
5466
512b7dfb
PB
5467
5468
5469
c6b750e1 5470if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5471 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5472set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5475if ${ac_cv_prog_GNATBIND+:} false; then :
81ecdfbb 5476 $as_echo_n "(cached) " >&6
9e07f89d 5477else
512b7dfb
PB
5478 if test -n "$GNATBIND"; then
5479 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5480else
c6b750e1
DJ
5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
81ecdfbb 5486 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5488 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5490 break 2
5491 fi
5492done
81ecdfbb
RW
5493 done
5494IFS=$as_save_IFS
c6b750e1 5495
9e07f89d
NN
5496fi
5497fi
512b7dfb
PB
5498GNATBIND=$ac_cv_prog_GNATBIND
5499if test -n "$GNATBIND"; then
81ecdfbb
RW
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5501$as_echo "$GNATBIND" >&6; }
9e07f89d 5502else
81ecdfbb
RW
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
9e07f89d
NN
5505fi
5506
81ecdfbb 5507
c6b750e1 5508fi
512b7dfb
PB
5509if test -z "$ac_cv_prog_GNATBIND"; then
5510 ac_ct_GNATBIND=$GNATBIND
5511 # Extract the first word of "gnatbind", so it can be a program name with args.
5512set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5515if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
81ecdfbb 5516 $as_echo_n "(cached) " >&6
9e07f89d 5517else
512b7dfb
PB
5518 if test -n "$ac_ct_GNATBIND"; then
5519 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5520else
c6b750e1
DJ
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524 IFS=$as_save_IFS
5525 test -z "$as_dir" && as_dir=.
81ecdfbb 5526 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5528 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5530 break 2
5531 fi
5532done
81ecdfbb
RW
5533 done
5534IFS=$as_save_IFS
c6b750e1 5535
9e07f89d
NN
5536fi
5537fi
512b7dfb
PB
5538ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5539if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5541$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5542else
81ecdfbb
RW
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
9e07f89d
NN
5545fi
5546
81ecdfbb
RW
5547 if test "x$ac_ct_GNATBIND" = x; then
5548 GNATBIND="no"
5549 else
5550 case $cross_compiling:$ac_tool_warned in
5551yes:)
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554ac_tool_warned=yes ;;
5555esac
5556 GNATBIND=$ac_ct_GNATBIND
5557 fi
24ff9987 5558else
512b7dfb 5559 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5560fi
5561
7df2cd5d 5562if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5563 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5564set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5567if ${ac_cv_prog_GNATMAKE+:} false; then :
81ecdfbb 5568 $as_echo_n "(cached) " >&6
7df2cd5d 5569else
512b7dfb
PB
5570 if test -n "$GNATMAKE"; then
5571 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
81ecdfbb 5578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5580 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5582 break 2
5583 fi
5584done
81ecdfbb
RW
5585 done
5586IFS=$as_save_IFS
7df2cd5d
PB
5587
5588fi
5589fi
512b7dfb
PB
5590GNATMAKE=$ac_cv_prog_GNATMAKE
5591if test -n "$GNATMAKE"; then
81ecdfbb
RW
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5593$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5594else
81ecdfbb
RW
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596$as_echo "no" >&6; }
7df2cd5d
PB
5597fi
5598
81ecdfbb 5599
7df2cd5d 5600fi
512b7dfb
PB
5601if test -z "$ac_cv_prog_GNATMAKE"; then
5602 ac_ct_GNATMAKE=$GNATMAKE
5603 # Extract the first word of "gnatmake", so it can be a program name with args.
5604set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5607if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
81ecdfbb 5608 $as_echo_n "(cached) " >&6
7df2cd5d 5609else
512b7dfb
PB
5610 if test -n "$ac_ct_GNATMAKE"; then
5611 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5612else
5613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614for as_dir in $PATH
5615do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
81ecdfbb 5618 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
512b7dfb 5620 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5622 break 2
5623 fi
5624done
81ecdfbb
RW
5625 done
5626IFS=$as_save_IFS
7df2cd5d 5627
7df2cd5d
PB
5628fi
5629fi
512b7dfb
PB
5630ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5631if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5633$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5634else
81ecdfbb
RW
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636$as_echo "no" >&6; }
7df2cd5d
PB
5637fi
5638
81ecdfbb
RW
5639 if test "x$ac_ct_GNATMAKE" = x; then
5640 GNATMAKE="no"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643yes:)
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646ac_tool_warned=yes ;;
5647esac
5648 GNATMAKE=$ac_ct_GNATMAKE
5649 fi
7df2cd5d 5650else
512b7dfb 5651 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5652fi
5653
81ecdfbb
RW
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5655$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
d0ac1c44 5656if ${acx_cv_cc_gcc_supports_ada+:} false; then :
81ecdfbb 5657 $as_echo_n "(cached) " >&6
9e07f89d
NN
5658else
5659 cat >conftest.adb <<EOF
5660procedure conftest is begin null; end conftest;
5661EOF
5662acx_cv_cc_gcc_supports_ada=no
5663# There is a bug in old released versions of GCC which causes the
5664# driver to exit successfully when the appropriate language module
5665# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5666# Therefore we must check for the error message as well as an
5667# unsuccessful exit.
b8908782
DD
5668# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5669# given a .adb file, but produce no object file. So we must check
5670# if an object file was really produced to guard against this.
9e07f89d 5671errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5672if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5673 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5674fi
5675rm -f conftest.*
5676fi
81ecdfbb
RW
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5678$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5679
64b986c0 5680if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5681 have_gnat=yes
5682else
5683 have_gnat=no
5684fi
5685
228cf97d 5686ACX_PROG_GDC
81ecdfbb
RW
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5688$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 5689if ${gcc_cv_prog_cmp_skip+:} false; then :
81ecdfbb 5690 $as_echo_n "(cached) " >&6
b8908782
DD
5691else
5692 echo abfoo >t1
5693 echo cdfoo >t2
da17fe9d 5694 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5695 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5696 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5697 :
5698 else
5699 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5700 fi
5701 fi
b8908782
DD
5702 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5703 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5704 :
b8908782
DD
5705 else
5706 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5707 fi
5708 fi
5709 rm t1 t2
5710
5711fi
81ecdfbb
RW
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5713$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5714do_compare="$gcc_cv_prog_cmp_skip"
5715
5716
9e07f89d 5717
ffdd6afc
ILT
5718# Check whether --enable-bootstrap was given.
5719if test "${enable_bootstrap+set}" = set; then :
5720 enableval=$enable_bootstrap;
5721else
5722 enable_bootstrap=default
5723fi
5724
5725
5726# Issue errors and warnings for invalid/strange bootstrap combinations.
5727if test -r $srcdir/gcc/configure; then
5728 have_compiler=yes
5729else
5730 have_compiler=no
5731fi
5732
5733case "$have_compiler:$host:$target:$enable_bootstrap" in
5734 *:*:*:no) ;;
5735
5736 # Default behavior. Enable bootstrap if we have a compiler
5737 # and we are in a native configuration.
5738 yes:$build:$build:default)
5739 enable_bootstrap=yes ;;
5740
5741 *:*:*:default)
5742 enable_bootstrap=no ;;
5743
5744 # We have a compiler and we are in a native configuration, bootstrap is ok
5745 yes:$build:$build:yes)
5746 ;;
5747
5748 # Other configurations, but we have a compiler. Assume the user knows
5749 # what he's doing.
5750 yes:*:*:yes)
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5752$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5753 ;;
5754
5755 # No compiler: if they passed --enable-bootstrap explicitly, fail
5756 no:*:*:yes)
d0ac1c44 5757 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ffdd6afc
ILT
5758
5759 # Fail if wrong command line
5760 *)
d0ac1c44 5761 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
ffdd6afc
ILT
5762 ;;
5763esac
5764
228cf97d
AM
5765# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5766# C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5767# require C++11 (or higher).
ce6c656d 5768if test "$enable_bootstrap:$GXX" = "yes:yes"; then
228cf97d
AM
5769 CXX="$CXX -std=c++11"
5770elif test "$have_compiler" = yes; then
5771 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5772 ac_ext=cpp
5773ac_cpp='$CXXCPP $CPPFLAGS'
5774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5777 ac_success=no
ce6c656d 5778
228cf97d
AM
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5780$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5781if ${ax_cv_cxx_compile_cxx11+:} false; then :
5782 $as_echo_n "(cached) " >&6
af019bfd 5783else
228cf97d
AM
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785/* end confdefs.h. */
af019bfd
L
5786
5787
228cf97d
AM
5788// If the compiler admits that it is not ready for C++11, why torture it?
5789// Hopefully, this will speed up the test.
af019bfd 5790
228cf97d 5791#ifndef __cplusplus
af019bfd 5792
228cf97d 5793#error "This is not a C++ compiler"
af019bfd 5794
228cf97d 5795#elif __cplusplus < 201103L
af019bfd 5796
228cf97d 5797#error "This is not a C++11 compiler"
af019bfd 5798
228cf97d 5799#else
af019bfd 5800
228cf97d
AM
5801namespace cxx11
5802{
af019bfd 5803
228cf97d
AM
5804 namespace test_static_assert
5805 {
af019bfd 5806
228cf97d
AM
5807 template <typename T>
5808 struct check
5809 {
5810 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5811 };
af019bfd 5812
228cf97d 5813 }
af019bfd 5814
228cf97d
AM
5815 namespace test_final_override
5816 {
af019bfd 5817
228cf97d
AM
5818 struct Base
5819 {
5820 virtual ~Base() {}
5821 virtual void f() {}
5822 };
af019bfd 5823
228cf97d
AM
5824 struct Derived : public Base
5825 {
5826 virtual ~Derived() override {}
5827 virtual void f() override {}
5828 };
d5f2ee2e 5829
228cf97d 5830 }
d5f2ee2e 5831
228cf97d
AM
5832 namespace test_double_right_angle_brackets
5833 {
d5f2ee2e 5834
228cf97d
AM
5835 template < typename T >
5836 struct check {};
d5f2ee2e 5837
228cf97d
AM
5838 typedef check<void> single_type;
5839 typedef check<check<void>> double_type;
5840 typedef check<check<check<void>>> triple_type;
5841 typedef check<check<check<check<void>>>> quadruple_type;
d5f2ee2e 5842
228cf97d 5843 }
d5f2ee2e 5844
228cf97d
AM
5845 namespace test_decltype
5846 {
d5f2ee2e 5847
228cf97d
AM
5848 int
5849 f()
5850 {
5851 int a = 1;
5852 decltype(a) b = 2;
5853 return a + b;
5854 }
d5f2ee2e 5855
228cf97d 5856 }
e8a5fa9c 5857
228cf97d
AM
5858 namespace test_type_deduction
5859 {
e8a5fa9c 5860
228cf97d
AM
5861 template < typename T1, typename T2 >
5862 struct is_same
5863 {
5864 static const bool value = false;
5865 };
e8a5fa9c 5866
228cf97d
AM
5867 template < typename T >
5868 struct is_same<T, T>
5869 {
5870 static const bool value = true;
5871 };
e8a5fa9c 5872
228cf97d
AM
5873 template < typename T1, typename T2 >
5874 auto
5875 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5876 {
5877 return a1 + a2;
5878 }
e8a5fa9c 5879
228cf97d
AM
5880 int
5881 test(const int c, volatile int v)
5882 {
5883 static_assert(is_same<int, decltype(0)>::value == true, "");
5884 static_assert(is_same<int, decltype(c)>::value == false, "");
5885 static_assert(is_same<int, decltype(v)>::value == false, "");
5886 auto ac = c;
5887 auto av = v;
5888 auto sumi = ac + av + 'x';
5889 auto sumf = ac + av + 1.0;
5890 static_assert(is_same<int, decltype(ac)>::value == true, "");
5891 static_assert(is_same<int, decltype(av)>::value == true, "");
5892 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5893 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5894 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5895 return (sumf > 0.0) ? sumi : add(c, v);
5896 }
e8a5fa9c 5897
228cf97d 5898 }
e8a5fa9c 5899
228cf97d
AM
5900 namespace test_noexcept
5901 {
e8a5fa9c 5902
228cf97d
AM
5903 int f() { return 0; }
5904 int g() noexcept { return 0; }
4b900473 5905
228cf97d
AM
5906 static_assert(noexcept(f()) == false, "");
5907 static_assert(noexcept(g()) == true, "");
c6b750e1 5908
228cf97d 5909 }
81ecdfbb 5910
228cf97d
AM
5911 namespace test_constexpr
5912 {
11b04d1f 5913
228cf97d
AM
5914 template < typename CharT >
5915 unsigned long constexpr
5916 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5917 {
5918 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5919 }
11b04d1f 5920
228cf97d
AM
5921 template < typename CharT >
5922 unsigned long constexpr
5923 strlen_c(const CharT *const s) noexcept
5924 {
5925 return strlen_c_r(s, 0UL);
5926 }
5927
5928 static_assert(strlen_c("") == 0UL, "");
5929 static_assert(strlen_c("1") == 1UL, "");
5930 static_assert(strlen_c("example") == 7UL, "");
5931 static_assert(strlen_c("another\0example") == 7UL, "");
5932
5933 }
5934
5935 namespace test_rvalue_references
5936 {
5937
5938 template < int N >
5939 struct answer
5940 {
5941 static constexpr int value = N;
5942 };
5943
5944 answer<1> f(int&) { return answer<1>(); }
5945 answer<2> f(const int&) { return answer<2>(); }
5946 answer<3> f(int&&) { return answer<3>(); }
5947
5948 void
5949 test()
5950 {
5951 int i = 0;
5952 const int c = 0;
5953 static_assert(decltype(f(i))::value == 1, "");
5954 static_assert(decltype(f(c))::value == 2, "");
5955 static_assert(decltype(f(0))::value == 3, "");
5956 }
5957
5958 }
5959
5960 namespace test_uniform_initialization
5961 {
5962
5963 struct test
5964 {
5965 static const int zero {};
5966 static const int one {1};
5967 };
5968
5969 static_assert(test::zero == 0, "");
5970 static_assert(test::one == 1, "");
5971
5972 }
5973
5974 namespace test_lambdas
5975 {
5976
5977 void
5978 test1()
5979 {
5980 auto lambda1 = [](){};
5981 auto lambda2 = lambda1;
5982 lambda1();
5983 lambda2();
5984 }
5985
5986 int
5987 test2()
5988 {
5989 auto a = [](int i, int j){ return i + j; }(1, 2);
5990 auto b = []() -> int { return '0'; }();
5991 auto c = [=](){ return a + b; }();
5992 auto d = [&](){ return c; }();
5993 auto e = [a, &b](int x) mutable {
5994 const auto identity = [](int y){ return y; };
5995 for (auto i = 0; i < a; ++i)
5996 a += b--;
5997 return x + identity(a + b);
5998 }(0);
5999 return a + b + c + d + e;
6000 }
6001
6002 int
6003 test3()
6004 {
6005 const auto nullary = [](){ return 0; };
6006 const auto unary = [](int x){ return x; };
6007 using nullary_t = decltype(nullary);
6008 using unary_t = decltype(unary);
6009 const auto higher1st = [](nullary_t f){ return f(); };
6010 const auto higher2nd = [unary](nullary_t f1){
6011 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6012 };
6013 return higher1st(nullary) + higher2nd(nullary)(unary);
6014 }
6015
6016 }
6017
6018 namespace test_variadic_templates
6019 {
6020
6021 template <int...>
6022 struct sum;
6023
6024 template <int N0, int... N1toN>
6025 struct sum<N0, N1toN...>
6026 {
6027 static constexpr auto value = N0 + sum<N1toN...>::value;
6028 };
6029
6030 template <>
6031 struct sum<>
6032 {
6033 static constexpr auto value = 0;
6034 };
6035
6036 static_assert(sum<>::value == 0, "");
6037 static_assert(sum<1>::value == 1, "");
6038 static_assert(sum<23>::value == 23, "");
6039 static_assert(sum<1, 2>::value == 3, "");
6040 static_assert(sum<5, 5, 11>::value == 21, "");
6041 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6042
6043 }
6044
6045 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6046 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6047 // because of this.
6048 namespace test_template_alias_sfinae
6049 {
6050
6051 struct foo {};
6052
6053 template<typename T>
6054 using member = typename T::member_type;
6055
6056 template<typename T>
6057 void func(...) {}
6058
6059 template<typename T>
6060 void func(member<T>*) {}
6061
6062 void test();
6063
6064 void test() { func<foo>(0); }
6065
6066 }
6067
6068} // namespace cxx11
6069
6070#endif // __cplusplus >= 201103L
6071
6072
6073
6074_ACEOF
6075if ac_fn_cxx_try_compile "$LINENO"; then :
6076 ax_cv_cxx_compile_cxx11=yes
6077else
6078 ax_cv_cxx_compile_cxx11=no
6079fi
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6083$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6084 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6085 ac_success=yes
6086 fi
6087
6088 if test x$ac_success = xno; then
6089 for alternative in ${ax_cxx_compile_alternatives}; do
6090 switch="-std=gnu++${alternative}"
6091 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6093$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6094if eval \${$cachevar+:} false; then :
6095 $as_echo_n "(cached) " >&6
6096else
6097 ac_save_CXX="$CXX"
6098 CXX="$CXX $switch"
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100/* end confdefs.h. */
6101
6102
6103// If the compiler admits that it is not ready for C++11, why torture it?
6104// Hopefully, this will speed up the test.
6105
6106#ifndef __cplusplus
6107
6108#error "This is not a C++ compiler"
6109
6110#elif __cplusplus < 201103L
6111
6112#error "This is not a C++11 compiler"
6113
6114#else
6115
6116namespace cxx11
6117{
6118
6119 namespace test_static_assert
6120 {
6121
6122 template <typename T>
6123 struct check
6124 {
6125 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6126 };
6127
6128 }
6129
6130 namespace test_final_override
6131 {
6132
6133 struct Base
6134 {
6135 virtual ~Base() {}
6136 virtual void f() {}
6137 };
6138
6139 struct Derived : public Base
6140 {
6141 virtual ~Derived() override {}
6142 virtual void f() override {}
6143 };
6144
6145 }
6146
6147 namespace test_double_right_angle_brackets
6148 {
6149
6150 template < typename T >
6151 struct check {};
6152
6153 typedef check<void> single_type;
6154 typedef check<check<void>> double_type;
6155 typedef check<check<check<void>>> triple_type;
6156 typedef check<check<check<check<void>>>> quadruple_type;
6157
6158 }
6159
6160 namespace test_decltype
6161 {
6162
6163 int
6164 f()
6165 {
6166 int a = 1;
6167 decltype(a) b = 2;
6168 return a + b;
6169 }
6170
6171 }
6172
6173 namespace test_type_deduction
6174 {
6175
6176 template < typename T1, typename T2 >
6177 struct is_same
6178 {
6179 static const bool value = false;
6180 };
6181
6182 template < typename T >
6183 struct is_same<T, T>
6184 {
6185 static const bool value = true;
6186 };
6187
6188 template < typename T1, typename T2 >
6189 auto
6190 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6191 {
6192 return a1 + a2;
6193 }
6194
6195 int
6196 test(const int c, volatile int v)
6197 {
6198 static_assert(is_same<int, decltype(0)>::value == true, "");
6199 static_assert(is_same<int, decltype(c)>::value == false, "");
6200 static_assert(is_same<int, decltype(v)>::value == false, "");
6201 auto ac = c;
6202 auto av = v;
6203 auto sumi = ac + av + 'x';
6204 auto sumf = ac + av + 1.0;
6205 static_assert(is_same<int, decltype(ac)>::value == true, "");
6206 static_assert(is_same<int, decltype(av)>::value == true, "");
6207 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6208 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6209 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6210 return (sumf > 0.0) ? sumi : add(c, v);
6211 }
6212
6213 }
6214
6215 namespace test_noexcept
6216 {
6217
6218 int f() { return 0; }
6219 int g() noexcept { return 0; }
6220
6221 static_assert(noexcept(f()) == false, "");
6222 static_assert(noexcept(g()) == true, "");
6223
6224 }
6225
6226 namespace test_constexpr
6227 {
6228
6229 template < typename CharT >
6230 unsigned long constexpr
6231 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6232 {
6233 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6234 }
6235
6236 template < typename CharT >
6237 unsigned long constexpr
6238 strlen_c(const CharT *const s) noexcept
6239 {
6240 return strlen_c_r(s, 0UL);
6241 }
6242
6243 static_assert(strlen_c("") == 0UL, "");
6244 static_assert(strlen_c("1") == 1UL, "");
6245 static_assert(strlen_c("example") == 7UL, "");
6246 static_assert(strlen_c("another\0example") == 7UL, "");
6247
6248 }
6249
6250 namespace test_rvalue_references
6251 {
6252
6253 template < int N >
6254 struct answer
6255 {
6256 static constexpr int value = N;
6257 };
6258
6259 answer<1> f(int&) { return answer<1>(); }
6260 answer<2> f(const int&) { return answer<2>(); }
6261 answer<3> f(int&&) { return answer<3>(); }
6262
6263 void
6264 test()
6265 {
6266 int i = 0;
6267 const int c = 0;
6268 static_assert(decltype(f(i))::value == 1, "");
6269 static_assert(decltype(f(c))::value == 2, "");
6270 static_assert(decltype(f(0))::value == 3, "");
6271 }
6272
6273 }
6274
6275 namespace test_uniform_initialization
6276 {
6277
6278 struct test
6279 {
6280 static const int zero {};
6281 static const int one {1};
6282 };
6283
6284 static_assert(test::zero == 0, "");
6285 static_assert(test::one == 1, "");
6286
6287 }
6288
6289 namespace test_lambdas
6290 {
6291
6292 void
6293 test1()
6294 {
6295 auto lambda1 = [](){};
6296 auto lambda2 = lambda1;
6297 lambda1();
6298 lambda2();
6299 }
6300
6301 int
6302 test2()
6303 {
6304 auto a = [](int i, int j){ return i + j; }(1, 2);
6305 auto b = []() -> int { return '0'; }();
6306 auto c = [=](){ return a + b; }();
6307 auto d = [&](){ return c; }();
6308 auto e = [a, &b](int x) mutable {
6309 const auto identity = [](int y){ return y; };
6310 for (auto i = 0; i < a; ++i)
6311 a += b--;
6312 return x + identity(a + b);
6313 }(0);
6314 return a + b + c + d + e;
6315 }
6316
6317 int
6318 test3()
6319 {
6320 const auto nullary = [](){ return 0; };
6321 const auto unary = [](int x){ return x; };
6322 using nullary_t = decltype(nullary);
6323 using unary_t = decltype(unary);
6324 const auto higher1st = [](nullary_t f){ return f(); };
6325 const auto higher2nd = [unary](nullary_t f1){
6326 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6327 };
6328 return higher1st(nullary) + higher2nd(nullary)(unary);
6329 }
6330
6331 }
6332
6333 namespace test_variadic_templates
6334 {
6335
6336 template <int...>
6337 struct sum;
6338
6339 template <int N0, int... N1toN>
6340 struct sum<N0, N1toN...>
6341 {
6342 static constexpr auto value = N0 + sum<N1toN...>::value;
6343 };
6344
6345 template <>
6346 struct sum<>
6347 {
6348 static constexpr auto value = 0;
6349 };
6350
6351 static_assert(sum<>::value == 0, "");
6352 static_assert(sum<1>::value == 1, "");
6353 static_assert(sum<23>::value == 23, "");
6354 static_assert(sum<1, 2>::value == 3, "");
6355 static_assert(sum<5, 5, 11>::value == 21, "");
6356 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6357
6358 }
6359
6360 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6361 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6362 // because of this.
6363 namespace test_template_alias_sfinae
6364 {
6365
6366 struct foo {};
6367
6368 template<typename T>
6369 using member = typename T::member_type;
6370
6371 template<typename T>
6372 void func(...) {}
6373
6374 template<typename T>
6375 void func(member<T>*) {}
6376
6377 void test();
6378
6379 void test() { func<foo>(0); }
6380
6381 }
6382
6383} // namespace cxx11
6384
6385#endif // __cplusplus >= 201103L
6386
6387
6388
6389_ACEOF
6390if ac_fn_cxx_try_compile "$LINENO"; then :
6391 eval $cachevar=yes
6392else
6393 eval $cachevar=no
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 CXX="$ac_save_CXX"
6397fi
6398eval ac_res=\$$cachevar
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6400$as_echo "$ac_res" >&6; }
6401 if eval test x\$$cachevar = xyes; then
6402 CXX="$CXX $switch"
6403 if test -n "$CXXCPP" ; then
6404 CXXCPP="$CXXCPP $switch"
6405 fi
6406 ac_success=yes
6407 break
6408 fi
6409 done
6410 fi
6411
6412 if test x$ac_success = xno; then
6413 for alternative in ${ax_cxx_compile_alternatives}; do
6414 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6415 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6417$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6418if eval \${$cachevar+:} false; then :
6419 $as_echo_n "(cached) " >&6
6420else
6421 ac_save_CXX="$CXX"
6422 CXX="$CXX $switch"
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424/* end confdefs.h. */
6425
6426
6427// If the compiler admits that it is not ready for C++11, why torture it?
6428// Hopefully, this will speed up the test.
6429
6430#ifndef __cplusplus
6431
6432#error "This is not a C++ compiler"
6433
6434#elif __cplusplus < 201103L
6435
6436#error "This is not a C++11 compiler"
6437
6438#else
6439
6440namespace cxx11
6441{
6442
6443 namespace test_static_assert
6444 {
6445
6446 template <typename T>
6447 struct check
6448 {
6449 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6450 };
6451
6452 }
6453
6454 namespace test_final_override
6455 {
6456
6457 struct Base
6458 {
6459 virtual ~Base() {}
6460 virtual void f() {}
6461 };
6462
6463 struct Derived : public Base
6464 {
6465 virtual ~Derived() override {}
6466 virtual void f() override {}
6467 };
6468
6469 }
6470
6471 namespace test_double_right_angle_brackets
6472 {
6473
6474 template < typename T >
6475 struct check {};
6476
6477 typedef check<void> single_type;
6478 typedef check<check<void>> double_type;
6479 typedef check<check<check<void>>> triple_type;
6480 typedef check<check<check<check<void>>>> quadruple_type;
6481
6482 }
6483
6484 namespace test_decltype
6485 {
6486
6487 int
6488 f()
6489 {
6490 int a = 1;
6491 decltype(a) b = 2;
6492 return a + b;
6493 }
6494
6495 }
6496
6497 namespace test_type_deduction
6498 {
6499
6500 template < typename T1, typename T2 >
6501 struct is_same
6502 {
6503 static const bool value = false;
6504 };
6505
6506 template < typename T >
6507 struct is_same<T, T>
6508 {
6509 static const bool value = true;
6510 };
6511
6512 template < typename T1, typename T2 >
6513 auto
6514 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6515 {
6516 return a1 + a2;
6517 }
6518
6519 int
6520 test(const int c, volatile int v)
6521 {
6522 static_assert(is_same<int, decltype(0)>::value == true, "");
6523 static_assert(is_same<int, decltype(c)>::value == false, "");
6524 static_assert(is_same<int, decltype(v)>::value == false, "");
6525 auto ac = c;
6526 auto av = v;
6527 auto sumi = ac + av + 'x';
6528 auto sumf = ac + av + 1.0;
6529 static_assert(is_same<int, decltype(ac)>::value == true, "");
6530 static_assert(is_same<int, decltype(av)>::value == true, "");
6531 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6532 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6533 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6534 return (sumf > 0.0) ? sumi : add(c, v);
6535 }
6536
6537 }
6538
6539 namespace test_noexcept
6540 {
6541
6542 int f() { return 0; }
6543 int g() noexcept { return 0; }
6544
6545 static_assert(noexcept(f()) == false, "");
6546 static_assert(noexcept(g()) == true, "");
6547
6548 }
6549
6550 namespace test_constexpr
6551 {
6552
6553 template < typename CharT >
6554 unsigned long constexpr
6555 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6556 {
6557 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6558 }
6559
6560 template < typename CharT >
6561 unsigned long constexpr
6562 strlen_c(const CharT *const s) noexcept
6563 {
6564 return strlen_c_r(s, 0UL);
6565 }
6566
6567 static_assert(strlen_c("") == 0UL, "");
6568 static_assert(strlen_c("1") == 1UL, "");
6569 static_assert(strlen_c("example") == 7UL, "");
6570 static_assert(strlen_c("another\0example") == 7UL, "");
6571
6572 }
6573
6574 namespace test_rvalue_references
6575 {
6576
6577 template < int N >
6578 struct answer
6579 {
6580 static constexpr int value = N;
6581 };
6582
6583 answer<1> f(int&) { return answer<1>(); }
6584 answer<2> f(const int&) { return answer<2>(); }
6585 answer<3> f(int&&) { return answer<3>(); }
6586
6587 void
6588 test()
6589 {
6590 int i = 0;
6591 const int c = 0;
6592 static_assert(decltype(f(i))::value == 1, "");
6593 static_assert(decltype(f(c))::value == 2, "");
6594 static_assert(decltype(f(0))::value == 3, "");
6595 }
6596
6597 }
6598
6599 namespace test_uniform_initialization
6600 {
6601
6602 struct test
6603 {
6604 static const int zero {};
6605 static const int one {1};
6606 };
6607
6608 static_assert(test::zero == 0, "");
6609 static_assert(test::one == 1, "");
6610
6611 }
6612
6613 namespace test_lambdas
6614 {
6615
6616 void
6617 test1()
6618 {
6619 auto lambda1 = [](){};
6620 auto lambda2 = lambda1;
6621 lambda1();
6622 lambda2();
6623 }
6624
6625 int
6626 test2()
6627 {
6628 auto a = [](int i, int j){ return i + j; }(1, 2);
6629 auto b = []() -> int { return '0'; }();
6630 auto c = [=](){ return a + b; }();
6631 auto d = [&](){ return c; }();
6632 auto e = [a, &b](int x) mutable {
6633 const auto identity = [](int y){ return y; };
6634 for (auto i = 0; i < a; ++i)
6635 a += b--;
6636 return x + identity(a + b);
6637 }(0);
6638 return a + b + c + d + e;
6639 }
6640
6641 int
6642 test3()
6643 {
6644 const auto nullary = [](){ return 0; };
6645 const auto unary = [](int x){ return x; };
6646 using nullary_t = decltype(nullary);
6647 using unary_t = decltype(unary);
6648 const auto higher1st = [](nullary_t f){ return f(); };
6649 const auto higher2nd = [unary](nullary_t f1){
6650 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6651 };
6652 return higher1st(nullary) + higher2nd(nullary)(unary);
6653 }
6654
6655 }
6656
6657 namespace test_variadic_templates
6658 {
6659
6660 template <int...>
6661 struct sum;
6662
6663 template <int N0, int... N1toN>
6664 struct sum<N0, N1toN...>
6665 {
6666 static constexpr auto value = N0 + sum<N1toN...>::value;
6667 };
6668
6669 template <>
6670 struct sum<>
6671 {
6672 static constexpr auto value = 0;
6673 };
6674
6675 static_assert(sum<>::value == 0, "");
6676 static_assert(sum<1>::value == 1, "");
6677 static_assert(sum<23>::value == 23, "");
6678 static_assert(sum<1, 2>::value == 3, "");
6679 static_assert(sum<5, 5, 11>::value == 21, "");
6680 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6681
6682 }
6683
6684 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6685 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6686 // because of this.
6687 namespace test_template_alias_sfinae
6688 {
6689
6690 struct foo {};
6691
6692 template<typename T>
6693 using member = typename T::member_type;
6694
6695 template<typename T>
6696 void func(...) {}
6697
6698 template<typename T>
6699 void func(member<T>*) {}
6700
6701 void test();
6702
6703 void test() { func<foo>(0); }
6704
6705 }
6706
6707} // namespace cxx11
6708
6709#endif // __cplusplus >= 201103L
6710
6711
6712
6713_ACEOF
6714if ac_fn_cxx_try_compile "$LINENO"; then :
6715 eval $cachevar=yes
6716else
6717 eval $cachevar=no
6718fi
6719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 CXX="$ac_save_CXX"
6721fi
6722eval ac_res=\$$cachevar
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6724$as_echo "$ac_res" >&6; }
6725 if eval test x\$$cachevar = xyes; then
6726 CXX="$CXX $switch"
6727 if test -n "$CXXCPP" ; then
6728 CXXCPP="$CXXCPP $switch"
6729 fi
6730 ac_success=yes
6731 break
6732 fi
6733 done
6734 if test x$ac_success = xyes; then
6735 break
6736 fi
6737 done
6738 fi
6739
6740 ac_ext=c
6741ac_cpp='$CPP $CPPFLAGS'
6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745
6746 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6747 if test x$ac_success = xno; then
6748 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6749 fi
6750 fi
6751 if test x$ac_success = xno; then
6752 HAVE_CXX11=0
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6754$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6755 else
6756 HAVE_CXX11=1
6757
6758$as_echo "#define HAVE_CXX11 1" >>confdefs.h
6759
6760 fi
6761
6762
6763
6764 if test "${build}" != "${host}"; then
6765 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6766 ac_ext=cpp
6767ac_cpp='$CXXCPP $CPPFLAGS'
6768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6771 ac_success=no
6772 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6773 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6774 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6775 CXX="$CXX_FOR_BUILD"
6776 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6777 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6779$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6780if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6781 $as_echo_n "(cached) " >&6
6782else
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784/* end confdefs.h. */
6785
6786
6787// If the compiler admits that it is not ready for C++11, why torture it?
6788// Hopefully, this will speed up the test.
6789
6790#ifndef __cplusplus
6791
6792#error "This is not a C++ compiler"
6793
6794#elif __cplusplus < 201103L
6795
6796#error "This is not a C++11 compiler"
6797
6798#else
6799
6800namespace cxx11
6801{
6802
6803 namespace test_static_assert
6804 {
6805
6806 template <typename T>
6807 struct check
6808 {
6809 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6810 };
6811
6812 }
6813
6814 namespace test_final_override
6815 {
6816
6817 struct Base
6818 {
6819 virtual ~Base() {}
6820 virtual void f() {}
6821 };
6822
6823 struct Derived : public Base
6824 {
6825 virtual ~Derived() override {}
6826 virtual void f() override {}
6827 };
6828
6829 }
6830
6831 namespace test_double_right_angle_brackets
6832 {
6833
6834 template < typename T >
6835 struct check {};
6836
6837 typedef check<void> single_type;
6838 typedef check<check<void>> double_type;
6839 typedef check<check<check<void>>> triple_type;
6840 typedef check<check<check<check<void>>>> quadruple_type;
6841
6842 }
6843
6844 namespace test_decltype
6845 {
6846
6847 int
6848 f()
6849 {
6850 int a = 1;
6851 decltype(a) b = 2;
6852 return a + b;
6853 }
6854
6855 }
6856
6857 namespace test_type_deduction
6858 {
6859
6860 template < typename T1, typename T2 >
6861 struct is_same
6862 {
6863 static const bool value = false;
6864 };
6865
6866 template < typename T >
6867 struct is_same<T, T>
6868 {
6869 static const bool value = true;
6870 };
6871
6872 template < typename T1, typename T2 >
6873 auto
6874 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6875 {
6876 return a1 + a2;
6877 }
6878
6879 int
6880 test(const int c, volatile int v)
6881 {
6882 static_assert(is_same<int, decltype(0)>::value == true, "");
6883 static_assert(is_same<int, decltype(c)>::value == false, "");
6884 static_assert(is_same<int, decltype(v)>::value == false, "");
6885 auto ac = c;
6886 auto av = v;
6887 auto sumi = ac + av + 'x';
6888 auto sumf = ac + av + 1.0;
6889 static_assert(is_same<int, decltype(ac)>::value == true, "");
6890 static_assert(is_same<int, decltype(av)>::value == true, "");
6891 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6892 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6893 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6894 return (sumf > 0.0) ? sumi : add(c, v);
6895 }
6896
6897 }
6898
6899 namespace test_noexcept
6900 {
6901
6902 int f() { return 0; }
6903 int g() noexcept { return 0; }
6904
6905 static_assert(noexcept(f()) == false, "");
6906 static_assert(noexcept(g()) == true, "");
6907
6908 }
6909
6910 namespace test_constexpr
6911 {
6912
6913 template < typename CharT >
6914 unsigned long constexpr
6915 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6916 {
6917 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6918 }
6919
6920 template < typename CharT >
6921 unsigned long constexpr
6922 strlen_c(const CharT *const s) noexcept
6923 {
6924 return strlen_c_r(s, 0UL);
6925 }
6926
6927 static_assert(strlen_c("") == 0UL, "");
6928 static_assert(strlen_c("1") == 1UL, "");
6929 static_assert(strlen_c("example") == 7UL, "");
6930 static_assert(strlen_c("another\0example") == 7UL, "");
6931
6932 }
6933
6934 namespace test_rvalue_references
6935 {
6936
6937 template < int N >
6938 struct answer
6939 {
6940 static constexpr int value = N;
6941 };
6942
6943 answer<1> f(int&) { return answer<1>(); }
6944 answer<2> f(const int&) { return answer<2>(); }
6945 answer<3> f(int&&) { return answer<3>(); }
6946
6947 void
6948 test()
6949 {
6950 int i = 0;
6951 const int c = 0;
6952 static_assert(decltype(f(i))::value == 1, "");
6953 static_assert(decltype(f(c))::value == 2, "");
6954 static_assert(decltype(f(0))::value == 3, "");
6955 }
6956
6957 }
6958
6959 namespace test_uniform_initialization
6960 {
6961
6962 struct test
6963 {
6964 static const int zero {};
6965 static const int one {1};
6966 };
6967
6968 static_assert(test::zero == 0, "");
6969 static_assert(test::one == 1, "");
6970
6971 }
6972
6973 namespace test_lambdas
6974 {
6975
6976 void
6977 test1()
6978 {
6979 auto lambda1 = [](){};
6980 auto lambda2 = lambda1;
6981 lambda1();
6982 lambda2();
6983 }
6984
6985 int
6986 test2()
6987 {
6988 auto a = [](int i, int j){ return i + j; }(1, 2);
6989 auto b = []() -> int { return '0'; }();
6990 auto c = [=](){ return a + b; }();
6991 auto d = [&](){ return c; }();
6992 auto e = [a, &b](int x) mutable {
6993 const auto identity = [](int y){ return y; };
6994 for (auto i = 0; i < a; ++i)
6995 a += b--;
6996 return x + identity(a + b);
6997 }(0);
6998 return a + b + c + d + e;
6999 }
7000
7001 int
7002 test3()
7003 {
7004 const auto nullary = [](){ return 0; };
7005 const auto unary = [](int x){ return x; };
7006 using nullary_t = decltype(nullary);
7007 using unary_t = decltype(unary);
7008 const auto higher1st = [](nullary_t f){ return f(); };
7009 const auto higher2nd = [unary](nullary_t f1){
7010 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7011 };
7012 return higher1st(nullary) + higher2nd(nullary)(unary);
7013 }
7014
7015 }
7016
7017 namespace test_variadic_templates
7018 {
7019
7020 template <int...>
7021 struct sum;
7022
7023 template <int N0, int... N1toN>
7024 struct sum<N0, N1toN...>
7025 {
7026 static constexpr auto value = N0 + sum<N1toN...>::value;
7027 };
7028
7029 template <>
7030 struct sum<>
7031 {
7032 static constexpr auto value = 0;
7033 };
7034
7035 static_assert(sum<>::value == 0, "");
7036 static_assert(sum<1>::value == 1, "");
7037 static_assert(sum<23>::value == 23, "");
7038 static_assert(sum<1, 2>::value == 3, "");
7039 static_assert(sum<5, 5, 11>::value == 21, "");
7040 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7041
7042 }
7043
7044 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7045 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7046 // because of this.
7047 namespace test_template_alias_sfinae
7048 {
7049
7050 struct foo {};
7051
7052 template<typename T>
7053 using member = typename T::member_type;
7054
7055 template<typename T>
7056 void func(...) {}
7057
7058 template<typename T>
7059 void func(member<T>*) {}
7060
7061 void test();
7062
7063 void test() { func<foo>(0); }
7064
7065 }
7066
7067} // namespace cxx11
7068
7069#endif // __cplusplus >= 201103L
7070
7071
7072
7073_ACEOF
7074if ac_fn_cxx_try_compile "$LINENO"; then :
7075 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7076else
7077 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080fi
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7082$as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7083 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7084 ac_success=yes
7085 fi
7086
7087 if test x$ac_success = xno; then
7088 for alternative in ${ax_cxx_compile_alternatives}; do
7089 switch="-std=gnu++${alternative}"
7090 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7092$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7093if eval \${$cachevar+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095else
7096 ac_save_CXX="$CXX"
7097 CXX="$CXX $switch"
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h. */
7100
7101
7102// If the compiler admits that it is not ready for C++11, why torture it?
7103// Hopefully, this will speed up the test.
7104
7105#ifndef __cplusplus
7106
7107#error "This is not a C++ compiler"
7108
7109#elif __cplusplus < 201103L
7110
7111#error "This is not a C++11 compiler"
7112
7113#else
7114
7115namespace cxx11
7116{
7117
7118 namespace test_static_assert
7119 {
7120
7121 template <typename T>
7122 struct check
7123 {
7124 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7125 };
7126
7127 }
7128
7129 namespace test_final_override
7130 {
7131
7132 struct Base
7133 {
7134 virtual ~Base() {}
7135 virtual void f() {}
7136 };
7137
7138 struct Derived : public Base
7139 {
7140 virtual ~Derived() override {}
7141 virtual void f() override {}
7142 };
7143
7144 }
7145
7146 namespace test_double_right_angle_brackets
7147 {
7148
7149 template < typename T >
7150 struct check {};
7151
7152 typedef check<void> single_type;
7153 typedef check<check<void>> double_type;
7154 typedef check<check<check<void>>> triple_type;
7155 typedef check<check<check<check<void>>>> quadruple_type;
7156
7157 }
7158
7159 namespace test_decltype
7160 {
7161
7162 int
7163 f()
7164 {
7165 int a = 1;
7166 decltype(a) b = 2;
7167 return a + b;
7168 }
7169
7170 }
7171
7172 namespace test_type_deduction
7173 {
7174
7175 template < typename T1, typename T2 >
7176 struct is_same
7177 {
7178 static const bool value = false;
7179 };
7180
7181 template < typename T >
7182 struct is_same<T, T>
7183 {
7184 static const bool value = true;
7185 };
7186
7187 template < typename T1, typename T2 >
7188 auto
7189 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7190 {
7191 return a1 + a2;
7192 }
7193
7194 int
7195 test(const int c, volatile int v)
7196 {
7197 static_assert(is_same<int, decltype(0)>::value == true, "");
7198 static_assert(is_same<int, decltype(c)>::value == false, "");
7199 static_assert(is_same<int, decltype(v)>::value == false, "");
7200 auto ac = c;
7201 auto av = v;
7202 auto sumi = ac + av + 'x';
7203 auto sumf = ac + av + 1.0;
7204 static_assert(is_same<int, decltype(ac)>::value == true, "");
7205 static_assert(is_same<int, decltype(av)>::value == true, "");
7206 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7207 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7208 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7209 return (sumf > 0.0) ? sumi : add(c, v);
7210 }
7211
7212 }
7213
7214 namespace test_noexcept
7215 {
7216
7217 int f() { return 0; }
7218 int g() noexcept { return 0; }
7219
7220 static_assert(noexcept(f()) == false, "");
7221 static_assert(noexcept(g()) == true, "");
7222
7223 }
7224
7225 namespace test_constexpr
7226 {
7227
7228 template < typename CharT >
7229 unsigned long constexpr
7230 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7231 {
7232 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7233 }
7234
7235 template < typename CharT >
7236 unsigned long constexpr
7237 strlen_c(const CharT *const s) noexcept
7238 {
7239 return strlen_c_r(s, 0UL);
7240 }
7241
7242 static_assert(strlen_c("") == 0UL, "");
7243 static_assert(strlen_c("1") == 1UL, "");
7244 static_assert(strlen_c("example") == 7UL, "");
7245 static_assert(strlen_c("another\0example") == 7UL, "");
7246
7247 }
7248
7249 namespace test_rvalue_references
7250 {
7251
7252 template < int N >
7253 struct answer
7254 {
7255 static constexpr int value = N;
7256 };
7257
7258 answer<1> f(int&) { return answer<1>(); }
7259 answer<2> f(const int&) { return answer<2>(); }
7260 answer<3> f(int&&) { return answer<3>(); }
7261
7262 void
7263 test()
7264 {
7265 int i = 0;
7266 const int c = 0;
7267 static_assert(decltype(f(i))::value == 1, "");
7268 static_assert(decltype(f(c))::value == 2, "");
7269 static_assert(decltype(f(0))::value == 3, "");
7270 }
7271
7272 }
7273
7274 namespace test_uniform_initialization
7275 {
7276
7277 struct test
7278 {
7279 static const int zero {};
7280 static const int one {1};
7281 };
7282
7283 static_assert(test::zero == 0, "");
7284 static_assert(test::one == 1, "");
7285
7286 }
7287
7288 namespace test_lambdas
7289 {
7290
7291 void
7292 test1()
7293 {
7294 auto lambda1 = [](){};
7295 auto lambda2 = lambda1;
7296 lambda1();
7297 lambda2();
7298 }
7299
7300 int
7301 test2()
7302 {
7303 auto a = [](int i, int j){ return i + j; }(1, 2);
7304 auto b = []() -> int { return '0'; }();
7305 auto c = [=](){ return a + b; }();
7306 auto d = [&](){ return c; }();
7307 auto e = [a, &b](int x) mutable {
7308 const auto identity = [](int y){ return y; };
7309 for (auto i = 0; i < a; ++i)
7310 a += b--;
7311 return x + identity(a + b);
7312 }(0);
7313 return a + b + c + d + e;
7314 }
7315
7316 int
7317 test3()
7318 {
7319 const auto nullary = [](){ return 0; };
7320 const auto unary = [](int x){ return x; };
7321 using nullary_t = decltype(nullary);
7322 using unary_t = decltype(unary);
7323 const auto higher1st = [](nullary_t f){ return f(); };
7324 const auto higher2nd = [unary](nullary_t f1){
7325 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7326 };
7327 return higher1st(nullary) + higher2nd(nullary)(unary);
7328 }
7329
7330 }
7331
7332 namespace test_variadic_templates
7333 {
7334
7335 template <int...>
7336 struct sum;
7337
7338 template <int N0, int... N1toN>
7339 struct sum<N0, N1toN...>
7340 {
7341 static constexpr auto value = N0 + sum<N1toN...>::value;
7342 };
7343
7344 template <>
7345 struct sum<>
7346 {
7347 static constexpr auto value = 0;
7348 };
7349
7350 static_assert(sum<>::value == 0, "");
7351 static_assert(sum<1>::value == 1, "");
7352 static_assert(sum<23>::value == 23, "");
7353 static_assert(sum<1, 2>::value == 3, "");
7354 static_assert(sum<5, 5, 11>::value == 21, "");
7355 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7356
7357 }
7358
7359 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7360 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7361 // because of this.
7362 namespace test_template_alias_sfinae
7363 {
7364
7365 struct foo {};
7366
7367 template<typename T>
7368 using member = typename T::member_type;
7369
7370 template<typename T>
7371 void func(...) {}
7372
7373 template<typename T>
7374 void func(member<T>*) {}
7375
7376 void test();
7377
7378 void test() { func<foo>(0); }
7379
7380 }
7381
7382} // namespace cxx11
7383
7384#endif // __cplusplus >= 201103L
7385
7386
7387
7388_ACEOF
7389if ac_fn_cxx_try_compile "$LINENO"; then :
7390 eval $cachevar=yes
7391else
7392 eval $cachevar=no
7393fi
7394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 CXX="$ac_save_CXX"
7396fi
7397eval ac_res=\$$cachevar
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7399$as_echo "$ac_res" >&6; }
7400 if eval test x\$$cachevar = xyes; then
7401 CXX="$CXX $switch"
7402 if test -n "$CXXCPP" ; then
7403 CXXCPP="$CXXCPP $switch"
7404 fi
7405 ac_success=yes
7406 break
7407 fi
7408 done
7409 fi
7410
7411 if test x$ac_success = xno; then
7412 for alternative in ${ax_cxx_compile_alternatives}; do
7413 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7414 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7416$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7417if eval \${$cachevar+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419else
7420 ac_save_CXX="$CXX"
7421 CXX="$CXX $switch"
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h. */
7424
7425
7426// If the compiler admits that it is not ready for C++11, why torture it?
7427// Hopefully, this will speed up the test.
7428
7429#ifndef __cplusplus
7430
7431#error "This is not a C++ compiler"
7432
7433#elif __cplusplus < 201103L
7434
7435#error "This is not a C++11 compiler"
7436
7437#else
7438
7439namespace cxx11
7440{
7441
7442 namespace test_static_assert
7443 {
7444
7445 template <typename T>
7446 struct check
7447 {
7448 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7449 };
7450
7451 }
7452
7453 namespace test_final_override
7454 {
7455
7456 struct Base
7457 {
7458 virtual ~Base() {}
7459 virtual void f() {}
7460 };
7461
7462 struct Derived : public Base
7463 {
7464 virtual ~Derived() override {}
7465 virtual void f() override {}
7466 };
7467
7468 }
7469
7470 namespace test_double_right_angle_brackets
7471 {
7472
7473 template < typename T >
7474 struct check {};
7475
7476 typedef check<void> single_type;
7477 typedef check<check<void>> double_type;
7478 typedef check<check<check<void>>> triple_type;
7479 typedef check<check<check<check<void>>>> quadruple_type;
7480
7481 }
7482
7483 namespace test_decltype
7484 {
7485
7486 int
7487 f()
7488 {
7489 int a = 1;
7490 decltype(a) b = 2;
7491 return a + b;
7492 }
7493
7494 }
7495
7496 namespace test_type_deduction
7497 {
7498
7499 template < typename T1, typename T2 >
7500 struct is_same
7501 {
7502 static const bool value = false;
7503 };
7504
7505 template < typename T >
7506 struct is_same<T, T>
7507 {
7508 static const bool value = true;
7509 };
7510
7511 template < typename T1, typename T2 >
7512 auto
7513 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7514 {
7515 return a1 + a2;
7516 }
7517
7518 int
7519 test(const int c, volatile int v)
7520 {
7521 static_assert(is_same<int, decltype(0)>::value == true, "");
7522 static_assert(is_same<int, decltype(c)>::value == false, "");
7523 static_assert(is_same<int, decltype(v)>::value == false, "");
7524 auto ac = c;
7525 auto av = v;
7526 auto sumi = ac + av + 'x';
7527 auto sumf = ac + av + 1.0;
7528 static_assert(is_same<int, decltype(ac)>::value == true, "");
7529 static_assert(is_same<int, decltype(av)>::value == true, "");
7530 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7531 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7532 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7533 return (sumf > 0.0) ? sumi : add(c, v);
7534 }
7535
7536 }
7537
7538 namespace test_noexcept
7539 {
7540
7541 int f() { return 0; }
7542 int g() noexcept { return 0; }
7543
7544 static_assert(noexcept(f()) == false, "");
7545 static_assert(noexcept(g()) == true, "");
7546
7547 }
7548
7549 namespace test_constexpr
7550 {
7551
7552 template < typename CharT >
7553 unsigned long constexpr
7554 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7555 {
7556 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7557 }
7558
7559 template < typename CharT >
7560 unsigned long constexpr
7561 strlen_c(const CharT *const s) noexcept
7562 {
7563 return strlen_c_r(s, 0UL);
7564 }
7565
7566 static_assert(strlen_c("") == 0UL, "");
7567 static_assert(strlen_c("1") == 1UL, "");
7568 static_assert(strlen_c("example") == 7UL, "");
7569 static_assert(strlen_c("another\0example") == 7UL, "");
7570
7571 }
7572
7573 namespace test_rvalue_references
7574 {
7575
7576 template < int N >
7577 struct answer
7578 {
7579 static constexpr int value = N;
7580 };
7581
7582 answer<1> f(int&) { return answer<1>(); }
7583 answer<2> f(const int&) { return answer<2>(); }
7584 answer<3> f(int&&) { return answer<3>(); }
7585
7586 void
7587 test()
7588 {
7589 int i = 0;
7590 const int c = 0;
7591 static_assert(decltype(f(i))::value == 1, "");
7592 static_assert(decltype(f(c))::value == 2, "");
7593 static_assert(decltype(f(0))::value == 3, "");
7594 }
7595
7596 }
7597
7598 namespace test_uniform_initialization
7599 {
7600
7601 struct test
7602 {
7603 static const int zero {};
7604 static const int one {1};
7605 };
7606
7607 static_assert(test::zero == 0, "");
7608 static_assert(test::one == 1, "");
7609
7610 }
7611
7612 namespace test_lambdas
7613 {
7614
7615 void
7616 test1()
7617 {
7618 auto lambda1 = [](){};
7619 auto lambda2 = lambda1;
7620 lambda1();
7621 lambda2();
7622 }
7623
7624 int
7625 test2()
7626 {
7627 auto a = [](int i, int j){ return i + j; }(1, 2);
7628 auto b = []() -> int { return '0'; }();
7629 auto c = [=](){ return a + b; }();
7630 auto d = [&](){ return c; }();
7631 auto e = [a, &b](int x) mutable {
7632 const auto identity = [](int y){ return y; };
7633 for (auto i = 0; i < a; ++i)
7634 a += b--;
7635 return x + identity(a + b);
7636 }(0);
7637 return a + b + c + d + e;
7638 }
7639
7640 int
7641 test3()
7642 {
7643 const auto nullary = [](){ return 0; };
7644 const auto unary = [](int x){ return x; };
7645 using nullary_t = decltype(nullary);
7646 using unary_t = decltype(unary);
7647 const auto higher1st = [](nullary_t f){ return f(); };
7648 const auto higher2nd = [unary](nullary_t f1){
7649 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7650 };
7651 return higher1st(nullary) + higher2nd(nullary)(unary);
7652 }
7653
7654 }
7655
7656 namespace test_variadic_templates
7657 {
7658
7659 template <int...>
7660 struct sum;
7661
7662 template <int N0, int... N1toN>
7663 struct sum<N0, N1toN...>
7664 {
7665 static constexpr auto value = N0 + sum<N1toN...>::value;
7666 };
7667
7668 template <>
7669 struct sum<>
7670 {
7671 static constexpr auto value = 0;
7672 };
7673
7674 static_assert(sum<>::value == 0, "");
7675 static_assert(sum<1>::value == 1, "");
7676 static_assert(sum<23>::value == 23, "");
7677 static_assert(sum<1, 2>::value == 3, "");
7678 static_assert(sum<5, 5, 11>::value == 21, "");
7679 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7680
7681 }
7682
7683 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7684 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7685 // because of this.
7686 namespace test_template_alias_sfinae
7687 {
7688
7689 struct foo {};
7690
7691 template<typename T>
7692 using member = typename T::member_type;
7693
7694 template<typename T>
7695 void func(...) {}
7696
7697 template<typename T>
7698 void func(member<T>*) {}
7699
7700 void test();
7701
7702 void test() { func<foo>(0); }
7703
7704 }
7705
7706} // namespace cxx11
7707
7708#endif // __cplusplus >= 201103L
7709
7710
7711
7712_ACEOF
7713if ac_fn_cxx_try_compile "$LINENO"; then :
7714 eval $cachevar=yes
7715else
7716 eval $cachevar=no
7717fi
7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 CXX="$ac_save_CXX"
7720fi
7721eval ac_res=\$$cachevar
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7723$as_echo "$ac_res" >&6; }
7724 if eval test x\$$cachevar = xyes; then
7725 CXX="$CXX $switch"
7726 if test -n "$CXXCPP" ; then
7727 CXXCPP="$CXXCPP $switch"
7728 fi
7729 ac_success=yes
7730 break
7731 fi
7732 done
7733 if test x$ac_success = xyes; then
7734 break
7735 fi
7736 done
7737 fi
7738 CXX_FOR_BUILD="$CXX"
7739 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7740 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7741 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7742 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7743 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7744 ac_ext=c
7745ac_cpp='$CPP $CPPFLAGS'
7746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748ac_compiler_gnu=$ac_cv_c_compiler_gnu
7749
7750 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7751 if test x$ac_success = xno; then
7752 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7753 fi
7754 fi
7755 if test x$ac_success = xno; then
7756 HAVE_CXX11_FOR_BUILD=0
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7758$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7759 else
7760 HAVE_CXX11_FOR_BUILD=1
7761
7762$as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7763
7764 fi
7765
7766
7767 fi
7768fi
7769
7770# Check whether --enable-pgo-build was given.
7771if test "${enable_pgo_build+set}" = set; then :
7772 enableval=$enable_pgo_build; enable_pgo_build=$enableval
7773else
7774 enable_pgo_build=no
7775fi
7776
7777
7778# Issue errors and warnings for invalid/strange PGO build combinations.
7779case "$have_compiler:$host:$target:$enable_pgo_build" in
7780 *:*:*:no) ;;
7781
7782 # Allow the PGO build only if we aren't building a compiler and
7783 # we are in a native configuration.
7784 no:$build:$build:yes | no:$build:$build:lto) ;;
7785
7786 # Disallow the PGO bootstrap if we are building a compiler.
7787 yes:*:*:yes | yes:*:*:lto)
7788 as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7789
7790 *)
7791 as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
7792 ;;
7793esac
7794
7795if test "$enable_pgo_build" != "no"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7797$as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7798 old_CFLAGS="$CFLAGS"
7799 PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
7800 CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
7801
7802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804int foo;
7805_ACEOF
7806if ac_fn_c_try_compile "$LINENO"; then :
7807
7808else
7809 PGO_BUILD_GEN_CFLAGS=
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7812 CFLAGS="$old_CFLAGS"
7813 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7815$as_echo "yes" >&6; }
7816 PGO_BUILD_USE_CFLAGS="-fprofile-use"
7817 else
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819$as_echo "no" >&6; }
7820 as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7821 fi
7822
7823 if test "$enable_pgo_build" = "lto"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7825$as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7826 old_CFLAGS="$CFLAGS"
7827 PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
7828 CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830/* end confdefs.h. */
7831int foo;
7832_ACEOF
7833if ac_fn_c_try_compile "$LINENO"; then :
7834
7835else
7836 PGO_BUILD_LTO_CFLAGS=
7837fi
7838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 CFLAGS="$old_CFLAGS"
7840 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842$as_echo "yes" >&6; }
7843 else
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7847$as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7848 fi
7849 fi
7850fi
7851
7852
7853
7854
7855# Used for setting $lt_cv_objdir
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7857$as_echo_n "checking for objdir... " >&6; }
7858if ${lt_cv_objdir+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860else
7861 rm -f .libs 2>/dev/null
7862mkdir .libs 2>/dev/null
7863if test -d .libs; then
7864 lt_cv_objdir=.libs
7865else
7866 # MS-DOS does not allow filenames that begin with a dot.
7867 lt_cv_objdir=_libs
7868fi
7869rmdir .libs 2>/dev/null
7870fi
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7872$as_echo "$lt_cv_objdir" >&6; }
7873objdir=$lt_cv_objdir
7874
7875
7876
7877
7878
7879cat >>confdefs.h <<_ACEOF
7880#define LT_OBJDIR "$lt_cv_objdir/"
7881_ACEOF
7882
7883
7884
7885# Check for GMP, MPFR and MPC
7886gmplibs="-lmpc -lmpfr -lgmp"
7887gmpinc=
7888have_gmp=no
7889
7890# Specify a location for mpc
7891# check for this first so it ends up on the link line before mpfr.
7892
7893# Check whether --with-mpc was given.
7894if test "${with_mpc+set}" = set; then :
7895 withval=$with_mpc;
7896fi
7897
7898
7899# Check whether --with-mpc-include was given.
7900if test "${with_mpc_include+set}" = set; then :
7901 withval=$with_mpc_include;
7902fi
7903
7904
7905# Check whether --with-mpc-lib was given.
7906if test "${with_mpc_lib+set}" = set; then :
7907 withval=$with_mpc_lib;
7908fi
7909
7910
7911if test "x$with_mpc" != x; then
7912 gmplibs="-L$with_mpc/lib $gmplibs"
7913 gmpinc="-I$with_mpc/include $gmpinc"
7914fi
7915if test "x$with_mpc_include" != x; then
7916 gmpinc="-I$with_mpc_include $gmpinc"
7917fi
7918if test "x$with_mpc_lib" != x; then
7919 gmplibs="-L$with_mpc_lib $gmplibs"
7920fi
7921if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7922 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7923 gmpinc='-I$$s/mpc/src '"$gmpinc"
7924 # Do not test the mpc version. Assume that it is sufficient, since
7925 # it is in the source tree, and the library has not been built yet
7926 # but it would be included on the link line in the version check below
7927 # hence making the test fail.
7928 have_gmp=yes
7929fi
7930
7931# Specify a location for mpfr
7932# check for this first so it ends up on the link line before gmp.
7933
7934# Check whether --with-mpfr was given.
7935if test "${with_mpfr+set}" = set; then :
7936 withval=$with_mpfr;
7937fi
c6b750e1 7938
11b04d1f 7939
e552509b 7940# Check whether --with-mpfr-include was given.
81ecdfbb
RW
7941if test "${with_mpfr_include+set}" = set; then :
7942 withval=$with_mpfr_include;
7943fi
c6b750e1 7944
8a0d8a5c 7945
e552509b 7946# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
7947if test "${with_mpfr_lib+set}" = set; then :
7948 withval=$with_mpfr_lib;
7949fi
8a0d8a5c 7950
11b04d1f
DD
7951
7952if test "x$with_mpfr" != x; then
7953 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 7954 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 7955fi
8a0d8a5c 7956if test "x$with_mpfr_include" != x; then
d9b76ff9 7957 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
7958fi
7959if test "x$with_mpfr_lib" != x; then
7960 gmplibs="-L$with_mpfr_lib $gmplibs"
7961fi
4b900473 7962if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 7963 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254 7964 if ! test -d ${srcdir}/mpfr/src; then
d0ac1c44 7965 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 7966 fi
05a13254
NC
7967 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7968 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7969 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
7970 # Do not test the mpfr version. Assume that it is sufficient, since
7971 # it is in the source tree, and the library has not been built yet
7972 # but it would be included on the link line in the version check below
7973 # hence making the test fail.
7974 have_gmp=yes
7975fi
11b04d1f 7976
4b1cb4fe 7977# Specify a location for gmp
c6b750e1 7978
81ecdfbb
RW
7979# Check whether --with-gmp was given.
7980if test "${with_gmp+set}" = set; then :
7981 withval=$with_gmp;
7982fi
c6b750e1 7983
4b1cb4fe 7984
e552509b 7985# Check whether --with-gmp-include was given.
81ecdfbb
RW
7986if test "${with_gmp_include+set}" = set; then :
7987 withval=$with_gmp_include;
7988fi
c6b750e1 7989
8a0d8a5c 7990
e552509b 7991# Check whether --with-gmp-lib was given.
81ecdfbb
RW
7992if test "${with_gmp_lib+set}" = set; then :
7993 withval=$with_gmp_lib;
7994fi
8a0d8a5c
PB
7995
7996
4b1cb4fe 7997
11b04d1f
DD
7998if test "x$with_gmp" != x; then
7999 gmplibs="-L$with_gmp/lib $gmplibs"
8000 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 8001fi
8a0d8a5c
PB
8002if test "x$with_gmp_include" != x; then
8003 gmpinc="-I$with_gmp_include $gmpinc"
8004fi
8005if test "x$with_gmp_lib" != x; then
8006 gmplibs="-L$with_gmp_lib $gmplibs"
8007fi
4b900473 8008if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 8009 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 8010 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 8011 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 8012 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 8013 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
8014 # Do not test the gmp version. Assume that it is sufficient, since
8015 # it is in the source tree, and the library has not been built yet
8016 # but it would be included on the link line in the version check below
8017 # hence making the test fail.
8018 have_gmp=yes
8019fi
4b1cb4fe 8020
ceb92e78 8021if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
8022 have_gmp=yes
8023 saved_CFLAGS="$CFLAGS"
8024 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
8025 # Check for the recommended and required versions of GMP.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8027$as_echo_n "checking for the correct version of gmp.h... " >&6; }
af019bfd 8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
8029/* end confdefs.h. */
8030#include "gmp.h"
8031int
8032main ()
8033{
8034
8035 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8036 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 8037 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
8038 choke me
8039 #endif
8040
8041 ;
8042 return 0;
8043}
8044_ACEOF
8045if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8047/* end confdefs.h. */
a6b5846e 8048#include <gmp.h>
c6b750e1
DJ
8049int
8050main ()
8051{
4b1cb4fe 8052
a6b5846e
KG
8053 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8054 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8055 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
8056 choke me
8057 #endif
c6b750e1
DJ
8058
8059 ;
8060 return 0;
8061}
8062_ACEOF
81ecdfbb
RW
8063if ac_fn_c_try_compile "$LINENO"; then :
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065$as_echo "yes" >&6; }
a6b5846e
KG
8066else
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8068$as_echo "buggy but acceptable" >&6; }
8069fi
8070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 8071else
81ecdfbb
RW
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }; have_gmp=no
c6b750e1 8074fi
81ecdfbb 8075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 8076
e8a5fa9c 8077 # If we have GMP, check the MPFR version.
4b900473 8078 if test x"$have_gmp" = xyes; then
a6b5846e
KG
8079 # Check for the recommended and required versions of MPFR.
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8081$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8083/* end confdefs.h. */
9b134994 8084#include <gmp.h>
4b900473 8085 #include <mpfr.h>
c6b750e1
DJ
8086int
8087main ()
8088{
9b134994 8089
228cf97d 8090 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
4b900473
PB
8091 choke me
8092 #endif
c6b750e1
DJ
8093
8094 ;
8095 return 0;
8096}
8097_ACEOF
81ecdfbb
RW
8098if ac_fn_c_try_compile "$LINENO"; then :
8099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 8100/* end confdefs.h. */
4b1cb4fe 8101#include <gmp.h>
4b900473 8102 #include <mpfr.h>
c6b750e1
DJ
8103int
8104main ()
8105{
9dbaa842 8106
228cf97d 8107 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
4b900473
PB
8108 choke me
8109 #endif
e8a5fa9c
RW
8110
8111 ;
8112 return 0;
8113}
8114_ACEOF
81ecdfbb
RW
8115if ac_fn_c_try_compile "$LINENO"; then :
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8117$as_echo "yes" >&6; }
e8a5fa9c 8118else
81ecdfbb
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8120$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 8121fi
81ecdfbb 8122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 8123else
81ecdfbb
RW
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 8126fi
81ecdfbb 8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
8128 fi
8129
8130 # Check for the MPC header version.
d9b76ff9 8131 if test x"$have_gmp" = xyes ; then
a6b5846e 8132 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8134$as_echo_n "checking for the correct version of mpc.h... " >&6; }
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
8136/* end confdefs.h. */
8137#include <mpc.h>
8138int
8139main ()
8140{
8141
a6b5846e
KG
8142 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8143 choke me
8144 #endif
8145
8146 ;
8147 return 0;
8148}
8149_ACEOF
8150if ac_fn_c_try_compile "$LINENO"; then :
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152/* end confdefs.h. */
8153#include <mpc.h>
8154int
8155main ()
8156{
8157
8158 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
8159 choke me
8160 #endif
8161
8162 ;
8163 return 0;
8164}
8165_ACEOF
81ecdfbb
RW
8166if ac_fn_c_try_compile "$LINENO"; then :
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 8168$as_echo "yes" >&6; }
a6b5846e
KG
8169else
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8171$as_echo "buggy but acceptable" >&6; }
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 8174else
81ecdfbb 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 8176$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 8177fi
81ecdfbb 8178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
8179 fi
8180
8181 # Now check the MPFR library.
8182 if test x"$have_gmp" = xyes; then
8183 saved_LIBS="$LIBS"
8184 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8186$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 8188/* end confdefs.h. */
d9b76ff9 8189#include <mpc.h>
e8a5fa9c
RW
8190int
8191main ()
8192{
8193
8194 mpfr_t n;
8195 mpfr_t x;
d9b76ff9 8196 mpc_t c;
e8a5fa9c
RW
8197 int t;
8198 mpfr_init (n);
8199 mpfr_init (x);
228cf97d
AM
8200 mpfr_atan2 (n, n, x, MPFR_RNDN);
8201 mpfr_erfc (n, x, MPFR_RNDN);
8202 mpfr_subnormalize (x, t, MPFR_RNDN);
d9b76ff9
KG
8203 mpfr_clear(n);
8204 mpfr_clear(x);
8205 mpc_init2 (c, 53);
8206 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8207 mpc_cosh (c, c, MPC_RNDNN);
8208 mpc_pow (c, c, c, MPC_RNDNN);
8209 mpc_acosh (c, c, MPC_RNDNN);
8210 mpc_clear (c);
c6b750e1
DJ
8211
8212 ;
8213 return 0;
8214}
8215_ACEOF
81ecdfbb
RW
8216if ac_fn_c_try_link "$LINENO"; then :
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8218$as_echo "yes" >&6; }
c6b750e1 8219else
81ecdfbb
RW
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }; have_gmp=no
c6b750e1 8222fi
81ecdfbb
RW
8223rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
8225 LIBS="$saved_LIBS"
8226 fi
8227
4b900473 8228 CFLAGS="$saved_CFLAGS"
4b1cb4fe 8229
a6b5846e
KG
8230# The library versions listed in the error message below should match
8231# the HARD-minimums enforced above.
4b900473 8232 if test x$have_gmp != xyes; then
228cf97d 8233 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
d9b76ff9
KG
8234Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8235their locations. Source code for these libraries can be found at
8236their respective hosting sites as well as at
228cf97d 8237https://gcc.gnu.org/pub/gcc/infrastructure/. See also
d9b76ff9
KG
8238http://gcc.gnu.org/install/prerequisites.html for additional info. If
8239you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8240make sure that you have installed both the libraries and the header
8241files. They may be located in separate packages." "$LINENO" 5
4b900473 8242 fi
9dbaa842
DD
8243fi
8244
e8a5fa9c
RW
8245# Flags needed for both GMP, MPFR and/or MPC.
8246
8247
8248
4b1cb4fe
DD
8249
8250
8251
7ec59b9e 8252
b3676d82 8253# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 8254
b3676d82
EB
8255# Check whether --with-stage1-libs was given.
8256if test "${with_stage1_libs+set}" = set; then :
8257 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8258 stage1_libs=
e8a5fa9c 8259 else
b3676d82 8260 stage1_libs=$withval
e8a5fa9c
RW
8261 fi
8262else
68996839 8263 stage1_libs=
81ecdfbb
RW
8264fi
8265
e8a5fa9c
RW
8266
8267
c1a5d03a
TT
8268# Whether or not to use -static-libstdc++ and -static-libgcc. The
8269# default is yes if gcc is being built; no otherwise. The reason for
8270# this default is that gdb is sometimes linked against GNU Source
8271# Highlight, which is a shared library that uses C++ exceptions. In
8272# this case, -static-libstdc++ will cause crashes.
8273
8274# Check whether --with-static-standard-libraries was given.
8275if test "${with_static_standard_libraries+set}" = set; then :
8276 withval=$with_static_standard_libraries;
8277else
8278 with_static_standard_libraries=auto
8279fi
8280
8281if test "$with_static_standard_libraries" = auto; then
8282 with_static_standard_libraries=$have_compiler
8283fi
8284
b3676d82 8285# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 8286
b3676d82
EB
8287# Check whether --with-stage1-ldflags was given.
8288if test "${with_stage1_ldflags+set}" = set; then :
8289 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8290 stage1_ldflags=
e8a5fa9c 8291 else
b3676d82 8292 stage1_ldflags=$withval
e8a5fa9c
RW
8293 fi
8294else
b3676d82
EB
8295 stage1_ldflags=
8296 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8297 # if supported. But if the user explicitly specified the libraries to use,
8298 # trust that they are doing what they want.
c1a5d03a
TT
8299 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8300 -a "$have_static_libs" = yes; then
b3676d82
EB
8301 stage1_ldflags="-static-libstdc++ -static-libgcc"
8302 fi
81ecdfbb
RW
8303fi
8304
e8a5fa9c
RW
8305
8306
68996839 8307# Libraries to use for stage2 and later builds.
e8a5fa9c 8308
81ecdfbb
RW
8309# Check whether --with-boot-libs was given.
8310if test "${with_boot_libs+set}" = set; then :
8311 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
8312 poststage1_libs=
8313 else
8314 poststage1_libs=$withval
8315 fi
8316else
68996839 8317 poststage1_libs=
81ecdfbb
RW
8318fi
8319
e8a5fa9c
RW
8320
8321
143754cd
NC
8322# Linker flags to use for stage2 and later builds.
8323
8324# Check whether --with-boot-ldflags was given.
8325if test "${with_boot_ldflags+set}" = set; then :
8326 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8327 poststage1_ldflags=
8328 else
8329 poststage1_ldflags=$withval
8330 fi
8331else
8332 poststage1_ldflags=
4f11b223
ILT
8333 # In stages 2 and 3, default to linking libstdc++ and libgcc
8334 # statically. But if the user explicitly specified the libraries to
8335 # use, trust that they are doing what they want.
8336 if test "$poststage1_libs" = ""; then
143754cd
NC
8337 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8338 fi
8339fi
8340
8341
8342
4849dfd8 8343# GCC GRAPHITE dependency isl.
1b6c0831 8344# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
8345
8346
7ec59b9e
L
8347# Check whether --with-isl was given.
8348if test "${with_isl+set}" = set; then :
8349 withval=$with_isl;
81ecdfbb 8350fi
e28c595f 8351
e28c595f 8352
1b6c0831 8353# Treat --without-isl as a request to disable
8e71395b 8354# GRAPHITE support and skip all following checks.
1b6c0831 8355if test "x$with_isl" != "xno"; then
4849dfd8 8356 # Check for isl
8e71395b
L
8357
8358
7ec59b9e
L
8359# Check whether --with-isl-include was given.
8360if test "${with_isl_include+set}" = set; then :
8361 withval=$with_isl_include;
81ecdfbb
RW
8362fi
8363
e28c595f 8364
7ec59b9e
L
8365# Check whether --with-isl-lib was given.
8366if test "${with_isl_lib+set}" = set; then :
8367 withval=$with_isl_lib;
81ecdfbb 8368fi
e28c595f 8369
e28c595f 8370
7ec59b9e
L
8371 # Check whether --enable-isl-version-check was given.
8372if test "${enable_isl_version_check+set}" = set; then :
8373 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8374else
8375 ENABLE_ISL_CHECK=yes
b123da99
SP
8376fi
8377
8378
7ec59b9e
L
8379 # Initialize isllibs and islinc.
8380 case $with_isl in
8381 no)
8382 isllibs=
8383 islinc=
8384 ;;
8385 "" | yes)
8386 ;;
8387 *)
8388 isllibs="-L$with_isl/lib"
8389 islinc="-I$with_isl/include"
8390 ;;
8391 esac
8392 if test "x${with_isl_include}" != x ; then
8393 islinc="-I$with_isl_include"
8394 fi
8395 if test "x${with_isl_lib}" != x; then
8396 isllibs="-L$with_isl_lib"
8397 fi
8398 if test "x${islinc}" = x && test "x${isllibs}" = x \
8399 && test -d ${srcdir}/isl; then
8400 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8401 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8402 ENABLE_ISL_CHECK=no
4849dfd8
NC
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8404$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 8405 fi
b123da99 8406
1b6c0831 8407 isllibs="${isllibs} -lisl"
b123da99 8408
e28c595f 8409
b3fc79f8
JBG
8410
8411 if test "${ENABLE_ISL_CHECK}" = yes ; then
8412 _isl_saved_CFLAGS=$CFLAGS
8413 _isl_saved_LDFLAGS=$LDFLAGS
8414 _isl_saved_LIBS=$LIBS
8415
8416 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
8417 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8418 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 8419
bf41f30d
NC
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8421$as_echo_n "checking for isl 0.15 or later... " >&6; }
1b6c0831 8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 8423/* end confdefs.h. */
bf41f30d 8424#include <isl/schedule.h>
b3fc79f8
JBG
8425int
8426main ()
8427{
bf41f30d 8428isl_options_set_schedule_serialize_sccs (NULL, 0);
b3fc79f8
JBG
8429 ;
8430 return 0;
8431}
8432_ACEOF
1b6c0831 8433if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
8434 gcc_cv_isl=yes
8435else
8436 gcc_cv_isl=no
8437fi
1b6c0831
L
8438rm -f core conftest.err conftest.$ac_objext \
8439 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8441$as_echo "$gcc_cv_isl" >&6; }
8442
4849dfd8 8443 if test "${gcc_cv_isl}" = no ; then
bf41f30d
NC
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8445$as_echo "required isl version is 0.15 or later" >&6; }
4849dfd8
NC
8446 fi
8447
b3fc79f8
JBG
8448 CFLAGS=$_isl_saved_CFLAGS
8449 LDFLAGS=$_isl_saved_LDFLAGS
8450 LIBS=$_isl_saved_LIBS
8451 fi
8452
8453
e28c595f 8454
e28c595f 8455
7ec59b9e
L
8456
8457
7ec59b9e
L
8458 if test "x${with_isl}" = xno; then
8459 graphite_requested=no
8460 elif test "x${with_isl}" != x \
8461 || test "x${with_isl_include}" != x \
8462 || test "x${with_isl_lib}" != x ; then
8463 graphite_requested=yes
8464 else
8465 graphite_requested=no
b123da99 8466 fi
e28c595f 8467
e28c595f
JM
8468
8469
7ec59b9e
L
8470 if test "${gcc_cv_isl}" = no ; then
8471 isllibs=
8472 islinc=
8473 fi
e28c595f 8474
7ec59b9e
L
8475 if test "${graphite_requested}" = yes \
8476 && test "x${isllibs}" = x \
8477 && test "x${islinc}" = x ; then
e28c595f 8478
d0ac1c44 8479 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 8480 fi
e552509b 8481
e28c595f 8482
e552509b
ILT
8483fi
8484
4849dfd8 8485# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 8486if test "x$with_isl" = xno ||
8e71395b 8487 test "x$gcc_cv_isl" = xno; then
1b6c0831 8488 noconfigdirs="$noconfigdirs isl"
8e71395b 8489 islinc=
7ec59b9e
L
8490fi
8491
8e71395b
L
8492
8493
8494
700d40ca
ILT
8495# Check for LTO support.
8496# Check whether --enable-lto was given.
8497if test "${enable_lto+set}" = set; then :
8498 enableval=$enable_lto; enable_lto=$enableval
8499else
8500 enable_lto=yes; default_enable_lto=yes
8501fi
8502
8503
143754cd 8504
e49e5c92
DK
8505
8506
8507target_elf=no
8508case $target in
8509 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 8510 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
8511 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8512 nvptx-*-none)
e49e5c92
DK
8513 target_elf=no
8514 ;;
8515 *)
8516 target_elf=yes
8517 ;;
8518esac
8519
8520if test $target_elf = yes; then :
74cea91b
DK
8521 # ELF platforms build the lto-plugin always.
8522 build_lto_plugin=yes
e49e5c92 8523
e49e5c92
DK
8524else
8525 if test x"$default_enable_lto" = x"yes" ; then
29821356 8526 case $target in
bf41f30d 8527 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 8528 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
8529 *) enable_lto=no ;;
8530 esac
e49e5c92 8531 else
29821356
RW
8532 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8533 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
8534 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8535 # warn during gcc/ subconfigure; unless you're bootstrapping with
8536 # -flto it won't be needed until after installation anyway.
8537 case $target in
52cf9762 8538 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92 8539 *) if test x"$enable_lto" = x"yes"; then
d0ac1c44 8540 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
e49e5c92
DK
8541 fi
8542 ;;
8543 esac
8544 fi
a8eb3f0a 8545 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 8546 # Build it unless LTO was explicitly disabled.
a8eb3f0a 8547 case $target in
74cea91b 8548 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
8549 *) ;;
8550 esac
74cea91b 8551
e49e5c92
DK
8552fi
8553
700d40ca 8554
1b6c0831
L
8555# Check whether --enable-linker-plugin-configure-flags was given.
8556if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8557 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8558else
8559 extra_linker_plugin_configure_flags=
8560fi
8561
8562
8563# Check whether --enable-linker-plugin-flags was given.
8564if test "${enable_linker_plugin_flags+set}" = set; then :
8565 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8566else
8567 extra_linker_plugin_flags=
8568fi
8569
8570
8571
bf41f30d
NC
8572# Enable --enable-host-shared.
8573# Checked early to determine whether jit is an 'all' language
8574# Check whether --enable-host-shared was given.
8575if test "${enable_host_shared+set}" = set; then :
8576 enableval=$enable_host_shared; host_shared=$enableval
228cf97d
AM
8577 case $host in
8578 x86_64-*-darwin* | aarch64-*-darwin*)
8579 if test x$host_shared != xyes ; then
8580 # PIC is the default, and actually cannot be switched off.
8581 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8582 host_shared=yes
8583 fi ;;
8584 *) ;;
8585 esac
bf41f30d 8586else
228cf97d
AM
8587 case $host in
8588 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8589 *) host_shared=no ;;
8590 esac
bf41f30d
NC
8591fi
8592
8593
e28c595f 8594
7ec59b9e 8595# By default, C and C++ are the only stage 1 languages.
9b134994 8596stage1_languages=,c,
1d39f329 8597
e8a5fa9c 8598# Target libraries that we bootstrap.
2aa2364a 8599bootstrap_target_libs=,target-libgcc,
e8a5fa9c 8600
9e07f89d
NN
8601# Figure out what language subdirectories are present.
8602# Look if the user specified --enable-languages="..."; if not, use
8603# the environment variable $LANGUAGES if defined. $LANGUAGES might
8604# go away some day.
8605# NB: embedded tabs in this IF block -- do not untabify
8606if test -d ${srcdir}/gcc; then
8607 if test x"${enable_languages+set}" != xset; then
8608 if test x"${LANGUAGES+set}" = xset; then
8609 enable_languages="${LANGUAGES}"
136bb21f 8610 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d 8611 else
bf41f30d 8612 enable_languages=default
9e07f89d
NN
8613 fi
8614 else
8615 if test x"${enable_languages}" = x ||
8616 test x"${enable_languages}" = xyes;
8617 then
136bb21f 8618 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
8619 exit 1
8620 fi
8621 fi
8622 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8623
096f7d00
DE
8624 # 'f95' is the old name for the 'fortran' language. We issue a warning
8625 # and make the substitution.
8626 case ,${enable_languages}, in
8627 *,f95,*)
136bb21f 8628 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
8629 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8630 ;;
8631 esac
8632
7ec59b9e
L
8633 # If bootstrapping, C++ must be enabled.
8634 case ",$enable_languages,:$enable_bootstrap" in
8635 *,c++,*:*) ;;
8636 *:yes)
ffdd6afc
ILT
8637 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8638 enable_languages="${enable_languages},c++"
8639 else
d0ac1c44 8640 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
8641 fi
8642 ;;
8643 esac
8644
9e07f89d
NN
8645 # First scan to see if an enabled language requires some other language.
8646 # We assume that a given config-lang.in will list all the language
8647 # front ends it requires, even if some are required indirectly.
8648 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8649 case ${lang_frag} in
8650 ..) ;;
8651 # The odd quoting in the next line works around
8652 # an apparent bug in bash 1.12 on linux.
8653 ${srcdir}/gcc/[*]/config-lang.in) ;;
8654 *)
e552509b
ILT
8655 # From the config-lang.in, get $language, $lang_requires, and
8656 # $lang_requires_boot_languages.
9e07f89d
NN
8657 language=
8658 lang_requires=
e552509b 8659 lang_requires_boot_languages=
bf41f30d
NC
8660 # set srcdir during sourcing lang_frag to the gcc dir.
8661 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8662 # polutes this shell
8663 saved_srcdir=${srcdir}
8664 srcdir=${srcdir}/gcc . ${lang_frag}
8665 srcdir=${saved_srcdir}
e552509b 8666 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
8667 case ,${enable_languages}, in
8668 *,$other,*) ;;
bf41f30d 8669 *,default,*) ;;
9e07f89d
NN
8670 *,all,*) ;;
8671 *,$language,*)
8672 echo " \`$other' language required by \`$language'; enabling" 1>&2
8673 enable_languages="${enable_languages},${other}"
8674 ;;
8675 esac
8676 done
e552509b
ILT
8677 for other in ${lang_requires_boot_languages} ; do
8678 if test "$other" != "c"; then
8679 case ,${enable_stage1_languages}, in
8680 *,$other,*) ;;
bf41f30d 8681 *,default,*) ;;
e552509b
ILT
8682 *,all,*) ;;
8683 *)
8684 case ,${enable_languages}, in
8685 *,$language,*)
8686 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8687 enable_stage1_languages="$enable_stage1_languages,${other}"
8688 ;;
8689 esac
8690 ;;
8691 esac
8692 fi
8693 done
9e07f89d
NN
8694 ;;
8695 esac
8696 done
8697
9b134994 8698 new_enable_languages=,c,
700d40ca
ILT
8699
8700 # If LTO is enabled, add the LTO front end.
700d40ca 8701 if test "$enable_lto" = "yes" ; then
6811fb56
RW
8702 case ,${enable_languages}, in
8703 *,lto,*) ;;
8704 *) enable_languages="${enable_languages},lto" ;;
8705 esac
a8eb3f0a 8706 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 8707 configdirs="$configdirs lto-plugin"
700d40ca
ILT
8708 fi
8709 fi
8710
1b6c0831
L
8711 # If we're building an offloading compiler, add the LTO front end.
8712 if test x"$enable_as_accelerator_for" != x ; then
8713 case ,${enable_languages}, in
8714 *,lto,*) ;;
8715 *) enable_languages="${enable_languages},lto" ;;
8716 esac
8717 fi
700d40ca 8718
bf41f30d 8719 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9b134994 8720 potential_languages=,c,
9e07f89d 8721
9e1a94f4
ILT
8722 enabled_target_libs=
8723 disabled_target_libs=
8724
9e07f89d
NN
8725 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8726 case ${lang_frag} in
8727 ..) ;;
8728 # The odd quoting in the next line works around
8729 # an apparent bug in bash 1.12 on linux.
8730 ${srcdir}/gcc/[*]/config-lang.in) ;;
8731 *)
c6b750e1 8732 # From the config-lang.in, get $language, $target_libs,
1d39f329 8733 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
8734 language=
8735 target_libs=
8736 lang_dirs=
64ce424c 8737 subdir_requires=
9b134994
PB
8738 boot_language=no
8739 build_by_default=yes
bf41f30d
NC
8740 # set srcdir during sourcing. See above about save & restore
8741 saved_srcdir=${srcdir}
8742 srcdir=${srcdir}/gcc . ${lang_frag}
8743 srcdir=${saved_srcdir}
9b134994
PB
8744 if test x${language} = x; then
8745 echo "${lang_frag} doesn't set \$language." 1>&2
8746 exit 1
8747 fi
8748
ffdd6afc 8749 if test "$language" = "c++"; then
7ec59b9e 8750 boot_language=yes
e8a5fa9c
RW
8751 fi
8752
8e71395b 8753 add_this_lang=no
bf41f30d
NC
8754 # C is always enabled, so no need to add it again
8755 if test "$language" != "c"; then
8756 case ,${enable_languages}, in
8757 *,${language},*)
8758 # Language was explicitly selected; include it
7ec59b9e 8759 add_this_lang=yes
bf41f30d
NC
8760 ;;
8761 *,all,*)
8762 # All languages are enabled
8763 add_this_lang=all
8764 ;;
8765 *,default,*)
8766 # 'default' was selected, select it if it is a default language
8e71395b 8767 add_this_lang=${build_by_default}
bf41f30d
NC
8768 ;;
8769 esac
8770 fi
4b1cb4fe 8771
64ce424c 8772 # Disable languages that need other directories if these aren't available.
1f3f1bbf 8773 for i in $subdir_requires; do
3d3adb43 8774 test -f "$srcdir/gcc/$i/config-lang.in" && continue
bf41f30d
NC
8775 case ${add_this_lang} in
8776 yes)
64ce424c 8777 # Specifically requested language; tell them.
d0ac1c44 8778 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c 8779 ;;
bf41f30d
NC
8780 all)
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8782$as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8783 add_this_lang=unsupported
8784 ;;
64ce424c
PB
8785 *)
8786 # Silently disable.
9b134994 8787 add_this_lang=unsupported
64ce424c
PB
8788 ;;
8789 esac
8790 done
8791
9b134994 8792 # Disable Ada if no preexisting GNAT is available.
bf41f30d
NC
8793 case ${add_this_lang}:${language}:${have_gnat} in
8794 yes:ada:no)
9b134994 8795 # Specifically requested language; tell them.
d0ac1c44 8796 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
9b134994 8797 ;;
bf41f30d
NC
8798 all:ada:no)
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8800$as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8801 add_this_lang=unsupported
8802 ;;
9b134994
PB
8803 *:ada:no)
8804 # Silently disable.
8805 add_this_lang=unsupported
8806 ;;
8807 esac
8808
228cf97d
AM
8809 # Disable D if no preexisting GDC is available.
8810 case ${add_this_lang}:${language}:${have_gdc} in
8811 yes:d:no)
8812 # Specifically requested language; tell them.
8813 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8814 ;;
8815 all:d:no)
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8817$as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8818 add_this_lang=unsupported
8819 ;;
8820 *:d:no)
8821 # Silently disable.
8822 add_this_lang=unsupported
8823 ;;
8824 esac
8825
bf41f30d 8826 # Disable jit if -enable-host-shared not specified
228cf97d
AM
8827 # but not if building for Mingw. All code in Windows
8828 # is position independent code (PIC).
8829 case $target in
8830 *mingw*) ;;
8831 *)
8832 case ${add_this_lang}:${language}:${host_shared} in
8833 yes:jit:no)
8834 # PR jit/64780: explicitly specify --enable-host-shared
d0ac1c44 8835 as_fn_error $? "
bf41f30d
NC
8836Enabling language \"jit\" requires --enable-host-shared.
8837
8838--enable-host-shared typically slows the rest of the compiler down by
8839a few %, so you must explicitly enable it.
8840
8841If you want to build both the jit and the regular compiler, it is often
8842best to do this via two separate configure/builds, in separate
8843directories, to avoid imposing the performance cost of
8844--enable-host-shared on the regular compiler." "$LINENO" 5
228cf97d
AM
8845 ;;
8846 all:jit:no)
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
bf41f30d 8848$as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
228cf97d
AM
8849 add_this_lang=unsupported
8850 ;;
8851 *:jit:no)
8852 # Silently disable.
8853 add_this_lang=unsupported
8854 ;;
8855 esac
8856 ;;
8857 esac
bf41f30d
NC
8858
8859 # Disable a language that is unsupported by the target.
8860 case "${add_this_lang}: $unsupported_languages " in
8861 no:*) ;;
8862 unsupported:*) ;;
8863 *:*" $language "*)
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8865$as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9b134994 8866 add_this_lang=unsupported
59f7ec45
HPN
8867 ;;
8868 esac
8869
4b1cb4fe 8870 case $add_this_lang in
9b134994 8871 unsupported)
9e07f89d 8872 # Remove language-dependent dirs.
9e1a94f4
ILT
8873 disabled_target_libs="$disabled_target_libs $target_libs"
8874 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 8875 ;;
9b134994
PB
8876 no)
8877 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
8878 disabled_target_libs="$disabled_target_libs $target_libs"
8879 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
8880 potential_languages="${potential_languages}${language},"
8881 ;;
bf41f30d 8882 all|yes)
9b134994
PB
8883 new_enable_languages="${new_enable_languages}${language},"
8884 potential_languages="${potential_languages}${language},"
1d39f329 8885 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 8886 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
8887 case "${boot_language}:,$enable_stage1_languages," in
8888 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 8889 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
8890 case ",$stage1_languages," in
8891 *,$language,* | ,yes, | ,all,) ;;
8892 *) stage1_languages="${stage1_languages}${language}," ;;
8893 esac
e8a5fa9c 8894 # We need to bootstrap any supporting libraries.
228cf97d 8895 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
1d39f329
NN
8896 ;;
8897 esac
8898 ;;
9e07f89d
NN
8899 esac
8900 ;;
8901 esac
8902 done
8903
9e1a94f4
ILT
8904 # Add target libraries which are only needed for disabled languages
8905 # to noconfigdirs.
8906 if test -n "$disabled_target_libs"; then
8907 for dir in $disabled_target_libs; do
8908 case " $enabled_target_libs " in
8909 *" ${dir} "*) ;;
8910 *) noconfigdirs="$noconfigdirs $dir" ;;
8911 esac
8912 done
8913 fi
8914
81ecdfbb
RW
8915 # Check whether --enable-stage1-languages was given.
8916if test "${enable_stage1_languages+set}" = set; then :
8917 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
8918 ,no,|,,)
8919 # Set it to something that will have no effect in the loop below
8920 enable_stage1_languages=c ;;
8921 ,yes,)
8922 enable_stage1_languages=`echo $new_enable_languages | \
8923 sed -e "s/^,//" -e "s/,$//" ` ;;
8924 *,all,*)
8925 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8926 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8927 esac
8928
8929 # Add "good" languages from enable_stage1_languages to stage1_languages,
8930 # while "bad" languages go in missing_languages. Leave no duplicates.
8931 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8932 case $potential_languages in
8933 *,$i,*)
8934 case $stage1_languages in
8935 *,$i,*) ;;
8936 *) stage1_languages="$stage1_languages$i," ;;
8937 esac ;;
8938 *)
8939 case $missing_languages in
8940 *,$i,*) ;;
8941 *) missing_languages="$missing_languages$i," ;;
8942 esac ;;
8943 esac
8944 done
81ecdfbb
RW
8945fi
8946
9b134994
PB
8947
8948 # Remove leading/trailing commas that were added for simplicity
8949 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 8950 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
8951 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8952 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8953
9e07f89d 8954 if test "x$missing_languages" != x; then
d0ac1c44 8955 as_fn_error $? "
27258dd4 8956The following requested languages could not be built: ${missing_languages}
81ecdfbb 8957Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 8958 fi
9e07f89d
NN
8959 if test "x$new_enable_languages" != "x$enable_languages"; then
8960 echo The following languages will be built: ${new_enable_languages}
9b134994 8961 enable_languages="$new_enable_languages"
9e07f89d 8962 fi
9b134994 8963
c6b750e1 8964
81ec575a 8965 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
8966fi
8967
a6df5a19
PB
8968# Handle --disable-<component> generically.
8969for dir in $configdirs $build_configdirs $target_configdirs ; do
8970 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
8971 varname=`echo $dirname | sed -e s/+/_/g`
8972 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
8973 noconfigdirs="$noconfigdirs $dir"
8974 fi
8975done
8976
4f0ef2d8 8977# Check for Boehm's garbage collector
81ecdfbb
RW
8978# Check whether --enable-objc-gc was given.
8979if test "${enable_objc_gc+set}" = set; then :
05a13254 8980 enableval=$enable_objc_gc;
81ecdfbb
RW
8981fi
8982
4f0ef2d8 8983
05a13254
NC
8984# Check whether --with-target-bdw-gc was given.
8985if test "${with_target_bdw_gc+set}" = set; then :
8986 withval=$with_target_bdw_gc;
8987fi
8988
8989
8990# Check whether --with-target-bdw-gc-include was given.
8991if test "${with_target_bdw_gc_include+set}" = set; then :
8992 withval=$with_target_bdw_gc_include;
8993fi
8994
8995
8996# Check whether --with-target-bdw-gc-lib was given.
8997if test "${with_target_bdw_gc_lib+set}" = set; then :
8998 withval=$with_target_bdw_gc_lib;
8999fi
9000
9001
9002case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9004$as_echo_n "checking for bdw garbage collector... " >&6; }
9005 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9007$as_echo "using bdw-gc in default locations" >&6; }
9008 else
9009 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
d0ac1c44 9010 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
05a13254 9011 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
d0ac1c44 9012 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
05a13254
NC
9013 else
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9015$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 9016 fi
05a13254 9017 fi
4f0ef2d8
CD
9018esac
9019
bf41f30d 9020# Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 9021case ,${enable_languages}, in
1b6c0831 9022 *,c++,*)
bf41f30d 9023 # Disable libitm, libsanitizer if we're not building libstdc++
1b6c0831
L
9024 case "${noconfigdirs}" in
9025 *target-libstdc++-v3*)
bf41f30d 9026 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
1b6c0831
L
9027 ;;
9028 *) ;;
9029 esac
9030 ;;
7ec59b9e 9031 *)
bf41f30d 9032 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
9033 ;;
9034esac
9035
d33228c9
AB
9036# If gcc/ is not in the source tree then we'll not be building a
9037# target compiler, assume in that case we don't want to build any
9038# target libraries or tools.
9039#
9040# This was added primarily for the benefit for binutils-gdb who reuse
9041# this configure script, but don't always have target tools available.
9042if test ! -d ${srcdir}/gcc; then
9043 skipdirs="${skipdirs} ${target_configdirs}"
9044fi
9045
caeba88f
AL
9046# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9047# $build_configdirs and $target_configdirs.
9e07f89d
NN
9048# If we have the source for $noconfigdirs entries, add them to $notsupp.
9049
9050notsupp=""
9051for dir in . $skipdirs $noconfigdirs ; do
caeba88f 9052 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
9053 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9054 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9055 if test -r $srcdir/$dirname/configure ; then
9056 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9057 true
9058 else
9059 notsupp="$notsupp $dir"
9060 fi
9061 fi
9062 fi
caeba88f
AL
9063 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9064 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9065 if test -r $srcdir/$dirname/configure ; then
9066 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9067 true
9068 else
9069 notsupp="$notsupp $dir"
9070 fi
9071 fi
9072 fi
9e07f89d
NN
9073 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9074 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9075 if test -r $srcdir/$dirname/configure ; then
9076 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9077 true
9078 else
9079 notsupp="$notsupp $dir"
9080 fi
9081 fi
9082 fi
9083done
9084
9e07f89d
NN
9085# Quietly strip out all directories which aren't configurable in this tree.
9086# This relies on all configurable subdirectories being autoconfiscated, which
9087# is now the case.
6a9cf61e
PB
9088build_configdirs_all="$build_configdirs"
9089build_configdirs=
9090for i in ${build_configdirs_all} ; do
c6b750e1 9091 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
9092 if test -f ${srcdir}/$j/configure ; then
9093 build_configdirs="${build_configdirs} $i"
9094 fi
9095done
9096
9e07f89d
NN
9097configdirs_all="$configdirs"
9098configdirs=
9099for i in ${configdirs_all} ; do
9100 if test -f ${srcdir}/$i/configure ; then
9101 configdirs="${configdirs} $i"
9102 fi
9103done
6a9cf61e 9104
9e07f89d
NN
9105target_configdirs_all="$target_configdirs"
9106target_configdirs=
9107for i in ${target_configdirs_all} ; do
c6b750e1 9108 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
9109 if test -f ${srcdir}/$j/configure ; then
9110 target_configdirs="${target_configdirs} $i"
9111 fi
9112done
9113
1b6c0831
L
9114# libiberty-linker-plugin is special: it doesn't have its own source directory,
9115# so we have to add it after the preceding checks.
9116if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9117then
9118 case " $configdirs " in
9119 *" libiberty "*)
9120 # If we can build libiberty, we can also build libiberty-linker-plugin.
9121 configdirs="$configdirs libiberty-linker-plugin"
9122 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9123 --with-libiberty=../libiberty-linker-plugin";;
9124 *)
d0ac1c44 9125 as_fn_error $? "libiberty missing" "$LINENO" 5;;
1b6c0831
L
9126 esac
9127fi
9128
9129# Sometimes we have special requirements for the host libiberty.
9130extra_host_libiberty_configure_flags=
9131case " $configdirs " in
a08bdb15 9132 *" lto-plugin "* | *" libcc1 "* | *" gdbserver "*)
1b6c0831
L
9133 # When these are to be built as shared libraries, the same applies to
9134 # libiberty.
9135 extra_host_libiberty_configure_flags=--enable-shared
9136 ;;
95127faf
TV
9137esac
9138
9139
9140# Sometimes we have special requirements for the host zlib.
9141extra_host_zlib_configure_flags=
9142case " $configdirs " in
e81d5d05
L
9143 *" bfd "*)
9144 # When bfd is to be built as a shared library, the same applies to
9145 # zlib.
9146 if test "$enable_shared" = "yes"; then
9147 extra_host_zlib_configure_flags=--enable-host-shared
9148 fi
9149 ;;
1b6c0831
L
9150esac
9151
9152
9e07f89d
NN
9153# Produce a warning message for the subdirs we can't configure.
9154# This isn't especially interesting in the Cygnus tree, but in the individual
9155# FSF releases, it's important to let people know when their machine isn't
9156# supported by the one or two programs in a package.
9157
9158if test -n "${notsupp}" && test -z "${norecursion}" ; then
9159 # If $appdirs is non-empty, at least one of those directories must still
9160 # be configured, or we error out. (E.g., if the gas release supports a
9161 # specified target in some subdirs but not the gas subdir, we shouldn't
9162 # pretend that all is well.)
9163 if test -n "$appdirs" ; then
9164 for dir in $appdirs ; do
9165 if test -r $dir/Makefile.in ; then
9166 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9167 appdirs=""
9168 break
9169 fi
6a9cf61e 9170 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
9171 appdirs=""
9172 break
9173 fi
9174 fi
9175 done
9176 if test -n "$appdirs" ; then
9177 echo "*** This configuration is not supported by this package." 1>&2
9178 exit 1
9179 fi
9180 fi
9181 # Okay, some application will build, or we don't care to check. Still
9182 # notify of subdirs not getting built.
9183 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9184 echo " ${notsupp}" 1>&2
9185 echo " (Any other directories should still work fine.)" 1>&2
9186fi
9187
9188case "$host" in
9189 *msdosdjgpp*)
9190 enable_gdbtk=no ;;
9191esac
9192
18f6b6ee
PB
9193# To find our prefix, in gcc_cv_tool_prefix.
9194
9195# The user is always right.
9196if test "${PATH_SEPARATOR+set}" != set; then
9197 echo "#! /bin/sh" >conf$$.sh
9198 echo "exit 0" >>conf$$.sh
9199 chmod +x conf$$.sh
9200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9201 PATH_SEPARATOR=';'
9202 else
9203 PATH_SEPARATOR=:
9204 fi
9205 rm -f conf$$.sh
9206fi
9207
9208
bf41f30d
NC
9209 get_gcc_base_ver="cat"
9210
9211# Check whether --with-gcc-major-version-only was given.
9212if test "${with_gcc_major_version_only+set}" = set; then :
9213 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
37f980dc 9214 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
bf41f30d
NC
9215 fi
9216
9217fi
9218
9219
9220
9221
9222
18f6b6ee
PB
9223
9224if test "x$exec_prefix" = xNONE; then
9225 if test "x$prefix" = xNONE; then
9226 gcc_cv_tool_prefix=$ac_default_prefix
9227 else
9228 gcc_cv_tool_prefix=$prefix
9229 fi
9230else
9231 gcc_cv_tool_prefix=$exec_prefix
9232fi
9233
9234# If there is no compiler in the tree, use the PATH only. In any
9235# case, if there is no compiler in the tree nobody should use
9236# AS_FOR_TARGET and LD_FOR_TARGET.
9237if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
bf41f30d
NC
9238 if test x$with_gcc_major_version_only = xyes ; then
9239 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9240 else
9241 gcc_version=`cat $srcdir/gcc/BASE-VER`
9242 fi
18f6b6ee
PB
9243 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9244 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9245 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9246 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9247 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9248 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9249else
9250 gcc_cv_tool_dirs=
9251fi
9252
9253if test x$build = x$target && test -n "$md_exec_prefix"; then
9254 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9255fi
9256
9257
9258
9e07f89d
NN
9259copy_dirs=
9260
c6b750e1 9261
81ecdfbb
RW
9262# Check whether --with-build-sysroot was given.
9263if test "${with_build_sysroot+set}" = set; then :
9264 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
9265 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9266 fi
9267else
9268 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 9269fi
a19b6204
MM
9270
9271
8a6ee3ab 9272
81ecdfbb
RW
9273
9274# Check whether --with-debug-prefix-map was given.
9275if test "${with_debug_prefix_map+set}" = set; then :
9276 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
9277 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9278 for debug_map in $withval; do
9279 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9280 done
9281 fi
9282else
9283 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
9284fi
9285
8a6ee3ab
JM
9286
9287
7f6ef0c0
PB
9288# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9289# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9290# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9291# We want to ensure that TARGET libraries (which we know are built with
9292# gcc) are built with "-O2 -g", so include those options when setting
9293# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9294if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
9295 if test "x${is_cross_compiler}" = xyes; then
9296 CFLAGS_FOR_TARGET="-g -O2"
9297 else
9298 CFLAGS_FOR_TARGET=$CFLAGS
9299 case " $CFLAGS " in
9300 *" -O2 "*) ;;
9301 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9302 esac
9303 case " $CFLAGS " in
9304 *" -g "* | *" -g3 "*) ;;
9305 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9306 esac
9307 fi
7f6ef0c0
PB
9308fi
9309
9310
9311if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
9312 if test "x${is_cross_compiler}" = xyes; then
9313 CXXFLAGS_FOR_TARGET="-g -O2"
9314 else
9315 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9316 case " $CXXFLAGS " in
9317 *" -O2 "*) ;;
9318 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9319 esac
9320 case " $CXXFLAGS " in
9321 *" -g "* | *" -g3 "*) ;;
9322 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9323 esac
9324 fi
7f6ef0c0
PB
9325fi
9326
9327
91c1f14c
DK
9328
9329
9e07f89d
NN
9330# Handle --with-headers=XXX. If the value is not "yes", the contents of
9331# the named directory are copied to $(tooldir)/sys-include.
9332if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9333 if test x${is_cross_compiler} = xno ; then
9334 echo 1>&2 '***' --with-headers is only supported when cross compiling
9335 exit 1
9336 fi
9337 if test x"${with_headers}" != xyes ; then
18f6b6ee 9338 x=${gcc_cv_tool_prefix}
c6b750e1 9339 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
9340 fi
9341fi
9342
9343# Handle --with-libs=XXX. If the value is not "yes", the contents of
9344# the name directories are copied to $(tooldir)/lib. Multiple directories
9345# are permitted.
9346if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9347 if test x${is_cross_compiler} = xno ; then
9348 echo 1>&2 '***' --with-libs is only supported when cross compiling
9349 exit 1
9350 fi
9351 if test x"${with_libs}" != xyes ; then
9352 # Copy the libraries in reverse order, so that files in the first named
9353 # library override files in subsequent libraries.
18f6b6ee 9354 x=${gcc_cv_tool_prefix}
9e07f89d 9355 for l in ${with_libs}; do
c6b750e1 9356 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
9357 done
9358 fi
9359fi
9360
700d40ca 9361# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
9362#
9363# This is done by determining whether or not the appropriate directory
9364# is available, and by checking whether or not specific configurations
9365# have requested that this magic not happen.
c6b750e1
DJ
9366#
9367# The command line options always override the explicit settings in
136bb21f 9368# configure.ac, and the settings in configure.ac override this magic.
2429c060 9369#
c6b750e1 9370# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 9371# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
9372# --without-gnu-ld options for the configure script. Similarly, if
9373# the default is to use the included zlib and you don't want to do that,
9374# you should use the --with-system-zlib option for the configure script.
2429c060
PB
9375
9376if test x${use_gnu_as} = x &&
9377 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9378 with_gnu_as=yes
9379 extra_host_args="$extra_host_args --with-gnu-as"
9380fi
9381
9382if test x${use_gnu_ld} = x &&
93f9b408 9383 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
9384 with_gnu_ld=yes
9385 extra_host_args="$extra_host_args --with-gnu-ld"
9386fi
9387
700d40ca
ILT
9388if test x${use_included_zlib} = x &&
9389 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9390 :
9391else
9392 with_system_zlib=yes
9393 extra_host_args="$extra_host_args --with-system-zlib"
9394fi
9395
2429c060
PB
9396# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9397# can detect this case.
9398
9399if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9400 with_newlib=yes
9401 extra_host_args="$extra_host_args --with-newlib"
9402fi
9403
9e07f89d
NN
9404# Handle ${copy_dirs}
9405set fnord ${copy_dirs}
9406shift
9407while test $# != 0 ; do
9408 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9409 :
9410 else
9411 echo Copying $1 to $2
9412
9413 # Use the install script to create the directory and all required
9414 # parent directories.
9415 if test -d $2 ; then
9416 :
9417 else
9418 echo >config.temp
9419 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9420 fi
9421
9422 # Copy the directory, assuming we have tar.
9423 # FIXME: Should we use B in the second tar? Not all systems support it.
9424 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9425
9426 # It is the responsibility of the user to correctly adjust all
9427 # symlinks. If somebody can figure out how to handle them correctly
9428 # here, feel free to add the code.
9429
9430 echo $1 > $2/COPIED
9431 fi
9432 shift; shift
9433done
9434
2429c060
PB
9435# Determine a target-dependent exec_prefix that the installed
9436# gcc will search in. Keep this list sorted by triplet, with
9437# the *-*-osname triplets last.
9438md_exec_prefix=
9439case "${target}" in
521ec477 9440 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
9441 md_exec_prefix=/dev/env/DJDIR/bin
9442 ;;
2429c060 9443 *-*-hpux* | \
2429c060 9444 *-*-nto-qnx* | \
1f111696 9445 *-*-solaris2*)
2429c060
PB
9446 md_exec_prefix=/usr/ccs/bin
9447 ;;
9448esac
9449
a0da8069
NN
9450extra_arflags_for_target=
9451extra_nmflags_for_target=
9452extra_ranlibflags_for_target=
9453target_makefile_frag=/dev/null
9454case "${target}" in
77d7106f
AM
9455 spu-*-*)
9456 target_makefile_frag="config/mt-spu"
9457 ;;
a9d58c06 9458 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
9459 target_makefile_frag="config/mt-sde"
9460 ;;
f3b1e08e
RS
9461 mipsisa*-*-elfoabi*)
9462 target_makefile_frag="config/mt-mips-elfoabi"
9463 ;;
e7c8859c
RS
9464 mips*-*-*linux* | mips*-*-gnu*)
9465 target_makefile_frag="config/mt-mips-gnu"
9466 ;;
d9e042ac
SL
9467 nios2-*-elf*)
9468 target_makefile_frag="config/mt-nios2-elf"
9469 ;;
bf41f30d
NC
9470 *-*-linux-android*)
9471 target_makefile_frag="config/mt-android"
9472 ;;
29383458 9473 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 9474 target_makefile_frag="config/mt-gnu"
a0da8069
NN
9475 ;;
9476 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 9477 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
9478 # commands to handle both 32-bit and 64-bit objects. These flags are
9479 # harmless if we're using GNU nm or ar.
9480 extra_arflags_for_target=" -X32_64"
9481 extra_nmflags_for_target=" -B -X32_64"
9482 ;;
a0da8069
NN
9483esac
9484
9485alphaieee_frag=/dev/null
9486case $target in
9487 alpha*-*-*)
9488 # This just makes sure to use the -mieee option to build target libs.
9489 # This should probably be set individually by each library.
9490 alphaieee_frag="config/mt-alphaieee"
9491 ;;
9492esac
9493
9494# If --enable-target-optspace always use -Os instead of -O2 to build
9495# the target libraries, similarly if it is not specified, use -Os
9496# on selected platforms.
9497ospace_frag=/dev/null
9498case "${enable_target_optspace}:${target}" in
9499 yes:*)
9500 ospace_frag="config/mt-ospace"
9501 ;;
9502 :d30v-*)
9503 ospace_frag="config/mt-d30v"
9504 ;;
16beab3d 9505 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
9506 ospace_frag="config/mt-ospace"
9507 ;;
9508 no:* | :*)
9509 ;;
9510 *)
9511 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9512 ;;
9513esac
9514
a0da8069
NN
9515# Some systems (e.g., one of the i386-aix systems the gas testers are
9516# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 9517tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
9518build_tooldir=${tooldir}
9519
a0da8069
NN
9520# Create a .gdbinit file which runs the one in srcdir
9521# and tells GDB to look there for source files.
9522
9523if test -r ${srcdir}/.gdbinit ; then
9524 case ${srcdir} in
9525 .) ;;
9526 *) cat > ./.gdbinit <<EOF
9527# ${NO_EDIT}
9528dir ${srcdir}
9529dir .
9530source ${srcdir}/.gdbinit
9531EOF
9532 ;;
9533 esac
9534fi
9535
a0da8069
NN
9536# Make sure that the compiler is able to generate an executable. If it
9537# can't, we are probably in trouble. We don't care whether we can run the
9538# executable--we might be using a cross compiler--we only care whether it
9539# can be created. At this point the main configure script has set CC.
9540we_are_ok=no
9541echo "int main () { return 0; }" > conftest.c
9542${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9543if test $? = 0 ; then
9544 if test -s conftest || test -s conftest.exe ; then
9545 we_are_ok=yes
9546 fi
c6b750e1 9547fi
a0da8069
NN
9548case $we_are_ok in
9549 no)
9550 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9551 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9552 rm -f conftest*
9553 exit 1
9554 ;;
9555esac
9556rm -f conftest*
9557
3bbd2f8f 9558# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
9559case "${host}" in
9560 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 9561 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 9562 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
9563 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9564esac
9565
3bbd2f8f 9566# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
9567# gcc/ will put dynamic libraries into a subdirectory to avoid adding
9568# built executables to PATH.
3bbd2f8f
AL
9569if test "$RPATH_ENVVAR" = PATH; then
9570 GCC_SHLIB_SUBDIR=/shlib
9571else
9572 GCC_SHLIB_SUBDIR=
9573fi
9574
730af8ee 9575# Adjust the toplevel makefile according to whether bootstrap was selected.
9576case $enable_bootstrap in
9577 yes)
9578 bootstrap_suffix=bootstrap
9579 BUILD_CONFIG=bootstrap-debug
9580 ;;
9581 no)
9582 bootstrap_suffix=no-bootstrap
9583 BUILD_CONFIG=
9584 ;;
9585esac
9586
9587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9588$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9589
9590
9591# Check whether --with-build-config was given.
9592if test "${with_build_config+set}" = set; then :
9593 withval=$with_build_config; case $with_build_config in
9594 yes) with_build_config= ;;
9595 no) with_build_config= BUILD_CONFIG= ;;
9596 esac
9597fi
9598
9599
9600if test "x${with_build_config}" != x; then
9601 BUILD_CONFIG=$with_build_config
9602else
9603 case $BUILD_CONFIG in
9604 bootstrap-debug)
9605 if echo "int f (void) { return 0; }" > conftest.c &&
9606 ${CC} -c conftest.c &&
9607 mv conftest.o conftest.o.g0 &&
9608 ${CC} -c -g conftest.c &&
9609 mv conftest.o conftest.o.g &&
9610 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9611 :
9612 else
9613 BUILD_CONFIG=
9614 fi
9615 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9616 ;;
9617 esac
9618fi
9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9620$as_echo "$BUILD_CONFIG" >&6; }
9621
9622
9623# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9625$as_echo_n "checking for --enable-vtable-verify... " >&6; }
9626# Check whether --enable-vtable-verify was given.
9627if test "${enable_vtable_verify+set}" = set; then :
9628 enableval=$enable_vtable_verify; case "$enableval" in
9629 yes) enable_vtable_verify=yes ;;
9630 no) enable_vtable_verify=no ;;
9631 *) enable_vtable_verify=no;;
9632 esac
9633else
9634 enable_vtable_verify=no
9635fi
9636
9637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9638$as_echo "$enable_vtable_verify" >&6; }
9639
a0da8069
NN
9640# Record target_configdirs and the configure arguments for target and
9641# build configuration in Makefile.
9642target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 9643build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 9644bootstrap_fixincludes=no
a0da8069 9645
2aa2364a
JR
9646# If we are building libgomp, bootstrap it.
9647if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9648 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9649fi
9650
730af8ee 9651# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9652# or bootstrap-ubsan, bootstrap it.
9653if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9654 case "$BUILD_CONFIG" in
228cf97d 9655 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
730af8ee 9656 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 9657 bootstrap_fixincludes=yes
730af8ee 9658 ;;
9659 esac
5eb08693
L
9660fi
9661
730af8ee 9662# If we are building libvtv and --enable-vtable-verify, bootstrap it.
9663if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9664 test "$enable_vtable_verify" != no; then
95e43135
JBG
9665 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9666fi
9667
228cf97d
AM
9668# If we are building libatomic and the list of enabled languages includes the
9669# D frontend, bootstrap it.
9670if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9671 case ,${enable_languages}, in
9672 *,d,*)
9673 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9674 ;;
9675 esac
9676fi
9677
a0da8069
NN
9678# Determine whether gdb needs tk/tcl or not.
9679# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9680# and in that case we want gdb to be built without tk. Ugh!
9681# In fact I believe gdb is the *only* package directly dependent on tk,
9682# so we should be able to put the 'maybe's in unconditionally and
9683# leave out the maybe dependencies when enable_gdbtk is false. I'm not
9684# 100% sure that that's safe though.
c180f501 9685
675c6968 9686gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
9687case "$enable_gdbtk" in
9688 no)
9689 GDB_TK="" ;;
c180f501
AC
9690 yes)
9691 GDB_TK="${gdb_tk}" ;;
a0da8069 9692 *)
c180f501
AC
9693 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9694 # distro. Eventually someone will fix this and move Insight, nee
9695 # gdbtk to a separate directory.
9696 if test -d ${srcdir}/gdb/gdbtk ; then
9697 GDB_TK="${gdb_tk}"
9698 else
9699 GDB_TK=""
9700 fi
9701 ;;
a0da8069 9702esac
907be67c
DJ
9703CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9704INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 9705
b6f9caee
TT
9706# gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9707# else does, only include them if one of these is built. The Makefile
9708# provides the ordering, so it's enough here to add to the list.
9709case " ${configdirs} " in
9710 *\ gdb\ *)
9711 configdirs="${configdirs} gnulib gdbsupport"
9712 ;;
9713 *\ gdbserver\ *)
9714 configdirs="${configdirs} gnulib gdbsupport"
9715 ;;
5c9e84c2
MF
9716 *\ sim\ *)
9717 configdirs="${configdirs} gnulib"
9718 ;;
b6f9caee 9719esac
73cc7272 9720
6bd3dfaa 9721# Strip out unwanted targets.
dd12c3a8
NN
9722
9723# While at that, we remove Makefiles if we were started for recursive
9724# configuration, so that the top-level Makefile reconfigures them,
9725# like we used to do when configure itself was recursive.
dd12c3a8 9726
06a51eac
RW
9727# Loop over modules. We used to use the "$extrasub" feature from Autoconf
9728# but now we're fixing up the Makefile ourselves with the additional
9729# commands passed to AC_CONFIG_FILES. Use separate variables
9730# extrasub-{build,host,target} not because there is any reason to split
9731# the substitutions up that way, but only to remain below the limit of
9732# 99 commands in a script, for HP-UX sed.
4119873a
AO
9733
9734# Do not nest @if/@endif or @unless/@endunless pairs, because
9735# configure will not warn you at all.
dd12c3a8 9736
16b1ad29
RW
9737case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9738 yes:yes:*\ gold\ *:*,c++,*) ;;
9739 yes:yes:*\ gold\ *:*)
d0ac1c44 9740 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
16b1ad29
RW
9741 ;;
9742esac
9743
06a51eac 9744extrasub_build=
6a9cf61e 9745for module in ${build_configdirs} ; do
498d4a71
CF
9746 if test -z "${no_recursion}" \
9747 && test -f ${build_subdir}/${module}/Makefile; then
9748 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9749 rm -f ${build_subdir}/${module}/Makefile
9750 fi
06a51eac 9751 extrasub_build="$extrasub_build
498d4a71
CF
9752/^@if build-$module\$/d
9753/^@endif build-$module\$/d
4119873a 9754/^@unless build-$module\$/,/^@endunless build-$module\$/d
498d4a71 9755/^@if build-$module-$bootstrap_suffix\$/d
4119873a
AO
9756/^@endif build-$module-$bootstrap_suffix\$/d
9757/^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
498d4a71 9758done
06a51eac 9759extrasub_host=
498d4a71 9760for module in ${configdirs} ; do
80911fe1 9761 if test -z "${no_recursion}"; then
8cf39b1b 9762 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
9763 if test -f ${file}; then
9764 echo 1>&2 "*** removing ${file} to force reconfigure"
9765 rm -f ${file}
9766 fi
9767 done
498d4a71 9768 fi
201f096f 9769 case ${module},${bootstrap_fixincludes} in
9770 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9771 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9772 esac
06a51eac 9773 extrasub_host="$extrasub_host
498d4a71
CF
9774/^@if $module\$/d
9775/^@endif $module\$/d
4119873a 9776/^@unless $module\$/,/^@endunless $module\$/d
201f096f 9777/^@if $module-$host_bootstrap_suffix\$/d
4119873a
AO
9778/^@endif $module-$host_bootstrap_suffix\$/d
9779/^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
498d4a71 9780done
06a51eac 9781extrasub_target=
498d4a71
CF
9782for module in ${target_configdirs} ; do
9783 if test -z "${no_recursion}" \
9784 && test -f ${target_subdir}/${module}/Makefile; then
9785 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9786 rm -f ${target_subdir}/${module}/Makefile
9787 fi
e8a5fa9c
RW
9788
9789 # We only bootstrap target libraries listed in bootstrap_target_libs.
9790 case $bootstrap_target_libs in
9791 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9792 *) target_bootstrap_suffix=no-bootstrap ;;
9793 esac
9794
06a51eac 9795 extrasub_target="$extrasub_target
498d4a71
CF
9796/^@if target-$module\$/d
9797/^@endif target-$module\$/d
4119873a 9798/^@unless target-$module\$/,/^@endunless target-$module\$/d
e8a5fa9c 9799/^@if target-$module-$target_bootstrap_suffix\$/d
4119873a
AO
9800/^@endif target-$module-$target_bootstrap_suffix\$/d
9801/^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
9802done
9803
06a51eac
RW
9804# Do the final fixup along with target modules.
9805extrasub_target="$extrasub_target
4119873a
AO
9806/^@if /,/^@endif /d
9807/^@unless /d
9808/^@endunless /d"
a0da8069 9809
af019bfd
L
9810if test "$enable_pgo_build" != "no"; then
9811 extrasub_build="$extrasub_build
9812/^@if pgo-build\$/d
9813/^@endif pgo-build\$/d"
9814fi
9815
a0da8069
NN
9816# Create the serialization dependencies. This uses a temporary file.
9817
81ecdfbb
RW
9818# Check whether --enable-serial-configure was given.
9819if test "${enable_serial_configure+set}" = set; then :
9820 enableval=$enable_serial_configure;
9821fi
e6bfb94a
AO
9822
9823
1047cb91
DD
9824case ${enable_serial_configure} in
9825 yes)
9826 enable_serial_build_configure=yes
9827 enable_serial_host_configure=yes
9828 enable_serial_target_configure=yes
9829 ;;
9830esac
9831
a0da8069
NN
9832# These force 'configure's to be done one at a time, to avoid problems
9833# with contention over a shared config.cache.
9834rm -f serdep.tmp
e6bfb94a 9835echo '# serdep.tmp' > serdep.tmp
a0da8069 9836olditem=
1047cb91 9837test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
9838for item in ${build_configdirs} ; do
9839 case ${olditem} in
9840 "") ;;
e6bfb94a 9841 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
9842 esac
9843 olditem=${item}
9844done
9845olditem=
1047cb91 9846test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
9847for item in ${configdirs} ; do
9848 case ${olditem} in
9849 "") ;;
e6bfb94a 9850 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
9851 esac
9852 olditem=${item}
9853done
9854olditem=
1047cb91 9855test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
9856for item in ${target_configdirs} ; do
9857 case ${olditem} in
9858 "") ;;
e6bfb94a 9859 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
9860 esac
9861 olditem=${item}
9862done
9863serialization_dependencies=serdep.tmp
9864
9865
e6bfb94a 9866# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 9867# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
9868# might not want to pass down to subconfigures. The exception being
9869# --cache-file=/dev/null, which is used to turn off the use of cache
9870# files altogether, and which should be passed on to subconfigures.
9871# Also strip program-prefix, program-suffix, and program-transform-name,
9872# so that we can pass down a consistent program-transform-name.
c6b750e1 9873baseargs=
65b4571a 9874tbaseargs=
c6b750e1
DJ
9875keep_next=no
9876skip_next=no
9877eval "set -- $ac_configure_args"
18f6b6ee
PB
9878for ac_arg
9879do
c6b750e1
DJ
9880 if test X"$skip_next" = X"yes"; then
9881 skip_next=no
9882 continue
9883 fi
9884 if test X"$keep_next" = X"yes"; then
9885 case $ac_arg in
9886 *\'*)
9887 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9888 esac
9889 baseargs="$baseargs '$ac_arg'"
65b4571a 9890 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
9891 keep_next=no
9892 continue
9893 fi
9894
9895 # Handle separated arguments. Based on the logic generated by
9896 # autoconf 2.59.
9897 case $ac_arg in
9898 *=* | --config-cache | -C | -disable-* | --disable-* \
9899 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9900 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9901 | -with-* | --with-* | -without-* | --without-* | --x)
9902 separate_arg=no
9903 ;;
9904 -*)
9905 separate_arg=yes
9906 ;;
9907 *)
9908 separate_arg=no
9909 ;;
9910 esac
9911
65b4571a
AO
9912 skip_targ=no
9913 case $ac_arg in
9914
9915 --with-* | --without-*)
9916 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9917
9918 case $libopt in
9919 *[-_]include)
9920 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9921 ;;
9922 *[-_]lib)
9923 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9924 ;;
9925 *)
9926 lib=$libopt
9927 ;;
9928 esac
9929
9930
9931 case $lib in
1b6c0831 9932 mpc | mpfr | gmp | isl)
65b4571a
AO
9933 # If we're processing --with-$lib, --with-$lib-include or
9934 # --with-$lib-lib, for one of the libs above, and target is
9935 # different from host, don't pass the current argument to any
9936 # target library's configure.
9937 if test x$is_cross_compiler = xyes; then
9938 skip_targ=yes
9939 fi
9940 ;;
9941 esac
9942 ;;
9943 esac
9944
c6b750e1 9945 case "$ac_arg" in
30167e0a
NC
9946 --cache-file=/dev/null | \
9947 -cache-file=/dev/null )
9948 # Handled here to avoid the test to skip args below.
9949 baseargs="$baseargs '$ac_arg'"
65b4571a 9950 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
9951 # Assert: $separate_arg should always be no.
9952 keep_next=$separate_arg
9953 ;;
c6b750e1
DJ
9954 --no*)
9955 continue
9956 ;;
9957 --c* | \
9958 --sr* | \
9959 --ho* | \
9960 --bu* | \
9961 --t* | \
9962 --program-* | \
9963 -cache_file* | \
9964 -srcdir* | \
9965 -host* | \
9966 -build* | \
9967 -target* | \
9968 -program-prefix* | \
9969 -program-suffix* | \
9970 -program-transform-name* )
9971 skip_next=$separate_arg
9972 continue
9973 ;;
9974 -*)
9975 # An option. Add it.
9976 case $ac_arg in
9977 *\'*)
9978 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9979 esac
9980 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
9981 if test X"$skip_targ" = Xno; then
9982 tbaseargs="$tbaseargs '$ac_arg'"
9983 fi
c6b750e1
DJ
9984 keep_next=$separate_arg
9985 ;;
9986 *)
9987 # Either a variable assignment, or a nonopt (triplet). Don't
9988 # pass it down; let the Makefile handle this.
9989 continue
9990 ;;
9991 esac
9992done
9993# Remove the initial space we just introduced and, as these will be
9994# expanded by make, quote '$'.
9995baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 9996
f27d4f92
DJ
9997# Add in --program-transform-name, after --program-prefix and
9998# --program-suffix have been applied to it. Autoconf has already
9999# doubled dollar signs and backslashes in program_transform_name; we want
10000# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 10001# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
10002# Also, because we want to override the logic in subdir configure scripts to
10003# choose program_transform_name, replace any s,x,x, with s,y,y,.
10004sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10005${program_transform_name}
10006EOF_SED
10007gcc_transform_name=`cat conftestsed.out`
10008rm -f conftestsed.out
10009baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 10010tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
10011if test "$silent" = yes; then
10012 baseargs="$baseargs --silent"
65b4571a 10013 tbaseargs="$tbaseargs --silent"
2444379b 10014fi
e5f2f7d9 10015
34a0f3cf 10016baseargs="$baseargs --disable-option-checking"
65b4571a 10017tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 10018
e5f2f7d9
LM
10019if test "$enable_year2038" = no; then
10020 baseargs="$baseargs --disable-year2038"
10021 tbaseargs="$tbaseargs --disable-year2038"
10022fi
10023
4074d5f2
RW
10024# Record and document user additions to sub configure arguments.
10025
10026
10027
10028
a0da8069
NN
10029# For the build-side libraries, we just need to pretend we're native,
10030# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
10031# desired. We can't even use the same cache file for all build-side
10032# libraries, as they're compiled differently; some with C, some with
10033# C++ or with different feature-enabling options.
10034build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
10035
10036# For host modules, accept cache file option, or specification as blank.
10037case "${cache_file}" in
10038"") # empty
10039 cache_file_option="" ;;
10040/* | [A-Za-z]:[\\/]* ) # absolute path
10041 cache_file_option="--cache-file=${cache_file}" ;;
10042*) # relative path
10043 cache_file_option="--cache-file=../${cache_file}" ;;
10044esac
10045
82252c06
NN
10046# Host dirs don't like to share a cache file either, horribly enough.
10047# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 10048host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 10049
65b4571a 10050target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
10051
10052# Passing a --with-cross-host argument lets the target libraries know
10053# whether they are being built with a cross-compiler or being built
10054# native. However, it would be better to use other mechanisms to make the
10055# sorts of decisions they want to make on this basis. Please consider
10056# this option to be deprecated. FIXME.
10057if test x${is_cross_compiler} = xyes ; then
c6b750e1 10058 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
10059fi
10060
afc0578d 10061# Special user-friendly check for native x86_64-linux build, if
10062# multilib is not explicitly enabled.
10063case "$target:$have_compiler:$host:$target:$enable_multilib" in
10064 x86_64-*linux*:yes:$build:$build:)
ce6c656d 10065 # Make sure we have a development environment that handles 32-bit
afc0578d 10066 dev64=no
10067 echo "int main () { return 0; }" > conftest.c
10068 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10069 if test $? = 0 ; then
10070 if test -s conftest || test -s conftest.exe ; then
10071 dev64=yes
10072 fi
10073 fi
10074 rm -f conftest*
10075 if test x${dev64} != xyes ; then
d0ac1c44 10076 as_fn_error $? "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
afc0578d 10077 fi
10078 ;;
10079esac
10080
938d2b74
RW
10081# Default to --enable-multilib.
10082if test x${enable_multilib} = x ; then
a0da8069 10083 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 10084fi
a0da8069
NN
10085
10086# Pass --with-newlib if appropriate. Note that target_configdirs has
10087# changed from the earlier setting of with_newlib.
10088if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10089 target_configargs="--with-newlib ${target_configargs}"
10090fi
10091
95036d20
NN
10092# Different target subdirs use different values of certain variables
10093# (notably CXX). Worse, multilibs use *lots* of different values.
10094# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10095# it doesn't automatically accept command-line overrides of them.
10096# This means it's not safe for target subdirs to share a cache file,
10097# which is disgusting, but there you have it. Hopefully this can be
10098# fixed in future. It's still worthwhile to use a cache file for each
10099# directory. I think.
10100
ae380b45
MS
10101# Pass the appropriate --build, --host, --target and --cache-file arguments.
10102# We need to pass --target, as newer autoconf's requires consistency
10103# for target_alias and gcc doesn't manage it consistently.
4b900473 10104target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 10105
a0da8069
NN
10106FLAGS_FOR_TARGET=
10107case " $target_configdirs " in
10108 *" newlib "*)
10109 case " $target_configargs " in
10110 *" --with-newlib "*)
10111 case "$target" in
1f53ca9a 10112 *-cygwin*)
6d94c122 10113 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 10114 ;;
a0da8069
NN
10115 esac
10116
10117 # If we're not building GCC, don't discard standard headers.
10118 if test -d ${srcdir}/gcc; then
10119 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10120
10121 if test "${build}" != "${host}"; then
10122 # On Canadian crosses, CC_FOR_TARGET will have already been set
10123 # by `configure', so we won't have an opportunity to add -Bgcc/
10124 # to it. This is right: we don't want to search that directory
10125 # for binaries, but we want the header files in there, so add
10126 # them explicitly.
e552509b 10127 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
10128
10129 # Someone might think of using the pre-installed headers on
10130 # Canadian crosses, in case the installed compiler is not fully
10131 # compatible with the compiler being built. In this case, it
10132 # would be better to flag an error than risking having
10133 # incompatible object files being constructed. We can't
10134 # guarantee that an error will be flagged, but let's hope the
10135 # compiler will do it, when presented with incompatible header
10136 # files.
10137 fi
10138 fi
10139
10140 case "${target}-${is_cross_compiler}" in
ec11bdc6 10141 i[3456789]86-*-linux*-no)
a0da8069
NN
10142 # Here host == target, so we don't need to build gcc,
10143 # so we don't want to discard standard headers.
10144 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10145 ;;
10146 *)
10147 # If we're building newlib, use its generic headers last, but search
10148 # for any libc-related directories first (so make it the last -B
10149 # switch).
10150 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
10151
10152 # If we're building libgloss, find the startup file, simulator library
10153 # and linker script.
10154 case " $target_configdirs " in
10155 *" libgloss "*)
10156 # Look for startup file, simulator library and maybe linker script.
10157 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10158 # Look for libnosys.a in case the target needs it.
10159 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10160 # Most targets have the linker script in the source directory.
10161 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10162 ;;
10163 esac
a0da8069
NN
10164 ;;
10165 esac
10166 ;;
10167 esac
10168 ;;
10169esac
1f53ca9a 10170
45055374 10171case "$target" in
1f53ca9a
AO
10172 x86_64-*mingw* | *-w64-mingw*)
10173 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10174 # however, use a symlink named 'mingw' in ${prefix} .
10175 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10176 ;;
10177 *-mingw*)
10178 # MinGW can't be handled as Cygwin above since it does not use newlib.
10179 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'
10180 ;;
45055374 10181esac
a0da8069 10182
5fbad20a
DD
10183# Allow the user to override the flags for
10184# our build compiler if desired.
c66487f8
NC
10185if test x"${build}" = x"${host}" ; then
10186 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
e472ec9f 10187 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
c66487f8
NC
10188 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10189 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10190fi
5fbad20a 10191
a0da8069
NN
10192# On Canadian crosses, we'll be searching the right directories for
10193# the previously-installed cross compiler, so don't bother to add
10194# flags for directories within the install tree of the compiler
10195# being built; programs in there won't even run.
10196if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10197 # Search for pre-installed headers if nothing else fits.
bba45b8b 10198 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
10199fi
10200
10201if test "x${use_gnu_ld}" = x &&
10202 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10203 # Arrange for us to find uninstalled linker scripts.
b00612cc 10204 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
10205fi
10206
a481dbb7
DD
10207# Search for other target-specific linker scripts and such.
10208case "${target}" in
4e206d7e
DB
10209 mep*)
10210 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10211 ;;
228cf97d
AM
10212 # The VxWorks support for shared libraries is getting in
10213 # incrementally. Make sure it doesn't get activated implicitly:
10214 *vxworks*)
10215 if test "${enable_shared-unset}" = unset ; then
10216 enable_shared=no
10217 # So the build of libraries knows ...
10218 target_configargs="${target_configargs} --disable-shared"
10219 # So gcc knows ...
10220 host_configargs="${host_configargs} --disable-shared"
10221 fi
10222 ;;
4e206d7e
DB
10223esac
10224
a0da8069 10225# Makefile fragments.
3e707e94
PB
10226for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10227do
10228 eval fragval=\$$frag
10229 if test $fragval != /dev/null; then
10230 eval $frag=${srcdir}/$fragval
10231 fi
10232done
a0da8069
NN
10233
10234
10235
10236
10237
10238# Miscellanea: directories, flags, etc.
10239
10240
10241
10242
10243
10244
10245
3bbd2f8f 10246
6a9cf61e 10247# Build module lists & subconfigure args.
a0da8069
NN
10248
10249
10250
be01d343
PB
10251# Host module lists & subconfigure args.
10252
10253
10254
911e63d0 10255
be01d343
PB
10256# Target module lists & subconfigure args.
10257
10258
10259
10260# Build tools.
10261
10262
10263
1576798e
PB
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
e472ec9f 10277
228cf97d
AM
10278
10279
10280
be01d343
PB
10281# Generate default definitions for YACC, M4, LEX and other programs that run
10282# on the build machine. These are used if the Makefile can't locate these
10283# programs in objdir.
10284MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10285
10286for ac_prog in 'bison -y' byacc yacc
10287do
c6b750e1 10288 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10289set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10292if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 10293 $as_echo_n "(cached) " >&6
be01d343
PB
10294else
10295 if test -n "$YACC"; then
10296 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10297else
c6b750e1
DJ
10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
81ecdfbb 10303 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10305 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10307 break 2
10308 fi
10309done
81ecdfbb
RW
10310 done
10311IFS=$as_save_IFS
c6b750e1 10312
be01d343
PB
10313fi
10314fi
c6b750e1 10315YACC=$ac_cv_prog_YACC
be01d343 10316if test -n "$YACC"; then
81ecdfbb
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10318$as_echo "$YACC" >&6; }
be01d343 10319else
81ecdfbb
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
be01d343
PB
10322fi
10323
81ecdfbb 10324
c6b750e1 10325 test -n "$YACC" && break
be01d343
PB
10326done
10327test -n "$YACC" || YACC="$MISSING bison -y"
10328
10329case " $build_configdirs " in
10330 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
10331esac
10332
10333for ac_prog in bison
10334do
c6b750e1 10335 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10336set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10338$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10339if ${ac_cv_prog_BISON+:} false; then :
81ecdfbb 10340 $as_echo_n "(cached) " >&6
be01d343
PB
10341else
10342 if test -n "$BISON"; then
10343 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10344else
c6b750e1
DJ
10345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346for as_dir in $PATH
10347do
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
81ecdfbb 10350 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10352 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10354 break 2
10355 fi
10356done
81ecdfbb
RW
10357 done
10358IFS=$as_save_IFS
c6b750e1 10359
be01d343
PB
10360fi
10361fi
c6b750e1 10362BISON=$ac_cv_prog_BISON
be01d343 10363if test -n "$BISON"; then
81ecdfbb
RW
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10365$as_echo "$BISON" >&6; }
be01d343 10366else
81ecdfbb
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10368$as_echo "no" >&6; }
be01d343
PB
10369fi
10370
81ecdfbb 10371
c6b750e1 10372 test -n "$BISON" && break
be01d343
PB
10373done
10374test -n "$BISON" || BISON="$MISSING bison"
10375
10376case " $build_configdirs " in
10377 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10378esac
10379
10380for ac_prog in gm4 gnum4 m4
10381do
c6b750e1 10382 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10383set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10386if ${ac_cv_prog_M4+:} false; then :
81ecdfbb 10387 $as_echo_n "(cached) " >&6
be01d343
PB
10388else
10389 if test -n "$M4"; then
10390 ac_cv_prog_M4="$M4" # Let the user override the test.
10391else
c6b750e1
DJ
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
81ecdfbb 10397 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10399 ac_cv_prog_M4="$ac_prog"
81ecdfbb 10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10401 break 2
10402 fi
10403done
81ecdfbb
RW
10404 done
10405IFS=$as_save_IFS
c6b750e1 10406
be01d343
PB
10407fi
10408fi
c6b750e1 10409M4=$ac_cv_prog_M4
be01d343 10410if test -n "$M4"; then
81ecdfbb
RW
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10412$as_echo "$M4" >&6; }
be01d343 10413else
81ecdfbb
RW
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415$as_echo "no" >&6; }
be01d343
PB
10416fi
10417
81ecdfbb 10418
c6b750e1 10419 test -n "$M4" && break
be01d343
PB
10420done
10421test -n "$M4" || M4="$MISSING m4"
10422
10423case " $build_configdirs " in
10424 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10425esac
10426
10427for ac_prog in flex lex
10428do
c6b750e1 10429 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10430set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10432$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10433if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 10434 $as_echo_n "(cached) " >&6
be01d343
PB
10435else
10436 if test -n "$LEX"; then
10437 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10438else
c6b750e1
DJ
10439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440for as_dir in $PATH
10441do
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
81ecdfbb 10444 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10446 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10448 break 2
10449 fi
10450done
81ecdfbb
RW
10451 done
10452IFS=$as_save_IFS
c6b750e1 10453
be01d343
PB
10454fi
10455fi
c6b750e1 10456LEX=$ac_cv_prog_LEX
be01d343 10457if test -n "$LEX"; then
81ecdfbb
RW
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10459$as_echo "$LEX" >&6; }
be01d343 10460else
81ecdfbb
RW
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462$as_echo "no" >&6; }
be01d343
PB
10463fi
10464
81ecdfbb 10465
c6b750e1 10466 test -n "$LEX" && break
be01d343
PB
10467done
10468test -n "$LEX" || LEX="$MISSING flex"
10469
10470case " $build_configdirs " in
10471 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10472 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10473esac
10474
10475for ac_prog in flex
10476do
c6b750e1 10477 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10478set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10481if ${ac_cv_prog_FLEX+:} false; then :
81ecdfbb 10482 $as_echo_n "(cached) " >&6
be01d343
PB
10483else
10484 if test -n "$FLEX"; then
10485 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10486else
c6b750e1
DJ
10487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488for as_dir in $PATH
10489do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
81ecdfbb 10492 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10494 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10496 break 2
10497 fi
10498done
81ecdfbb
RW
10499 done
10500IFS=$as_save_IFS
c6b750e1 10501
be01d343
PB
10502fi
10503fi
c6b750e1 10504FLEX=$ac_cv_prog_FLEX
be01d343 10505if test -n "$FLEX"; then
81ecdfbb
RW
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10507$as_echo "$FLEX" >&6; }
be01d343 10508else
81ecdfbb
RW
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510$as_echo "no" >&6; }
be01d343
PB
10511fi
10512
81ecdfbb 10513
c6b750e1 10514 test -n "$FLEX" && break
be01d343
PB
10515done
10516test -n "$FLEX" || FLEX="$MISSING flex"
10517
10518case " $build_configdirs " in
10519 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10520esac
10521
10522for ac_prog in makeinfo
10523do
c6b750e1 10524 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10525set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10527$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10528if ${ac_cv_prog_MAKEINFO+:} false; then :
81ecdfbb 10529 $as_echo_n "(cached) " >&6
be01d343
PB
10530else
10531 if test -n "$MAKEINFO"; then
10532 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10533else
c6b750e1
DJ
10534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535for as_dir in $PATH
10536do
10537 IFS=$as_save_IFS
10538 test -z "$as_dir" && as_dir=.
81ecdfbb 10539 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10541 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 10542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10543 break 2
10544 fi
10545done
81ecdfbb
RW
10546 done
10547IFS=$as_save_IFS
c6b750e1 10548
be01d343
PB
10549fi
10550fi
c6b750e1 10551MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 10552if test -n "$MAKEINFO"; then
81ecdfbb
RW
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10554$as_echo "$MAKEINFO" >&6; }
be01d343 10555else
81ecdfbb
RW
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557$as_echo "no" >&6; }
be01d343
PB
10558fi
10559
81ecdfbb 10560
c6b750e1 10561 test -n "$MAKEINFO" && break
be01d343
PB
10562done
10563test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10564
10565case " $build_configdirs " in
10566 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10567 *)
10568
10ad8ef3 10569 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
10570 # higher, else we use the "missing" dummy.
10571 if ${MAKEINFO} --version \
10ad8ef3 10572 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
10573 :
10574 else
10575 MAKEINFO="$MISSING makeinfo"
10576 fi
10577 ;;
10578
10579esac
a0da8069 10580
be01d343 10581# FIXME: expect and dejagnu may become build tools?
a0da8069 10582
be01d343
PB
10583for ac_prog in expect
10584do
c6b750e1 10585 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10586set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10589if ${ac_cv_prog_EXPECT+:} false; then :
81ecdfbb 10590 $as_echo_n "(cached) " >&6
be01d343
PB
10591else
10592 if test -n "$EXPECT"; then
10593 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10594else
c6b750e1
DJ
10595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596for as_dir in $PATH
10597do
10598 IFS=$as_save_IFS
10599 test -z "$as_dir" && as_dir=.
81ecdfbb 10600 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10602 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 10603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10604 break 2
10605 fi
10606done
81ecdfbb
RW
10607 done
10608IFS=$as_save_IFS
c6b750e1 10609
be01d343
PB
10610fi
10611fi
c6b750e1 10612EXPECT=$ac_cv_prog_EXPECT
be01d343 10613if test -n "$EXPECT"; then
81ecdfbb
RW
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10615$as_echo "$EXPECT" >&6; }
be01d343 10616else
81ecdfbb
RW
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10618$as_echo "no" >&6; }
be01d343 10619fi
a0da8069 10620
81ecdfbb 10621
c6b750e1 10622 test -n "$EXPECT" && break
be01d343
PB
10623done
10624test -n "$EXPECT" || EXPECT="expect"
a0da8069 10625
be01d343
PB
10626case " $configdirs " in
10627 *" expect "*)
10628 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10629 ;;
10630esac
a0da8069 10631
be01d343
PB
10632for ac_prog in runtest
10633do
c6b750e1 10634 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 10635set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10637$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10638if ${ac_cv_prog_RUNTEST+:} false; then :
81ecdfbb 10639 $as_echo_n "(cached) " >&6
be01d343
PB
10640else
10641 if test -n "$RUNTEST"; then
10642 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10643else
c6b750e1
DJ
10644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645for as_dir in $PATH
10646do
10647 IFS=$as_save_IFS
10648 test -z "$as_dir" && as_dir=.
81ecdfbb 10649 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10651 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 10652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10653 break 2
10654 fi
10655done
81ecdfbb
RW
10656 done
10657IFS=$as_save_IFS
c6b750e1 10658
be01d343
PB
10659fi
10660fi
c6b750e1 10661RUNTEST=$ac_cv_prog_RUNTEST
be01d343 10662if test -n "$RUNTEST"; then
81ecdfbb
RW
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10664$as_echo "$RUNTEST" >&6; }
be01d343 10665else
81ecdfbb
RW
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
be01d343 10668fi
a0da8069 10669
81ecdfbb 10670
c6b750e1 10671 test -n "$RUNTEST" && break
be01d343
PB
10672done
10673test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 10674
be01d343
PB
10675case " $configdirs " in
10676 *" dejagnu "*)
6b89cc21 10677 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
10678 ;;
10679esac
a0da8069
NN
10680
10681
a0da8069 10682# Host tools.
859789af
AC
10683ncn_tool_prefix=
10684test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10685ncn_target_tool_prefix=
10686test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10687
9a819804
AO
10688
10689
10690if test -n "$AR"; then
10691 ac_cv_prog_AR=$AR
10692elif test -n "$ac_cv_prog_AR"; then
10693 AR=$ac_cv_prog_AR
10694fi
10695
10696if test -n "$ac_cv_prog_AR"; then
10697 for ncn_progname in ar; do
10698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10699set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10701$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10702if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10703 $as_echo_n "(cached) " >&6
9a819804
AO
10704else
10705 if test -n "$AR"; then
10706 ac_cv_prog_AR="$AR" # Let the user override the test.
10707else
10708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709for as_dir in $PATH
10710do
10711 IFS=$as_save_IFS
10712 test -z "$as_dir" && as_dir=.
81ecdfbb 10713 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10715 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 10716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10717 break 2
10718 fi
10719done
81ecdfbb
RW
10720 done
10721IFS=$as_save_IFS
9a819804
AO
10722
10723fi
10724fi
10725AR=$ac_cv_prog_AR
10726if test -n "$AR"; then
81ecdfbb
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10728$as_echo "$AR" >&6; }
9a819804 10729else
81ecdfbb
RW
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10731$as_echo "no" >&6; }
9a819804
AO
10732fi
10733
81ecdfbb 10734
9a819804
AO
10735 done
10736fi
10737
10738for ncn_progname in ar; do
05cbd757
PB
10739 if test -n "$ncn_tool_prefix"; then
10740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10744if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10745 $as_echo_n "(cached) " >&6
859789af
AC
10746else
10747 if test -n "$AR"; then
10748 ac_cv_prog_AR="$AR" # Let the user override the test.
10749else
c6b750e1
DJ
10750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751for as_dir in $PATH
10752do
10753 IFS=$as_save_IFS
10754 test -z "$as_dir" && as_dir=.
81ecdfbb 10755 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10757 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10759 break 2
10760 fi
10761done
81ecdfbb
RW
10762 done
10763IFS=$as_save_IFS
c6b750e1 10764
859789af
AC
10765fi
10766fi
c6b750e1 10767AR=$ac_cv_prog_AR
859789af 10768if test -n "$AR"; then
81ecdfbb
RW
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10770$as_echo "$AR" >&6; }
859789af 10771else
81ecdfbb
RW
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773$as_echo "no" >&6; }
859789af
AC
10774fi
10775
81ecdfbb 10776
05cbd757
PB
10777 fi
10778 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10780set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10783if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 10784 $as_echo_n "(cached) " >&6
859789af 10785else
05cbd757
PB
10786 if test -n "$AR"; then
10787 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 10788else
c6b750e1
DJ
10789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790for as_dir in $PATH
10791do
10792 IFS=$as_save_IFS
10793 test -z "$as_dir" && as_dir=.
81ecdfbb 10794 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10796 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 10797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10798 break 2
10799 fi
10800done
81ecdfbb
RW
10801 done
10802IFS=$as_save_IFS
c6b750e1 10803
859789af
AC
10804fi
10805fi
c6b750e1 10806AR=$ac_cv_prog_AR
05cbd757 10807if test -n "$AR"; then
81ecdfbb
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10809$as_echo "$AR" >&6; }
859789af 10810else
81ecdfbb
RW
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812$as_echo "no" >&6; }
859789af 10813fi
c6b750e1 10814
81ecdfbb 10815
05cbd757
PB
10816 fi
10817 test -n "$ac_cv_prog_AR" && break
10818done
10819
10820if test -z "$ac_cv_prog_AR" ; then
10821 set dummy ar
10822 if test $build = $host ; then
10823 AR="$2"
859789af 10824 else
05cbd757 10825 AR="${ncn_tool_prefix}$2"
859789af 10826 fi
859789af
AC
10827fi
10828
9a819804
AO
10829
10830
10831if test -n "$AS"; then
10832 ac_cv_prog_AS=$AS
10833elif test -n "$ac_cv_prog_AS"; then
10834 AS=$ac_cv_prog_AS
10835fi
10836
10837if test -n "$ac_cv_prog_AS"; then
10838 for ncn_progname in as; do
10839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10840set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10842$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10843if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 10844 $as_echo_n "(cached) " >&6
9a819804
AO
10845else
10846 if test -n "$AS"; then
10847 ac_cv_prog_AS="$AS" # Let the user override the test.
10848else
10849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850for as_dir in $PATH
10851do
10852 IFS=$as_save_IFS
10853 test -z "$as_dir" && as_dir=.
81ecdfbb 10854 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10856 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 10857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10858 break 2
10859 fi
10860done
81ecdfbb
RW
10861 done
10862IFS=$as_save_IFS
9a819804
AO
10863
10864fi
10865fi
10866AS=$ac_cv_prog_AS
10867if test -n "$AS"; then
81ecdfbb
RW
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10869$as_echo "$AS" >&6; }
9a819804 10870else
81ecdfbb
RW
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872$as_echo "no" >&6; }
9a819804
AO
10873fi
10874
81ecdfbb 10875
9a819804
AO
10876 done
10877fi
10878
10879for ncn_progname in as; do
05cbd757
PB
10880 if test -n "$ncn_tool_prefix"; then
10881 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10882set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10885if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 10886 $as_echo_n "(cached) " >&6
859789af
AC
10887else
10888 if test -n "$AS"; then
10889 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
10890else
10891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892for as_dir in $PATH
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
81ecdfbb 10896 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10898 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10900 break 2
10901 fi
10902done
81ecdfbb
RW
10903 done
10904IFS=$as_save_IFS
c6b750e1 10905
859789af
AC
10906fi
10907fi
c6b750e1 10908AS=$ac_cv_prog_AS
859789af 10909if test -n "$AS"; then
81ecdfbb
RW
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10911$as_echo "$AS" >&6; }
859789af 10912else
81ecdfbb
RW
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914$as_echo "no" >&6; }
859789af
AC
10915fi
10916
81ecdfbb 10917
05cbd757
PB
10918 fi
10919 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10921set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10923$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10924if ${ac_cv_prog_AS+:} false; then :
81ecdfbb 10925 $as_echo_n "(cached) " >&6
859789af 10926else
05cbd757
PB
10927 if test -n "$AS"; then
10928 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 10929else
c6b750e1
DJ
10930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931for as_dir in $PATH
10932do
10933 IFS=$as_save_IFS
10934 test -z "$as_dir" && as_dir=.
81ecdfbb 10935 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 10937 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 10938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10939 break 2
10940 fi
10941done
81ecdfbb
RW
10942 done
10943IFS=$as_save_IFS
c6b750e1 10944
859789af
AC
10945fi
10946fi
c6b750e1 10947AS=$ac_cv_prog_AS
05cbd757 10948if test -n "$AS"; then
81ecdfbb
RW
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10950$as_echo "$AS" >&6; }
859789af 10951else
81ecdfbb
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
859789af 10954fi
c6b750e1 10955
81ecdfbb 10956
05cbd757
PB
10957 fi
10958 test -n "$ac_cv_prog_AS" && break
10959done
10960
10961if test -z "$ac_cv_prog_AS" ; then
10962 set dummy as
10963 if test $build = $host ; then
10964 AS="$2"
859789af 10965 else
05cbd757 10966 AS="${ncn_tool_prefix}$2"
859789af 10967 fi
859789af
AC
10968fi
10969
9a819804
AO
10970
10971
10972if test -n "$DLLTOOL"; then
10973 ac_cv_prog_DLLTOOL=$DLLTOOL
10974elif test -n "$ac_cv_prog_DLLTOOL"; then
10975 DLLTOOL=$ac_cv_prog_DLLTOOL
10976fi
10977
10978if test -n "$ac_cv_prog_DLLTOOL"; then
10979 for ncn_progname in dlltool; do
10980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10981set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 10984if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 10985 $as_echo_n "(cached) " >&6
9a819804
AO
10986else
10987 if test -n "$DLLTOOL"; then
10988 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10989else
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
81ecdfbb 10995 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 10996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 10997 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10999 break 2
11000 fi
11001done
81ecdfbb
RW
11002 done
11003IFS=$as_save_IFS
9a819804
AO
11004
11005fi
11006fi
11007DLLTOOL=$ac_cv_prog_DLLTOOL
11008if test -n "$DLLTOOL"; then
81ecdfbb
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11010$as_echo "$DLLTOOL" >&6; }
9a819804 11011else
81ecdfbb
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
9a819804
AO
11014fi
11015
81ecdfbb 11016
9a819804
AO
11017 done
11018fi
11019
11020for ncn_progname in dlltool; do
05cbd757
PB
11021 if test -n "$ncn_tool_prefix"; then
11022 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11023set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11026if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11027 $as_echo_n "(cached) " >&6
859789af
AC
11028else
11029 if test -n "$DLLTOOL"; then
11030 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11031else
c6b750e1
DJ
11032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033for as_dir in $PATH
11034do
11035 IFS=$as_save_IFS
11036 test -z "$as_dir" && as_dir=.
81ecdfbb 11037 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11039 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11041 break 2
11042 fi
11043done
81ecdfbb
RW
11044 done
11045IFS=$as_save_IFS
c6b750e1 11046
859789af
AC
11047fi
11048fi
c6b750e1 11049DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 11050if test -n "$DLLTOOL"; then
81ecdfbb
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11052$as_echo "$DLLTOOL" >&6; }
859789af 11053else
81ecdfbb
RW
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11055$as_echo "no" >&6; }
859789af
AC
11056fi
11057
81ecdfbb 11058
05cbd757
PB
11059 fi
11060 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11062set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11065if ${ac_cv_prog_DLLTOOL+:} false; then :
81ecdfbb 11066 $as_echo_n "(cached) " >&6
859789af 11067else
05cbd757
PB
11068 if test -n "$DLLTOOL"; then
11069 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 11070else
c6b750e1
DJ
11071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072for as_dir in $PATH
11073do
11074 IFS=$as_save_IFS
11075 test -z "$as_dir" && as_dir=.
81ecdfbb 11076 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11078 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11080 break 2
11081 fi
11082done
81ecdfbb
RW
11083 done
11084IFS=$as_save_IFS
c6b750e1 11085
859789af
AC
11086fi
11087fi
c6b750e1 11088DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 11089if test -n "$DLLTOOL"; then
81ecdfbb
RW
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11091$as_echo "$DLLTOOL" >&6; }
859789af 11092else
81ecdfbb
RW
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
859789af 11095fi
c6b750e1 11096
81ecdfbb 11097
05cbd757
PB
11098 fi
11099 test -n "$ac_cv_prog_DLLTOOL" && break
11100done
11101
11102if test -z "$ac_cv_prog_DLLTOOL" ; then
11103 set dummy dlltool
11104 if test $build = $host ; then
11105 DLLTOOL="$2"
859789af 11106 else
05cbd757 11107 DLLTOOL="${ncn_tool_prefix}$2"
859789af 11108 fi
859789af
AC
11109fi
11110
9a819804
AO
11111
11112
228cf97d
AM
11113if test -n "$DSYMUTIL"; then
11114 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11115elif test -n "$ac_cv_prog_DSYMUTIL"; then
11116 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11117fi
11118
11119if test -n "$ac_cv_prog_DSYMUTIL"; then
11120 for ncn_progname in dsymutil; do
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11122set dummy ${ncn_progname}; ac_word=$2
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124$as_echo_n "checking for $ac_word... " >&6; }
11125if ${ac_cv_prog_DSYMUTIL+:} false; then :
11126 $as_echo_n "(cached) " >&6
11127else
11128 if test -n "$DSYMUTIL"; then
11129 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11130else
11131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132for as_dir in $PATH
11133do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 break 2
11141 fi
11142done
11143 done
11144IFS=$as_save_IFS
11145
11146fi
11147fi
11148DSYMUTIL=$ac_cv_prog_DSYMUTIL
11149if test -n "$DSYMUTIL"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11151$as_echo "$DSYMUTIL" >&6; }
11152else
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
11155fi
11156
11157
11158 done
11159fi
11160
11161for ncn_progname in dsymutil; do
11162 if test -n "$ncn_tool_prefix"; then
11163 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11164set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166$as_echo_n "checking for $ac_word... " >&6; }
11167if ${ac_cv_prog_DSYMUTIL+:} false; then :
11168 $as_echo_n "(cached) " >&6
11169else
11170 if test -n "$DSYMUTIL"; then
11171 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11172else
11173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $PATH
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184done
11185 done
11186IFS=$as_save_IFS
11187
11188fi
11189fi
11190DSYMUTIL=$ac_cv_prog_DSYMUTIL
11191if test -n "$DSYMUTIL"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11193$as_echo "$DSYMUTIL" >&6; }
11194else
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196$as_echo "no" >&6; }
11197fi
11198
11199
11200 fi
11201 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203set dummy ${ncn_progname}; ac_word=$2
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205$as_echo_n "checking for $ac_word... " >&6; }
11206if ${ac_cv_prog_DSYMUTIL+:} false; then :
11207 $as_echo_n "(cached) " >&6
11208else
11209 if test -n "$DSYMUTIL"; then
11210 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11211else
11212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213for as_dir in $PATH
11214do
11215 IFS=$as_save_IFS
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 break 2
11222 fi
11223done
11224 done
11225IFS=$as_save_IFS
11226
11227fi
11228fi
11229DSYMUTIL=$ac_cv_prog_DSYMUTIL
11230if test -n "$DSYMUTIL"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11232$as_echo "$DSYMUTIL" >&6; }
11233else
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11235$as_echo "no" >&6; }
11236fi
11237
11238
11239 fi
11240 test -n "$ac_cv_prog_DSYMUTIL" && break
11241done
11242
11243if test -z "$ac_cv_prog_DSYMUTIL" ; then
11244 set dummy dsymutil
11245 if test $build = $host ; then
11246 DSYMUTIL="$2"
11247 else
11248 DSYMUTIL="${ncn_tool_prefix}$2"
11249 fi
11250fi
11251
11252
11253
9a819804
AO
11254if test -n "$LD"; then
11255 ac_cv_prog_LD=$LD
11256elif test -n "$ac_cv_prog_LD"; then
11257 LD=$ac_cv_prog_LD
11258fi
11259
11260if test -n "$ac_cv_prog_LD"; then
11261 for ncn_progname in ld; do
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11266if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11267 $as_echo_n "(cached) " >&6
9a819804
AO
11268else
11269 if test -n "$LD"; then
11270 ac_cv_prog_LD="$LD" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
81ecdfbb 11277 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11279 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11281 break 2
11282 fi
11283done
81ecdfbb
RW
11284 done
11285IFS=$as_save_IFS
9a819804
AO
11286
11287fi
11288fi
11289LD=$ac_cv_prog_LD
11290if test -n "$LD"; then
81ecdfbb
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11292$as_echo "$LD" >&6; }
9a819804 11293else
81ecdfbb
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
9a819804
AO
11296fi
11297
81ecdfbb 11298
9a819804
AO
11299 done
11300fi
11301
11302for ncn_progname in ld; do
05cbd757
PB
11303 if test -n "$ncn_tool_prefix"; then
11304 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11305set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11307$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11308if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11309 $as_echo_n "(cached) " >&6
859789af
AC
11310else
11311 if test -n "$LD"; then
11312 ac_cv_prog_LD="$LD" # Let the user override the test.
11313else
c6b750e1
DJ
11314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315for as_dir in $PATH
11316do
11317 IFS=$as_save_IFS
11318 test -z "$as_dir" && as_dir=.
81ecdfbb 11319 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11321 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11323 break 2
11324 fi
11325done
81ecdfbb
RW
11326 done
11327IFS=$as_save_IFS
c6b750e1 11328
859789af
AC
11329fi
11330fi
c6b750e1 11331LD=$ac_cv_prog_LD
859789af 11332if test -n "$LD"; then
81ecdfbb
RW
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11334$as_echo "$LD" >&6; }
859789af 11335else
81ecdfbb
RW
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11337$as_echo "no" >&6; }
859789af
AC
11338fi
11339
81ecdfbb 11340
05cbd757
PB
11341 fi
11342 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11344set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11346$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11347if ${ac_cv_prog_LD+:} false; then :
81ecdfbb 11348 $as_echo_n "(cached) " >&6
859789af 11349else
05cbd757
PB
11350 if test -n "$LD"; then
11351 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 11352else
c6b750e1
DJ
11353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354for as_dir in $PATH
11355do
11356 IFS=$as_save_IFS
11357 test -z "$as_dir" && as_dir=.
81ecdfbb 11358 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11360 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 11361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11362 break 2
11363 fi
11364done
81ecdfbb
RW
11365 done
11366IFS=$as_save_IFS
c6b750e1 11367
859789af
AC
11368fi
11369fi
c6b750e1 11370LD=$ac_cv_prog_LD
05cbd757 11371if test -n "$LD"; then
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11373$as_echo "$LD" >&6; }
859789af 11374else
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
859789af 11377fi
c6b750e1 11378
81ecdfbb 11379
05cbd757
PB
11380 fi
11381 test -n "$ac_cv_prog_LD" && break
11382done
11383
11384if test -z "$ac_cv_prog_LD" ; then
11385 set dummy ld
11386 if test $build = $host ; then
11387 LD="$2"
859789af 11388 else
05cbd757 11389 LD="${ncn_tool_prefix}$2"
859789af 11390 fi
859789af
AC
11391fi
11392
9a819804
AO
11393
11394
11395if test -n "$LIPO"; then
11396 ac_cv_prog_LIPO=$LIPO
11397elif test -n "$ac_cv_prog_LIPO"; then
11398 LIPO=$ac_cv_prog_LIPO
11399fi
11400
11401if test -n "$ac_cv_prog_LIPO"; then
11402 for ncn_progname in lipo; do
11403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11404set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11407if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11408 $as_echo_n "(cached) " >&6
9a819804
AO
11409else
11410 if test -n "$LIPO"; then
11411 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11412else
11413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414for as_dir in $PATH
11415do
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
81ecdfbb 11418 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11420 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11422 break 2
11423 fi
11424done
81ecdfbb
RW
11425 done
11426IFS=$as_save_IFS
9a819804
AO
11427
11428fi
11429fi
11430LIPO=$ac_cv_prog_LIPO
11431if test -n "$LIPO"; then
81ecdfbb
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11433$as_echo "$LIPO" >&6; }
9a819804 11434else
81ecdfbb
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
9a819804
AO
11437fi
11438
81ecdfbb 11439
9a819804
AO
11440 done
11441fi
11442
11443for ncn_progname in lipo; do
be01d343
PB
11444 if test -n "$ncn_tool_prefix"; then
11445 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11446set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11448$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11449if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11450 $as_echo_n "(cached) " >&6
be01d343
PB
11451else
11452 if test -n "$LIPO"; then
11453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11454else
c6b750e1
DJ
11455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456for as_dir in $PATH
11457do
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
81ecdfbb 11460 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11462 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11464 break 2
11465 fi
11466done
81ecdfbb
RW
11467 done
11468IFS=$as_save_IFS
c6b750e1 11469
be01d343
PB
11470fi
11471fi
c6b750e1 11472LIPO=$ac_cv_prog_LIPO
be01d343 11473if test -n "$LIPO"; then
81ecdfbb
RW
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11475$as_echo "$LIPO" >&6; }
be01d343 11476else
81ecdfbb
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478$as_echo "no" >&6; }
be01d343
PB
11479fi
11480
81ecdfbb 11481
be01d343
PB
11482 fi
11483 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11485set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11488if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 11489 $as_echo_n "(cached) " >&6
be01d343
PB
11490else
11491 if test -n "$LIPO"; then
11492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11493else
c6b750e1
DJ
11494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495for as_dir in $PATH
11496do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
81ecdfbb 11499 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11501 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11503 break 2
11504 fi
11505done
81ecdfbb
RW
11506 done
11507IFS=$as_save_IFS
c6b750e1 11508
be01d343
PB
11509fi
11510fi
c6b750e1 11511LIPO=$ac_cv_prog_LIPO
be01d343 11512if test -n "$LIPO"; then
81ecdfbb
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11514$as_echo "$LIPO" >&6; }
be01d343 11515else
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517$as_echo "no" >&6; }
be01d343 11518fi
c6b750e1 11519
81ecdfbb 11520
be01d343
PB
11521 fi
11522 test -n "$ac_cv_prog_LIPO" && break
11523done
11524
11525if test -z "$ac_cv_prog_LIPO" ; then
11526 set dummy lipo
11527 if test $build = $host ; then
11528 LIPO="$2"
11529 else
11530 LIPO="${ncn_tool_prefix}$2"
11531 fi
11532fi
11533
9a819804
AO
11534
11535
11536if test -n "$NM"; then
11537 ac_cv_prog_NM=$NM
11538elif test -n "$ac_cv_prog_NM"; then
11539 NM=$ac_cv_prog_NM
11540fi
11541
11542if test -n "$ac_cv_prog_NM"; then
11543 for ncn_progname in nm; do
11544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11545set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11548if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11549 $as_echo_n "(cached) " >&6
859789af
AC
11550else
11551 if test -n "$NM"; then
11552 ac_cv_prog_NM="$NM" # Let the user override the test.
11553else
c6b750e1
DJ
11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
81ecdfbb 11559 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11561 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11563 break 2
11564 fi
11565done
81ecdfbb
RW
11566 done
11567IFS=$as_save_IFS
c6b750e1 11568
859789af
AC
11569fi
11570fi
c6b750e1 11571NM=$ac_cv_prog_NM
859789af 11572if test -n "$NM"; then
81ecdfbb
RW
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11574$as_echo "$NM" >&6; }
859789af 11575else
81ecdfbb
RW
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11577$as_echo "no" >&6; }
859789af
AC
11578fi
11579
81ecdfbb 11580
9a819804
AO
11581 done
11582fi
11583
11584for ncn_progname in nm; do
11585 if test -n "$ncn_tool_prefix"; then
11586 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11587set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11590if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11591 $as_echo_n "(cached) " >&6
859789af 11592else
05cbd757
PB
11593 if test -n "$NM"; then
11594 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 11595else
c6b750e1
DJ
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
81ecdfbb 11601 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11603 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11605 break 2
11606 fi
11607done
81ecdfbb
RW
11608 done
11609IFS=$as_save_IFS
c6b750e1 11610
859789af
AC
11611fi
11612fi
c6b750e1 11613NM=$ac_cv_prog_NM
05cbd757 11614if test -n "$NM"; then
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11616$as_echo "$NM" >&6; }
859789af 11617else
81ecdfbb
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
859789af 11620fi
c6b750e1 11621
81ecdfbb 11622
05cbd757 11623 fi
9a819804
AO
11624 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11626set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11629if ${ac_cv_prog_NM+:} false; then :
81ecdfbb 11630 $as_echo_n "(cached) " >&6
9a819804
AO
11631else
11632 if test -n "$NM"; then
11633 ac_cv_prog_NM="$NM" # Let the user override the test.
11634else
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
81ecdfbb 11640 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11642 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11644 break 2
11645 fi
11646done
81ecdfbb
RW
11647 done
11648IFS=$as_save_IFS
9a819804
AO
11649
11650fi
11651fi
11652NM=$ac_cv_prog_NM
11653if test -n "$NM"; then
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11655$as_echo "$NM" >&6; }
9a819804 11656else
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
9a819804
AO
11659fi
11660
81ecdfbb 11661
9a819804
AO
11662 fi
11663 test -n "$ac_cv_prog_NM" && break
11664done
11665
11666if test -z "$ac_cv_prog_NM" ; then
11667 set dummy nm
11668 if test $build = $host ; then
11669 NM="$2"
11670 else
11671 NM="${ncn_tool_prefix}$2"
11672 fi
11673fi
11674
11675
11676
11677if test -n "$RANLIB"; then
11678 ac_cv_prog_RANLIB=$RANLIB
11679elif test -n "$ac_cv_prog_RANLIB"; then
11680 RANLIB=$ac_cv_prog_RANLIB
11681fi
11682
11683if test -n "$ac_cv_prog_RANLIB"; then
11684 for ncn_progname in ranlib; do
11685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11686set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11689if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11690 $as_echo_n "(cached) " >&6
9a819804
AO
11691else
11692 if test -n "$RANLIB"; then
11693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
81ecdfbb 11700 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11702 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11704 break 2
11705 fi
11706done
81ecdfbb
RW
11707 done
11708IFS=$as_save_IFS
9a819804
AO
11709
11710fi
11711fi
11712RANLIB=$ac_cv_prog_RANLIB
11713if test -n "$RANLIB"; then
81ecdfbb
RW
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11715$as_echo "$RANLIB" >&6; }
9a819804 11716else
81ecdfbb
RW
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
9a819804
AO
11719fi
11720
81ecdfbb 11721
9a819804
AO
11722 done
11723fi
859789af 11724
9a819804 11725for ncn_progname in ranlib; do
05cbd757
PB
11726 if test -n "$ncn_tool_prefix"; then
11727 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11728set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11731if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11732 $as_echo_n "(cached) " >&6
859789af
AC
11733else
11734 if test -n "$RANLIB"; then
11735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11736else
c6b750e1
DJ
11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740 IFS=$as_save_IFS
11741 test -z "$as_dir" && as_dir=.
81ecdfbb 11742 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11744 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11746 break 2
11747 fi
11748done
81ecdfbb
RW
11749 done
11750IFS=$as_save_IFS
c6b750e1 11751
859789af
AC
11752fi
11753fi
c6b750e1 11754RANLIB=$ac_cv_prog_RANLIB
859789af 11755if test -n "$RANLIB"; then
81ecdfbb
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11757$as_echo "$RANLIB" >&6; }
859789af 11758else
81ecdfbb
RW
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
859789af
AC
11761fi
11762
81ecdfbb 11763
05cbd757
PB
11764 fi
11765 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11767set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11770if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 11771 $as_echo_n "(cached) " >&6
859789af 11772else
05cbd757
PB
11773 if test -n "$RANLIB"; then
11774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 11775else
c6b750e1
DJ
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
81ecdfbb 11781 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11783 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11785 break 2
11786 fi
11787done
81ecdfbb
RW
11788 done
11789IFS=$as_save_IFS
c6b750e1 11790
859789af
AC
11791fi
11792fi
c6b750e1 11793RANLIB=$ac_cv_prog_RANLIB
05cbd757 11794if test -n "$RANLIB"; then
81ecdfbb
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11796$as_echo "$RANLIB" >&6; }
859789af 11797else
81ecdfbb
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
859789af 11800fi
c6b750e1 11801
81ecdfbb 11802
859789af 11803 fi
05cbd757
PB
11804 test -n "$ac_cv_prog_RANLIB" && break
11805done
11806
11807if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 11808 RANLIB="true"
859789af
AC
11809fi
11810
9a819804
AO
11811
11812
11813if test -n "$STRIP"; then
11814 ac_cv_prog_STRIP=$STRIP
11815elif test -n "$ac_cv_prog_STRIP"; then
11816 STRIP=$ac_cv_prog_STRIP
11817fi
11818
11819if test -n "$ac_cv_prog_STRIP"; then
11820 for ncn_progname in strip; do
11821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11822set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11825if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 11826 $as_echo_n "(cached) " >&6
9a819804
AO
11827else
11828 if test -n "$STRIP"; then
11829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11830else
11831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832for as_dir in $PATH
11833do
11834 IFS=$as_save_IFS
11835 test -z "$as_dir" && as_dir=.
81ecdfbb 11836 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11838 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 11839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11840 break 2
11841 fi
11842done
81ecdfbb
RW
11843 done
11844IFS=$as_save_IFS
9a819804
AO
11845
11846fi
11847fi
11848STRIP=$ac_cv_prog_STRIP
11849if test -n "$STRIP"; then
81ecdfbb
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11851$as_echo "$STRIP" >&6; }
9a819804 11852else
81ecdfbb
RW
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11854$as_echo "no" >&6; }
9a819804
AO
11855fi
11856
81ecdfbb 11857
9a819804
AO
11858 done
11859fi
11860
11861for ncn_progname in strip; do
be01d343
PB
11862 if test -n "$ncn_tool_prefix"; then
11863 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11864set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11867if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 11868 $as_echo_n "(cached) " >&6
be01d343
PB
11869else
11870 if test -n "$STRIP"; then
11871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11872else
c6b750e1
DJ
11873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874for as_dir in $PATH
11875do
11876 IFS=$as_save_IFS
11877 test -z "$as_dir" && as_dir=.
81ecdfbb 11878 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11880 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 11881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11882 break 2
11883 fi
11884done
81ecdfbb
RW
11885 done
11886IFS=$as_save_IFS
c6b750e1 11887
be01d343
PB
11888fi
11889fi
c6b750e1 11890STRIP=$ac_cv_prog_STRIP
be01d343 11891if test -n "$STRIP"; then
81ecdfbb
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11893$as_echo "$STRIP" >&6; }
be01d343 11894else
81ecdfbb
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
be01d343
PB
11897fi
11898
81ecdfbb 11899
be01d343
PB
11900 fi
11901 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11903set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11906if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 11907 $as_echo_n "(cached) " >&6
be01d343
PB
11908else
11909 if test -n "$STRIP"; then
11910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11911else
c6b750e1
DJ
11912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $PATH
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
81ecdfbb 11917 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 11919 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11921 break 2
11922 fi
11923done
81ecdfbb
RW
11924 done
11925IFS=$as_save_IFS
c6b750e1 11926
be01d343
PB
11927fi
11928fi
c6b750e1 11929STRIP=$ac_cv_prog_STRIP
be01d343 11930if test -n "$STRIP"; then
81ecdfbb
RW
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11932$as_echo "$STRIP" >&6; }
be01d343 11933else
81ecdfbb
RW
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935$as_echo "no" >&6; }
be01d343 11936fi
c6b750e1 11937
81ecdfbb 11938
be01d343
PB
11939 fi
11940 test -n "$ac_cv_prog_STRIP" && break
11941done
11942
11943if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 11944 STRIP="true"
be01d343
PB
11945fi
11946
9a819804
AO
11947
11948
11949if test -n "$WINDRES"; then
11950 ac_cv_prog_WINDRES=$WINDRES
11951elif test -n "$ac_cv_prog_WINDRES"; then
11952 WINDRES=$ac_cv_prog_WINDRES
11953fi
11954
11955if test -n "$ac_cv_prog_WINDRES"; then
11956 for ncn_progname in windres; do
11957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11958set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 11961if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 11962 $as_echo_n "(cached) " >&6
9a819804
AO
11963else
11964 if test -n "$WINDRES"; then
11965 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11966else
11967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968for as_dir in $PATH
11969do
11970 IFS=$as_save_IFS
11971 test -z "$as_dir" && as_dir=.
81ecdfbb 11972 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 11974 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 11975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11976 break 2
11977 fi
11978done
81ecdfbb
RW
11979 done
11980IFS=$as_save_IFS
9a819804
AO
11981
11982fi
11983fi
11984WINDRES=$ac_cv_prog_WINDRES
11985if test -n "$WINDRES"; then
81ecdfbb
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11987$as_echo "$WINDRES" >&6; }
9a819804 11988else
81ecdfbb
RW
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
9a819804
AO
11991fi
11992
81ecdfbb 11993
9a819804
AO
11994 done
11995fi
11996
11997for ncn_progname in windres; do
05cbd757
PB
11998 if test -n "$ncn_tool_prefix"; then
11999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12000set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12003if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12004 $as_echo_n "(cached) " >&6
859789af
AC
12005else
12006 if test -n "$WINDRES"; then
12007 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12008else
c6b750e1
DJ
12009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010for as_dir in $PATH
12011do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
81ecdfbb 12014 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12016 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12018 break 2
12019 fi
12020done
81ecdfbb
RW
12021 done
12022IFS=$as_save_IFS
c6b750e1 12023
859789af
AC
12024fi
12025fi
c6b750e1 12026WINDRES=$ac_cv_prog_WINDRES
859789af 12027if test -n "$WINDRES"; then
81ecdfbb
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12029$as_echo "$WINDRES" >&6; }
859789af 12030else
81ecdfbb
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032$as_echo "no" >&6; }
859789af
AC
12033fi
12034
81ecdfbb 12035
05cbd757
PB
12036 fi
12037 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12039set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12042if ${ac_cv_prog_WINDRES+:} false; then :
81ecdfbb 12043 $as_echo_n "(cached) " >&6
859789af 12044else
05cbd757
PB
12045 if test -n "$WINDRES"; then
12046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 12047else
c6b750e1
DJ
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
81ecdfbb 12053 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 12055 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12057 break 2
12058 fi
12059done
81ecdfbb
RW
12060 done
12061IFS=$as_save_IFS
c6b750e1 12062
859789af
AC
12063fi
12064fi
c6b750e1 12065WINDRES=$ac_cv_prog_WINDRES
05cbd757 12066if test -n "$WINDRES"; then
81ecdfbb
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12068$as_echo "$WINDRES" >&6; }
859789af 12069else
81ecdfbb
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
859789af 12072fi
c6b750e1 12073
81ecdfbb 12074
05cbd757
PB
12075 fi
12076 test -n "$ac_cv_prog_WINDRES" && break
12077done
12078
12079if test -z "$ac_cv_prog_WINDRES" ; then
12080 set dummy windres
12081 if test $build = $host ; then
12082 WINDRES="$2"
859789af 12083 else
05cbd757 12084 WINDRES="${ncn_tool_prefix}$2"
859789af 12085 fi
859789af
AC
12086fi
12087
9a819804
AO
12088
12089
0c24b341
NC
12090if test -n "$WINDMC"; then
12091 ac_cv_prog_WINDMC=$WINDMC
12092elif test -n "$ac_cv_prog_WINDMC"; then
12093 WINDMC=$ac_cv_prog_WINDMC
12094fi
12095
12096if test -n "$ac_cv_prog_WINDMC"; then
12097 for ncn_progname in windmc; do
12098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12099set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12101$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12102if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12103 $as_echo_n "(cached) " >&6
0c24b341
NC
12104else
12105 if test -n "$WINDMC"; then
12106 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12107else
12108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109for as_dir in $PATH
12110do
12111 IFS=$as_save_IFS
12112 test -z "$as_dir" && as_dir=.
81ecdfbb 12113 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12115 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12117 break 2
12118 fi
12119done
81ecdfbb
RW
12120 done
12121IFS=$as_save_IFS
0c24b341
NC
12122
12123fi
12124fi
12125WINDMC=$ac_cv_prog_WINDMC
12126if test -n "$WINDMC"; then
81ecdfbb
RW
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12128$as_echo "$WINDMC" >&6; }
0c24b341 12129else
81ecdfbb
RW
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131$as_echo "no" >&6; }
0c24b341
NC
12132fi
12133
81ecdfbb 12134
0c24b341
NC
12135 done
12136fi
12137
12138for ncn_progname in windmc; do
12139 if test -n "$ncn_tool_prefix"; then
12140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12141set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12144if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12145 $as_echo_n "(cached) " >&6
0c24b341
NC
12146else
12147 if test -n "$WINDMC"; then
12148 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12149else
12150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
81ecdfbb 12155 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12157 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12159 break 2
12160 fi
12161done
81ecdfbb
RW
12162 done
12163IFS=$as_save_IFS
0c24b341
NC
12164
12165fi
12166fi
12167WINDMC=$ac_cv_prog_WINDMC
12168if test -n "$WINDMC"; then
81ecdfbb
RW
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12170$as_echo "$WINDMC" >&6; }
0c24b341 12171else
81ecdfbb
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
0c24b341
NC
12174fi
12175
81ecdfbb 12176
0c24b341
NC
12177 fi
12178 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12180set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12182$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12183if ${ac_cv_prog_WINDMC+:} false; then :
81ecdfbb 12184 $as_echo_n "(cached) " >&6
0c24b341
NC
12185else
12186 if test -n "$WINDMC"; then
12187 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12188else
12189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
81ecdfbb 12194 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 12196 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 12197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12198 break 2
12199 fi
12200done
81ecdfbb
RW
12201 done
12202IFS=$as_save_IFS
0c24b341
NC
12203
12204fi
12205fi
12206WINDMC=$ac_cv_prog_WINDMC
12207if test -n "$WINDMC"; then
81ecdfbb
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12209$as_echo "$WINDMC" >&6; }
0c24b341 12210else
81ecdfbb
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12212$as_echo "no" >&6; }
0c24b341
NC
12213fi
12214
81ecdfbb 12215
0c24b341
NC
12216 fi
12217 test -n "$ac_cv_prog_WINDMC" && break
12218done
12219
12220if test -z "$ac_cv_prog_WINDMC" ; then
12221 set dummy windmc
12222 if test $build = $host ; then
12223 WINDMC="$2"
12224 else
12225 WINDMC="${ncn_tool_prefix}$2"
12226 fi
12227fi
12228
12229
12230
9a819804
AO
12231if test -n "$OBJCOPY"; then
12232 ac_cv_prog_OBJCOPY=$OBJCOPY
12233elif test -n "$ac_cv_prog_OBJCOPY"; then
12234 OBJCOPY=$ac_cv_prog_OBJCOPY
12235fi
12236
12237if test -n "$ac_cv_prog_OBJCOPY"; then
12238 for ncn_progname in objcopy; do
12239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12240set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12242$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12243if ${ac_cv_prog_OBJCOPY+:} false; then :
81ecdfbb 12244 $as_echo_n "(cached) " >&6
9a819804
AO
12245else
12246 if test -n "$OBJCOPY"; then
12247 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12248else
12249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250for as_dir in $PATH
12251do
12252 IFS=$as_save_IFS
12253 test -z "$as_dir" && as_dir=.
81ecdfbb 12254 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12256 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12258 break 2
12259 fi
12260done
81ecdfbb
RW
12261 done
12262IFS=$as_save_IFS
9a819804
AO
12263
12264fi
12265fi
228cf97d
AM
12266OBJCOPY=$ac_cv_prog_OBJCOPY
12267if test -n "$OBJCOPY"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12269$as_echo "$OBJCOPY" >&6; }
12270else
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272$as_echo "no" >&6; }
12273fi
12274
12275
12276 done
12277fi
12278
12279for ncn_progname in objcopy; do
12280 if test -n "$ncn_tool_prefix"; then
12281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12282set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12284$as_echo_n "checking for $ac_word... " >&6; }
12285if ${ac_cv_prog_OBJCOPY+:} false; then :
12286 $as_echo_n "(cached) " >&6
12287else
12288 if test -n "$OBJCOPY"; then
12289 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12290else
12291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292for as_dir in $PATH
12293do
12294 IFS=$as_save_IFS
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 break 2
12301 fi
12302done
12303 done
12304IFS=$as_save_IFS
12305
12306fi
12307fi
12308OBJCOPY=$ac_cv_prog_OBJCOPY
12309if test -n "$OBJCOPY"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12311$as_echo "$OBJCOPY" >&6; }
12312else
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314$as_echo "no" >&6; }
12315fi
12316
12317
12318 fi
12319 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12321set dummy ${ncn_progname}; ac_word=$2
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if ${ac_cv_prog_OBJCOPY+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326else
12327 if test -n "$OBJCOPY"; then
12328 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12329else
12330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331for as_dir in $PATH
12332do
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_prog_OBJCOPY="${ncn_progname}"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12339 break 2
12340 fi
12341done
12342 done
12343IFS=$as_save_IFS
12344
12345fi
12346fi
12347OBJCOPY=$ac_cv_prog_OBJCOPY
12348if test -n "$OBJCOPY"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12350$as_echo "$OBJCOPY" >&6; }
12351else
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12353$as_echo "no" >&6; }
12354fi
12355
12356
12357 fi
12358 test -n "$ac_cv_prog_OBJCOPY" && break
12359done
12360
12361if test -z "$ac_cv_prog_OBJCOPY" ; then
12362 set dummy objcopy
12363 if test $build = $host ; then
12364 OBJCOPY="$2"
12365 else
12366 OBJCOPY="${ncn_tool_prefix}$2"
12367 fi
12368fi
12369
12370
12371
12372if test -n "$OBJDUMP"; then
12373 ac_cv_prog_OBJDUMP=$OBJDUMP
12374elif test -n "$ac_cv_prog_OBJDUMP"; then
12375 OBJDUMP=$ac_cv_prog_OBJDUMP
12376fi
12377
12378if test -n "$ac_cv_prog_OBJDUMP"; then
12379 for ncn_progname in objdump; do
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12381set dummy ${ncn_progname}; ac_word=$2
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12383$as_echo_n "checking for $ac_word... " >&6; }
12384if ${ac_cv_prog_OBJDUMP+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386else
12387 if test -n "$OBJDUMP"; then
12388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12389else
12390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391for as_dir in $PATH
12392do
12393 IFS=$as_save_IFS
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12397 ac_cv_prog_OBJDUMP="${ncn_progname}"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 break 2
12400 fi
12401done
12402 done
12403IFS=$as_save_IFS
12404
12405fi
12406fi
12407OBJDUMP=$ac_cv_prog_OBJDUMP
12408if test -n "$OBJDUMP"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12410$as_echo "$OBJDUMP" >&6; }
9a819804 12411else
81ecdfbb
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12413$as_echo "no" >&6; }
9a819804
AO
12414fi
12415
81ecdfbb 12416
9a819804
AO
12417 done
12418fi
12419
228cf97d 12420for ncn_progname in objdump; do
05cbd757
PB
12421 if test -n "$ncn_tool_prefix"; then
12422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12423set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12426if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12427 $as_echo_n "(cached) " >&6
859789af 12428else
228cf97d
AM
12429 if test -n "$OBJDUMP"; then
12430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12431else
c6b750e1
DJ
12432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433for as_dir in $PATH
12434do
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
81ecdfbb 12437 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12439 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12441 break 2
12442 fi
12443done
81ecdfbb
RW
12444 done
12445IFS=$as_save_IFS
c6b750e1 12446
859789af
AC
12447fi
12448fi
228cf97d
AM
12449OBJDUMP=$ac_cv_prog_OBJDUMP
12450if test -n "$OBJDUMP"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12452$as_echo "$OBJDUMP" >&6; }
859789af 12453else
81ecdfbb
RW
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
859789af
AC
12456fi
12457
81ecdfbb 12458
05cbd757 12459 fi
228cf97d 12460 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
05cbd757
PB
12461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12462set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12465if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 12466 $as_echo_n "(cached) " >&6
859789af 12467else
228cf97d
AM
12468 if test -n "$OBJDUMP"; then
12469 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 12470else
c6b750e1
DJ
12471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
81ecdfbb 12476 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12478 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12480 break 2
12481 fi
12482done
81ecdfbb
RW
12483 done
12484IFS=$as_save_IFS
c6b750e1 12485
859789af
AC
12486fi
12487fi
228cf97d
AM
12488OBJDUMP=$ac_cv_prog_OBJDUMP
12489if test -n "$OBJDUMP"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12491$as_echo "$OBJDUMP" >&6; }
859789af 12492else
81ecdfbb
RW
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
859789af 12495fi
c6b750e1 12496
81ecdfbb 12497
05cbd757 12498 fi
228cf97d 12499 test -n "$ac_cv_prog_OBJDUMP" && break
05cbd757
PB
12500done
12501
228cf97d
AM
12502if test -z "$ac_cv_prog_OBJDUMP" ; then
12503 set dummy objdump
05cbd757 12504 if test $build = $host ; then
228cf97d 12505 OBJDUMP="$2"
859789af 12506 else
228cf97d 12507 OBJDUMP="${ncn_tool_prefix}$2"
859789af 12508 fi
859789af
AC
12509fi
12510
9a819804
AO
12511
12512
228cf97d
AM
12513if test -n "$OTOOL"; then
12514 ac_cv_prog_OTOOL=$OTOOL
12515elif test -n "$ac_cv_prog_OTOOL"; then
12516 OTOOL=$ac_cv_prog_OTOOL
9a819804
AO
12517fi
12518
228cf97d
AM
12519if test -n "$ac_cv_prog_OTOOL"; then
12520 for ncn_progname in otool; do
9a819804
AO
12521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12522set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12524$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12525if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12526 $as_echo_n "(cached) " >&6
9a819804 12527else
228cf97d
AM
12528 if test -n "$OTOOL"; then
12529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9a819804
AO
12530else
12531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532for as_dir in $PATH
12533do
12534 IFS=$as_save_IFS
12535 test -z "$as_dir" && as_dir=.
81ecdfbb 12536 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12538 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12540 break 2
12541 fi
12542done
81ecdfbb
RW
12543 done
12544IFS=$as_save_IFS
9a819804
AO
12545
12546fi
12547fi
228cf97d
AM
12548OTOOL=$ac_cv_prog_OTOOL
12549if test -n "$OTOOL"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12551$as_echo "$OTOOL" >&6; }
9a819804 12552else
81ecdfbb
RW
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554$as_echo "no" >&6; }
9a819804
AO
12555fi
12556
81ecdfbb 12557
9a819804
AO
12558 done
12559fi
12560
228cf97d 12561for ncn_progname in otool; do
05cbd757
PB
12562 if test -n "$ncn_tool_prefix"; then
12563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12564set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12567if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12568 $as_echo_n "(cached) " >&6
859789af 12569else
228cf97d
AM
12570 if test -n "$OTOOL"; then
12571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12572else
c6b750e1
DJ
12573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574for as_dir in $PATH
12575do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
81ecdfbb 12578 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12580 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 12581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12582 break 2
12583 fi
12584done
81ecdfbb
RW
12585 done
12586IFS=$as_save_IFS
c6b750e1 12587
859789af
AC
12588fi
12589fi
228cf97d
AM
12590OTOOL=$ac_cv_prog_OTOOL
12591if test -n "$OTOOL"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12593$as_echo "$OTOOL" >&6; }
859789af 12594else
81ecdfbb
RW
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12596$as_echo "no" >&6; }
859789af
AC
12597fi
12598
81ecdfbb 12599
05cbd757 12600 fi
228cf97d 12601 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
05cbd757
PB
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 12606if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 12607 $as_echo_n "(cached) " >&6
859789af 12608else
228cf97d
AM
12609 if test -n "$OTOOL"; then
12610 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
859789af 12611else
c6b750e1
DJ
12612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613for as_dir in $PATH
12614do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
81ecdfbb 12617 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 12619 ac_cv_prog_OTOOL="${ncn_progname}"
81ecdfbb 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12621 break 2
12622 fi
12623done
81ecdfbb
RW
12624 done
12625IFS=$as_save_IFS
c6b750e1 12626
859789af
AC
12627fi
12628fi
228cf97d
AM
12629OTOOL=$ac_cv_prog_OTOOL
12630if test -n "$OTOOL"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12632$as_echo "$OTOOL" >&6; }
859789af 12633else
81ecdfbb
RW
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635$as_echo "no" >&6; }
859789af 12636fi
c6b750e1 12637
81ecdfbb 12638
05cbd757 12639 fi
228cf97d 12640 test -n "$ac_cv_prog_OTOOL" && break
05cbd757
PB
12641done
12642
228cf97d
AM
12643if test -z "$ac_cv_prog_OTOOL" ; then
12644 set dummy otool
05cbd757 12645 if test $build = $host ; then
228cf97d 12646 OTOOL="$2"
859789af 12647 else
228cf97d 12648 OTOOL="${ncn_tool_prefix}$2"
859789af 12649 fi
859789af
AC
12650fi
12651
a0da8069
NN
12652
12653
b121d7d4
DD
12654if test -n "$READELF"; then
12655 ac_cv_prog_READELF=$READELF
12656elif test -n "$ac_cv_prog_READELF"; then
12657 READELF=$ac_cv_prog_READELF
12658fi
12659
12660if test -n "$ac_cv_prog_READELF"; then
12661 for ncn_progname in readelf; do
12662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12663set dummy ${ncn_progname}; ac_word=$2
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12665$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12666if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12667 $as_echo_n "(cached) " >&6
12668else
12669 if test -n "$READELF"; then
12670 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12671else
12672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673for as_dir in $PATH
12674do
12675 IFS=$as_save_IFS
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12679 ac_cv_prog_READELF="${ncn_progname}"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 break 2
12682 fi
12683done
12684 done
12685IFS=$as_save_IFS
12686
12687fi
12688fi
12689READELF=$ac_cv_prog_READELF
12690if test -n "$READELF"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12692$as_echo "$READELF" >&6; }
12693else
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12695$as_echo "no" >&6; }
12696fi
12697
12698
12699 done
12700fi
12701
12702for ncn_progname in readelf; do
12703 if test -n "$ncn_tool_prefix"; then
12704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12705set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12707$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12708if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12709 $as_echo_n "(cached) " >&6
12710else
12711 if test -n "$READELF"; then
12712 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12713else
12714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715for as_dir in $PATH
12716do
12717 IFS=$as_save_IFS
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12721 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 break 2
12724 fi
12725done
12726 done
12727IFS=$as_save_IFS
12728
12729fi
12730fi
12731READELF=$ac_cv_prog_READELF
12732if test -n "$READELF"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12734$as_echo "$READELF" >&6; }
12735else
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737$as_echo "no" >&6; }
12738fi
12739
12740
12741 fi
12742 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12744set dummy ${ncn_progname}; ac_word=$2
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12746$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12747if ${ac_cv_prog_READELF+:} false; then :
b121d7d4
DD
12748 $as_echo_n "(cached) " >&6
12749else
12750 if test -n "$READELF"; then
12751 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12752else
12753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754for as_dir in $PATH
12755do
12756 IFS=$as_save_IFS
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
12760 ac_cv_prog_READELF="${ncn_progname}"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12762 break 2
12763 fi
12764done
12765 done
12766IFS=$as_save_IFS
12767
12768fi
12769fi
12770READELF=$ac_cv_prog_READELF
12771if test -n "$READELF"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12773$as_echo "$READELF" >&6; }
12774else
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776$as_echo "no" >&6; }
12777fi
12778
12779
12780 fi
12781 test -n "$ac_cv_prog_READELF" && break
12782done
12783
12784if test -z "$ac_cv_prog_READELF" ; then
12785 set dummy readelf
12786 if test $build = $host ; then
12787 READELF="$2"
12788 else
12789 READELF="${ncn_tool_prefix}$2"
12790 fi
12791fi
12792
12793
12794
a0da8069
NN
12795
12796
12797
de83289e 12798
228cf97d 12799
50ad1254
L
12800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12801$as_echo_n "checking for -plugin option... " >&6; }
12802
12803plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12804plugin_option=
12805for plugin in $plugin_names; do
12806 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12807 if test x$plugin_so = x$plugin; then
12808 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12809 fi
12810 if test x$plugin_so != x$plugin; then
12811 plugin_option="--plugin $plugin_so"
12812 break
12813 fi
12814done
03c02f31
L
12815if test -n "$ac_tool_prefix"; then
12816 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12817set dummy ${ac_tool_prefix}ar; ac_word=$2
12818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819$as_echo_n "checking for $ac_word... " >&6; }
12820if ${ac_cv_prog_AR+:} false; then :
12821 $as_echo_n "(cached) " >&6
12822else
12823 if test -n "$AR"; then
12824 ac_cv_prog_AR="$AR" # Let the user override the test.
12825else
12826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827for as_dir in $PATH
12828do
12829 IFS=$as_save_IFS
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_prog_AR="${ac_tool_prefix}ar"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12835 break 2
12836 fi
12837done
12838 done
12839IFS=$as_save_IFS
12840
12841fi
12842fi
12843AR=$ac_cv_prog_AR
12844if test -n "$AR"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12846$as_echo "$AR" >&6; }
12847else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849$as_echo "no" >&6; }
12850fi
12851
12852
12853fi
12854if test -z "$ac_cv_prog_AR"; then
12855 ac_ct_AR=$AR
12856 # Extract the first word of "ar", so it can be a program name with args.
12857set dummy ar; ac_word=$2
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
12860if ${ac_cv_prog_ac_ct_AR+:} false; then :
12861 $as_echo_n "(cached) " >&6
12862else
12863 if test -n "$ac_ct_AR"; then
12864 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_prog_ac_ct_AR="ar"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12875 break 2
12876 fi
12877done
12878 done
12879IFS=$as_save_IFS
12880
12881fi
12882fi
12883ac_ct_AR=$ac_cv_prog_ac_ct_AR
12884if test -n "$ac_ct_AR"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12886$as_echo "$ac_ct_AR" >&6; }
12887else
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
12890fi
12891
12892 if test "x$ac_ct_AR" = x; then
12893 AR=""
12894 else
12895 case $cross_compiling:$ac_tool_warned in
12896yes:)
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12899ac_tool_warned=yes ;;
12900esac
12901 AR=$ac_ct_AR
12902 fi
12903else
12904 AR="$ac_cv_prog_AR"
12905fi
12906
12907if test "${AR}" = "" ; then
12908 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5
12909fi
12910touch conftest.c
12911${AR} $plugin_option rc conftest.a conftest.c
12912if test "$?" != 0; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
12914$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
12915 plugin_option=
12916fi
12917rm -f conftest.*
50ad1254
L
12918if test -n "$plugin_option"; then
12919 PLUGIN_OPTION="$plugin_option"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
12921$as_echo "$plugin_option" >&6; }
12922else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924$as_echo "no" >&6; }
12925fi
12926
12927AR_PLUGIN_OPTION=
12928RANLIB_PLUGIN_OPTION=
12929if test -n "$PLUGIN_OPTION"; then
12930 if $AR --help 2>&1 | grep -q "\--plugin"; then
12931 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12932 fi
12933 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
12934 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12935 fi
12936fi
12937
12938
12939
be01d343 12940# Target tools.
c6b750e1 12941
81ecdfbb
RW
12942# Check whether --with-build-time-tools was given.
12943if test "${with_build_time_tools+set}" = set; then :
12944 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
12945 x/*) ;;
12946 *)
12947 with_build_time_tools=
81ecdfbb
RW
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12949$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
12950 ;;
12951 esac
859789af 12952else
2429c060 12953 with_build_time_tools=
81ecdfbb
RW
12954fi
12955
859789af 12956
9a819804
AO
12957
12958
12959if test -n "$CC_FOR_TARGET"; then
12960 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12961elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12962 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12963fi
12964
12965if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12966 for ncn_progname in cc gcc; do
12967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12968set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12970$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 12971if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 12972 $as_echo_n "(cached) " >&6
9a819804
AO
12973else
12974 if test -n "$CC_FOR_TARGET"; then
12975 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12976else
12977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978for as_dir in $PATH
12979do
12980 IFS=$as_save_IFS
12981 test -z "$as_dir" && as_dir=.
81ecdfbb 12982 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 12983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 12984 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12986 break 2
12987 fi
12988done
81ecdfbb
RW
12989 done
12990IFS=$as_save_IFS
9a819804
AO
12991
12992fi
12993fi
12994CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12995if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12997$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 12998else
81ecdfbb
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000$as_echo "no" >&6; }
9a819804
AO
13001fi
13002
81ecdfbb 13003
9a819804
AO
13004 done
13005fi
13006
13007if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13008 for ncn_progname in cc gcc; do
81ecdfbb
RW
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13010$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13011 if test -x $with_build_time_tools/${ncn_progname}; then
13012 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13014$as_echo "yes" >&6; }
cac3d6c4 13015 break
2429c060 13016 else
81ecdfbb
RW
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018$as_echo "no" >&6; }
cac3d6c4
CM
13019 fi
13020 done
55db4b87
PB
13021fi
13022
2429c060
PB
13023if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13024 for ncn_progname in cc gcc; do
13025 if test -n "$ncn_target_tool_prefix"; then
13026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13027set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13030if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13031 $as_echo_n "(cached) " >&6
55db4b87
PB
13032else
13033 if test -n "$CC_FOR_TARGET"; then
13034 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13035else
c6b750e1
DJ
13036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037for as_dir in $PATH
13038do
13039 IFS=$as_save_IFS
13040 test -z "$as_dir" && as_dir=.
81ecdfbb 13041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13043 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13045 break 2
13046 fi
13047done
81ecdfbb
RW
13048 done
13049IFS=$as_save_IFS
c6b750e1 13050
55db4b87
PB
13051fi
13052fi
c6b750e1 13053CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 13054if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13056$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13057else
81ecdfbb
RW
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059$as_echo "no" >&6; }
55db4b87
PB
13060fi
13061
81ecdfbb 13062
2429c060
PB
13063 fi
13064 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13066set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13069if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
81ecdfbb 13070 $as_echo_n "(cached) " >&6
55db4b87 13071else
05cbd757
PB
13072 if test -n "$CC_FOR_TARGET"; then
13073 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 13074else
c6b750e1
DJ
13075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076for as_dir in $PATH
13077do
13078 IFS=$as_save_IFS
13079 test -z "$as_dir" && as_dir=.
81ecdfbb 13080 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13082 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13084 break 2
13085 fi
13086done
81ecdfbb
RW
13087 done
13088IFS=$as_save_IFS
c6b750e1 13089
55db4b87
PB
13090fi
13091fi
c6b750e1 13092CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 13093if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
13095$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 13096else
81ecdfbb
RW
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098$as_echo "no" >&6; }
55db4b87 13099fi
c6b750e1 13100
81ecdfbb 13101
2429c060
PB
13102 fi
13103 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13104 done
13105fi
c6b750e1 13106
05cbd757
PB
13107if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13108 set dummy cc gcc
13109 if test $build = $target ; then
13110 CC_FOR_TARGET="$2"
55db4b87 13111 else
05cbd757 13112 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13113 fi
d3f5afc4
MS
13114else
13115 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
13116fi
13117
9a819804
AO
13118
13119
13120if test -n "$CXX_FOR_TARGET"; then
13121 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13122elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13123 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13124fi
13125
13126if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13127 for ncn_progname in c++ g++ cxx gxx; do
13128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13129set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13131$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13132if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13133 $as_echo_n "(cached) " >&6
9a819804
AO
13134else
13135 if test -n "$CXX_FOR_TARGET"; then
13136 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13137else
13138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139for as_dir in $PATH
13140do
13141 IFS=$as_save_IFS
13142 test -z "$as_dir" && as_dir=.
81ecdfbb 13143 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13145 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13147 break 2
13148 fi
13149done
81ecdfbb
RW
13150 done
13151IFS=$as_save_IFS
9a819804
AO
13152
13153fi
13154fi
13155CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13156if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13158$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 13159else
81ecdfbb
RW
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13161$as_echo "no" >&6; }
9a819804
AO
13162fi
13163
81ecdfbb 13164
9a819804
AO
13165 done
13166fi
13167
13168if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13169 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13171$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13172 if test -x $with_build_time_tools/${ncn_progname}; then
13173 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13175$as_echo "yes" >&6; }
2429c060
PB
13176 break
13177 else
81ecdfbb
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179$as_echo "no" >&6; }
2429c060
PB
13180 fi
13181 done
13182fi
13183
13184if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13185 for ncn_progname in c++ g++ cxx gxx; do
13186 if test -n "$ncn_target_tool_prefix"; then
13187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13188set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13190$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13191if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13192 $as_echo_n "(cached) " >&6
55db4b87
PB
13193else
13194 if test -n "$CXX_FOR_TARGET"; then
13195 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13196else
c6b750e1
DJ
13197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198for as_dir in $PATH
13199do
13200 IFS=$as_save_IFS
13201 test -z "$as_dir" && as_dir=.
81ecdfbb 13202 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13204 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13206 break 2
13207 fi
13208done
81ecdfbb
RW
13209 done
13210IFS=$as_save_IFS
c6b750e1 13211
55db4b87
PB
13212fi
13213fi
c6b750e1 13214CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 13215if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13217$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13218else
81ecdfbb
RW
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220$as_echo "no" >&6; }
55db4b87
PB
13221fi
13222
81ecdfbb 13223
2429c060
PB
13224 fi
13225 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13227set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13229$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13230if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
81ecdfbb 13231 $as_echo_n "(cached) " >&6
55db4b87 13232else
05cbd757
PB
13233 if test -n "$CXX_FOR_TARGET"; then
13234 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 13235else
c6b750e1
DJ
13236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237for as_dir in $PATH
13238do
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
81ecdfbb 13241 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13243 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13245 break 2
13246 fi
13247done
81ecdfbb
RW
13248 done
13249IFS=$as_save_IFS
c6b750e1 13250
55db4b87
PB
13251fi
13252fi
c6b750e1 13253CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 13254if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13256$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 13257else
81ecdfbb
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259$as_echo "no" >&6; }
55db4b87 13260fi
c6b750e1 13261
81ecdfbb 13262
2429c060
PB
13263 fi
13264 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13265 done
13266fi
c6b750e1 13267
05cbd757
PB
13268if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13269 set dummy c++ g++ cxx gxx
13270 if test $build = $target ; then
13271 CXX_FOR_TARGET="$2"
55db4b87 13272 else
05cbd757 13273 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13274 fi
d3f5afc4
MS
13275else
13276 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
13277fi
13278
9a819804
AO
13279
13280
13281if test -n "$GCC_FOR_TARGET"; then
13282 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13283elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13284 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13285fi
13286
13287if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13288 for ncn_progname in gcc; do
13289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13290set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13293if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13294 $as_echo_n "(cached) " >&6
9a819804
AO
13295else
13296 if test -n "$GCC_FOR_TARGET"; then
13297 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13298else
13299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300for as_dir in $PATH
13301do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
81ecdfbb 13304 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13306 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13308 break 2
13309 fi
13310done
81ecdfbb
RW
13311 done
13312IFS=$as_save_IFS
9a819804
AO
13313
13314fi
13315fi
13316GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13317if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13319$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 13320else
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
9a819804
AO
13323fi
13324
81ecdfbb 13325
9a819804
AO
13326 done
13327fi
13328
13329if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13330 for ncn_progname in gcc; do
81ecdfbb
RW
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13332$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13333 if test -x $with_build_time_tools/${ncn_progname}; then
13334 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13336$as_echo "yes" >&6; }
2429c060
PB
13337 break
13338 else
81ecdfbb
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13340$as_echo "no" >&6; }
2429c060
PB
13341 fi
13342 done
13343fi
13344
13345if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13346 for ncn_progname in gcc; do
13347 if test -n "$ncn_target_tool_prefix"; then
13348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13352if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13353 $as_echo_n "(cached) " >&6
859789af 13354else
2429c060
PB
13355 if test -n "$GCC_FOR_TARGET"; then
13356 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13357else
c6b750e1
DJ
13358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359for as_dir in $PATH
13360do
13361 IFS=$as_save_IFS
13362 test -z "$as_dir" && as_dir=.
81ecdfbb 13363 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13365 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13367 break 2
13368 fi
13369done
81ecdfbb
RW
13370 done
13371IFS=$as_save_IFS
c6b750e1 13372
55db4b87
PB
13373fi
13374fi
c6b750e1 13375GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 13376if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13378$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13379else
81ecdfbb
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381$as_echo "no" >&6; }
55db4b87
PB
13382fi
13383
81ecdfbb 13384
2429c060
PB
13385 fi
13386 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13388set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13390$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13391if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
81ecdfbb 13392 $as_echo_n "(cached) " >&6
55db4b87 13393else
05cbd757
PB
13394 if test -n "$GCC_FOR_TARGET"; then
13395 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 13396else
c6b750e1
DJ
13397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398for as_dir in $PATH
13399do
13400 IFS=$as_save_IFS
13401 test -z "$as_dir" && as_dir=.
81ecdfbb 13402 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13404 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13406 break 2
13407 fi
13408done
81ecdfbb
RW
13409 done
13410IFS=$as_save_IFS
c6b750e1 13411
55db4b87
PB
13412fi
13413fi
c6b750e1 13414GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 13415if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13417$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 13418else
81ecdfbb
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13420$as_echo "no" >&6; }
55db4b87 13421fi
c6b750e1 13422
81ecdfbb 13423
2429c060
PB
13424 fi
13425 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13426 done
13427fi
c6b750e1 13428
05cbd757
PB
13429if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13430 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
13431else
13432 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
13433fi
13434
9a819804
AO
13435
13436
9a819804
AO
13437if test -n "$GFORTRAN_FOR_TARGET"; then
13438 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13439elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13440 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
13441fi
13442
9a819804
AO
13443if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13444 for ncn_progname in gfortran; do
13445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13446set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13448$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13449if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13450 $as_echo_n "(cached) " >&6
55db4b87 13451else
9a819804
AO
13452 if test -n "$GFORTRAN_FOR_TARGET"; then
13453 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 13454else
c6b750e1
DJ
13455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456for as_dir in $PATH
13457do
13458 IFS=$as_save_IFS
13459 test -z "$as_dir" && as_dir=.
81ecdfbb 13460 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 13462 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 13463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13464 break 2
13465 fi
13466done
81ecdfbb
RW
13467 done
13468IFS=$as_save_IFS
c6b750e1 13469
55db4b87
PB
13470fi
13471fi
9a819804
AO
13472GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13473if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13475$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 13476else
81ecdfbb
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478$as_echo "no" >&6; }
55db4b87 13479fi
c6b750e1 13480
81ecdfbb 13481
2429c060
PB
13482 done
13483fi
c6b750e1 13484
9a819804 13485if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13486 for ncn_progname in gfortran; do
81ecdfbb
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13488$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13489 if test -x $with_build_time_tools/${ncn_progname}; then
13490 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13492$as_echo "yes" >&6; }
2429c060
PB
13493 break
13494 else
81ecdfbb
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496$as_echo "no" >&6; }
2429c060
PB
13497 fi
13498 done
13499fi
13500
13501if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13502 for ncn_progname in gfortran; do
13503 if test -n "$ncn_target_tool_prefix"; then
13504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13505set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13507$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13508if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
81ecdfbb 13509 $as_echo_n "(cached) " >&6
55db4b87 13510else
228cf97d
AM
13511 if test -n "$GFORTRAN_FOR_TARGET"; then
13512 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13513else
13514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515for as_dir in $PATH
13516do
13517 IFS=$as_save_IFS
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13523 break 2
13524 fi
13525done
13526 done
13527IFS=$as_save_IFS
13528
13529fi
13530fi
13531GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13532if test -n "$GFORTRAN_FOR_TARGET"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13534$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13535else
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13537$as_echo "no" >&6; }
13538fi
13539
13540
13541 fi
13542 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13544set dummy ${ncn_progname}; ac_word=$2
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13546$as_echo_n "checking for $ac_word... " >&6; }
13547if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549else
13550 if test -n "$GFORTRAN_FOR_TARGET"; then
13551 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13552else
13553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554for as_dir in $PATH
13555do
13556 IFS=$as_save_IFS
13557 test -z "$as_dir" && as_dir=.
13558 for ac_exec_ext in '' $ac_executable_extensions; do
13559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13560 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13562 break 2
13563 fi
13564done
13565 done
13566IFS=$as_save_IFS
13567
13568fi
13569fi
13570GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13571if test -n "$GFORTRAN_FOR_TARGET"; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13573$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13574else
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576$as_echo "no" >&6; }
13577fi
13578
13579
13580 fi
13581 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13582 done
13583fi
13584
13585if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13586 set dummy gfortran
13587 if test $build = $target ; then
13588 GFORTRAN_FOR_TARGET="$2"
13589 else
13590 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13591 fi
13592else
13593 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13594fi
13595
13596
13597
13598if test -n "$GOC_FOR_TARGET"; then
13599 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13600elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13601 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13602fi
13603
13604if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13605 for ncn_progname in gccgo; do
13606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13607set dummy ${ncn_progname}; ac_word=$2
13608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609$as_echo_n "checking for $ac_word... " >&6; }
13610if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612else
13613 if test -n "$GOC_FOR_TARGET"; then
13614 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13615else
13616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617for as_dir in $PATH
13618do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627done
13628 done
13629IFS=$as_save_IFS
13630
13631fi
13632fi
13633GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13634if test -n "$GOC_FOR_TARGET"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13636$as_echo "$GOC_FOR_TARGET" >&6; }
13637else
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639$as_echo "no" >&6; }
13640fi
13641
13642
13643 done
13644fi
13645
13646if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13647 for ncn_progname in gccgo; do
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13649$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13650 if test -x $with_build_time_tools/${ncn_progname}; then
13651 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13653$as_echo "yes" >&6; }
13654 break
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657$as_echo "no" >&6; }
13658 fi
13659 done
13660fi
13661
13662if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13663 for ncn_progname in gccgo; do
13664 if test -n "$ncn_target_tool_prefix"; then
13665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13666set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668$as_echo_n "checking for $ac_word... " >&6; }
13669if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671else
13672 if test -n "$GOC_FOR_TARGET"; then
13673 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
55db4b87 13674else
c6b750e1
DJ
13675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676for as_dir in $PATH
13677do
13678 IFS=$as_save_IFS
13679 test -z "$as_dir" && as_dir=.
81ecdfbb 13680 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13682 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13684 break 2
13685 fi
13686done
81ecdfbb
RW
13687 done
13688IFS=$as_save_IFS
c6b750e1 13689
55db4b87
PB
13690fi
13691fi
228cf97d
AM
13692GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13693if test -n "$GOC_FOR_TARGET"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13695$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 13696else
81ecdfbb
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698$as_echo "no" >&6; }
55db4b87
PB
13699fi
13700
81ecdfbb 13701
2429c060 13702 fi
228cf97d 13703 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
2429c060 13704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13705set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 13708if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
81ecdfbb 13709 $as_echo_n "(cached) " >&6
55db4b87 13710else
228cf97d
AM
13711 if test -n "$GOC_FOR_TARGET"; then
13712 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13713else
13714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715for as_dir in $PATH
13716do
13717 IFS=$as_save_IFS
13718 test -z "$as_dir" && as_dir=.
81ecdfbb 13719 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13721 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13723 break 2
13724 fi
13725done
81ecdfbb
RW
13726 done
13727IFS=$as_save_IFS
c6b750e1 13728
55db4b87
PB
13729fi
13730fi
228cf97d
AM
13731GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13732if test -n "$GOC_FOR_TARGET"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13734$as_echo "$GOC_FOR_TARGET" >&6; }
55db4b87 13735else
81ecdfbb
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737$as_echo "no" >&6; }
55db4b87 13738fi
c6b750e1 13739
81ecdfbb 13740
2429c060 13741 fi
228cf97d 13742 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
2429c060
PB
13743 done
13744fi
c6b750e1 13745
228cf97d
AM
13746if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13747 set dummy gccgo
05cbd757 13748 if test $build = $target ; then
228cf97d 13749 GOC_FOR_TARGET="$2"
55db4b87 13750 else
228cf97d 13751 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 13752 fi
d3f5afc4 13753else
228cf97d 13754 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
859789af
AC
13755fi
13756
2429c060
PB
13757
13758
228cf97d
AM
13759if test -n "$GDC_FOR_TARGET"; then
13760 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13761elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13762 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
e552509b
ILT
13763fi
13764
228cf97d
AM
13765if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13766 for ncn_progname in gdc; do
e552509b
ILT
13767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13768set dummy ${ncn_progname}; ac_word=$2
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13770$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 13771if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
13772 $as_echo_n "(cached) " >&6
13773else
228cf97d
AM
13774 if test -n "$GDC_FOR_TARGET"; then
13775 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
13776else
13777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778for as_dir in $PATH
13779do
13780 IFS=$as_save_IFS
13781 test -z "$as_dir" && as_dir=.
13782 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13784 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
13785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13786 break 2
13787 fi
13788done
13789 done
13790IFS=$as_save_IFS
13791
13792fi
13793fi
228cf97d
AM
13794GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13795if test -n "$GDC_FOR_TARGET"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13797$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
13798else
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13800$as_echo "no" >&6; }
13801fi
13802
13803
13804 done
13805fi
13806
228cf97d
AM
13807if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13808 for ncn_progname in gdc; do
e552509b
ILT
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13810$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13811 if test -x $with_build_time_tools/${ncn_progname}; then
228cf97d 13812 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
e552509b
ILT
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13814$as_echo "yes" >&6; }
13815 break
13816 else
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13818$as_echo "no" >&6; }
13819 fi
13820 done
13821fi
13822
228cf97d
AM
13823if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13824 for ncn_progname in gdc; do
e552509b
ILT
13825 if test -n "$ncn_target_tool_prefix"; then
13826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13827set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13829$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 13830if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
13831 $as_echo_n "(cached) " >&6
13832else
228cf97d
AM
13833 if test -n "$GDC_FOR_TARGET"; then
13834 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
13835else
13836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837for as_dir in $PATH
13838do
13839 IFS=$as_save_IFS
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13843 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
e552509b
ILT
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 break 2
13846 fi
13847done
13848 done
13849IFS=$as_save_IFS
13850
13851fi
13852fi
228cf97d
AM
13853GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13854if test -n "$GDC_FOR_TARGET"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13856$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
13857else
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13859$as_echo "no" >&6; }
13860fi
13861
13862
13863 fi
228cf97d 13864 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
e552509b
ILT
13865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13866set dummy ${ncn_progname}; ac_word=$2
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868$as_echo_n "checking for $ac_word... " >&6; }
228cf97d 13869if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
e552509b
ILT
13870 $as_echo_n "(cached) " >&6
13871else
228cf97d
AM
13872 if test -n "$GDC_FOR_TARGET"; then
13873 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
e552509b
ILT
13874else
13875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876for as_dir in $PATH
13877do
13878 IFS=$as_save_IFS
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
228cf97d 13882 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
e552509b
ILT
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884 break 2
13885 fi
13886done
13887 done
13888IFS=$as_save_IFS
13889
13890fi
13891fi
228cf97d
AM
13892GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13893if test -n "$GDC_FOR_TARGET"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13895$as_echo "$GDC_FOR_TARGET" >&6; }
e552509b
ILT
13896else
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898$as_echo "no" >&6; }
13899fi
13900
13901
13902 fi
228cf97d 13903 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
e552509b
ILT
13904 done
13905fi
13906
228cf97d
AM
13907if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13908 set dummy gdc
e552509b 13909 if test $build = $target ; then
228cf97d 13910 GDC_FOR_TARGET="$2"
e552509b 13911 else
228cf97d 13912 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
e552509b
ILT
13913 fi
13914else
228cf97d 13915 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
e552509b
ILT
13916fi
13917
13918
13919
2429c060
PB
13920cat > conftest.c << \EOF
13921#ifdef __GNUC__
13922 gcc_yay;
13923#endif
13924EOF
13925if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13926 have_gcc_for_target=yes
859789af 13927else
2429c060
PB
13928 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13929 have_gcc_for_target=no
859789af 13930fi
2429c060
PB
13931rm conftest.c
13932
13933
13934
859789af 13935
2429c060
PB
13936if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13937 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13939$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13940 if test -x $with_build_time_tools/ar; then
13941 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13942 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13944$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 13945 else
81ecdfbb
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947$as_echo "no" >&6; }
3a35eeb3 13948 fi
2429c060
PB
13949 elif test $build != $host && test $have_gcc_for_target = yes; then
13950 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
13951 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13952 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 13953 fi
2429c060 13954fi
c6b750e1 13955if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13956 # Extract the first word of "ar", so it can be a program name with args.
13957set dummy ar; ac_word=$2
81ecdfbb
RW
13958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13959$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13960if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
81ecdfbb 13961 $as_echo_n "(cached) " >&6
859789af 13962else
c6b750e1
DJ
13963 case $AR_FOR_TARGET in
13964 [\\/]* | ?:[\\/]*)
2429c060
PB
13965 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13966 ;;
2429c060 13967 *)
c6b750e1
DJ
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969for as_dir in $gcc_cv_tool_dirs
13970do
13971 IFS=$as_save_IFS
13972 test -z "$as_dir" && as_dir=.
81ecdfbb 13973 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 13975 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13977 break 2
13978 fi
13979done
81ecdfbb
RW
13980 done
13981IFS=$as_save_IFS
c6b750e1 13982
2429c060
PB
13983 ;;
13984esac
859789af 13985fi
c6b750e1 13986AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 13987if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13989$as_echo "$AR_FOR_TARGET" >&6; }
859789af 13990else
81ecdfbb
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13992$as_echo "no" >&6; }
859789af 13993fi
05cbd757 13994
81ecdfbb 13995
2429c060
PB
13996fi
13997if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
13998
13999
14000if test -n "$AR_FOR_TARGET"; then
14001 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14002elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14003 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14004fi
14005
14006if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14007 for ncn_progname in ar; do
14008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14009set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14011$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14012if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14013 $as_echo_n "(cached) " >&6
9a819804
AO
14014else
14015 if test -n "$AR_FOR_TARGET"; then
14016 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14017else
14018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019for as_dir in $PATH
14020do
14021 IFS=$as_save_IFS
14022 test -z "$as_dir" && as_dir=.
81ecdfbb 14023 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14025 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14027 break 2
14028 fi
14029done
81ecdfbb
RW
14030 done
14031IFS=$as_save_IFS
9a819804
AO
14032
14033fi
14034fi
14035AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14036if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14038$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 14039else
81ecdfbb
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14041$as_echo "no" >&6; }
9a819804
AO
14042fi
14043
81ecdfbb 14044
9a819804
AO
14045 done
14046fi
14047
14048if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14049 for ncn_progname in ar; do
81ecdfbb
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14051$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14052 if test -x $with_build_time_tools/${ncn_progname}; then
14053 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14055$as_echo "yes" >&6; }
2429c060
PB
14056 break
14057 else
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059$as_echo "no" >&6; }
2429c060
PB
14060 fi
14061 done
859789af
AC
14062fi
14063
2429c060
PB
14064if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14065 for ncn_progname in ar; do
14066 if test -n "$ncn_target_tool_prefix"; then
14067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 14068set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14070$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14071if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14072 $as_echo_n "(cached) " >&6
7e0f7140 14073else
2429c060
PB
14074 if test -n "$AR_FOR_TARGET"; then
14075 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 14076else
c6b750e1
DJ
14077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $PATH
14079do
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
81ecdfbb 14082 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14084 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14086 break 2
14087 fi
14088done
81ecdfbb
RW
14089 done
14090IFS=$as_save_IFS
c6b750e1 14091
7e0f7140
GK
14092fi
14093fi
c6b750e1 14094AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14095if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14097$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14098else
81ecdfbb
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14100$as_echo "no" >&6; }
7e0f7140
GK
14101fi
14102
81ecdfbb 14103
2429c060
PB
14104 fi
14105 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 14107set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14110if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
81ecdfbb 14111 $as_echo_n "(cached) " >&6
7e0f7140 14112else
2429c060
PB
14113 if test -n "$AR_FOR_TARGET"; then
14114 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 14115else
c6b750e1
DJ
14116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117for as_dir in $PATH
14118do
14119 IFS=$as_save_IFS
14120 test -z "$as_dir" && as_dir=.
81ecdfbb 14121 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14123 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 14124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14125 break 2
14126 fi
14127done
81ecdfbb
RW
14128 done
14129IFS=$as_save_IFS
c6b750e1 14130
7e0f7140
GK
14131fi
14132fi
c6b750e1 14133AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 14134if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
14136$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 14137else
81ecdfbb
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
7e0f7140 14140fi
c6b750e1 14141
81ecdfbb 14142
2429c060
PB
14143 fi
14144 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14145 done
14146fi
c6b750e1 14147
2429c060
PB
14148if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14149 set dummy ar
7e0f7140 14150 if test $build = $target ; then
2429c060 14151 AR_FOR_TARGET="$2"
7e0f7140 14152 else
2429c060 14153 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 14154 fi
d3f5afc4
MS
14155else
14156 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
14157fi
14158
3a35eeb3
PB
14159else
14160 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
14161fi
14162
14163
14164
14165
14166if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14167 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14169$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14170 if test -x $with_build_time_tools/as; then
14171 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14172 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14174$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 14175 else
81ecdfbb
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177$as_echo "no" >&6; }
3a35eeb3 14178 fi
2429c060
PB
14179 elif test $build != $host && test $have_gcc_for_target = yes; then
14180 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
14181 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14182 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
14183 fi
14184fi
c6b750e1 14185if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14186 # Extract the first word of "as", so it can be a program name with args.
14187set dummy as; ac_word=$2
81ecdfbb
RW
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14190if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
81ecdfbb 14191 $as_echo_n "(cached) " >&6
2429c060 14192else
c6b750e1
DJ
14193 case $AS_FOR_TARGET in
14194 [\\/]* | ?:[\\/]*)
2429c060
PB
14195 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14196 ;;
2429c060 14197 *)
c6b750e1
DJ
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199for as_dir in $gcc_cv_tool_dirs
14200do
14201 IFS=$as_save_IFS
14202 test -z "$as_dir" && as_dir=.
81ecdfbb 14203 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14205 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14207 break 2
14208 fi
14209done
81ecdfbb
RW
14210 done
14211IFS=$as_save_IFS
c6b750e1 14212
2429c060
PB
14213 ;;
14214esac
14215fi
c6b750e1 14216AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 14217if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14219$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14220else
81ecdfbb
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222$as_echo "no" >&6; }
2429c060
PB
14223fi
14224
81ecdfbb 14225
2429c060
PB
14226fi
14227if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
14228
14229
14230if test -n "$AS_FOR_TARGET"; then
14231 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14232elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14233 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14234fi
14235
14236if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14237 for ncn_progname in as; do
14238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14239set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14242if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14243 $as_echo_n "(cached) " >&6
9a819804
AO
14244else
14245 if test -n "$AS_FOR_TARGET"; then
14246 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14247else
14248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
81ecdfbb 14253 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14255 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14257 break 2
14258 fi
14259done
81ecdfbb
RW
14260 done
14261IFS=$as_save_IFS
9a819804
AO
14262
14263fi
14264fi
14265AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14266if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14268$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 14269else
81ecdfbb
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271$as_echo "no" >&6; }
9a819804
AO
14272fi
14273
81ecdfbb 14274
9a819804
AO
14275 done
14276fi
14277
14278if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14279 for ncn_progname in as; do
81ecdfbb
RW
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14281$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14282 if test -x $with_build_time_tools/${ncn_progname}; then
14283 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14285$as_echo "yes" >&6; }
2429c060
PB
14286 break
14287 else
81ecdfbb
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14289$as_echo "no" >&6; }
2429c060
PB
14290 fi
14291 done
14292fi
14293
14294if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14295 for ncn_progname in as; do
14296 if test -n "$ncn_target_tool_prefix"; then
14297 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14298set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14300$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14301if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14302 $as_echo_n "(cached) " >&6
2429c060
PB
14303else
14304 if test -n "$AS_FOR_TARGET"; then
14305 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14306else
c6b750e1
DJ
14307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308for as_dir in $PATH
14309do
14310 IFS=$as_save_IFS
14311 test -z "$as_dir" && as_dir=.
81ecdfbb 14312 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14314 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14316 break 2
14317 fi
14318done
81ecdfbb
RW
14319 done
14320IFS=$as_save_IFS
c6b750e1 14321
2429c060
PB
14322fi
14323fi
c6b750e1 14324AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14325if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14327$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14328else
81ecdfbb
RW
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14330$as_echo "no" >&6; }
2429c060
PB
14331fi
14332
81ecdfbb 14333
2429c060
PB
14334 fi
14335 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14337set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14339$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14340if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
81ecdfbb 14341 $as_echo_n "(cached) " >&6
2429c060
PB
14342else
14343 if test -n "$AS_FOR_TARGET"; then
14344 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14345else
c6b750e1
DJ
14346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347for as_dir in $PATH
14348do
14349 IFS=$as_save_IFS
14350 test -z "$as_dir" && as_dir=.
81ecdfbb 14351 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14353 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 14354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14355 break 2
14356 fi
14357done
81ecdfbb
RW
14358 done
14359IFS=$as_save_IFS
c6b750e1 14360
2429c060
PB
14361fi
14362fi
c6b750e1 14363AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 14364if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14366$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 14367else
81ecdfbb
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14369$as_echo "no" >&6; }
2429c060 14370fi
c6b750e1 14371
81ecdfbb 14372
2429c060
PB
14373 fi
14374 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14375 done
14376fi
c6b750e1 14377
2429c060
PB
14378if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14379 set dummy as
14380 if test $build = $target ; then
14381 AS_FOR_TARGET="$2"
14382 else
14383 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14384 fi
d3f5afc4
MS
14385else
14386 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
14387fi
14388
3a35eeb3
PB
14389else
14390 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
14391fi
14392
14393
14394
14395
14396if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14397 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14399$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14400 if test -x $with_build_time_tools/dlltool; then
14401 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14402 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14404$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 14405 else
81ecdfbb
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407$as_echo "no" >&6; }
3a35eeb3 14408 fi
2429c060
PB
14409 elif test $build != $host && test $have_gcc_for_target = yes; then
14410 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
14411 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14412 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
14413 fi
14414fi
c6b750e1 14415if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14416 # Extract the first word of "dlltool", so it can be a program name with args.
14417set dummy dlltool; ac_word=$2
81ecdfbb
RW
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14419$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14420if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14421 $as_echo_n "(cached) " >&6
2429c060 14422else
c6b750e1
DJ
14423 case $DLLTOOL_FOR_TARGET in
14424 [\\/]* | ?:[\\/]*)
2429c060
PB
14425 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14426 ;;
2429c060 14427 *)
c6b750e1
DJ
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429for as_dir in $gcc_cv_tool_dirs
14430do
14431 IFS=$as_save_IFS
14432 test -z "$as_dir" && as_dir=.
81ecdfbb 14433 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14435 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14437 break 2
14438 fi
14439done
81ecdfbb
RW
14440 done
14441IFS=$as_save_IFS
c6b750e1 14442
2429c060
PB
14443 ;;
14444esac
14445fi
c6b750e1 14446DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 14447if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14449$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14450else
81ecdfbb
RW
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14452$as_echo "no" >&6; }
2429c060
PB
14453fi
14454
81ecdfbb 14455
2429c060
PB
14456fi
14457if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
14458
14459
14460if test -n "$DLLTOOL_FOR_TARGET"; then
14461 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14462elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14463 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14464fi
14465
14466if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14467 for ncn_progname in dlltool; do
14468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14469set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14471$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14472if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14473 $as_echo_n "(cached) " >&6
9a819804
AO
14474else
14475 if test -n "$DLLTOOL_FOR_TARGET"; then
14476 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14477else
14478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479for as_dir in $PATH
14480do
14481 IFS=$as_save_IFS
14482 test -z "$as_dir" && as_dir=.
81ecdfbb 14483 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14485 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 14486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14487 break 2
14488 fi
14489done
81ecdfbb
RW
14490 done
14491IFS=$as_save_IFS
9a819804
AO
14492
14493fi
14494fi
14495DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14496if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14498$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 14499else
81ecdfbb
RW
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14501$as_echo "no" >&6; }
9a819804
AO
14502fi
14503
81ecdfbb 14504
9a819804
AO
14505 done
14506fi
14507
14508if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14509 for ncn_progname in dlltool; do
81ecdfbb
RW
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14511$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14512 if test -x $with_build_time_tools/${ncn_progname}; then
14513 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14515$as_echo "yes" >&6; }
2429c060
PB
14516 break
14517 else
81ecdfbb
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14519$as_echo "no" >&6; }
2429c060
PB
14520 fi
14521 done
14522fi
14523
14524if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14525 for ncn_progname in dlltool; do
14526 if test -n "$ncn_target_tool_prefix"; then
14527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14528set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14530$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14531if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14532 $as_echo_n "(cached) " >&6
2429c060
PB
14533else
14534 if test -n "$DLLTOOL_FOR_TARGET"; then
14535 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14536else
c6b750e1
DJ
14537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538for as_dir in $PATH
14539do
14540 IFS=$as_save_IFS
14541 test -z "$as_dir" && as_dir=.
81ecdfbb 14542 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14544 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 14545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14546 break 2
14547 fi
14548done
81ecdfbb
RW
14549 done
14550IFS=$as_save_IFS
c6b750e1 14551
2429c060
PB
14552fi
14553fi
c6b750e1 14554DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 14555if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14557$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14558else
81ecdfbb
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14560$as_echo "no" >&6; }
2429c060
PB
14561fi
14562
81ecdfbb 14563
2429c060
PB
14564 fi
14565 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14567set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14570if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
81ecdfbb 14571 $as_echo_n "(cached) " >&6
2429c060
PB
14572else
14573 if test -n "$DLLTOOL_FOR_TARGET"; then
14574 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14575else
c6b750e1
DJ
14576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577for as_dir in $PATH
14578do
14579 IFS=$as_save_IFS
14580 test -z "$as_dir" && as_dir=.
81ecdfbb 14581 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14583 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 14584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14585 break 2
14586 fi
14587done
81ecdfbb
RW
14588 done
14589IFS=$as_save_IFS
c6b750e1 14590
2429c060
PB
14591fi
14592fi
c6b750e1 14593DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 14594if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14596$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 14597else
81ecdfbb
RW
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14599$as_echo "no" >&6; }
2429c060 14600fi
c6b750e1 14601
81ecdfbb 14602
2429c060 14603 fi
228cf97d
AM
14604 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14605 done
14606fi
14607
14608if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14609 set dummy dlltool
14610 if test $build = $target ; then
14611 DLLTOOL_FOR_TARGET="$2"
14612 else
14613 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14614 fi
14615else
14616 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14617fi
14618
14619else
14620 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14621fi
14622
14623
14624
14625
14626if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14627 if test -n "$with_build_time_tools"; then
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14629$as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14630 if test -x $with_build_time_tools/dsymutil; then
14631 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14632 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14634$as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14635 else
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637$as_echo "no" >&6; }
14638 fi
14639 elif test $build != $host && test $have_gcc_for_target = yes; then
14640 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14641 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14642 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14643 fi
14644fi
14645if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14646 # Extract the first word of "dsymutil", so it can be a program name with args.
14647set dummy dsymutil; ac_word=$2
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14649$as_echo_n "checking for $ac_word... " >&6; }
14650if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14651 $as_echo_n "(cached) " >&6
14652else
14653 case $DSYMUTIL_FOR_TARGET in
14654 [\\/]* | ?:[\\/]*)
14655 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14656 ;;
14657 *)
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659for as_dir in $gcc_cv_tool_dirs
14660do
14661 IFS=$as_save_IFS
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14667 break 2
14668 fi
14669done
14670 done
14671IFS=$as_save_IFS
14672
14673 ;;
14674esac
14675fi
14676DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14677if test -n "$DSYMUTIL_FOR_TARGET"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14679$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14680else
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14682$as_echo "no" >&6; }
14683fi
14684
14685
14686fi
14687if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14688
14689
14690if test -n "$DSYMUTIL_FOR_TARGET"; then
14691 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14692elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14693 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14694fi
14695
14696if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14697 for ncn_progname in dsymutil; do
14698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14699set dummy ${ncn_progname}; ac_word=$2
14700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14701$as_echo_n "checking for $ac_word... " >&6; }
14702if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704else
14705 if test -n "$DSYMUTIL_FOR_TARGET"; then
14706 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14707else
14708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709for as_dir in $PATH
14710do
14711 IFS=$as_save_IFS
14712 test -z "$as_dir" && as_dir=.
14713 for ac_exec_ext in '' $ac_executable_extensions; do
14714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14715 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14717 break 2
14718 fi
14719done
14720 done
14721IFS=$as_save_IFS
14722
14723fi
14724fi
14725DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14726if test -n "$DSYMUTIL_FOR_TARGET"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14728$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14729else
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14731$as_echo "no" >&6; }
14732fi
14733
14734
14735 done
14736fi
14737
14738if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14739 for ncn_progname in dsymutil; do
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14741$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14742 if test -x $with_build_time_tools/${ncn_progname}; then
14743 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14745$as_echo "yes" >&6; }
14746 break
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14749$as_echo "no" >&6; }
14750 fi
14751 done
14752fi
14753
14754if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14755 for ncn_progname in dsymutil; do
14756 if test -n "$ncn_target_tool_prefix"; then
14757 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14758set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14760$as_echo_n "checking for $ac_word... " >&6; }
14761if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763else
14764 if test -n "$DSYMUTIL_FOR_TARGET"; then
14765 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14766else
14767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768for as_dir in $PATH
14769do
14770 IFS=$as_save_IFS
14771 test -z "$as_dir" && as_dir=.
14772 for ac_exec_ext in '' $ac_executable_extensions; do
14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14774 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14776 break 2
14777 fi
14778done
14779 done
14780IFS=$as_save_IFS
14781
14782fi
14783fi
14784DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14785if test -n "$DSYMUTIL_FOR_TARGET"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14787$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14788else
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14790$as_echo "no" >&6; }
14791fi
14792
14793
14794 fi
14795 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14797set dummy ${ncn_progname}; ac_word=$2
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799$as_echo_n "checking for $ac_word... " >&6; }
14800if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14801 $as_echo_n "(cached) " >&6
14802else
14803 if test -n "$DSYMUTIL_FOR_TARGET"; then
14804 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14805else
14806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807for as_dir in $PATH
14808do
14809 IFS=$as_save_IFS
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815 break 2
14816 fi
14817done
14818 done
14819IFS=$as_save_IFS
14820
14821fi
14822fi
14823DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14824if test -n "$DSYMUTIL_FOR_TARGET"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14826$as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14827else
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829$as_echo "no" >&6; }
14830fi
14831
14832
14833 fi
14834 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
2429c060
PB
14835 done
14836fi
c6b750e1 14837
228cf97d
AM
14838if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14839 set dummy dsymutil
2429c060 14840 if test $build = $target ; then
228cf97d 14841 DSYMUTIL_FOR_TARGET="$2"
2429c060 14842 else
228cf97d 14843 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
2429c060 14844 fi
d3f5afc4 14845else
228cf97d 14846 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
2429c060
PB
14847fi
14848
3a35eeb3 14849else
228cf97d 14850 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
2429c060
PB
14851fi
14852
14853
14854
14855
14856if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14857 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14859$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14860 if test -x $with_build_time_tools/ld; then
14861 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14862 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14864$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 14865 else
81ecdfbb
RW
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867$as_echo "no" >&6; }
3a35eeb3 14868 fi
2429c060
PB
14869 elif test $build != $host && test $have_gcc_for_target = yes; then
14870 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
14871 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14872 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
14873 fi
14874fi
c6b750e1 14875if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
14876 # Extract the first word of "ld", so it can be a program name with args.
14877set dummy ld; ac_word=$2
81ecdfbb
RW
14878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14879$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14880if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
81ecdfbb 14881 $as_echo_n "(cached) " >&6
2429c060 14882else
c6b750e1
DJ
14883 case $LD_FOR_TARGET in
14884 [\\/]* | ?:[\\/]*)
2429c060
PB
14885 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14886 ;;
2429c060 14887 *)
c6b750e1
DJ
14888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889for as_dir in $gcc_cv_tool_dirs
14890do
14891 IFS=$as_save_IFS
14892 test -z "$as_dir" && as_dir=.
81ecdfbb 14893 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 14895 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 14896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
14897 break 2
14898 fi
14899done
81ecdfbb
RW
14900 done
14901IFS=$as_save_IFS
c6b750e1 14902
2429c060
PB
14903 ;;
14904esac
14905fi
c6b750e1 14906LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 14907if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14909$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 14910else
81ecdfbb
RW
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14912$as_echo "no" >&6; }
2429c060
PB
14913fi
14914
81ecdfbb 14915
2429c060
PB
14916fi
14917if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
14918
14919
14920if test -n "$LD_FOR_TARGET"; then
14921 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14922elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14923 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14924fi
14925
14926if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14927 for ncn_progname in ld; do
14928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14929set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14931$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14932if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 14933 $as_echo_n "(cached) " >&6
9a819804
AO
14934else
14935 if test -n "$LD_FOR_TARGET"; then
14936 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14937else
14938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939for as_dir in $PATH
14940do
14941 IFS=$as_save_IFS
14942 test -z "$as_dir" && as_dir=.
81ecdfbb 14943 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 14944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 14945 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 14946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
14947 break 2
14948 fi
14949done
81ecdfbb
RW
14950 done
14951IFS=$as_save_IFS
9a819804
AO
14952
14953fi
14954fi
14955LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14956if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14958$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 14959else
81ecdfbb
RW
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961$as_echo "no" >&6; }
9a819804
AO
14962fi
14963
81ecdfbb 14964
9a819804
AO
14965 done
14966fi
14967
14968if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 14969 for ncn_progname in ld; do
81ecdfbb
RW
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14971$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
14972 if test -x $with_build_time_tools/${ncn_progname}; then
14973 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14975$as_echo "yes" >&6; }
2429c060
PB
14976 break
14977 else
81ecdfbb
RW
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979$as_echo "no" >&6; }
2429c060
PB
14980 fi
14981 done
14982fi
14983
14984if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14985 for ncn_progname in ld; do
14986 if test -n "$ncn_target_tool_prefix"; then
14987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14988set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
14989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14990$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 14991if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 14992 $as_echo_n "(cached) " >&6
2429c060
PB
14993else
14994 if test -n "$LD_FOR_TARGET"; then
14995 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14996else
c6b750e1
DJ
14997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998for as_dir in $PATH
14999do
15000 IFS=$as_save_IFS
15001 test -z "$as_dir" && as_dir=.
81ecdfbb 15002 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15004 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15006 break 2
15007 fi
15008done
81ecdfbb
RW
15009 done
15010IFS=$as_save_IFS
c6b750e1 15011
2429c060
PB
15012fi
15013fi
c6b750e1 15014LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15015if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15017$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15018else
81ecdfbb
RW
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020$as_echo "no" >&6; }
2429c060
PB
15021fi
15022
81ecdfbb 15023
2429c060
PB
15024 fi
15025 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15027set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15029$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15030if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
81ecdfbb 15031 $as_echo_n "(cached) " >&6
2429c060
PB
15032else
15033 if test -n "$LD_FOR_TARGET"; then
15034 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15035else
c6b750e1
DJ
15036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037for as_dir in $PATH
15038do
15039 IFS=$as_save_IFS
15040 test -z "$as_dir" && as_dir=.
81ecdfbb 15041 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15043 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 15044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15045 break 2
15046 fi
15047done
81ecdfbb
RW
15048 done
15049IFS=$as_save_IFS
c6b750e1 15050
2429c060
PB
15051fi
15052fi
c6b750e1 15053LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 15054if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
15056$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 15057else
81ecdfbb
RW
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059$as_echo "no" >&6; }
2429c060 15060fi
c6b750e1 15061
81ecdfbb 15062
2429c060
PB
15063 fi
15064 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15065 done
15066fi
c6b750e1 15067
2429c060
PB
15068if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15069 set dummy ld
15070 if test $build = $target ; then
15071 LD_FOR_TARGET="$2"
15072 else
15073 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15074 fi
d3f5afc4
MS
15075else
15076 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
15077fi
15078
3a35eeb3
PB
15079else
15080 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
15081fi
15082
15083
15084
15085
15086if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15087 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
15089$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15090 if test -x $with_build_time_tools/lipo; then
15091 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15092 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
15094$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 15095 else
81ecdfbb
RW
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097$as_echo "no" >&6; }
3a35eeb3 15098 fi
2429c060
PB
15099 elif test $build != $host && test $have_gcc_for_target = yes; then
15100 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
15101 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15102 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
15103 fi
15104fi
9a819804
AO
15105if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15106 # Extract the first word of "lipo", so it can be a program name with args.
15107set dummy lipo; ac_word=$2
81ecdfbb
RW
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15109$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15110if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15111 $as_echo_n "(cached) " >&6
9a819804
AO
15112else
15113 case $LIPO_FOR_TARGET in
15114 [\\/]* | ?:[\\/]*)
15115 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15116 ;;
15117 *)
15118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15119for as_dir in $gcc_cv_tool_dirs
15120do
15121 IFS=$as_save_IFS
15122 test -z "$as_dir" && as_dir=.
81ecdfbb 15123 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15125 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15127 break 2
15128 fi
15129done
81ecdfbb
RW
15130 done
15131IFS=$as_save_IFS
9a819804
AO
15132
15133 ;;
15134esac
15135fi
15136LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 15137if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15139$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 15140else
81ecdfbb
RW
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142$as_echo "no" >&6; }
9a819804
AO
15143fi
15144
81ecdfbb 15145
9a819804
AO
15146fi
15147if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15148
15149
15150if test -n "$LIPO_FOR_TARGET"; then
15151 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15152elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15153 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15154fi
15155
15156if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15157 for ncn_progname in lipo; do
15158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15159set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15161$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15162if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15163 $as_echo_n "(cached) " >&6
2429c060 15164else
9a819804
AO
15165 if test -n "$LIPO_FOR_TARGET"; then
15166 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15167else
15168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15169for as_dir in $PATH
c6b750e1
DJ
15170do
15171 IFS=$as_save_IFS
15172 test -z "$as_dir" && as_dir=.
81ecdfbb 15173 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15175 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15177 break 2
15178 fi
15179done
81ecdfbb
RW
15180 done
15181IFS=$as_save_IFS
c6b750e1 15182
2429c060 15183fi
9a819804
AO
15184fi
15185LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15186if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15188$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15189else
81ecdfbb
RW
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15191$as_echo "no" >&6; }
2429c060
PB
15192fi
15193
81ecdfbb 15194
9a819804 15195 done
2429c060 15196fi
9a819804
AO
15197
15198if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15199 for ncn_progname in lipo; do
81ecdfbb
RW
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15201$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15202 if test -x $with_build_time_tools/${ncn_progname}; then
15203 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15205$as_echo "yes" >&6; }
2429c060
PB
15206 break
15207 else
81ecdfbb
RW
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209$as_echo "no" >&6; }
2429c060
PB
15210 fi
15211 done
15212fi
15213
15214if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15215 for ncn_progname in lipo; do
15216 if test -n "$ncn_target_tool_prefix"; then
15217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15218set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15220$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15221if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15222 $as_echo_n "(cached) " >&6
2429c060
PB
15223else
15224 if test -n "$LIPO_FOR_TARGET"; then
15225 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15226else
c6b750e1
DJ
15227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15228for as_dir in $PATH
15229do
15230 IFS=$as_save_IFS
15231 test -z "$as_dir" && as_dir=.
81ecdfbb 15232 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15234 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15236 break 2
15237 fi
15238done
81ecdfbb
RW
15239 done
15240IFS=$as_save_IFS
c6b750e1 15241
2429c060
PB
15242fi
15243fi
c6b750e1 15244LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15245if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15247$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15248else
81ecdfbb
RW
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15250$as_echo "no" >&6; }
2429c060
PB
15251fi
15252
81ecdfbb 15253
2429c060
PB
15254 fi
15255 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15257set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15260if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
81ecdfbb 15261 $as_echo_n "(cached) " >&6
2429c060
PB
15262else
15263 if test -n "$LIPO_FOR_TARGET"; then
15264 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15265else
c6b750e1
DJ
15266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267for as_dir in $PATH
15268do
15269 IFS=$as_save_IFS
15270 test -z "$as_dir" && as_dir=.
81ecdfbb 15271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15273 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 15274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15275 break 2
15276 fi
15277done
81ecdfbb
RW
15278 done
15279IFS=$as_save_IFS
c6b750e1 15280
2429c060
PB
15281fi
15282fi
c6b750e1 15283LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 15284if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15286$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 15287else
81ecdfbb
RW
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15289$as_echo "no" >&6; }
2429c060 15290fi
c6b750e1 15291
81ecdfbb 15292
2429c060
PB
15293 fi
15294 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15295 done
15296fi
c6b750e1 15297
2429c060
PB
15298if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15299 set dummy lipo
15300 if test $build = $target ; then
15301 LIPO_FOR_TARGET="$2"
15302 else
15303 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15304 fi
d3f5afc4
MS
15305else
15306 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
15307fi
15308
3a35eeb3
PB
15309else
15310 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
15311fi
15312
15313
15314
15315
15316if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15317 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15319$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15320 if test -x $with_build_time_tools/nm; then
15321 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15322 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15324$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 15325 else
81ecdfbb
RW
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327$as_echo "no" >&6; }
3a35eeb3 15328 fi
2429c060
PB
15329 elif test $build != $host && test $have_gcc_for_target = yes; then
15330 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
15331 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15332 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
15333 fi
15334fi
c6b750e1 15335if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15336 # Extract the first word of "nm", so it can be a program name with args.
15337set dummy nm; ac_word=$2
81ecdfbb
RW
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15339$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15340if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
81ecdfbb 15341 $as_echo_n "(cached) " >&6
2429c060 15342else
c6b750e1
DJ
15343 case $NM_FOR_TARGET in
15344 [\\/]* | ?:[\\/]*)
2429c060
PB
15345 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15346 ;;
2429c060 15347 *)
c6b750e1
DJ
15348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349for as_dir in $gcc_cv_tool_dirs
15350do
15351 IFS=$as_save_IFS
15352 test -z "$as_dir" && as_dir=.
81ecdfbb 15353 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15355 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15357 break 2
15358 fi
15359done
81ecdfbb
RW
15360 done
15361IFS=$as_save_IFS
c6b750e1 15362
2429c060
PB
15363 ;;
15364esac
15365fi
c6b750e1 15366NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 15367if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15369$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 15370else
81ecdfbb
RW
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15372$as_echo "no" >&6; }
2429c060
PB
15373fi
15374
81ecdfbb 15375
2429c060
PB
15376fi
15377if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
15378
15379
15380if test -n "$NM_FOR_TARGET"; then
15381 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15382elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15383 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15384fi
15385
15386if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15387 for ncn_progname in nm; do
15388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15389set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15391$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15392if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15393 $as_echo_n "(cached) " >&6
9a819804
AO
15394else
15395 if test -n "$NM_FOR_TARGET"; then
15396 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15397else
15398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399for as_dir in $PATH
15400do
15401 IFS=$as_save_IFS
15402 test -z "$as_dir" && as_dir=.
81ecdfbb 15403 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15405 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15407 break 2
15408 fi
15409done
81ecdfbb
RW
15410 done
15411IFS=$as_save_IFS
9a819804
AO
15412
15413fi
15414fi
15415NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15416if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15418$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 15419else
81ecdfbb
RW
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15421$as_echo "no" >&6; }
9a819804
AO
15422fi
15423
81ecdfbb 15424
9a819804
AO
15425 done
15426fi
15427
15428if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15429 for ncn_progname in nm; do
81ecdfbb
RW
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15431$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15432 if test -x $with_build_time_tools/${ncn_progname}; then
15433 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15435$as_echo "yes" >&6; }
2429c060
PB
15436 break
15437 else
81ecdfbb
RW
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15439$as_echo "no" >&6; }
2429c060
PB
15440 fi
15441 done
15442fi
15443
15444if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15445 for ncn_progname in nm; do
15446 if test -n "$ncn_target_tool_prefix"; then
15447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 15448set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15450$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15451if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15452 $as_echo_n "(cached) " >&6
859789af 15453else
55db4b87
PB
15454 if test -n "$NM_FOR_TARGET"; then
15455 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15456else
c6b750e1
DJ
15457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458for as_dir in $PATH
15459do
15460 IFS=$as_save_IFS
15461 test -z "$as_dir" && as_dir=.
81ecdfbb 15462 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15464 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15466 break 2
15467 fi
15468done
81ecdfbb
RW
15469 done
15470IFS=$as_save_IFS
c6b750e1 15471
859789af
AC
15472fi
15473fi
c6b750e1 15474NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 15475if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15477$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15478else
81ecdfbb
RW
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15480$as_echo "no" >&6; }
859789af
AC
15481fi
15482
81ecdfbb 15483
2429c060
PB
15484 fi
15485 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 15487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15489$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15490if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
81ecdfbb 15491 $as_echo_n "(cached) " >&6
859789af 15492else
05cbd757
PB
15493 if test -n "$NM_FOR_TARGET"; then
15494 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 15495else
c6b750e1
DJ
15496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497for as_dir in $PATH
15498do
15499 IFS=$as_save_IFS
15500 test -z "$as_dir" && as_dir=.
81ecdfbb 15501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15503 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 15504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15505 break 2
15506 fi
15507done
81ecdfbb
RW
15508 done
15509IFS=$as_save_IFS
c6b750e1 15510
859789af
AC
15511fi
15512fi
c6b750e1 15513NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 15514if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15516$as_echo "$NM_FOR_TARGET" >&6; }
859789af 15517else
81ecdfbb
RW
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15519$as_echo "no" >&6; }
859789af 15520fi
c6b750e1 15521
81ecdfbb 15522
2429c060
PB
15523 fi
15524 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15525 done
15526fi
c6b750e1 15527
05cbd757
PB
15528if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15529 set dummy nm
15530 if test $build = $target ; then
15531 NM_FOR_TARGET="$2"
859789af 15532 else
05cbd757 15533 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 15534 fi
d3f5afc4
MS
15535else
15536 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
15537fi
15538
3a35eeb3
PB
15539else
15540 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
15541fi
15542
15543
15544
15545
6b91c541
AP
15546if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15547 if test -n "$with_build_time_tools"; then
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15549$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15550 if test -x $with_build_time_tools/objcopy; then
15551 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15552 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15554$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15555 else
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557$as_echo "no" >&6; }
15558 fi
15559 elif test $build != $host && test $have_gcc_for_target = yes; then
15560 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15561 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15562 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15563 fi
15564fi
15565if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15566 # Extract the first word of "objcopy", so it can be a program name with args.
15567set dummy objcopy; ac_word=$2
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15569$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15570if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
15571 $as_echo_n "(cached) " >&6
15572else
15573 case $OBJCOPY_FOR_TARGET in
15574 [\\/]* | ?:[\\/]*)
15575 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15576 ;;
15577 *)
15578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15579for as_dir in $gcc_cv_tool_dirs
15580do
15581 IFS=$as_save_IFS
15582 test -z "$as_dir" && as_dir=.
15583 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
15585 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15587 break 2
15588 fi
15589done
15590 done
15591IFS=$as_save_IFS
15592
15593 ;;
15594esac
15595fi
15596OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15597if test -n "$OBJCOPY_FOR_TARGET"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15599$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15600else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602$as_echo "no" >&6; }
15603fi
15604
15605
15606fi
15607if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15608
15609
15610if test -n "$OBJCOPY_FOR_TARGET"; then
15611 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15612elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15613 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15614fi
15615
15616if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15617 for ncn_progname in objcopy; do
15618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15619set dummy ${ncn_progname}; ac_word=$2
15620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15621$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15622if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
15623 $as_echo_n "(cached) " >&6
15624else
15625 if test -n "$OBJCOPY_FOR_TARGET"; then
15626 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15627else
15628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15629for as_dir in $PATH
15630do
15631 IFS=$as_save_IFS
15632 test -z "$as_dir" && as_dir=.
15633 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
15635 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15637 break 2
15638 fi
15639done
15640 done
15641IFS=$as_save_IFS
15642
15643fi
15644fi
15645OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15646if test -n "$OBJCOPY_FOR_TARGET"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15648$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15649else
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15651$as_echo "no" >&6; }
15652fi
15653
15654
15655 done
15656fi
15657
15658if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15659 for ncn_progname in objcopy; do
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15661$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15662 if test -x $with_build_time_tools/${ncn_progname}; then
15663 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15665$as_echo "yes" >&6; }
15666 break
15667 else
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15669$as_echo "no" >&6; }
15670 fi
15671 done
15672fi
15673
15674if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15675 for ncn_progname in objcopy; do
15676 if test -n "$ncn_target_tool_prefix"; then
15677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15678set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15680$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15681if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
15682 $as_echo_n "(cached) " >&6
15683else
15684 if test -n "$OBJCOPY_FOR_TARGET"; then
15685 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15686else
15687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688for as_dir in $PATH
15689do
15690 IFS=$as_save_IFS
15691 test -z "$as_dir" && as_dir=.
15692 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
15694 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15696 break 2
15697 fi
15698done
15699 done
15700IFS=$as_save_IFS
15701
15702fi
15703fi
15704OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15705if test -n "$OBJCOPY_FOR_TARGET"; then
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15707$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15708else
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15710$as_echo "no" >&6; }
15711fi
15712
15713
15714 fi
15715 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15717set dummy ${ncn_progname}; ac_word=$2
15718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15719$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15720if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
6b91c541
AP
15721 $as_echo_n "(cached) " >&6
15722else
15723 if test -n "$OBJCOPY_FOR_TARGET"; then
15724 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15725else
15726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727for as_dir in $PATH
15728do
15729 IFS=$as_save_IFS
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6b91c541
AP
15733 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15735 break 2
15736 fi
15737done
15738 done
15739IFS=$as_save_IFS
15740
15741fi
15742fi
15743OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15744if test -n "$OBJCOPY_FOR_TARGET"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15746$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15747else
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15749$as_echo "no" >&6; }
15750fi
15751
15752
15753 fi
15754 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15755 done
15756fi
15757
15758if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15759 set dummy objcopy
15760 if test $build = $target ; then
15761 OBJCOPY_FOR_TARGET="$2"
15762 else
15763 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15764 fi
15765else
15766 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15767fi
15768
15769else
15770 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15771fi
15772
15773
15774
15775
2429c060
PB
15776if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15777 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15779$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15780 if test -x $with_build_time_tools/objdump; then
15781 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15782 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15784$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 15785 else
81ecdfbb
RW
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787$as_echo "no" >&6; }
3a35eeb3 15788 fi
2429c060
PB
15789 elif test $build != $host && test $have_gcc_for_target = yes; then
15790 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
15791 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15792 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
15793 fi
15794fi
c6b750e1 15795if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
15796 # Extract the first word of "objdump", so it can be a program name with args.
15797set dummy objdump; ac_word=$2
81ecdfbb
RW
15798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15799$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15800if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 15801 $as_echo_n "(cached) " >&6
2429c060 15802else
c6b750e1
DJ
15803 case $OBJDUMP_FOR_TARGET in
15804 [\\/]* | ?:[\\/]*)
2429c060
PB
15805 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15806 ;;
2429c060 15807 *)
c6b750e1
DJ
15808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809for as_dir in $gcc_cv_tool_dirs
15810do
15811 IFS=$as_save_IFS
15812 test -z "$as_dir" && as_dir=.
81ecdfbb 15813 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15815 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 15816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15817 break 2
15818 fi
15819done
81ecdfbb
RW
15820 done
15821IFS=$as_save_IFS
c6b750e1 15822
2429c060
PB
15823 ;;
15824esac
15825fi
c6b750e1 15826OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 15827if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15829$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 15830else
81ecdfbb
RW
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15832$as_echo "no" >&6; }
2429c060
PB
15833fi
15834
81ecdfbb 15835
2429c060
PB
15836fi
15837if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
15838
15839
15840if test -n "$OBJDUMP_FOR_TARGET"; then
15841 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15842elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15843 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15844fi
15845
15846if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15847 for ncn_progname in objdump; do
15848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15849set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15851$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15852if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 15853 $as_echo_n "(cached) " >&6
9a819804
AO
15854else
15855 if test -n "$OBJDUMP_FOR_TARGET"; then
15856 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15857else
15858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15859for as_dir in $PATH
15860do
15861 IFS=$as_save_IFS
15862 test -z "$as_dir" && as_dir=.
81ecdfbb 15863 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 15865 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 15866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
15867 break 2
15868 fi
15869done
81ecdfbb
RW
15870 done
15871IFS=$as_save_IFS
9a819804
AO
15872
15873fi
15874fi
15875OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15876if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15878$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 15879else
81ecdfbb
RW
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15881$as_echo "no" >&6; }
9a819804
AO
15882fi
15883
81ecdfbb 15884
9a819804
AO
15885 done
15886fi
15887
15888if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 15889 for ncn_progname in objdump; do
81ecdfbb
RW
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15891$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
15892 if test -x $with_build_time_tools/${ncn_progname}; then
15893 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895$as_echo "yes" >&6; }
2429c060
PB
15896 break
15897 else
81ecdfbb
RW
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15899$as_echo "no" >&6; }
2429c060
PB
15900 fi
15901 done
15902fi
15903
15904if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15905 for ncn_progname in objdump; do
15906 if test -n "$ncn_target_tool_prefix"; then
15907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 15908set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
15909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15910$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15911if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 15912 $as_echo_n "(cached) " >&6
5ae72758
DJ
15913else
15914 if test -n "$OBJDUMP_FOR_TARGET"; then
15915 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15916else
c6b750e1
DJ
15917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918for as_dir in $PATH
15919do
15920 IFS=$as_save_IFS
15921 test -z "$as_dir" && as_dir=.
81ecdfbb 15922 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15924 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 15925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15926 break 2
15927 fi
15928done
81ecdfbb
RW
15929 done
15930IFS=$as_save_IFS
c6b750e1 15931
5ae72758
DJ
15932fi
15933fi
c6b750e1 15934OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 15935if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15937$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 15938else
81ecdfbb
RW
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15940$as_echo "no" >&6; }
5ae72758
DJ
15941fi
15942
81ecdfbb 15943
2429c060
PB
15944 fi
15945 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 15947set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
15948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 15950if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
81ecdfbb 15951 $as_echo_n "(cached) " >&6
5ae72758
DJ
15952else
15953 if test -n "$OBJDUMP_FOR_TARGET"; then
15954 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15955else
c6b750e1
DJ
15956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957for as_dir in $PATH
15958do
15959 IFS=$as_save_IFS
15960 test -z "$as_dir" && as_dir=.
81ecdfbb 15961 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 15962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 15963 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 15964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
15965 break 2
15966 fi
15967done
81ecdfbb
RW
15968 done
15969IFS=$as_save_IFS
c6b750e1 15970
5ae72758
DJ
15971fi
15972fi
c6b750e1 15973OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 15974if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15976$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 15977else
81ecdfbb
RW
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15979$as_echo "no" >&6; }
5ae72758 15980fi
c6b750e1 15981
81ecdfbb 15982
2429c060
PB
15983 fi
15984 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15985 done
15986fi
c6b750e1 15987
5ae72758
DJ
15988if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15989 set dummy objdump
15990 if test $build = $target ; then
15991 OBJDUMP_FOR_TARGET="$2"
15992 else
15993 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15994 fi
d3f5afc4
MS
15995else
15996 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
15997fi
15998
3a35eeb3
PB
15999else
16000 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
16001fi
16002
16003
16004
16005
228cf97d
AM
16006if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16007 if test -n "$with_build_time_tools"; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
16009$as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
16010 if test -x $with_build_time_tools/otool; then
16011 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16012 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16014$as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16015 else
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017$as_echo "no" >&6; }
16018 fi
16019 elif test $build != $host && test $have_gcc_for_target = yes; then
16020 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16021 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16022 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16023 fi
16024fi
16025if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16026 # Extract the first word of "otool", so it can be a program name with args.
16027set dummy otool; ac_word=$2
16028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16029$as_echo_n "checking for $ac_word... " >&6; }
16030if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16031 $as_echo_n "(cached) " >&6
16032else
16033 case $OTOOL_FOR_TARGET in
16034 [\\/]* | ?:[\\/]*)
16035 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16036 ;;
16037 *)
16038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16039for as_dir in $gcc_cv_tool_dirs
16040do
16041 IFS=$as_save_IFS
16042 test -z "$as_dir" && as_dir=.
16043 for ac_exec_ext in '' $ac_executable_extensions; do
16044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16045 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16047 break 2
16048 fi
16049done
16050 done
16051IFS=$as_save_IFS
16052
16053 ;;
16054esac
16055fi
16056OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16057if test -n "$OTOOL_FOR_TARGET"; then
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16059$as_echo "$OTOOL_FOR_TARGET" >&6; }
16060else
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16062$as_echo "no" >&6; }
16063fi
16064
16065
16066fi
16067if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16068
16069
16070if test -n "$OTOOL_FOR_TARGET"; then
16071 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16072elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16073 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16074fi
16075
16076if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16077 for ncn_progname in otool; do
16078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16079set dummy ${ncn_progname}; ac_word=$2
16080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16081$as_echo_n "checking for $ac_word... " >&6; }
16082if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16083 $as_echo_n "(cached) " >&6
16084else
16085 if test -n "$OTOOL_FOR_TARGET"; then
16086 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16087else
16088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089for as_dir in $PATH
16090do
16091 IFS=$as_save_IFS
16092 test -z "$as_dir" && as_dir=.
16093 for ac_exec_ext in '' $ac_executable_extensions; do
16094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16095 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16097 break 2
16098 fi
16099done
16100 done
16101IFS=$as_save_IFS
16102
16103fi
16104fi
16105OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16106if test -n "$OTOOL_FOR_TARGET"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16108$as_echo "$OTOOL_FOR_TARGET" >&6; }
16109else
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111$as_echo "no" >&6; }
16112fi
16113
16114
16115 done
16116fi
16117
16118if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16119 for ncn_progname in otool; do
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16121$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16122 if test -x $with_build_time_tools/${ncn_progname}; then
16123 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125$as_echo "yes" >&6; }
16126 break
16127 else
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16129$as_echo "no" >&6; }
16130 fi
16131 done
16132fi
16133
16134if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16135 for ncn_progname in otool; do
16136 if test -n "$ncn_target_tool_prefix"; then
16137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16138set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16140$as_echo_n "checking for $ac_word... " >&6; }
16141if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16142 $as_echo_n "(cached) " >&6
16143else
16144 if test -n "$OTOOL_FOR_TARGET"; then
16145 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16146else
16147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148for as_dir in $PATH
16149do
16150 IFS=$as_save_IFS
16151 test -z "$as_dir" && as_dir=.
16152 for ac_exec_ext in '' $ac_executable_extensions; do
16153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16154 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16156 break 2
16157 fi
16158done
16159 done
16160IFS=$as_save_IFS
16161
16162fi
16163fi
16164OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16165if test -n "$OTOOL_FOR_TARGET"; then
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16167$as_echo "$OTOOL_FOR_TARGET" >&6; }
16168else
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16170$as_echo "no" >&6; }
16171fi
16172
16173
16174 fi
16175 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16177set dummy ${ncn_progname}; ac_word=$2
16178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16179$as_echo_n "checking for $ac_word... " >&6; }
16180if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16181 $as_echo_n "(cached) " >&6
16182else
16183 if test -n "$OTOOL_FOR_TARGET"; then
16184 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16185else
16186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187for as_dir in $PATH
16188do
16189 IFS=$as_save_IFS
16190 test -z "$as_dir" && as_dir=.
16191 for ac_exec_ext in '' $ac_executable_extensions; do
16192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16193 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16195 break 2
16196 fi
16197done
16198 done
16199IFS=$as_save_IFS
16200
16201fi
16202fi
16203OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16204if test -n "$OTOOL_FOR_TARGET"; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16206$as_echo "$OTOOL_FOR_TARGET" >&6; }
16207else
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209$as_echo "no" >&6; }
16210fi
16211
16212
16213 fi
16214 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16215 done
16216fi
16217
16218if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16219 set dummy otool
16220 if test $build = $target ; then
16221 OTOOL_FOR_TARGET="$2"
16222 else
16223 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16224 fi
16225else
16226 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16227fi
16228
16229else
16230 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16231fi
16232
16233
16234
16235
2429c060
PB
16236if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16237 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16239$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16240 if test -x $with_build_time_tools/ranlib; then
16241 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16242 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16244$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 16245 else
81ecdfbb
RW
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247$as_echo "no" >&6; }
3a35eeb3 16248 fi
2429c060
PB
16249 elif test $build != $host && test $have_gcc_for_target = yes; then
16250 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
16251 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16252 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
16253 fi
16254fi
c6b750e1 16255if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16256 # Extract the first word of "ranlib", so it can be a program name with args.
16257set dummy ranlib; ac_word=$2
81ecdfbb
RW
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16260if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16261 $as_echo_n "(cached) " >&6
2429c060 16262else
c6b750e1
DJ
16263 case $RANLIB_FOR_TARGET in
16264 [\\/]* | ?:[\\/]*)
2429c060
PB
16265 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16266 ;;
2429c060 16267 *)
c6b750e1
DJ
16268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16269for as_dir in $gcc_cv_tool_dirs
16270do
16271 IFS=$as_save_IFS
16272 test -z "$as_dir" && as_dir=.
81ecdfbb 16273 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16275 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16277 break 2
16278 fi
16279done
81ecdfbb
RW
16280 done
16281IFS=$as_save_IFS
c6b750e1 16282
2429c060
PB
16283 ;;
16284esac
16285fi
c6b750e1 16286RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 16287if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16289$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 16290else
81ecdfbb
RW
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16292$as_echo "no" >&6; }
2429c060
PB
16293fi
16294
81ecdfbb 16295
2429c060
PB
16296fi
16297if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
16298
16299
16300if test -n "$RANLIB_FOR_TARGET"; then
16301 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16302elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16303 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16304fi
16305
16306if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16307 for ncn_progname in ranlib; do
16308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16309set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16311$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16312if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16313 $as_echo_n "(cached) " >&6
9a819804
AO
16314else
16315 if test -n "$RANLIB_FOR_TARGET"; then
16316 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16317else
16318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16319for as_dir in $PATH
16320do
16321 IFS=$as_save_IFS
16322 test -z "$as_dir" && as_dir=.
81ecdfbb 16323 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16325 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16327 break 2
16328 fi
16329done
81ecdfbb
RW
16330 done
16331IFS=$as_save_IFS
9a819804
AO
16332
16333fi
16334fi
16335RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16336if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16338$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 16339else
81ecdfbb
RW
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341$as_echo "no" >&6; }
9a819804
AO
16342fi
16343
81ecdfbb 16344
9a819804
AO
16345 done
16346fi
16347
16348if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16349 for ncn_progname in ranlib; do
81ecdfbb
RW
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16351$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16352 if test -x $with_build_time_tools/${ncn_progname}; then
16353 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16355$as_echo "yes" >&6; }
2429c060
PB
16356 break
16357 else
81ecdfbb
RW
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16359$as_echo "no" >&6; }
2429c060
PB
16360 fi
16361 done
16362fi
16363
16364if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16365 for ncn_progname in ranlib; do
16366 if test -n "$ncn_target_tool_prefix"; then
16367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 16368set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16370$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16371if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16372 $as_echo_n "(cached) " >&6
859789af 16373else
55db4b87
PB
16374 if test -n "$RANLIB_FOR_TARGET"; then
16375 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16376else
c6b750e1
DJ
16377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378for as_dir in $PATH
16379do
16380 IFS=$as_save_IFS
16381 test -z "$as_dir" && as_dir=.
81ecdfbb 16382 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16384 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16386 break 2
16387 fi
16388done
81ecdfbb
RW
16389 done
16390IFS=$as_save_IFS
c6b750e1 16391
859789af
AC
16392fi
16393fi
c6b750e1 16394RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 16395if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16397$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16398else
81ecdfbb
RW
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400$as_echo "no" >&6; }
859789af
AC
16401fi
16402
81ecdfbb 16403
2429c060
PB
16404 fi
16405 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 16407set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16409$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16410if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
81ecdfbb 16411 $as_echo_n "(cached) " >&6
859789af 16412else
05cbd757
PB
16413 if test -n "$RANLIB_FOR_TARGET"; then
16414 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 16415else
c6b750e1
DJ
16416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417for as_dir in $PATH
16418do
16419 IFS=$as_save_IFS
16420 test -z "$as_dir" && as_dir=.
81ecdfbb 16421 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16423 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 16424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16425 break 2
16426 fi
16427done
81ecdfbb
RW
16428 done
16429IFS=$as_save_IFS
c6b750e1 16430
859789af
AC
16431fi
16432fi
c6b750e1 16433RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 16434if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16436$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 16437else
81ecdfbb
RW
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16439$as_echo "no" >&6; }
859789af 16440fi
c6b750e1 16441
81ecdfbb 16442
2429c060
PB
16443 fi
16444 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16445 done
16446fi
c6b750e1 16447
2429c060
PB
16448if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16449 set dummy ranlib
16450 if test $build = $target ; then
16451 RANLIB_FOR_TARGET="$2"
16452 else
16453 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 16454 fi
d3f5afc4
MS
16455else
16456 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 16457fi
05cbd757 16458
3a35eeb3
PB
16459else
16460 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
16461fi
16462
2429c060
PB
16463
16464
16465
b121d7d4
DD
16466if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16467 if test -n "$with_build_time_tools"; then
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16469$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16470 if test -x $with_build_time_tools/readelf; then
16471 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16472 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16474$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16475 else
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477$as_echo "no" >&6; }
16478 fi
16479 elif test $build != $host && test $have_gcc_for_target = yes; then
16480 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16481 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16482 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16483 fi
16484fi
16485if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16486 # Extract the first word of "readelf", so it can be a program name with args.
16487set dummy readelf; ac_word=$2
16488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16489$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16490if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16491 $as_echo_n "(cached) " >&6
16492else
16493 case $READELF_FOR_TARGET in
16494 [\\/]* | ?:[\\/]*)
16495 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16496 ;;
16497 *)
16498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16499for as_dir in $gcc_cv_tool_dirs
16500do
16501 IFS=$as_save_IFS
16502 test -z "$as_dir" && as_dir=.
16503 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16505 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16507 break 2
16508 fi
16509done
16510 done
16511IFS=$as_save_IFS
16512
16513 ;;
16514esac
16515fi
16516READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16517if test -n "$READELF_FOR_TARGET"; then
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16519$as_echo "$READELF_FOR_TARGET" >&6; }
16520else
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16522$as_echo "no" >&6; }
16523fi
16524
16525
16526fi
16527if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16528
16529
16530if test -n "$READELF_FOR_TARGET"; then
16531 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16532elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16533 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16534fi
16535
16536if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16537 for ncn_progname in readelf; do
16538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16539set dummy ${ncn_progname}; ac_word=$2
16540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16541$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16542if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16543 $as_echo_n "(cached) " >&6
16544else
16545 if test -n "$READELF_FOR_TARGET"; then
16546 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16547else
16548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549for as_dir in $PATH
16550do
16551 IFS=$as_save_IFS
16552 test -z "$as_dir" && as_dir=.
16553 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16555 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16557 break 2
16558 fi
16559done
16560 done
16561IFS=$as_save_IFS
16562
16563fi
16564fi
16565READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16566if test -n "$READELF_FOR_TARGET"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16568$as_echo "$READELF_FOR_TARGET" >&6; }
16569else
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16571$as_echo "no" >&6; }
16572fi
16573
16574
16575 done
16576fi
16577
16578if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16579 for ncn_progname in readelf; do
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16581$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16582 if test -x $with_build_time_tools/${ncn_progname}; then
16583 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16585$as_echo "yes" >&6; }
16586 break
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16589$as_echo "no" >&6; }
16590 fi
16591 done
16592fi
16593
16594if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16595 for ncn_progname in readelf; do
16596 if test -n "$ncn_target_tool_prefix"; then
16597 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16598set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16600$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16601if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16602 $as_echo_n "(cached) " >&6
16603else
16604 if test -n "$READELF_FOR_TARGET"; then
16605 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16606else
16607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608for as_dir in $PATH
16609do
16610 IFS=$as_save_IFS
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16614 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16616 break 2
16617 fi
16618done
16619 done
16620IFS=$as_save_IFS
16621
16622fi
16623fi
16624READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16625if test -n "$READELF_FOR_TARGET"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16627$as_echo "$READELF_FOR_TARGET" >&6; }
16628else
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630$as_echo "no" >&6; }
16631fi
16632
16633
16634 fi
16635 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16637set dummy ${ncn_progname}; ac_word=$2
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16639$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16640if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
b121d7d4
DD
16641 $as_echo_n "(cached) " >&6
16642else
16643 if test -n "$READELF_FOR_TARGET"; then
16644 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16645else
16646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647for as_dir in $PATH
16648do
16649 IFS=$as_save_IFS
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
b121d7d4
DD
16653 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655 break 2
16656 fi
16657done
16658 done
16659IFS=$as_save_IFS
16660
16661fi
16662fi
16663READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16664if test -n "$READELF_FOR_TARGET"; then
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16666$as_echo "$READELF_FOR_TARGET" >&6; }
16667else
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669$as_echo "no" >&6; }
16670fi
16671
16672
16673 fi
16674 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16675 done
16676fi
16677
16678if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16679 set dummy readelf
16680 if test $build = $target ; then
16681 READELF_FOR_TARGET="$2"
16682 else
16683 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16684 fi
16685else
16686 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16687fi
16688
16689else
16690 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16691fi
16692
16693
16694
16695
2429c060
PB
16696if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16697 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16699$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16700 if test -x $with_build_time_tools/strip; then
16701 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16702 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16704$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 16705 else
81ecdfbb
RW
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707$as_echo "no" >&6; }
3a35eeb3 16708 fi
2429c060
PB
16709 elif test $build != $host && test $have_gcc_for_target = yes; then
16710 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
16711 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16712 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
16713 fi
16714fi
c6b750e1 16715if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16716 # Extract the first word of "strip", so it can be a program name with args.
16717set dummy strip; ac_word=$2
81ecdfbb
RW
16718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16720if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 16721 $as_echo_n "(cached) " >&6
2429c060 16722else
c6b750e1
DJ
16723 case $STRIP_FOR_TARGET in
16724 [\\/]* | ?:[\\/]*)
2429c060
PB
16725 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16726 ;;
2429c060 16727 *)
c6b750e1
DJ
16728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16729for as_dir in $gcc_cv_tool_dirs
16730do
16731 IFS=$as_save_IFS
16732 test -z "$as_dir" && as_dir=.
81ecdfbb 16733 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16735 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16737 break 2
16738 fi
16739done
81ecdfbb
RW
16740 done
16741IFS=$as_save_IFS
c6b750e1 16742
2429c060
PB
16743 ;;
16744esac
16745fi
c6b750e1 16746STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 16747if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16749$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 16750else
81ecdfbb
RW
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16752$as_echo "no" >&6; }
2429c060
PB
16753fi
16754
81ecdfbb 16755
2429c060
PB
16756fi
16757if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
16758
16759
16760if test -n "$STRIP_FOR_TARGET"; then
16761 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16762elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16763 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16764fi
16765
16766if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16767 for ncn_progname in strip; do
16768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16769set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16771$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16772if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 16773 $as_echo_n "(cached) " >&6
9a819804
AO
16774else
16775 if test -n "$STRIP_FOR_TARGET"; then
16776 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16777else
16778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779for as_dir in $PATH
16780do
16781 IFS=$as_save_IFS
16782 test -z "$as_dir" && as_dir=.
81ecdfbb 16783 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 16785 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
16787 break 2
16788 fi
16789done
81ecdfbb
RW
16790 done
16791IFS=$as_save_IFS
9a819804
AO
16792
16793fi
16794fi
16795STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16796if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16798$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 16799else
81ecdfbb
RW
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16801$as_echo "no" >&6; }
9a819804
AO
16802fi
16803
81ecdfbb 16804
9a819804
AO
16805 done
16806fi
16807
16808if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 16809 for ncn_progname in strip; do
81ecdfbb
RW
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16811$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16812 if test -x $with_build_time_tools/${ncn_progname}; then
16813 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16815$as_echo "yes" >&6; }
2429c060
PB
16816 break
16817 else
81ecdfbb
RW
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819$as_echo "no" >&6; }
2429c060
PB
16820 fi
16821 done
16822fi
16823
16824if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16825 for ncn_progname in strip; do
16826 if test -n "$ncn_target_tool_prefix"; then
16827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 16828set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
16829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16830$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16831if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 16832 $as_echo_n "(cached) " >&6
7e0f7140
GK
16833else
16834 if test -n "$STRIP_FOR_TARGET"; then
16835 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
16836else
16837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838for as_dir in $PATH
16839do
16840 IFS=$as_save_IFS
16841 test -z "$as_dir" && as_dir=.
81ecdfbb 16842 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16844 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 16845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16846 break 2
16847 fi
16848done
81ecdfbb
RW
16849 done
16850IFS=$as_save_IFS
c6b750e1 16851
7e0f7140
GK
16852fi
16853fi
c6b750e1 16854STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 16855if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16857$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 16858else
81ecdfbb
RW
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16860$as_echo "no" >&6; }
7e0f7140
GK
16861fi
16862
81ecdfbb 16863
2429c060
PB
16864 fi
16865 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 16867set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
16868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16869$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16870if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
81ecdfbb 16871 $as_echo_n "(cached) " >&6
7e0f7140
GK
16872else
16873 if test -n "$STRIP_FOR_TARGET"; then
16874 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16875else
c6b750e1
DJ
16876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877for as_dir in $PATH
16878do
16879 IFS=$as_save_IFS
16880 test -z "$as_dir" && as_dir=.
81ecdfbb 16881 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16883 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 16884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16885 break 2
16886 fi
16887done
81ecdfbb
RW
16888 done
16889IFS=$as_save_IFS
c6b750e1 16890
7e0f7140
GK
16891fi
16892fi
c6b750e1 16893STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 16894if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16896$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 16897else
81ecdfbb
RW
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16899$as_echo "no" >&6; }
7e0f7140 16900fi
c6b750e1 16901
81ecdfbb 16902
2429c060
PB
16903 fi
16904 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16905 done
16906fi
c6b750e1 16907
7e0f7140
GK
16908if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16909 set dummy strip
16910 if test $build = $target ; then
16911 STRIP_FOR_TARGET="$2"
16912 else
16913 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16914 fi
d3f5afc4
MS
16915else
16916 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
16917fi
16918
3a35eeb3
PB
16919else
16920 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
16921fi
16922
16923
16924
16925
16926if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16927 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16929$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
16930 if test -x $with_build_time_tools/windres; then
16931 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16932 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16934$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 16935 else
81ecdfbb
RW
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937$as_echo "no" >&6; }
3a35eeb3 16938 fi
2429c060
PB
16939 elif test $build != $host && test $have_gcc_for_target = yes; then
16940 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
16941 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16942 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
16943 fi
16944fi
c6b750e1 16945if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
16946 # Extract the first word of "windres", so it can be a program name with args.
16947set dummy windres; ac_word=$2
81ecdfbb
RW
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16949$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 16950if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 16951 $as_echo_n "(cached) " >&6
2429c060 16952else
c6b750e1
DJ
16953 case $WINDRES_FOR_TARGET in
16954 [\\/]* | ?:[\\/]*)
2429c060
PB
16955 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16956 ;;
2429c060 16957 *)
c6b750e1
DJ
16958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16959for as_dir in $gcc_cv_tool_dirs
16960do
16961 IFS=$as_save_IFS
16962 test -z "$as_dir" && as_dir=.
81ecdfbb 16963 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 16964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 16965 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 16966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
16967 break 2
16968 fi
16969done
81ecdfbb
RW
16970 done
16971IFS=$as_save_IFS
c6b750e1 16972
2429c060
PB
16973 ;;
16974esac
16975fi
c6b750e1 16976WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 16977if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16979$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 16980else
81ecdfbb
RW
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982$as_echo "no" >&6; }
2429c060
PB
16983fi
16984
81ecdfbb 16985
2429c060
PB
16986fi
16987if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
16988
16989
16990if test -n "$WINDRES_FOR_TARGET"; then
16991 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16992elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16993 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16994fi
16995
16996if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16997 for ncn_progname in windres; do
16998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16999set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17001$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17002if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17003 $as_echo_n "(cached) " >&6
9a819804
AO
17004else
17005 if test -n "$WINDRES_FOR_TARGET"; then
17006 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17007else
17008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17009for as_dir in $PATH
17010do
17011 IFS=$as_save_IFS
17012 test -z "$as_dir" && as_dir=.
81ecdfbb 17013 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9a819804 17015 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
17017 break 2
17018 fi
17019done
81ecdfbb
RW
17020 done
17021IFS=$as_save_IFS
9a819804
AO
17022
17023fi
17024fi
17025WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17026if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17028$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 17029else
81ecdfbb
RW
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17031$as_echo "no" >&6; }
9a819804
AO
17032fi
17033
81ecdfbb 17034
9a819804
AO
17035 done
17036fi
17037
17038if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 17039 for ncn_progname in windres; do
81ecdfbb
RW
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17041$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
17042 if test -x $with_build_time_tools/${ncn_progname}; then
17043 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17045$as_echo "yes" >&6; }
2429c060
PB
17046 break
17047 else
81ecdfbb
RW
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049$as_echo "no" >&6; }
2429c060
PB
17050 fi
17051 done
17052fi
17053
17054if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17055 for ncn_progname in windres; do
17056 if test -n "$ncn_target_tool_prefix"; then
17057 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 17058set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17060$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17061if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17062 $as_echo_n "(cached) " >&6
859789af 17063else
55db4b87
PB
17064 if test -n "$WINDRES_FOR_TARGET"; then
17065 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17066else
c6b750e1
DJ
17067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068for as_dir in $PATH
17069do
17070 IFS=$as_save_IFS
17071 test -z "$as_dir" && as_dir=.
81ecdfbb 17072 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17074 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17076 break 2
17077 fi
17078done
81ecdfbb
RW
17079 done
17080IFS=$as_save_IFS
c6b750e1 17081
859789af
AC
17082fi
17083fi
c6b750e1 17084WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 17085if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17087$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17088else
81ecdfbb
RW
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17090$as_echo "no" >&6; }
859789af
AC
17091fi
17092
81ecdfbb 17093
2429c060
PB
17094 fi
17095 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 17097set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17099$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17100if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
81ecdfbb 17101 $as_echo_n "(cached) " >&6
859789af 17102else
05cbd757
PB
17103 if test -n "$WINDRES_FOR_TARGET"; then
17104 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 17105else
c6b750e1
DJ
17106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107for as_dir in $PATH
17108do
17109 IFS=$as_save_IFS
17110 test -z "$as_dir" && as_dir=.
81ecdfbb 17111 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c6b750e1 17113 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 17114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
17115 break 2
17116 fi
17117done
81ecdfbb
RW
17118 done
17119IFS=$as_save_IFS
c6b750e1 17120
859789af
AC
17121fi
17122fi
c6b750e1 17123WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 17124if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
17126$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 17127else
81ecdfbb
RW
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17129$as_echo "no" >&6; }
859789af 17130fi
c6b750e1 17131
81ecdfbb 17132
2429c060
PB
17133 fi
17134 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17135 done
17136fi
c6b750e1 17137
05cbd757
PB
17138if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17139 set dummy windres
17140 if test $build = $target ; then
17141 WINDRES_FOR_TARGET="$2"
859789af 17142 else
05cbd757 17143 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 17144 fi
d3f5afc4
MS
17145else
17146 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
17147fi
17148
3a35eeb3
PB
17149else
17150 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
17151fi
17152
852e5f18 17153
0c24b341
NC
17154
17155
17156if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17157 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17159$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
17160 if test -x $with_build_time_tools/windmc; then
17161 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17162 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17164$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 17165 else
81ecdfbb
RW
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167$as_echo "no" >&6; }
0c24b341
NC
17168 fi
17169 elif test $build != $host && test $have_gcc_for_target = yes; then
17170 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17171 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17172 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17173 fi
17174fi
17175if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17176 # Extract the first word of "windmc", so it can be a program name with args.
17177set dummy windmc; ac_word=$2
81ecdfbb
RW
17178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17179$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17180if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17181 $as_echo_n "(cached) " >&6
0c24b341
NC
17182else
17183 case $WINDMC_FOR_TARGET in
17184 [\\/]* | ?:[\\/]*)
17185 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17186 ;;
17187 *)
17188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17189for as_dir in $gcc_cv_tool_dirs
17190do
17191 IFS=$as_save_IFS
17192 test -z "$as_dir" && as_dir=.
81ecdfbb 17193 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17195 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 17196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17197 break 2
17198 fi
17199done
81ecdfbb
RW
17200 done
17201IFS=$as_save_IFS
0c24b341
NC
17202
17203 ;;
17204esac
17205fi
17206WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 17207if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17209$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17210else
81ecdfbb
RW
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17212$as_echo "no" >&6; }
0c24b341
NC
17213fi
17214
81ecdfbb 17215
0c24b341
NC
17216fi
17217if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17218
17219
17220if test -n "$WINDMC_FOR_TARGET"; then
17221 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17222elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17223 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17224fi
17225
17226if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17227 for ncn_progname in windmc; do
17228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17229set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17231$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17232if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17233 $as_echo_n "(cached) " >&6
0c24b341
NC
17234else
17235 if test -n "$WINDMC_FOR_TARGET"; then
17236 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17237else
17238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17239for as_dir in $PATH
17240do
17241 IFS=$as_save_IFS
17242 test -z "$as_dir" && as_dir=.
81ecdfbb 17243 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17245 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17247 break 2
17248 fi
17249done
81ecdfbb
RW
17250 done
17251IFS=$as_save_IFS
0c24b341
NC
17252
17253fi
17254fi
17255WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17256if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17258$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17259else
81ecdfbb
RW
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17261$as_echo "no" >&6; }
0c24b341
NC
17262fi
17263
81ecdfbb 17264
0c24b341
NC
17265 done
17266fi
17267
17268if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17269 for ncn_progname in windmc; do
81ecdfbb
RW
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17271$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
17272 if test -x $with_build_time_tools/${ncn_progname}; then
17273 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275$as_echo "yes" >&6; }
0c24b341
NC
17276 break
17277 else
81ecdfbb
RW
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279$as_echo "no" >&6; }
0c24b341
NC
17280 fi
17281 done
17282fi
17283
17284if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17285 for ncn_progname in windmc; do
17286 if test -n "$ncn_target_tool_prefix"; then
17287 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17288set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
17289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17290$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17291if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17292 $as_echo_n "(cached) " >&6
0c24b341
NC
17293else
17294 if test -n "$WINDMC_FOR_TARGET"; then
17295 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17296else
17297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298for as_dir in $PATH
17299do
17300 IFS=$as_save_IFS
17301 test -z "$as_dir" && as_dir=.
81ecdfbb 17302 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17304 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 17305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17306 break 2
17307 fi
17308done
81ecdfbb
RW
17309 done
17310IFS=$as_save_IFS
0c24b341
NC
17311
17312fi
17313fi
17314WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17315if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17317$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17318else
81ecdfbb
RW
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17320$as_echo "no" >&6; }
0c24b341
NC
17321fi
17322
81ecdfbb 17323
0c24b341
NC
17324 fi
17325 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17327set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
17328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17329$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 17330if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
81ecdfbb 17331 $as_echo_n "(cached) " >&6
0c24b341
NC
17332else
17333 if test -n "$WINDMC_FOR_TARGET"; then
17334 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17335else
17336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337for as_dir in $PATH
17338do
17339 IFS=$as_save_IFS
17340 test -z "$as_dir" && as_dir=.
81ecdfbb 17341 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 17342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
0c24b341 17343 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 17344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
17345 break 2
17346 fi
17347done
81ecdfbb
RW
17348 done
17349IFS=$as_save_IFS
0c24b341
NC
17350
17351fi
17352fi
17353WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17354if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17356$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 17357else
81ecdfbb
RW
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17359$as_echo "no" >&6; }
0c24b341
NC
17360fi
17361
81ecdfbb 17362
0c24b341
NC
17363 fi
17364 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17365 done
17366fi
17367
17368if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17369 set dummy windmc
17370 if test $build = $target ; then
17371 WINDMC_FOR_TARGET="$2"
17372 else
17373 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17374 fi
17375else
17376 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17377fi
17378
17379else
17380 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17381fi
17382
17383
be01d343
PB
17384RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17385
81ecdfbb
RW
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17387$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 17388if test "x${build}" != "x${host}" ; then
2429c060
PB
17389 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17390 # We already found the complete path
b8025f34 17391 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17393$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17394 else
17395 # Canadian cross, just use what we found
81ecdfbb
RW
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17397$as_echo "pre-installed" >&6; }
2429c060 17398 fi
be01d343
PB
17399else
17400 ok=yes
17401 case " ${configdirs} " in
17402 *" binutils "*) ;;
17403 *) ok=no ;;
17404 esac
c6b750e1 17405
be01d343
PB
17406 if test $ok = yes; then
17407 # An in-tree tool is available and we can use it
17408 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17410$as_echo "just compiled" >&6; }
2429c060
PB
17411 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17412 # We already found the complete path
b8025f34 17413 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17415$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17416 elif test "x$target" = "x$host"; then
17417 # We can use an host tool
17418 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17420$as_echo "host tool" >&6; }
be01d343
PB
17421 else
17422 # We need a cross tool
81ecdfbb
RW
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17424$as_echo "pre-installed" >&6; }
be01d343
PB
17425 fi
17426fi
4b900473 17427
81ecdfbb
RW
17428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17429$as_echo_n "checking where to find the target as... " >&6; }
be01d343 17430if test "x${build}" != "x${host}" ; then
2429c060
PB
17431 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17432 # We already found the complete path
b8025f34 17433 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17435$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17436 else
17437 # Canadian cross, just use what we found
81ecdfbb
RW
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17439$as_echo "pre-installed" >&6; }
2429c060 17440 fi
be01d343
PB
17441else
17442 ok=yes
17443 case " ${configdirs} " in
17444 *" gas "*) ;;
17445 *) ok=no ;;
17446 esac
c6b750e1 17447
be01d343
PB
17448 if test $ok = yes; then
17449 # An in-tree tool is available and we can use it
17450 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17452$as_echo "just compiled" >&6; }
2429c060
PB
17453 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17454 # We already found the complete path
b8025f34 17455 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17457$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17458 elif test "x$target" = "x$host"; then
17459 # We can use an host tool
17460 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17462$as_echo "host tool" >&6; }
be01d343
PB
17463 else
17464 # We need a cross tool
81ecdfbb
RW
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17466$as_echo "pre-installed" >&6; }
be01d343
PB
17467 fi
17468fi
4b900473 17469
81ecdfbb
RW
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17471$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 17472if test "x${build}" != "x${host}" ; then
2429c060
PB
17473 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17474 # We already found the complete path
b8025f34 17475 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17477$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17478 else
17479 # Canadian cross, just use what we found
81ecdfbb
RW
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17481$as_echo "pre-installed" >&6; }
2429c060 17482 fi
be01d343
PB
17483else
17484 ok=yes
17485 case " ${configdirs} " in
17486 *" gcc "*) ;;
17487 *) ok=no ;;
17488 esac
c6b750e1 17489
be01d343
PB
17490 if test $ok = yes; then
17491 # An in-tree tool is available and we can use it
17492 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17494$as_echo "just compiled" >&6; }
2429c060
PB
17495 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17496 # We already found the complete path
b8025f34 17497 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17499$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17500 elif test "x$target" = "x$host"; then
17501 # We can use an host tool
17502 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17504$as_echo "host tool" >&6; }
be01d343
PB
17505 else
17506 # We need a cross tool
81ecdfbb
RW
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17508$as_echo "pre-installed" >&6; }
be01d343
PB
17509 fi
17510fi
4b900473 17511
81ecdfbb
RW
17512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17513$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 17514if test "x${build}" != "x${host}" ; then
2429c060
PB
17515 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17516 # We already found the complete path
b8025f34 17517 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17519$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17520 else
17521 # Canadian cross, just use what we found
81ecdfbb
RW
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17523$as_echo "pre-installed" >&6; }
2429c060 17524 fi
be01d343
PB
17525else
17526 ok=yes
17527 case " ${configdirs} " in
17528 *" gcc "*) ;;
17529 *) ok=no ;;
17530 esac
17531 case ,${enable_languages}, in
17532 *,c++,*) ;;
17533 *) ok=no ;;
17534 esac
17535 if test $ok = yes; then
17536 # An in-tree tool is available and we can use it
95e43135 17537 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17539$as_echo "just compiled" >&6; }
2429c060
PB
17540 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17541 # We already found the complete path
b8025f34 17542 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17544$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17545 elif test "x$target" = "x$host"; then
17546 # We can use an host tool
17547 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17549$as_echo "host tool" >&6; }
be01d343
PB
17550 else
17551 # We need a cross tool
81ecdfbb
RW
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17553$as_echo "pre-installed" >&6; }
be01d343
PB
17554 fi
17555fi
4b900473 17556
81ecdfbb
RW
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17558$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 17559if test "x${build}" != "x${host}" ; then
2429c060
PB
17560 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17561 # We already found the complete path
b8025f34 17562 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17564$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17565 else
17566 # Canadian cross, just use what we found
81ecdfbb
RW
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17568$as_echo "pre-installed" >&6; }
2429c060 17569 fi
be01d343
PB
17570else
17571 ok=yes
17572 case " ${configdirs} " in
17573 *" gcc "*) ;;
17574 *) ok=no ;;
17575 esac
17576 case ,${enable_languages}, in
17577 *,c++,*) ;;
17578 *) ok=no ;;
17579 esac
17580 if test $ok = yes; then
17581 # An in-tree tool is available and we can use it
95e43135 17582 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17584$as_echo "just compiled" >&6; }
2429c060
PB
17585 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17586 # We already found the complete path
b8025f34 17587 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17589$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17590 elif test "x$target" = "x$host"; then
17591 # We can use an host tool
17592 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17594$as_echo "host tool" >&6; }
be01d343
PB
17595 else
17596 # We need a cross tool
81ecdfbb
RW
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17598$as_echo "pre-installed" >&6; }
be01d343
PB
17599 fi
17600fi
4b900473 17601
81ecdfbb
RW
17602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17603$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 17604if test "x${build}" != "x${host}" ; then
2429c060
PB
17605 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17606 # We already found the complete path
b8025f34 17607 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17609$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17610 else
17611 # Canadian cross, just use what we found
81ecdfbb
RW
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17613$as_echo "pre-installed" >&6; }
2429c060 17614 fi
be01d343
PB
17615else
17616 ok=yes
17617 case " ${configdirs} " in
17618 *" binutils "*) ;;
17619 *) ok=no ;;
17620 esac
c6b750e1 17621
be01d343
PB
17622 if test $ok = yes; then
17623 # An in-tree tool is available and we can use it
17624 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17626$as_echo "just compiled" >&6; }
2429c060
PB
17627 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17628 # We already found the complete path
b8025f34 17629 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17631$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17632 elif test "x$target" = "x$host"; then
17633 # We can use an host tool
17634 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17636$as_echo "host tool" >&6; }
be01d343
PB
17637 else
17638 # We need a cross tool
81ecdfbb
RW
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17640$as_echo "pre-installed" >&6; }
be01d343
PB
17641 fi
17642fi
4b900473 17643
228cf97d
AM
17644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17645$as_echo_n "checking where to find the target dsymutil... " >&6; }
17646if test "x${build}" != "x${host}" ; then
17647 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17648 # We already found the complete path
17649 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17651$as_echo "pre-installed in $ac_dir" >&6; }
17652 else
17653 # Canadian cross, just use what we found
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17655$as_echo "pre-installed" >&6; }
17656 fi
17657else
17658 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17659 # We already found the complete path
17660 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17662$as_echo "pre-installed in $ac_dir" >&6; }
17663 elif test "x$target" = "x$host"; then
17664 # We can use an host tool
17665 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17667$as_echo "host tool" >&6; }
17668 else
17669 # We need a cross tool
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17671$as_echo "pre-installed" >&6; }
17672 fi
17673fi
17674
81ecdfbb
RW
17675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17676$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 17677if test "x${build}" != "x${host}" ; then
2429c060
PB
17678 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17679 # We already found the complete path
b8025f34 17680 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17682$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17683 else
17684 # Canadian cross, just use what we found
81ecdfbb
RW
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17686$as_echo "pre-installed" >&6; }
2429c060 17687 fi
be01d343
PB
17688else
17689 ok=yes
17690 case " ${configdirs} " in
17691 *" gcc "*) ;;
17692 *) ok=no ;;
17693 esac
c6b750e1 17694
be01d343
PB
17695 if test $ok = yes; then
17696 # An in-tree tool is available and we can use it
17697 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17699$as_echo "just compiled" >&6; }
2429c060
PB
17700 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17701 # We already found the complete path
b8025f34 17702 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17704$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17705 elif test "x$target" = "x$host"; then
17706 # We can use an host tool
17707 GCC_FOR_TARGET='$()'
81ecdfbb
RW
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17709$as_echo "host tool" >&6; }
be01d343
PB
17710 else
17711 # We need a cross tool
81ecdfbb
RW
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17713$as_echo "pre-installed" >&6; }
be01d343
PB
17714 fi
17715fi
4b900473 17716
81ecdfbb
RW
17717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17718$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 17719if test "x${build}" != "x${host}" ; then
2429c060
PB
17720 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17721 # We already found the complete path
b8025f34 17722 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17724$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17725 else
17726 # Canadian cross, just use what we found
81ecdfbb
RW
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17728$as_echo "pre-installed" >&6; }
2429c060 17729 fi
be01d343
PB
17730else
17731 ok=yes
17732 case " ${configdirs} " in
17733 *" gcc "*) ;;
17734 *) ok=no ;;
17735 esac
17736 case ,${enable_languages}, in
17737 *,fortran,*) ;;
17738 *) ok=no ;;
17739 esac
17740 if test $ok = yes; then
17741 # An in-tree tool is available and we can use it
17742 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17744$as_echo "just compiled" >&6; }
2429c060
PB
17745 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17746 # We already found the complete path
b8025f34 17747 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17749$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17750 elif test "x$target" = "x$host"; then
17751 # We can use an host tool
17752 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17754$as_echo "host tool" >&6; }
be01d343
PB
17755 else
17756 # We need a cross tool
81ecdfbb
RW
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17758$as_echo "pre-installed" >&6; }
be01d343
PB
17759 fi
17760fi
4b900473 17761
e552509b
ILT
17762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17763$as_echo_n "checking where to find the target gccgo... " >&6; }
17764if test "x${build}" != "x${host}" ; then
17765 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17766 # We already found the complete path
17767 ac_dir=`dirname $GOC_FOR_TARGET`
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17769$as_echo "pre-installed in $ac_dir" >&6; }
17770 else
17771 # Canadian cross, just use what we found
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17773$as_echo "pre-installed" >&6; }
17774 fi
17775else
17776 ok=yes
17777 case " ${configdirs} " in
17778 *" gcc "*) ;;
17779 *) ok=no ;;
17780 esac
17781 case ,${enable_languages}, in
17782 *,go,*) ;;
17783 *) ok=no ;;
17784 esac
17785 if test $ok = yes; then
17786 # An in-tree tool is available and we can use it
17787 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17789$as_echo "just compiled" >&6; }
17790 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17791 # We already found the complete path
17792 ac_dir=`dirname $GOC_FOR_TARGET`
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17794$as_echo "pre-installed in $ac_dir" >&6; }
17795 elif test "x$target" = "x$host"; then
17796 # We can use an host tool
17797 GOC_FOR_TARGET='$(GOC)'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17799$as_echo "host tool" >&6; }
17800 else
17801 # We need a cross tool
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17803$as_echo "pre-installed" >&6; }
17804 fi
17805fi
17806
228cf97d
AM
17807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17808$as_echo_n "checking where to find the target gdc... " >&6; }
17809if test "x${build}" != "x${host}" ; then
17810 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17811 # We already found the complete path
17812 ac_dir=`dirname $GDC_FOR_TARGET`
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17814$as_echo "pre-installed in $ac_dir" >&6; }
17815 else
17816 # Canadian cross, just use what we found
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17818$as_echo "pre-installed" >&6; }
17819 fi
17820else
17821 ok=yes
17822 case " ${configdirs} " in
17823 *" gcc "*) ;;
17824 *) ok=no ;;
17825 esac
17826 case ,${enable_languages}, in
17827 *,d,*) ;;
17828 *) ok=no ;;
17829 esac
17830 if test $ok = yes; then
17831 # An in-tree tool is available and we can use it
17832 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17834$as_echo "just compiled" >&6; }
17835 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17836 # We already found the complete path
17837 ac_dir=`dirname $GDC_FOR_TARGET`
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17839$as_echo "pre-installed in $ac_dir" >&6; }
17840 elif test "x$target" = "x$host"; then
17841 # We can use an host tool
17842 GDC_FOR_TARGET='$(GDC)'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17844$as_echo "host tool" >&6; }
17845 else
17846 # We need a cross tool
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17848$as_echo "pre-installed" >&6; }
17849 fi
17850fi
17851
81ecdfbb
RW
17852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17853$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 17854if test "x${build}" != "x${host}" ; then
2429c060
PB
17855 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17856 # We already found the complete path
b8025f34 17857 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17859$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17860 else
17861 # Canadian cross, just use what we found
81ecdfbb
RW
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17863$as_echo "pre-installed" >&6; }
2429c060 17864 fi
be01d343
PB
17865else
17866 ok=yes
17867 case " ${configdirs} " in
17868 *" ld "*) ;;
17869 *) ok=no ;;
17870 esac
c6b750e1 17871
be01d343
PB
17872 if test $ok = yes; then
17873 # An in-tree tool is available and we can use it
17874 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17876$as_echo "just compiled" >&6; }
2429c060
PB
17877 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17878 # We already found the complete path
b8025f34 17879 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17881$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17882 elif test "x$target" = "x$host"; then
17883 # We can use an host tool
17884 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17886$as_echo "host tool" >&6; }
be01d343
PB
17887 else
17888 # We need a cross tool
81ecdfbb
RW
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17890$as_echo "pre-installed" >&6; }
be01d343
PB
17891 fi
17892fi
4b900473 17893
81ecdfbb
RW
17894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
17895$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 17896if test "x${build}" != "x${host}" ; then
2429c060
PB
17897 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17898 # We already found the complete path
b8025f34 17899 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17901$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17902 else
17903 # Canadian cross, just use what we found
81ecdfbb
RW
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17905$as_echo "pre-installed" >&6; }
2429c060 17906 fi
be01d343 17907else
2429c060
PB
17908 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17909 # We already found the complete path
b8025f34 17910 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17912$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 17913 elif test "x$target" = "x$host"; then
be01d343
PB
17914 # We can use an host tool
17915 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17917$as_echo "host tool" >&6; }
be01d343
PB
17918 else
17919 # We need a cross tool
81ecdfbb
RW
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17921$as_echo "pre-installed" >&6; }
be01d343
PB
17922 fi
17923fi
4b900473 17924
81ecdfbb
RW
17925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17926$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 17927if test "x${build}" != "x${host}" ; then
2429c060
PB
17928 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17929 # We already found the complete path
b8025f34 17930 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17932$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
17933 else
17934 # Canadian cross, just use what we found
81ecdfbb
RW
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17936$as_echo "pre-installed" >&6; }
2429c060 17937 fi
be01d343
PB
17938else
17939 ok=yes
17940 case " ${configdirs} " in
17941 *" binutils "*) ;;
17942 *) ok=no ;;
17943 esac
c6b750e1 17944
be01d343
PB
17945 if test $ok = yes; then
17946 # An in-tree tool is available and we can use it
17947 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17949$as_echo "just compiled" >&6; }
2429c060
PB
17950 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17951 # We already found the complete path
b8025f34 17952 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17954$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
17955 elif test "x$target" = "x$host"; then
17956 # We can use an host tool
17957 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17959$as_echo "host tool" >&6; }
be01d343
PB
17960 else
17961 # We need a cross tool
81ecdfbb
RW
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17963$as_echo "pre-installed" >&6; }
be01d343
PB
17964 fi
17965fi
4b900473 17966
6b91c541
AP
17967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17968$as_echo_n "checking where to find the target objcopy... " >&6; }
17969if test "x${build}" != "x${host}" ; then
17970 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17971 # We already found the complete path
17972 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17974$as_echo "pre-installed in $ac_dir" >&6; }
17975 else
17976 # Canadian cross, just use what we found
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17978$as_echo "pre-installed" >&6; }
17979 fi
17980else
17981 ok=yes
17982 case " ${configdirs} " in
17983 *" binutils "*) ;;
17984 *) ok=no ;;
17985 esac
17986
17987 if test $ok = yes; then
17988 # An in-tree tool is available and we can use it
17989 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17991$as_echo "just compiled" >&6; }
17992 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17993 # We already found the complete path
17994 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17996$as_echo "pre-installed in $ac_dir" >&6; }
17997 elif test "x$target" = "x$host"; then
17998 # We can use an host tool
1b6c0831 17999 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18001$as_echo "host tool" >&6; }
18002 else
18003 # We need a cross tool
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18005$as_echo "pre-installed" >&6; }
18006 fi
18007fi
18008
81ecdfbb
RW
18009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
18010$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 18011if test "x${build}" != "x${host}" ; then
2429c060
PB
18012 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18013 # We already found the complete path
b8025f34 18014 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18016$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18017 else
18018 # Canadian cross, just use what we found
81ecdfbb
RW
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18020$as_echo "pre-installed" >&6; }
2429c060 18021 fi
be01d343
PB
18022else
18023 ok=yes
18024 case " ${configdirs} " in
18025 *" binutils "*) ;;
18026 *) ok=no ;;
18027 esac
c6b750e1 18028
be01d343
PB
18029 if test $ok = yes; then
18030 # An in-tree tool is available and we can use it
18031 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18033$as_echo "just compiled" >&6; }
2429c060
PB
18034 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
18035 # We already found the complete path
b8025f34 18036 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18038$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18039 elif test "x$target" = "x$host"; then
18040 # We can use an host tool
18041 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18043$as_echo "host tool" >&6; }
be01d343
PB
18044 else
18045 # We need a cross tool
81ecdfbb
RW
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18047$as_echo "pre-installed" >&6; }
be01d343
PB
18048 fi
18049fi
4b900473 18050
228cf97d
AM
18051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
18052$as_echo_n "checking where to find the target otool... " >&6; }
18053if test "x${build}" != "x${host}" ; then
18054 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18055 # We already found the complete path
18056 ac_dir=`dirname $OTOOL_FOR_TARGET`
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18058$as_echo "pre-installed in $ac_dir" >&6; }
18059 else
18060 # Canadian cross, just use what we found
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18062$as_echo "pre-installed" >&6; }
18063 fi
18064else
18065 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
18066 # We already found the complete path
18067 ac_dir=`dirname $OTOOL_FOR_TARGET`
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18069$as_echo "pre-installed in $ac_dir" >&6; }
18070 elif test "x$target" = "x$host"; then
18071 # We can use an host tool
18072 OTOOL_FOR_TARGET='$(OTOOL)'
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18074$as_echo "host tool" >&6; }
18075 else
18076 # We need a cross tool
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18078$as_echo "pre-installed" >&6; }
18079 fi
18080fi
18081
81ecdfbb
RW
18082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
18083$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 18084if test "x${build}" != "x${host}" ; then
2429c060
PB
18085 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18086 # We already found the complete path
b8025f34 18087 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18089$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18090 else
18091 # Canadian cross, just use what we found
81ecdfbb
RW
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18093$as_echo "pre-installed" >&6; }
2429c060 18094 fi
be01d343
PB
18095else
18096 ok=yes
18097 case " ${configdirs} " in
18098 *" binutils "*) ;;
18099 *) ok=no ;;
18100 esac
c6b750e1 18101
be01d343
PB
18102 if test $ok = yes; then
18103 # An in-tree tool is available and we can use it
18104 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18106$as_echo "just compiled" >&6; }
2429c060
PB
18107 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
18108 # We already found the complete path
b8025f34 18109 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18111$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18112 elif test "x$target" = "x$host"; then
18113 # We can use an host tool
18114 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18116$as_echo "host tool" >&6; }
be01d343
PB
18117 else
18118 # We need a cross tool
81ecdfbb
RW
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18120$as_echo "pre-installed" >&6; }
be01d343
PB
18121 fi
18122fi
4b900473 18123
b121d7d4
DD
18124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
18125$as_echo_n "checking where to find the target readelf... " >&6; }
18126if test "x${build}" != "x${host}" ; then
18127 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18128 # We already found the complete path
18129 ac_dir=`dirname $READELF_FOR_TARGET`
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18131$as_echo "pre-installed in $ac_dir" >&6; }
18132 else
18133 # Canadian cross, just use what we found
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18135$as_echo "pre-installed" >&6; }
18136 fi
18137else
18138 ok=yes
18139 case " ${configdirs} " in
18140 *" binutils "*) ;;
18141 *) ok=no ;;
18142 esac
18143
18144 if test $ok = yes; then
18145 # An in-tree tool is available and we can use it
18146 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18148$as_echo "just compiled" >&6; }
18149 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $READELF_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18153$as_echo "pre-installed in $ac_dir" >&6; }
18154 elif test "x$target" = "x$host"; then
18155 # We can use an host tool
18156 READELF_FOR_TARGET='$(READELF)'
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18158$as_echo "host tool" >&6; }
18159 else
18160 # We need a cross tool
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18162$as_echo "pre-installed" >&6; }
18163 fi
18164fi
18165
81ecdfbb
RW
18166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18167$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 18168if test "x${build}" != "x${host}" ; then
2429c060
PB
18169 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18170 # We already found the complete path
b8025f34 18171 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18173$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18174 else
18175 # Canadian cross, just use what we found
81ecdfbb
RW
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18177$as_echo "pre-installed" >&6; }
2429c060 18178 fi
be01d343
PB
18179else
18180 ok=yes
18181 case " ${configdirs} " in
18182 *" binutils "*) ;;
18183 *) ok=no ;;
18184 esac
c6b750e1 18185
be01d343
PB
18186 if test $ok = yes; then
18187 # An in-tree tool is available and we can use it
9b980aa1 18188 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18190$as_echo "just compiled" >&6; }
2429c060
PB
18191 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18192 # We already found the complete path
b8025f34 18193 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18195$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18196 elif test "x$target" = "x$host"; then
18197 # We can use an host tool
18198 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18200$as_echo "host tool" >&6; }
be01d343
PB
18201 else
18202 # We need a cross tool
81ecdfbb
RW
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18204$as_echo "pre-installed" >&6; }
be01d343
PB
18205 fi
18206fi
4b900473 18207
81ecdfbb
RW
18208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18209$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 18210if test "x${build}" != "x${host}" ; then
2429c060
PB
18211 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18212 # We already found the complete path
b8025f34 18213 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18215$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
18216 else
18217 # Canadian cross, just use what we found
81ecdfbb
RW
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18219$as_echo "pre-installed" >&6; }
2429c060 18220 fi
be01d343
PB
18221else
18222 ok=yes
18223 case " ${configdirs} " in
18224 *" binutils "*) ;;
18225 *) ok=no ;;
18226 esac
c6b750e1 18227
be01d343
PB
18228 if test $ok = yes; then
18229 # An in-tree tool is available and we can use it
18230 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18232$as_echo "just compiled" >&6; }
2429c060
PB
18233 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18234 # We already found the complete path
b8025f34 18235 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18237$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
18238 elif test "x$target" = "x$host"; then
18239 # We can use an host tool
18240 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18242$as_echo "host tool" >&6; }
be01d343
PB
18243 else
18244 # We need a cross tool
81ecdfbb
RW
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18246$as_echo "pre-installed" >&6; }
be01d343 18247 fi
a0da8069 18248fi
54752a6b 18249
81ecdfbb
RW
18250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18251$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
18252if test "x${build}" != "x${host}" ; then
18253 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18254 # We already found the complete path
18255 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18257$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18258 else
18259 # Canadian cross, just use what we found
81ecdfbb
RW
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18261$as_echo "pre-installed" >&6; }
0c24b341
NC
18262 fi
18263else
18264 ok=yes
18265 case " ${configdirs} " in
18266 *" binutils "*) ;;
18267 *) ok=no ;;
18268 esac
18269
18270 if test $ok = yes; then
18271 # An in-tree tool is available and we can use it
18272 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18274$as_echo "just compiled" >&6; }
0c24b341
NC
18275 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18276 # We already found the complete path
18277 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18279$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
18280 elif test "x$target" = "x$host"; then
18281 # We can use an host tool
18282 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18284$as_echo "host tool" >&6; }
0c24b341
NC
18285 else
18286 # We need a cross tool
81ecdfbb
RW
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18288$as_echo "pre-installed" >&6; }
0c24b341
NC
18289 fi
18290fi
18291
54752a6b
NN
18292
18293
be01d343 18294
4b900473 18295
a0da8069
NN
18296# Certain tools may need extra flags.
18297AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18298RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18299NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18300
be01d343
PB
18301# When building target libraries, except in a Canadian cross, we use
18302# the same toolchain as the compiler we just built.
18303COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18304COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18305COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18306if test $host = $build; then
18307 case " $configdirs " in
18308 *" gcc "*)
18309 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18310 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18311 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18312 ;;
18313 esac
18314fi
18315
18316
18317
18318
18319
81ecdfbb
RW
18320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18321$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18322# Check whether --enable-maintainer-mode was given.
18323if test "${enable_maintainer_mode+set}" = set; then :
18324 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
18325else
18326 USE_MAINTAINER_MODE=no
81ecdfbb
RW
18327fi
18328
18329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18330$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
18331
18332
18333if test "$USE_MAINTAINER_MODE" = yes; then
18334 MAINTAINER_MODE_TRUE=
18335 MAINTAINER_MODE_FALSE='#'
18336else
18337 MAINTAINER_MODE_TRUE='#'
18338 MAINTAINER_MODE_FALSE=
c6b750e1 18339fi
3d5e36ae
AO
18340MAINT=$MAINTAINER_MODE_TRUE
18341
1d39f329
NN
18342# ---------------------
18343# GCC bootstrap support
18344# ---------------------
18345
18346# Stage specific cflags for build.
18347stage1_cflags="-g"
18348case $build in
18349 vax-*-*)
18350 case ${GCC} in
18351 yes) stage1_cflags="-g -Wa,-J" ;;
18352 *) stage1_cflags="-g -J" ;;
18353 esac ;;
1d39f329
NN
18354esac
18355
1d89b610 18356
1d39f329 18357
8a0d8a5c 18358# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
18359# Check whether --enable-stage1-checking was given.
18360if test "${enable_stage1_checking+set}" = set; then :
18361 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 18362else
5566c1fa 18363 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
18364 # For --disable-checking or implicit --enable-checking=release, avoid
18365 # setting --enable-checking=gc in the default stage1 checking for LTO
18366 # bootstraps. See PR62077.
ce6c656d
L
18367 case $BUILD_CONFIG in
18368 *lto*)
05a13254
NC
18369 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18370 *)
18371 stage1_checking=--enable-checking=yes,types;;
ce6c656d 18372 esac
05a13254
NC
18373 if test "x$enable_checking" = x && \
18374 test -d ${srcdir}/gcc && \
18375 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18376 stage1_checking=--enable-checking=yes,types,extra
18377 fi
8a0d8a5c 18378else
5566c1fa 18379 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 18380fi
81ecdfbb 18381fi
8a0d8a5c
PB
18382
18383
c6b750e1 18384
81ecdfbb
RW
18385# Enable -Werror in bootstrap stage2 and later.
18386# Check whether --enable-werror was given.
18387if test "${enable_werror+set}" = set; then :
18388 enableval=$enable_werror;
1a6f2dc7
NN
18389case ${enable_werror} in
18390 yes) stage2_werror_flag="--enable-werror-always" ;;
18391 *) stage2_werror_flag="" ;;
1d39f329
NN
18392esac
18393
82033c9b 18394else
82033c9b 18395
bf41f30d
NC
18396if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18397 case $BUILD_CONFIG in
18398 bootstrap-debug)
18399 stage2_werror_flag="--enable-werror-always" ;;
18400 "")
18401 stage2_werror_flag="--enable-werror-always" ;;
18402 esac
18403fi
82033c9b 18404
bf41f30d 18405fi
82033c9b 18406
1b6c0831 18407
1b6c0831 18408
1b6c0831 18409
e8a5fa9c
RW
18410# Specify what files to not compare during bootstrap.
18411
18412compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18413case "$target" in
18414 hppa*64*-*-hpux*) ;;
228cf97d
AM
18415 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18416 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
18417esac
18418
18419
81ecdfbb
RW
18420ac_config_files="$ac_config_files Makefile"
18421
c6b750e1 18422cat >confcache <<\_ACEOF
a0da8069
NN
18423# This file is a shell script that caches the results of configure
18424# tests run on this system so they can be shared between configure
c6b750e1
DJ
18425# scripts and configure runs, see configure's option --config-cache.
18426# It is not useful on other systems. If it contains results you don't
18427# want to keep, you may remove or edit it.
a0da8069 18428#
c6b750e1
DJ
18429# config.status only pays attention to the cache file if you give it
18430# the --recheck option to rerun configure.
a0da8069 18431#
c6b750e1
DJ
18432# `ac_cv_env_foo' variables (set or unset) will be overridden when
18433# loading this file, other *unset* `ac_cv_foo' will be assigned the
18434# following values.
18435
18436_ACEOF
18437
a0da8069
NN
18438# The following way of writing the cache mishandles newlines in values,
18439# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 18440# So, we kill variables containing newlines.
a0da8069
NN
18441# Ultrix sh set writes to stderr and can't be redirected directly,
18442# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
18443(
18444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18445 eval ac_val=\$$ac_var
18446 case $ac_val in #(
18447 *${as_nl}*)
18448 case $ac_var in #(
18449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18450$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18451 esac
18452 case $ac_var in #(
18453 _ | IFS | as_nl) ;; #(
18454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18455 *) { eval $ac_var=; unset $ac_var;} ;;
18456 esac ;;
18457 esac
18458 done
18459
c6b750e1 18460 (set) 2>&1 |
81ecdfbb
RW
18461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18462 *${as_nl}ac_space=\ *)
18463 # `set' does not quote correctly, so add quotes: double-quote
18464 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
18465 sed -n \
18466 "s/'/'\\\\''/g;
18467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 18468 ;; #(
c6b750e1
DJ
18469 *)
18470 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 18471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 18472 ;;
81ecdfbb
RW
18473 esac |
18474 sort
18475) |
c6b750e1 18476 sed '
81ecdfbb 18477 /^ac_cv_env_/b end
c6b750e1 18478 t clear
81ecdfbb 18479 :clear
c6b750e1
DJ
18480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18481 t end
81ecdfbb
RW
18482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18483 :end' >>confcache
18484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18485 if test -w "$cache_file"; then
d0ac1c44 18486 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18488$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
18489 if test ! -f "$cache_file" || test -h "$cache_file"; then
18490 cat confcache >"$cache_file"
18491 else
18492 case $cache_file in #(
18493 */* | ?:*)
18494 mv -f confcache "$cache_file"$$ &&
18495 mv -f "$cache_file"$$ "$cache_file" ;; #(
18496 *)
18497 mv -f confcache "$cache_file" ;;
18498 esac
18499 fi
18500 fi
a0da8069 18501 else
81ecdfbb
RW
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18503$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 18504 fi
852e5f18 18505fi
a0da8069 18506rm -f confcache
852e5f18 18507
a0da8069
NN
18508test "x$prefix" = xNONE && prefix=$ac_default_prefix
18509# Let make expand exec_prefix.
18510test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 18511
a0da8069
NN
18512# Transform confdefs.h into DEFS.
18513# Protect against shell expansion while executing Makefile rules.
18514# Protect against Makefile macro expansion.
c6b750e1
DJ
18515#
18516# If the first sed substitution is executed (which looks for macros that
81ecdfbb 18517# take arguments), then branch to the quote section. Otherwise,
c6b750e1 18518# look for a macro that doesn't take arguments.
81ecdfbb
RW
18519ac_script='
18520:mline
18521/\\$/{
18522 N
18523 s,\\\n,,
18524 b mline
18525}
c6b750e1 18526t clear
81ecdfbb
RW
18527:clear
18528s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 18529t quote
81ecdfbb 18530s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 18531t quote
81ecdfbb
RW
18532b any
18533:quote
18534s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18535s/\[/\\&/g
18536s/\]/\\&/g
18537s/\$/$$/g
18538H
18539:any
18540${
18541 g
18542 s/^\n//
18543 s/\n/ /g
18544 p
18545}
18546'
18547DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
18548
18549
18550ac_libobjs=
18551ac_ltlibobjs=
d0ac1c44 18552U=
c6b750e1
DJ
18553for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18554 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
18555 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18558 # will be set to the directory where LIBOBJS objects are built.
18559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
18561done
18562LIBOBJS=$ac_libobjs
852e5f18 18563
c6b750e1 18564LTLIBOBJS=$ac_ltlibobjs
376a0e54 18565
cac3d6c4 18566
c6b750e1 18567
d0ac1c44 18568: "${CONFIG_STATUS=./config.status}"
81ecdfbb 18569ac_write_fail=0
c6b750e1
DJ
18570ac_clean_files_save=$ac_clean_files
18571ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
18572{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18573$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18574as_write_fail=0
18575cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
18576#! $SHELL
18577# Generated by $as_me.
a0da8069 18578# Run this file to recreate the current configuration.
a0da8069 18579# Compiler output produced by configure, useful for debugging
c6b750e1 18580# configure, is in config.log if it exists.
376a0e54 18581
c6b750e1
DJ
18582debug=false
18583ac_cs_recheck=false
18584ac_cs_silent=false
c6b750e1 18585
81ecdfbb
RW
18586SHELL=\${CONFIG_SHELL-$SHELL}
18587export SHELL
18588_ASEOF
18589cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18590## -------------------- ##
18591## M4sh Initialization. ##
18592## -------------------- ##
18593
18594# Be more Bourne compatible
18595DUALCASE=1; export DUALCASE # for MKS sh
18596if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18597 emulate sh
18598 NULLCMD=:
81ecdfbb 18599 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
18600 # is contrary to our usage. Disable this feature.
18601 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
18602 setopt NO_GLOB_SUBST
18603else
18604 case `(set -o) 2>/dev/null` in #(
18605 *posix*) :
18606 set -o posix ;; #(
18607 *) :
18608 ;;
18609esac
c6b750e1 18610fi
c6b750e1 18611
81ecdfbb
RW
18612
18613as_nl='
18614'
18615export as_nl
18616# Printing a long string crashes Solaris 7 /usr/bin/printf.
18617as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18618as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18619as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18620# Prefer a ksh shell builtin over an external printf program on Solaris,
18621# but without wasting forks for bash or zsh.
18622if test -z "$BASH_VERSION$ZSH_VERSION" \
18623 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18624 as_echo='print -r --'
18625 as_echo_n='print -rn --'
18626elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18627 as_echo='printf %s\n'
18628 as_echo_n='printf %s'
18629else
18630 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18631 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18632 as_echo_n='/usr/ucb/echo -n'
18633 else
18634 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18635 as_echo_n_body='eval
18636 arg=$1;
18637 case $arg in #(
18638 *"$as_nl"*)
18639 expr "X$arg" : "X\\(.*\\)$as_nl";
18640 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18641 esac;
18642 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18643 '
18644 export as_echo_n_body
18645 as_echo_n='sh -c $as_echo_n_body as_echo'
18646 fi
18647 export as_echo_body
18648 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
18649fi
18650
81ecdfbb
RW
18651# The user is always right.
18652if test "${PATH_SEPARATOR+set}" != set; then
18653 PATH_SEPARATOR=:
18654 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18655 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18656 PATH_SEPARATOR=';'
18657 }
18658fi
18659
18660
18661# IFS
18662# We need space, tab and new line, in precisely that order. Quoting is
18663# there to prevent editors from complaining about space-tab.
18664# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18665# splitting by setting IFS to empty value.)
18666IFS=" "" $as_nl"
18667
18668# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 18669as_myself=
81ecdfbb
RW
18670case $0 in #((
18671 *[\\/]* ) as_myself=$0 ;;
18672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18673for as_dir in $PATH
18674do
18675 IFS=$as_save_IFS
18676 test -z "$as_dir" && as_dir=.
18677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18678 done
18679IFS=$as_save_IFS
18680
18681 ;;
18682esac
18683# We did not find ourselves, most probably we were run as `sh COMMAND'
18684# in which case we are not to be found in the path.
18685if test "x$as_myself" = x; then
18686 as_myself=$0
18687fi
18688if test ! -f "$as_myself"; then
18689 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18690 exit 1
18691fi
c6b750e1 18692
81ecdfbb
RW
18693# Unset variables that we do not need and which cause bugs (e.g. in
18694# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18695# suppresses any "Segmentation fault" message there. '((' could
18696# trigger a bug in pdksh 5.2.14.
18697for as_var in BASH_ENV ENV MAIL MAILPATH
18698do eval test x\${$as_var+set} = xset \
18699 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18700done
c6b750e1
DJ
18701PS1='$ '
18702PS2='> '
18703PS4='+ '
18704
18705# NLS nuisances.
81ecdfbb
RW
18706LC_ALL=C
18707export LC_ALL
18708LANGUAGE=C
18709export LANGUAGE
18710
18711# CDPATH.
18712(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18713
18714
d0ac1c44
SM
18715# as_fn_error STATUS ERROR [LINENO LOG_FD]
18716# ----------------------------------------
81ecdfbb
RW
18717# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18718# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 18719# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
18720as_fn_error ()
18721{
d0ac1c44
SM
18722 as_status=$1; test $as_status -eq 0 && as_status=1
18723 if test "$4"; then
18724 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18725 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c6b750e1 18726 fi
d0ac1c44 18727 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
18728 as_fn_exit $as_status
18729} # as_fn_error
18730
18731
18732# as_fn_set_status STATUS
18733# -----------------------
18734# Set $? to STATUS, without forking.
18735as_fn_set_status ()
18736{
18737 return $1
18738} # as_fn_set_status
18739
18740# as_fn_exit STATUS
18741# -----------------
18742# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18743as_fn_exit ()
18744{
18745 set +e
18746 as_fn_set_status $1
18747 exit $1
18748} # as_fn_exit
18749
18750# as_fn_unset VAR
18751# ---------------
18752# Portably unset VAR.
18753as_fn_unset ()
18754{
18755 { eval $1=; unset $1;}
18756}
18757as_unset=as_fn_unset
18758# as_fn_append VAR VALUE
18759# ----------------------
18760# Append the text in VALUE to the end of the definition contained in VAR. Take
18761# advantage of any shell optimizations that allow amortized linear growth over
18762# repeated appends, instead of the typical quadratic growth present in naive
18763# implementations.
18764if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18765 eval 'as_fn_append ()
18766 {
18767 eval $1+=\$2
18768 }'
18769else
18770 as_fn_append ()
18771 {
18772 eval $1=\$$1\$2
18773 }
18774fi # as_fn_append
18775
18776# as_fn_arith ARG...
18777# ------------------
18778# Perform arithmetic evaluation on the ARGs, and store the result in the
18779# global $as_val. Take advantage of shells that can avoid forks. The arguments
18780# must be portable across $(()) and expr.
18781if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18782 eval 'as_fn_arith ()
18783 {
18784 as_val=$(( $* ))
18785 }'
18786else
18787 as_fn_arith ()
18788 {
18789 as_val=`expr "$@" || test $? -eq 1`
18790 }
18791fi # as_fn_arith
18792
c6b750e1 18793
81ecdfbb
RW
18794if expr a : '\(a\)' >/dev/null 2>&1 &&
18795 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
18796 as_expr=expr
18797else
18798 as_expr=false
18799fi
18800
81ecdfbb 18801if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
18802 as_basename=basename
18803else
18804 as_basename=false
18805fi
18806
81ecdfbb
RW
18807if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18808 as_dirname=dirname
18809else
18810 as_dirname=false
18811fi
c6b750e1 18812
81ecdfbb 18813as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
18814$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18815 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
18816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18817$as_echo X/"$0" |
18818 sed '/^.*\/\([^/][^/]*\)\/*$/{
18819 s//\1/
18820 q
18821 }
18822 /^X\/\(\/\/\)$/{
18823 s//\1/
18824 q
18825 }
18826 /^X\/\(\/\).*/{
18827 s//\1/
18828 q
18829 }
18830 s/.*/./; q'`
c6b750e1 18831
c6b750e1
DJ
18832# Avoid depending upon Character Ranges.
18833as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18834as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18835as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18836as_cr_digits='0123456789'
18837as_cr_alnum=$as_cr_Letters$as_cr_digits
18838
81ecdfbb
RW
18839ECHO_C= ECHO_N= ECHO_T=
18840case `echo -n x` in #(((((
18841-n*)
18842 case `echo 'xy\c'` in
18843 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18844 xy) ECHO_C='\c';;
18845 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18846 ECHO_T=' ';;
18847 esac;;
18848*)
18849 ECHO_N='-n';;
c6b750e1
DJ
18850esac
18851
81ecdfbb
RW
18852rm -f conf$$ conf$$.exe conf$$.file
18853if test -d conf$$.dir; then
18854 rm -f conf$$.dir/conf$$.file
c6b750e1 18855else
81ecdfbb
RW
18856 rm -f conf$$.dir
18857 mkdir conf$$.dir 2>/dev/null
c6b750e1 18858fi
81ecdfbb
RW
18859if (echo >conf$$.file) 2>/dev/null; then
18860 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 18861 as_ln_s='ln -s'
81ecdfbb
RW
18862 # ... but there are two gotchas:
18863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 18865 # In both cases, we have to default to `cp -pR'.
81ecdfbb 18866 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 18867 as_ln_s='cp -pR'
81ecdfbb
RW
18868 elif ln conf$$.file conf$$ 2>/dev/null; then
18869 as_ln_s=ln
18870 else
d0ac1c44 18871 as_ln_s='cp -pR'
c6b750e1 18872 fi
c6b750e1 18873else
d0ac1c44 18874 as_ln_s='cp -pR'
c6b750e1 18875fi
81ecdfbb
RW
18876rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18877rmdir conf$$.dir 2>/dev/null
18878
18879
18880# as_fn_mkdir_p
18881# -------------
18882# Create "$as_dir" as a directory, including parents if necessary.
18883as_fn_mkdir_p ()
18884{
18885
18886 case $as_dir in #(
18887 -*) as_dir=./$as_dir;;
18888 esac
18889 test -d "$as_dir" || eval $as_mkdir_p || {
18890 as_dirs=
18891 while :; do
18892 case $as_dir in #(
18893 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18894 *) as_qdir=$as_dir;;
18895 esac
18896 as_dirs="'$as_qdir' $as_dirs"
18897 as_dir=`$as_dirname -- "$as_dir" ||
18898$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18899 X"$as_dir" : 'X\(//\)[^/]' \| \
18900 X"$as_dir" : 'X\(//\)$' \| \
18901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18902$as_echo X"$as_dir" |
18903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18904 s//\1/
18905 q
18906 }
18907 /^X\(\/\/\)[^/].*/{
18908 s//\1/
18909 q
18910 }
18911 /^X\(\/\/\)$/{
18912 s//\1/
18913 q
18914 }
18915 /^X\(\/\).*/{
18916 s//\1/
18917 q
18918 }
18919 s/.*/./; q'`
18920 test -d "$as_dir" && break
18921 done
18922 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 18923 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 18924
c6b750e1 18925
81ecdfbb 18926} # as_fn_mkdir_p
c6b750e1 18927if mkdir -p . 2>/dev/null; then
81ecdfbb 18928 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
18929else
18930 test -d ./-p && rmdir ./-p
18931 as_mkdir_p=false
18932fi
18933
d0ac1c44
SM
18934
18935# as_fn_executable_p FILE
18936# -----------------------
18937# Test if FILE is an executable regular file.
18938as_fn_executable_p ()
18939{
18940 test -f "$1" && test -x "$1"
18941} # as_fn_executable_p
18942as_test_x='test -x'
18943as_executable_p=as_fn_executable_p
c6b750e1
DJ
18944
18945# Sed expression to map a string onto a valid CPP name.
18946as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18947
18948# Sed expression to map a string onto a valid variable name.
18949as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18950
18951
c6b750e1 18952exec 6>&1
81ecdfbb
RW
18953## ----------------------------------- ##
18954## Main body of $CONFIG_STATUS script. ##
18955## ----------------------------------- ##
18956_ASEOF
18957test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18958
18959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18960# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 18961# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
18962# values after options handling.
18963ac_log="
c6b750e1 18964This file was extended by $as_me, which was
d0ac1c44 18965generated by GNU Autoconf 2.69. Invocation command line was
c6b750e1
DJ
18966
18967 CONFIG_FILES = $CONFIG_FILES
18968 CONFIG_HEADERS = $CONFIG_HEADERS
18969 CONFIG_LINKS = $CONFIG_LINKS
18970 CONFIG_COMMANDS = $CONFIG_COMMANDS
18971 $ $0 $@
18972
81ecdfbb
RW
18973on `(hostname || uname -n) 2>/dev/null | sed 1q`
18974"
18975
c6b750e1
DJ
18976_ACEOF
18977
81ecdfbb
RW
18978case $ac_config_files in *"
18979"*) set x $ac_config_files; shift; ac_config_files=$*;;
18980esac
c6b750e1 18981
c6b750e1 18982
c6b750e1 18983
81ecdfbb
RW
18984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18985# Files that config.status was made for.
18986config_files="$ac_config_files"
c6b750e1 18987
81ecdfbb 18988_ACEOF
c6b750e1 18989
81ecdfbb 18990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 18991ac_cs_usage="\
81ecdfbb
RW
18992\`$as_me' instantiates files and other configuration actions
18993from templates according to the current configuration. Unless the files
18994and actions are specified as TAGs, all are instantiated by default.
c6b750e1 18995
81ecdfbb 18996Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
18997
18998 -h, --help print this help, then exit
81ecdfbb 18999 -V, --version print version number and configuration settings, then exit
d0ac1c44 19000 --config print configuration, then exit
81ecdfbb
RW
19001 -q, --quiet, --silent
19002 do not print progress messages
c6b750e1
DJ
19003 -d, --debug don't remove temporary files
19004 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
19005 --file=FILE[:TEMPLATE]
19006 instantiate the configuration file FILE
c6b750e1
DJ
19007
19008Configuration files:
19009$config_files
19010
81ecdfbb 19011Report bugs to the package provider."
c6b750e1 19012
81ecdfbb
RW
19013_ACEOF
19014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19015ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
c6b750e1
DJ
19016ac_cs_version="\\
19017config.status
d0ac1c44
SM
19018configured by $0, generated by GNU Autoconf 2.69,
19019 with options \\"\$ac_cs_config\\"
c6b750e1 19020
d0ac1c44 19021Copyright (C) 2012 Free Software Foundation, Inc.
c6b750e1
DJ
19022This config.status script is free software; the Free Software Foundation
19023gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
19024
19025ac_pwd='$ac_pwd'
19026srcdir='$srcdir'
19027INSTALL='$INSTALL'
8e957354 19028AWK='$AWK'
81ecdfbb 19029test -n "\$AWK" || AWK=awk
c6b750e1
DJ
19030_ACEOF
19031
81ecdfbb
RW
19032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033# The default lists apply if the user does not specify any file.
c6b750e1
DJ
19034ac_need_defaults=:
19035while test $# != 0
a0da8069 19036do
c6b750e1 19037 case $1 in
d0ac1c44 19038 --*=?*)
81ecdfbb
RW
19039 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19040 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
19041 ac_shift=:
19042 ;;
d0ac1c44
SM
19043 --*=)
19044 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19045 ac_optarg=
19046 ac_shift=:
19047 ;;
81ecdfbb 19048 *)
c6b750e1
DJ
19049 ac_option=$1
19050 ac_optarg=$2
19051 ac_shift=shift
19052 ;;
c6b750e1
DJ
19053 esac
19054
19055 case $ac_option in
19056 # Handling of the options.
a0da8069 19057 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 19058 ac_cs_recheck=: ;;
81ecdfbb
RW
19059 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19060 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
19061 --config | --confi | --conf | --con | --co | --c )
19062 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 19063 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
19064 debug=: ;;
19065 --file | --fil | --fi | --f )
19066 $ac_shift
81ecdfbb
RW
19067 case $ac_optarg in
19068 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 19069 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
19070 esac
19071 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 19072 ac_need_defaults=false;;
81ecdfbb
RW
19073 --he | --h | --help | --hel | -h )
19074 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
19075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19077 ac_cs_silent=: ;;
19078
19079 # This is an error.
d0ac1c44 19080 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 19081Try \`$0 --help' for more information." ;;
c6b750e1 19082
81ecdfbb
RW
19083 *) as_fn_append ac_config_targets " $1"
19084 ac_need_defaults=false ;;
c6b750e1 19085
376a0e54 19086 esac
c6b750e1 19087 shift
376a0e54
CM
19088done
19089
c6b750e1 19090ac_configure_extra_args=
376a0e54 19091
c6b750e1
DJ
19092if $ac_cs_silent; then
19093 exec 6>/dev/null
19094 ac_configure_extra_args="$ac_configure_extra_args --silent"
19095fi
376a0e54 19096
c6b750e1 19097_ACEOF
81ecdfbb 19098cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 19099if \$ac_cs_recheck; then
d0ac1c44 19100 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
19101 shift
19102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19103 CONFIG_SHELL='$SHELL'
19104 export CONFIG_SHELL
19105 exec "\$@"
c6b750e1
DJ
19106fi
19107
19108_ACEOF
81ecdfbb
RW
19109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19110exec 5>>config.log
19111{
19112 echo
19113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19114## Running $as_me. ##
19115_ASBOX
19116 $as_echo "$ac_log"
19117} >&5
c6b750e1 19118
81ecdfbb
RW
19119_ACEOF
19120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
19121#
19122# INIT-COMMANDS
19123#
19124extrasub_build="$extrasub_build"
19125 extrasub_host="$extrasub_host"
19126 extrasub_target="$extrasub_target"
19127
81ecdfbb 19128_ACEOF
c6b750e1 19129
81ecdfbb 19130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 19131
81ecdfbb 19132# Handling of arguments.
c6b750e1
DJ
19133for ac_config_target in $ac_config_targets
19134do
81ecdfbb
RW
19135 case $ac_config_target in
19136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19137
d0ac1c44 19138 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
19139 esac
19140done
19141
81ecdfbb 19142
c6b750e1
DJ
19143# If the user did not use the arguments to specify the items to instantiate,
19144# then the envvar interface is used. Set only those that are not.
19145# We use the long form for the default assignment because of an extremely
19146# bizarre bug on SunOS 4.1.3.
19147if $ac_need_defaults; then
19148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19149fi
19150
19151# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 19152# simply because there is no reason against having it here, and in addition,
c6b750e1 19153# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
19154# Hook for its removal unless debugging.
19155# Note that there is a small window in which the directory will not be cleaned:
19156# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
19157$debug ||
19158{
d0ac1c44 19159 tmp= ac_tmp=
81ecdfbb 19160 trap 'exit_status=$?
d0ac1c44
SM
19161 : "${ac_tmp:=$tmp}"
19162 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
19163' 0
19164 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 19165}
c6b750e1
DJ
19166# Create a (secure) tmp directory for tmp files.
19167
19168{
81ecdfbb 19169 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 19170 test -d "$tmp"
c6b750e1
DJ
19171} ||
19172{
81ecdfbb
RW
19173 tmp=./conf$$-$RANDOM
19174 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
19175} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19176ac_tmp=$tmp
81ecdfbb
RW
19177
19178# Set up the scripts for CONFIG_FILES section.
19179# No need to generate them if there are no CONFIG_FILES.
19180# This happens for instance with `./config.status config.h'.
19181if test -n "$CONFIG_FILES"; then
19182
19183if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19184 ac_cs_awk_getline=:
19185 ac_cs_awk_pipe_init=
19186 ac_cs_awk_read_file='
19187 while ((getline aline < (F[key])) > 0)
19188 print(aline)
19189 close(F[key])'
19190 ac_cs_awk_pipe_fini=
19191else
19192 ac_cs_awk_getline=false
19193 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19194 ac_cs_awk_read_file='
19195 print "|#_!!_#|"
19196 print "cat " F[key] " &&"
19197 '$ac_cs_awk_pipe_init
19198 # The final `:' finishes the AND list.
19199 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19200fi
19201ac_cr=`echo X | tr X '\015'`
19202# On cygwin, bash can eat \r inside `` if the user requested igncr.
19203# But we know of no other shell where ac_cr would be empty at this
19204# point, so we can use a bashism as a fallback.
19205if test "x$ac_cr" = x; then
19206 eval ac_cr=\$\'\\r\'
19207fi
19208ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19209if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 19210 ac_cs_awk_cr='\\r'
81ecdfbb
RW
19211else
19212 ac_cs_awk_cr=$ac_cr
19213fi
19214
d0ac1c44 19215echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
19216_ACEOF
19217
19218# Create commands to substitute file output variables.
c6b750e1 19219{
81ecdfbb 19220 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d0ac1c44 19221 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
81ecdfbb
RW
19222 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19223 echo "_ACAWK" &&
19224 echo "_ACEOF"
19225} >conf$$files.sh &&
19226. ./conf$$files.sh ||
d0ac1c44 19227 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19228rm -f conf$$files.sh
c6b750e1 19229
81ecdfbb
RW
19230{
19231 echo "cat >conf$$subs.awk <<_ACEOF" &&
19232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19233 echo "_ACEOF"
19234} >conf$$subs.sh ||
d0ac1c44
SM
19235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19236ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
19237ac_delim='%!_!# '
19238for ac_last_try in false false false false false :; do
19239 . ./conf$$subs.sh ||
d0ac1c44 19240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19241
19242 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19243 if test $ac_delim_n = $ac_delim_num; then
19244 break
19245 elif $ac_last_try; then
d0ac1c44 19246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
19247 else
19248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19249 fi
19250done
19251rm -f conf$$subs.sh
19252
19253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 19254cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 19255_ACEOF
81ecdfbb
RW
19256sed -n '
19257h
19258s/^/S["/; s/!.*/"]=/
19259p
19260g
19261s/^[^!]*!//
19262:repl
19263t repl
19264s/'"$ac_delim"'$//
19265t delim
19266:nl
19267h
d0ac1c44 19268s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19269t more1
19270s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19271p
19272n
19273b repl
19274:more1
19275s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19276p
19277g
19278s/.\{148\}//
19279t nl
19280:delim
19281h
d0ac1c44 19282s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
19283t more2
19284s/["\\]/\\&/g; s/^/"/; s/$/"/
19285p
19286b
19287:more2
19288s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19289p
19290g
19291s/.\{148\}//
19292t delim
19293' <conf$$subs.awk | sed '
19294/^[^""]/{
19295 N
19296 s/\n//
19297}
19298' >>$CONFIG_STATUS || ac_write_fail=1
19299rm -f conf$$subs.awk
19300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19301_ACAWK
d0ac1c44 19302cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
19303 for (key in S) S_is_set[key] = 1
19304 FS = "\a"
19305 \$ac_cs_awk_pipe_init
19306}
19307{
19308 line = $ 0
19309 nfields = split(line, field, "@")
19310 substed = 0
19311 len = length(field[1])
19312 for (i = 2; i < nfields; i++) {
19313 key = field[i]
19314 keylen = length(key)
19315 if (S_is_set[key]) {
19316 value = S[key]
19317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19318 len += length(value) + length(field[++i])
19319 substed = 1
19320 } else
19321 len += 1 + keylen
19322 }
19323 if (nfields == 3 && !substed) {
19324 key = field[2]
19325 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19326 \$ac_cs_awk_read_file
19327 next
19328 }
19329 }
19330 print line
19331}
19332\$ac_cs_awk_pipe_fini
19333_ACAWK
19334_ACEOF
19335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19336if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19338else
19339 cat
d0ac1c44
SM
19340fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19341 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb
RW
19342_ACEOF
19343
d0ac1c44
SM
19344# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19345# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
19346# trailing colons and then remove the whole line if VPATH becomes empty
19347# (actually we leave an empty line to preserve line numbers).
19348if test "x$srcdir" = x.; then
d0ac1c44
SM
19349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19350h
19351s///
19352s/^/:/
19353s/[ ]*$/:/
19354s/:\$(srcdir):/:/g
19355s/:\${srcdir}:/:/g
19356s/:@srcdir@:/:/g
19357s/^:*//
81ecdfbb 19358s/:*$//
d0ac1c44
SM
19359x
19360s/\(=[ ]*\).*/\1/
19361G
19362s/\n//
81ecdfbb
RW
19363s/^[^=]*=[ ]*$//
19364}'
19365fi
c6b750e1 19366
81ecdfbb
RW
19367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19368fi # test -n "$CONFIG_FILES"
c6b750e1 19369
c6b750e1 19370
81ecdfbb
RW
19371eval set X " :F $CONFIG_FILES "
19372shift
19373for ac_tag
19374do
19375 case $ac_tag in
19376 :[FHLC]) ac_mode=$ac_tag; continue;;
19377 esac
19378 case $ac_mode$ac_tag in
19379 :[FHL]*:*);;
d0ac1c44 19380 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
19381 :[FH]-) ac_tag=-:-;;
19382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19383 esac
19384 ac_save_IFS=$IFS
19385 IFS=:
19386 set x $ac_tag
19387 IFS=$ac_save_IFS
19388 shift
19389 ac_file=$1
19390 shift
252b5132 19391
81ecdfbb
RW
19392 case $ac_mode in
19393 :L) ac_source=$1;;
19394 :[FH])
19395 ac_file_inputs=
19396 for ac_f
19397 do
19398 case $ac_f in
d0ac1c44 19399 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
19400 *) # Look for the file first in the build tree, then in the source tree
19401 # (if the path is not absolute). The absolute path cannot be DOS-style,
19402 # because $ac_f cannot contain `:'.
19403 test -f "$ac_f" ||
19404 case $ac_f in
19405 [\\/$]*) false;;
19406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19407 esac ||
d0ac1c44 19408 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
19409 esac
19410 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19411 as_fn_append ac_file_inputs " '$ac_f'"
19412 done
c6b750e1 19413
81ecdfbb
RW
19414 # Let's still pretend it is `configure' which instantiates (i.e., don't
19415 # use $as_me), people would be surprised to read:
19416 # /* config.h. Generated by config.status. */
19417 configure_input='Generated from '`
19418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19419 `' by configure.'
19420 if test x"$ac_file" != x-; then
19421 configure_input="$ac_file. $configure_input"
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19423$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 19424 fi
81ecdfbb
RW
19425 # Neutralize special characters interpreted by sed in replacement strings.
19426 case $configure_input in #(
19427 *\&* | *\|* | *\\* )
19428 ac_sed_conf_input=`$as_echo "$configure_input" |
19429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19430 *) ac_sed_conf_input=$configure_input;;
19431 esac
cac3d6c4 19432
81ecdfbb 19433 case $ac_tag in
d0ac1c44
SM
19434 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19435 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
19436 esac
19437 ;;
a0da8069 19438 esac
252b5132 19439
81ecdfbb 19440 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
19441$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19442 X"$ac_file" : 'X\(//\)[^/]' \| \
19443 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
19444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19445$as_echo X"$ac_file" |
19446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19447 s//\1/
19448 q
19449 }
19450 /^X\(\/\/\)[^/].*/{
19451 s//\1/
19452 q
19453 }
19454 /^X\(\/\/\)$/{
19455 s//\1/
19456 q
19457 }
19458 /^X\(\/\).*/{
19459 s//\1/
19460 q
19461 }
19462 s/.*/./; q'`
19463 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 19464 ac_builddir=.
252b5132 19465
81ecdfbb
RW
19466case "$ac_dir" in
19467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19468*)
19469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19470 # A ".." for each directory in $ac_dir_suffix.
19471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19472 case $ac_top_builddir_sub in
19473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19475 esac ;;
19476esac
19477ac_abs_top_builddir=$ac_pwd
19478ac_abs_builddir=$ac_pwd$ac_dir_suffix
19479# for backward compatibility:
19480ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
19481
19482case $srcdir in
81ecdfbb 19483 .) # We are building in place.
c6b750e1 19484 ac_srcdir=.
81ecdfbb
RW
19485 ac_top_srcdir=$ac_top_builddir_sub
19486 ac_abs_top_srcdir=$ac_pwd ;;
19487 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 19488 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
19489 ac_top_srcdir=$srcdir
19490 ac_abs_top_srcdir=$srcdir ;;
19491 *) # Relative name.
19492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19493 ac_top_srcdir=$ac_top_build_prefix$srcdir
19494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 19495esac
81ecdfbb 19496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 19497
252b5132 19498
81ecdfbb
RW
19499 case $ac_mode in
19500 :F)
19501 #
19502 # CONFIG_FILE
19503 #
c6b750e1
DJ
19504
19505 case $INSTALL in
19506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 19507 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 19508 esac
81ecdfbb 19509_ACEOF
252b5132 19510
81ecdfbb
RW
19511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19512# If the template does not know about datarootdir, expand it.
19513# FIXME: This hack should be removed a few years after 2.60.
19514ac_datarootdir_hack=; ac_datarootdir_seen=
19515ac_sed_dataroot='
19516/datarootdir/ {
19517 p
19518 q
19519}
19520/@datadir@/p
19521/@docdir@/p
19522/@infodir@/p
19523/@localedir@/p
19524/@mandir@/p'
19525case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19526*datarootdir*) ac_datarootdir_seen=yes;;
19527*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19529$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 19530_ACEOF
81ecdfbb
RW
19531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19532 ac_datarootdir_hack='
19533 s&@datadir@&$datadir&g
19534 s&@docdir@&$docdir&g
19535 s&@infodir@&$infodir&g
19536 s&@localedir@&$localedir&g
19537 s&@mandir@&$mandir&g
19538 s&\\\${datarootdir}&$datarootdir&g' ;;
19539esac
19540_ACEOF
19541
19542# Neutralize VPATH when `$srcdir' = `.'.
19543# Shell code in configure.ac might set extrasub.
19544# FIXME: do we really want to maintain this feature?
19545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546ac_sed_extra="$ac_vpsub
c6b750e1
DJ
19547$extrasub
19548_ACEOF
81ecdfbb 19549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
19550:t
19551/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
19552s|@configure_input@|$ac_sed_conf_input|;t t
19553s&@top_builddir@&$ac_top_builddir_sub&;t t
19554s&@top_build_prefix@&$ac_top_build_prefix&;t t
19555s&@srcdir@&$ac_srcdir&;t t
19556s&@abs_srcdir@&$ac_abs_srcdir&;t t
19557s&@top_srcdir@&$ac_top_srcdir&;t t
19558s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19559s&@builddir@&$ac_builddir&;t t
19560s&@abs_builddir@&$ac_abs_builddir&;t t
19561s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19562s&@INSTALL@&$ac_INSTALL&;t t
19563$ac_datarootdir_hack
19564"
19565eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19566if $ac_cs_awk_getline; then
d0ac1c44 19567 $AWK -f "$ac_tmp/subs.awk"
81ecdfbb 19568else
d0ac1c44
SM
19569 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19570fi \
19571 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
19572
19573test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
19574 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19576 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19578which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 19579$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 19580which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 19581
d0ac1c44 19582 rm -f "$ac_tmp/stdin"
81ecdfbb 19583 case $ac_file in
d0ac1c44
SM
19584 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19585 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 19586 esac \
d0ac1c44 19587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 19588 ;;
c148b4cb 19589
c148b4cb 19590
c148b4cb 19591
81ecdfbb
RW
19592 esac
19593
06a51eac
RW
19594
19595 case $ac_file$ac_mode in
19596 "Makefile":F) sed "$extrasub_build" Makefile |
19597 sed "$extrasub_host" |
19598 sed "$extrasub_target" > mf$$
19599 mv -f mf$$ Makefile ;;
19600
19601 esac
81ecdfbb
RW
19602done # for ac_tag
19603
19604
19605as_fn_exit 0
c6b750e1 19606_ACEOF
c6b750e1
DJ
19607ac_clean_files=$ac_clean_files_save
19608
81ecdfbb 19609test $ac_write_fail = 0 ||
d0ac1c44 19610 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 19611
c6b750e1
DJ
19612
19613# configure is writing to config.log, and then calls config.status.
19614# config.status does its own redirection, appending to config.log.
19615# Unfortunately, on DOS this fails, as config.log is still kept open
19616# by configure, so config.status won't be able to write to it; its
19617# output is simply discarded. So we exec the FD to /dev/null,
19618# effectively closing config.log, so it can be properly (re)opened and
19619# appended to by config.status. When coming back to configure, we
19620# need to make the FD available again.
19621if test "$no_create" != yes; then
19622 ac_cs_success=:
19623 ac_config_status_args=
19624 test "$silent" = yes &&
19625 ac_config_status_args="$ac_config_status_args --quiet"
19626 exec 5>/dev/null
19627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19628 exec 5>>config.log
19629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19630 # would make configure fail if this is the last instruction.
d0ac1c44 19631 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
19632fi
19633if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19635$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 19636fi
c148b4cb 19637